Is it possible to add some html code to link if you upload flv video instead of doc,pdf,..?
I need to add class="video_link" to flv videos. it would show as any other document attached on the page, but with this class it would load flowplayer instead of download video.
I have embeded flowplayer and it works fine if you manually add link to flv video. What i wan't to do is add video the same way you can add documents, but instead when you click on the video it loads embeded flash player. For that to work i need to add class video_link on this links.
So cms should look at the extension and if it's flv then add class="video_link" to it
ok, here you go: The theory here is that you can't easily discern content in QC like Tevard wants but you can choose a page that will display its files in a certain way. So..
1. You create a special template, like for example pages_videos.tpl (from pages_default.tpl) and modify block FILES_LIST to have those files URLs displayed like you want. This is for example the block for FlowPlayer 3.0.7 (newest flowplayer didn't work well at all, it's fucked up):
2. You may notice above the variable $aData[iElement] which is used as a list id number for videos on the page. Add it in core/files.php, to function listFiles(), after line:
3. Then just make a page with videos, upload your flv videos to it in administration and choose the template pages_videos.tpl for that page. And you're done.
PLEASE NOTE: this is NOT a QuickCart-flowplayer installation instruction. This flv player has been deprecated because the latest version I tried just wouldn't work no matter what I tried. Please use older flowplayer and follow its specific installation instructions if you want to make it work with QuickCart.