![]() |
Hey guys,
So I had the same problem as some of you where, if you use attachments, only the first thread shows up on forumdisplay and all the other threads mysteriously disappear. After a bit of digging the culprit was actually in a missing "group by" clause in the SQL statement. Solution Edit the plugin "Forum Display - Query" Change the code to this: Code:
$dothumbnail = false; Code:
$hook_query_where .= "GROUP BY thread.threadid"; Leo |
search thumbnails only appear on the first page. The rest of the pages are displayed as normal (without thumbs). Is it just me? I have VBSEO installed.
|
Quote:
|
$threadactiontime = (($feed['threadactiondelay'] > 0) ? (TIMENOW + $feed['threadactiondelay'] * 3600) : 0);
preg_match($pat,$pagetext,$matches); $thumburl = escape_string($matches[1]); $itemdata->set('thumbnailurl', $thumburl); |
PHP Code:
|
if ($type == 'thread')
{ if($vbulletin->options['thread_thumbnails_thumbnail_source'] == '0') { $dataman->setr('thumbnailurl', htmlspecialchars_uni($post['thumbnailurl'])); } if($vbulletin->options['thread_thumbnails_thumbnail_source'] == '2') { preg_match('/\[img\](.*?)\[\/img\]/i',$post['message'],$matches); $dataman->setr('thumbnailurl', $matches[1]); } } |
not work
$pat = '/\[IMG\](.*?)\[\/IMG\]/i'; preg_match($pat,$pagetext,$matches); $thumburl = escape_string($matches[1]); $itemdata->set('thumbnailurl', $thumburl); |
If you have RSS posts going to a forum like I do, you will have to do this:
in includes/cron/rssposter.php find PHP Code: $threadactiontime = (($feed['threadactiondelay'] > 0) ? (TIMENOW + $feed['threadactiondelay'] * 3600) : 0); Put this below preg_match('/\[img\](.*?)\[\/img\]/i',$pagetext,$matches); $thumburl = ($matches[1]); $itemdata->set('thumbnailurl', $thumburl); now the thumbnail will appear on forum display like regular thread posts The code work on my 3.8.4 it will draw the thumb from {feed:description} any one know how to edit the {feed:description} and make it shorter or delete some characters? |
Quote:
|
|
All times are GMT. The time now is 05:26 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|