05-25-2011, 11:34 PM
05-26-2011, 02:23 AM
Try this:
showthread.php
Find:
showthread.php
Find:
PHP Code:
|
Add this code after the code above:
PHP Code:
|
Replace the X with your images gallery forum id.
Find:
PHP Code:
|
Replace it with:
PHP Code:
|
Find:
PHP Code:
|
Add this code before the code above:
PHP Code:
|
Replace X with your Images Gallery forum id, and 160x120 with the thumbnail size.
For displaying the thumbnail in your similar thread box, put this code in your showthread_similarthreads_bit template:
Code:
|
05-27-2011, 04:22 AM
What can I say. Works!! Thanks!!
05-12-2013, 03:08 AM
and if we want to show similar threads in video gallery of Youtube?
05-12-2013, 06:28 AM
if($thread['fid'] == 4){
$xtimgsimilar_thread = 'http://i3.ytimg.com/vi/'.$GLOBALS['threadfields']['vidid'].'/mqdefault.jpg';
}
this is all I´ve could avanced but it not works because the thumbs is about the firts posts and not of similar threads, How can I fix this?
$xtimgsimilar_thread = 'http://i3.ytimg.com/vi/'.$GLOBALS['threadfields']['vidid'].'/mqdefault.jpg';
}
this is all I´ve could avanced but it not works because the thumbs is about the firts posts and not of similar threads, How can I fix this?
05-12-2013, 11:01 AM
Instead of RateU's first replacement above, use this one instead:
PHP Code:
|
Then for the last one:
PHP Code:
|
I'm too lazy to bother testing in my current state, so hope that helps.
05-13-2013, 07:15 AM
It was close
thanks a lot but...
I did that and happened this.
if($thread['fid'] == 4){
$xtimgsimilar_thread = 'http://img.youtube.com/vi/'.$similar_thread['vidid'].'/mqdefault.jpg';
}
URL= http://img.youtube.com/vi/http://www.you...http://img.youtube.com/vi/http://www.youtube.com/watch?v=uuZE_IRwLNI/mqd
Just the url is wrong I need only the ID of the video
"uuZE_IRwLNI"
![Biggrin Biggrin](http://mybbhacks.zingaburga.com/images/smilies/biggrin.gif)
I did that and happened this.
if($thread['fid'] == 4){
$xtimgsimilar_thread = 'http://img.youtube.com/vi/'.$similar_thread['vidid'].'/mqdefault.jpg';
}
URL= http://img.youtube.com/vi/http://www.you...http://img.youtube.com/vi/http://www.youtube.com/watch?v=uuZE_IRwLNI/mqd
Just the url is wrong I need only the ID of the video
![Ouch Ouch](http://mybbhacks.zingaburga.com/images/smilies/ouch.gif)
05-13-2013, 09:36 AM
That's not how the Youtube gallery is set up.
Make sure you've set it up properly as described in RateU's thread.
Make sure you've set it up properly as described in RateU's thread.
05-14-2013, 07:46 AM
íts the same zinga vidid is just a key
i think its something like the text mask i dont know
i think its something like the text mask i dont know
05-18-2013, 08:23 AM
It is missing something, the text mask of the video (?) I don´t really know
if($thread['fid'] == 4){
$addfields = ', tfd.vidid';
$addfieldsjoin = ' LEFT JOIN '.TABLE_PREFIX.'threadfields_data tfd ON (tfd.tid=t.tid)';
}
if($thread['fid'] == 4){
$xtimgsimilar_thread = 'http://img.youtube.com/vi/'.$similar_thread['vidid'].'/mqdefault.jpg';
}
URL= http://img.youtube.com/vi/ http://www.youtube.com /watch?v=EXZVCfmF_Zw/mqdefault.jpg
When I put {$threadfields['vidid']} the URL is fine just appear the ID of the video not the entire URL
if($thread['fid'] == 4){
$addfields = ', tfd.vidid';
$addfieldsjoin = ' LEFT JOIN '.TABLE_PREFIX.'threadfields_data tfd ON (tfd.tid=t.tid)';
}
if($thread['fid'] == 4){
$xtimgsimilar_thread = 'http://img.youtube.com/vi/'.$similar_thread['vidid'].'/mqdefault.jpg';
}
URL= http://img.youtube.com/vi/ http://www.youtube.com /watch?v=EXZVCfmF_Zw/mqdefault.jpg
When I put {$threadfields['vidid']} the URL is fine just appear the ID of the video not the entire URL