Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#14 2010-02-17 20:16:57

CodeWalker
Member
From: Hampshire, UK
Registered: 2010-01-08
Posts: 110
Website

Re: File download not working

as above els…thanks for help the difference being single qoutes? il test it.

Offline

#15 2010-02-17 20:18:36

CodeWalker
Member
From: Hampshire, UK
Registered: 2010-01-08
Posts: 110
Website

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

#18 2010-02-17 20:26:15

CodeWalker
Member
From: Hampshire, UK
Registered: 2010-01-08
Posts: 110
Website

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

#20 2010-02-17 20:44:03

CodeWalker
Member
From: Hampshire, UK
Registered: 2010-01-08
Posts: 110
Website

Re: File download not working

a ray of hope perhaps… ill post back when ive sussed it out.

http://jquery.thewikies.com/swfobject/

Offline

#21 2010-02-17 20:51:40

CodeWalker
Member
From: Hampshire, UK
Registered: 2010-01-08
Posts: 110
Website

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

#22 2010-02-17 21:00:45

CodeWalker
Member
From: Hampshire, UK
Registered: 2010-01-08
Posts: 110
Website

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

Board footer

Powered by FluxBB