test
Viewing 15 posts - 1 through 15 (of 18 total)
  • Author
    Posts
  • Mohamed H. Jurriah Friend
    #204310

    Hey

    The youtube thumbnail dont work even though I tried to make a article with exact content like the one video in the module that have a thumbnail (from demo inst.):

    url: http://www.laliganews.dk


    1. 7
    jooservices Friend
    #561490

    Hi there
    May i know what did you do and reproduce steps ?

    Thank you,
    Viet Vu

    Mohamed H. Jurriah Friend
    #561586

    <em>@jooservices 461386 wrote:</em><blockquote>Hi there
    May i know what did you do and reproduce steps ?

    Thank you,
    Viet Vu</blockquote>

    Yes. I copied the iframe link you can get in youtube sharing settings below any video. Then I paste the link into the article “Southampton vs Chelsea 1-5 all goals 5-1-2013” and then saved it as a copy.

    jooservices Friend
    #561591

    Hi there
    # I can’t use login your backend again with provided information
    # Actually as i said above. it’s all about embed from 3rd party video ( here is vimeo )

    You’ll need turn off editor ( not only switch between editor mode ) to use html code.
    Or you can use 3rd plugin help you to do easier. Like Crex Shortcodes. Use BBCode will easier for you.

    Thank you,
    Viet Vu

    Mohamed H. Jurriah Friend
    #561597

    You have to click on login twice

    Mohamed H. Jurriah Friend
    #561598

    and I have tried to switch beetween editor

    Mohamed H. Jurriah Friend
    #561945

    Hey…

    Could you still help me? I really want to let this module work

    jooservices Friend
    #561990

    Hi there
    I can’t login your backend. Please provide your backend root administrator than i’ll help you to restore it.

    Thank you,
    Viet Vu

    jooservices Friend
    #561994

    Hi there,
    And here is how it works.
    # Turn off Editor as mentioned

    https://www.dropbox.com/s/b9506nkkmuiuvwe/2015-03-07_11-29-25.png?dl=0
    Actually i would prefer turn off editor for always. By this way we can prevent html truncate issues.
    # Apply youtube iframe

    https://www.dropbox.com/s/iyaiq1vw1prgkgx/2015-03-07_11-30-37.png?dl=0

    Via module mod_jacontentpopup it’ll be convert to image for display. ( But article stil is video as well )


    <div class="ja-cp-group">
    <?php
    $tplurl = JURI::base(true) . '/templates/' . JFactory::getApplication()->getTemplate();
    $ref = 'ja-cp-group.active';
    $target = '';
    if ($show_popup) {
    $target = 'target="yoxview"';
    }

    foreach ($lists as $row) :
    $groupcls = '';

    if ($row->jagroup) {
    $ref = 'group_'.$row->id;
    $groupcls = ' group_'.$row->id;

    if(isset($row->otherlink)){
    $target = 'target="yoxview"';
    }else{
    $target = '';
    }
    }

    if($row->image !='modules/mod_jacontentpopup/assets/img/blank.gif'){
    //extract youtube id
    $row->image = '<img src="' . $tplurl . '/images/video-placeholder.jpg" title="' . $row->title . '" alt="' . $row->title . '" />';
    if(preg_match_all('@<iframes[^>]*src=["|']([^"'>]+)[^>].*?</iframe>@siu', $row->text, $iframesrc)){

    if(isset($iframesrc[1])){
    $vid = str_replace(
    array(
    'http://youtu.be/',
    'http://www.youtube.com/embed/',
    'http://youtube.googleapis.com/v/',
    '//www.youtube.com/embed/'), '', $iframesrc[1][0]);

    $vid = substr(preg_replace('@/.*?@i', '', $vid),0,11);

    $row->image = '<img src="http://img.youtube.com/vi/'. $vid . '/0.jpg" title="' . $row->title . '" alt="' . $row->title . '" />';
    }
    }
    }

    $row->text = preg_replace('@<iframes[^>]*src=["|']([^"'>]+)[^>].*?</iframe>@siu', '', $row->text);
    ?>
    <div class="ja-cp-item<?php echo $groupcls;?>">
    <div class="item-inner">
    <a <?php echo $target;?> href="<?php echo $row->link;?>" title="<?php echo isset($row->subtitle)?htmlspecialchars($row->subtitle):htmlspecialchars($row->title);?>" data-ref="<?php echo $ref;?>">
    <span class="ja-cp-image">
    <?php echo $row->image;?>
    <span class="modal"> </span>
    </span>
    <?php if ($show_titles): ?>
    <span class="ja-cp-title">
    <?php echo $row->title;?>
    </span>
    <?php endif;?>
    </a>
    <?php if($show_introtext): ?>
    <span class="ja-cp-intro">
    <?php echo $row->text; ?>
    </span>
    <?php endif;?>
    <?php if (isset($row->otherlink)):
    echo $row->otherlink;
    endif; ?>
    </div>
    </div>
    <?php endforeach; ?>
    </div>

    Very simple just by follow logic. Rite ? 🙂

    Thank you,
    Viet Vu

    Mohamed H. Jurriah Friend
    #562307

    That dosnt work? I tried all steps together and there is still not a thumbnail?

    what is causing this problem? And how can I get this module to work?

    jooservices Friend
    #562317

    Hi there
    Please provide your back end i’ll help you to enter sample video

    Thank you,
    Viet Vu

    jooservices Friend
    #562325

    Hi there
    I have updated for article: Real Madrid vs Elche
    And it works.

    Please check it at your side.

    Thank you,
    Viet Vu

    lg21 Friend
    #697305

    I have the same problem
    I uploaded this video on youtube:

    https://www.youtube.com/watch?v=WriUoBVyhsA

    thumbnail not see, I checked the code, ist automatically generates this
    http://img.youtube.com/vi/https:WriUo/0.jpg

    while this is the correct one
    http://img.youtube.com/vi/WriUoBVyhsA/0.jpg

    How do I correct the address of the thumbnail?

    Thank you

    lg21 Friend
    #750937

    I have the same problem
    I uploaded this video on youtube:

    https://www.youtube.com/watch?v=WriUoBVyhsA

    thumbnail not see, I checked the code, ist automatically generates this
    http://img.youtube.com/vi/https:WriUo/0.jpg

    while this is the correct one
    http://img.youtube.com/vi/WriUoBVyhsA/0.jpg

    How do I correct the address of the thumbnail?

    Thank you

    Ninja Lead Moderator
    #697329

    @lg21: I would like to take a closer look at this problem on your site, you can PM me the URL & admin account.

Viewing 15 posts - 1 through 15 (of 18 total)

This topic contains 18 replies, has 4 voices, and was last updated by  lg21 9 years, 2 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum