Quote:
Originally Posted by YLP1
Can you show me how to to setup my video as you described?
|
I use wimpy wasp
upload wasp.js in the clientscript folder
Between the <head></head> of the DOWNLOADS template put
Quote:
<script language='clientscript/javascript' src='wasp.js'></script>
|
and in the template downloads file, put in
Quote:
<script>
waspEmbed('downloads/{$file['url']}', 250, 188);
</script>
|
250 and 188 are width and height of video size and you need to adjust according to your need.
I would put it above the download button. I would even remove the big download button since we have been provided with links if all you do is videos.
Now if you have other categories which are not videos, like pdf or zip, this is where it gets tricky. You'll need to edit the downloads.php file , do a left join to get category parent so you could do your conditional <if condition="$parent=='XX'">display video, don't display download button<else />just display download button</if>