-
AuthorPosts
-
Mohamed H. Jurriah Friend
Mohamed H. Jurriah
- Join date:
- September 2014
- Posts:
- 125
- Downloads:
- 0
- Uploads:
- 47
- Thanks:
- 39
March 4, 2015 at 1:08 am #204310Hey
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.):
jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
March 4, 2015 at 1:27 am #561490Hi there
May i know what did you do and reproduce steps ?Thank you,
Viet VuMohamed H. Jurriah FriendMohamed H. Jurriah
- Join date:
- September 2014
- Posts:
- 125
- Downloads:
- 0
- Uploads:
- 47
- Thanks:
- 39
March 4, 2015 at 2:19 pm #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 Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
March 4, 2015 at 2:35 pm #561591Hi 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 VuMohamed H. Jurriah FriendMohamed H. Jurriah
- Join date:
- September 2014
- Posts:
- 125
- Downloads:
- 0
- Uploads:
- 47
- Thanks:
- 39
March 4, 2015 at 2:57 pm #561597You have to click on login twice
Mohamed H. Jurriah FriendMohamed H. Jurriah
- Join date:
- September 2014
- Posts:
- 125
- Downloads:
- 0
- Uploads:
- 47
- Thanks:
- 39
March 4, 2015 at 2:58 pm #561598and I have tried to switch beetween editor
Mohamed H. Jurriah FriendMohamed H. Jurriah
- Join date:
- September 2014
- Posts:
- 125
- Downloads:
- 0
- Uploads:
- 47
- Thanks:
- 39
March 6, 2015 at 5:58 pm #561945Hey…
Could you still help me? I really want to let this module work
jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
March 7, 2015 at 4:17 am #561990Hi there
I can’t login your backend. Please provide your backend root administrator than i’ll help you to restore it.Thank you,
Viet Vujooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
March 7, 2015 at 4:35 am #561994Hi 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 VuMohamed H. Jurriah FriendMohamed H. Jurriah
- Join date:
- September 2014
- Posts:
- 125
- Downloads:
- 0
- Uploads:
- 47
- Thanks:
- 39
March 9, 2015 at 11:20 pm #562307That 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 Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
March 10, 2015 at 12:58 am #562317Hi there
Please provide your back end i’ll help you to enter sample videoThank you,
Viet Vujooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
March 10, 2015 at 1:39 am #562325Hi there
I have updated for article: Real Madrid vs Elche
And it works.Please check it at your side.
Thank you,
Viet Vulg21 Friendlg21
- Join date:
- July 2012
- Posts:
- 335
- Downloads:
- 109
- Uploads:
- 100
- Thanks:
- 36
- Thanked:
- 9 times in 1 posts
October 7, 2015 at 8:49 pm #697305I 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.jpgwhile this is the correct one
http://img.youtube.com/vi/WriUoBVyhsA/0.jpgHow do I correct the address of the thumbnail?
Thank you
lg21 Friendlg21
- Join date:
- July 2012
- Posts:
- 335
- Downloads:
- 109
- Uploads:
- 100
- Thanks:
- 36
- Thanked:
- 9 times in 1 posts
October 7, 2015 at 8:49 pm #750937I 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.jpgwhile this is the correct one
http://img.youtube.com/vi/WriUoBVyhsA/0.jpgHow do I correct the address of the thumbnail?
Thank you
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
AuthorPostsThis topic contains 18 replies, has 4 voices, and was last updated by lg21 9 years, 1 month ago.
We moved to new unified forum. Please post all new support queries in our New Forum