thumbails in similar threads
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #6
RE: thumbails in similar threads
Instead of RateU's first replacement above, use this one instead:

PHP Code:
if($thread['fid'] == X){
	$addfields = ', tfd.ytvgalid';
	$addfieldsjoin = ' LEFT JOIN '.TABLE_PREFIX.'threadfields_data tfd ON (tfd.tid=t.tid)';
}


Then for the last one:

PHP Code:
if($thread['fid'] == X && $similar_thread['ytvgalid']){
	xthreads_sanitize_disp($similar_thread['ytvgalid'], $threadfield_cache['ytvgalid']);
	$xtimgsimilar_thread = '<img src="http://img.youtube.com/vi/'.$similar_thread['ytvgalid'].'/default.jpg" alt="'.$similar_thread['subject'].'" />';
}


I'm too lazy to bother testing in my current state, so hope that helps.


My Blog
(This post was last modified: 05-24-2013 09:19 AM by ZiNgA BuRgA.)
05-12-2013 11:01 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
thumbails in similar threads - duhol - 05-25-2011, 11:34 PM
RE: thumbails in similar threads - RateU - 05-26-2011, 02:23 AM
RE: thumbails in similar threads - duhol - 05-27-2011, 04:22 AM
RE: thumbails in similar threads - ZiNgA BuRgA - 05-12-2013 11:01 AM

 Standard Tools
Forum Jump: