To insert code use <code>...</code>.
Bug? Tabs containing Youtube Video. Video is place outside tab at publishing of the page
  • Hello KaptinLin

    I have a weird problem since version 3.05 and wp 3.1.3

    If i put tabs in a page and put a youtube video in a tab all by using the shortcodes generator the video is shown outside the tab when publishing the page.

    When i look at the sourcecode of the page it is also placed outside the tab. How can i fix this? It used to work in the old version.

    ps i have setup a clean install in a spoof with just the striking theme to test it. And this is what i get


    [tabs] [tab title="Google Maps"] Hier komt een map [/tab] [tab title="Some Text"] Hier komt Tekst [/tab] [tab title="My Video"] Hier komt een video [video type="youtube" clip_id="qvl7kG82EfI" width="576" autohide="1"][/tab] [/tabs]


    when i look into the source of the page i get this. The video is placed outside of the tabs.


    <div class='video_frame'><iframe class='youtube' style='height:349px;width:576px' src='http://www.youtube.com/embed/qvl7kG82EfI?autohide=1&amp;controls=1&amp;disablekb=0&amp;fs=1&amp;hd=0&amp;loop=0&amp;rel=0&amp;showinfo=0&amp;showsearch=0&amp;wmode=transparent&amp;enablejsapi=0' width='576' height='349' frameborder='0'></iframe></div><div class="tabs_container">
    <ul class="tabs">
    <li><a href="#">Google Maps</a></li>

    <li><a href="#">Some Text</a></li>
    <li><a href="#">My Video</a></li>
    </ul>
    <div class="panes">
    <div class="pane">Hier komt een map</div>
    <div class="pane">Hier komt Tekst</div>
    <div class="pane">Hier komt een video </div>
    </div>
    </div>


    Looking forward to your reply,

    best regards,
    BackuPs
  • 4 Comments sorted by
  • Found it. !!!

    in the striking/framework/shortcodes/video.php

    in version 304 line 368 it says return ....

    in version 305 line 383 it says echo......

    If i change the echo in return in version 305 it works.

    Is this correct ?
    And why was it changed in the first place?
  • Yes

    I will fixed it in new version.

    Sorry for the inconviences.

    Regards,
    KaptinLin
  • Excellent find BackuPs! I was having the same problem using the video embed shortcode anywhere (in tabs or not) when using ' video type="youtube" '. Thanks KaptinLin for the confirmation. Works great now :-)
  • BackuPs said:

    Found it. !!!

    in the striking/framework/shortcodes/video.php

    in version 304 line 368 it says return ....

    in version 305 line 383 it says echo......

    If i change the echo in return in version 305 it works.

    Is this correct ?
    And why was it changed in the first place?



    OMG - THANK YOU mr. BackuPs

This discussion has been closed.
All Discussions