Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#13 2010-02-17 20:15:27
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: File download not working
Does this work?
<txp:file_download_list category='<txp:custom_field name="gallery_images" />' form="video_layout" />
Offline
Re: File download not working
as above els…thanks for help the difference being single qoutes? il test it.
Offline
Re: File download not working
single qoutes do not work either.
Offline
#16 2010-02-17 20:23:27
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: File download not working
That’s a pity, must be something else then. Though you really need the single quotes: Parsing Tag Attributes.
Offline
#17 2010-02-17 20:25:00
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: File download not working
Is your files directory really named ‘downloads’?
Offline
Re: File download not working
yes it is. and ive done a diagnostic, its fine. I changed it to be called downloads becuase i had permission problems with the defualt directory so just created a new folder and setup permissions on that.
Last edited by CodeWalker (2010-02-17 20:28:18)
Offline
#19 2010-02-17 20:30:24
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: File download not working
I see. I’m out of ideas then, sorry. You’ll have to wait for Stef’s next long shot ;)
Bloke wrote:
(again, a long shot — I’m good at those!)
Offline
Re: File download not working
a ray of hope perhaps… ill post back when ive sussed it out.
http://jquery.thewikies.com/swfobject/
Offline
Re: File download not working
@bloke
i tried this but didnt work:
<script type="text/javascript">
jQuery(function() {
var so = new SWFObject("/assets/player/720.swf", "flvplayer", "720", "480", "9");
so.addParam("FlashVars", flvAddress=<txp:site_url />downloads/<txp:file_download_name />");
so.addParam("quality", "high");
so.addParam("wmode", "transparent");
so.write("flashcontent");
});
</script>
Offline
Re: File download not working
guys, thanks for all your valient eforts but i worked it out. the problem was textpattern inserting a line break so the above code was outputted as this…
<script type="text/javascript">
jQuery(function() {
var so = new SWFObject("/assets/player/720.swf", "flvplayer", "720", "480", "9");
so.addParam("FlashVars", flvAddress=<txp:site_url />downloads/<txp:file_download_name />
");
so.addParam("quality", "high");
so.addParam("wmode", "transparent");
so.write("flashcontent");
});
</script>
Offline