Jump to content

[Solved] Tmproductvideo Videos Not Displaying


Recommended Posts

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 by T.Baron (see edit history)
Link to comment
Share on other sites

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 :lol: .

Edited by T.Baron (see edit history)
Link to comment
Share on other sites

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

×
×
  • Create New...