T.Baron Posted December 21, 2015 Share Posted December 21, 2015 (edited) Hello, I have installed TMProductVideo module to have a video on my product pages. It worked at first, but now, after a change that I can't figure out, my videos don't display anymore. I've searched through the whole module's tpl/php/js files and found nothing relevant. However I suspect it could come from ajax, and here is why : In every single product page, I have this code for the video in the source code of the HTML page : <iframesrc="https://www.youtube.com/embed/X9j1OYK-iCw"style="z-index: 99;" ></iframe> And when I use the examinator (or whatever the name is) to see the current state of this same iframe, I have this result : <iframesrc="https: www.youtube.com="" embed="" x9j1oyk-icw"style="z-index: 99;"></iframesrc="https:> As one might understand, this last code above doesn't do anything and is very incorrect... I guess it's transformed by some asynchronous action, and I think it's ajax, but I can't find anything. Note that the change is operated when you load the page, it's effective before you click on the Video tab. Thanks in advance. Edited December 22, 2015 by T.Baron (see edit history) Link to comment Share on other sites More sharing options...
Azoda.net Posted December 22, 2015 Share Posted December 22, 2015 (edited) hi you,I have a product video to post link on product page you can try it http://www.mediafire.com/download/tdb2nx3o4po7w7d/jmsproductvideo.zip if this link die, you can report to my skype: nguyenphucthinh218 Edited December 22, 2015 by john smith151 (see edit history) Link to comment Share on other sites More sharing options...
Simonas Invertus Posted December 22, 2015 Share Posted December 22, 2015 You should contact module developer about this issue. Link to comment Share on other sites More sharing options...
T.Baron Posted December 22, 2015 Author Share Posted December 22, 2015 (edited) Thanks john smith 151, I tried it, and it seems to work well. However it looks like the videos keep playing while not in the popup, and the title below reviews isn't that visible. I'm telling you that for your module, it doesn't fit ergonomic requirements for a professional website, you need some more work on it. But I can't ask you for improvements since I'm not paying you . Edited December 22, 2015 by T.Baron (see edit history) Link to comment Share on other sites More sharing options...
T.Baron Posted December 22, 2015 Author Share Posted December 22, 2015 I didn't find where it wrecks my code, but I found a solution, for anyone who has this problem. Apparently, as absurd as it can be, the returns in the code were causing that trouble. To correct this, I went to themes/mytheme/modules/tmproductvideos/views/templates/hooks/tmproductvideos_tab_content.tpl I modified these lines <iframe src="{$video.link|escape:'html'}" style="z-index: 99;" ></iframe> into this line <iframe width="100%" src="{$video.link}" frameborder="0" allowfullscreen style="z-index: 99;"></iframe> and it now works. Link to comment Share on other sites More sharing options...
Recommended Posts