![]() |
Undesired result trying to grab first attachment from thread
From this Mod: https://vborg.vbsupport.ru/showthread.php?t=271131
-- I need this code to always grab the first uploaded file, but for some reason it *sometimes* uses the first uploaded image, but other times it uses other images... Location: threadbit_process Code:
global $forumids_included; forumdisplay_query Code:
if($vbulletin->options['chip_threadthumb_turn'] AND THIS_SCRIPT == 'forumdisplay' AND $vbulletin->forumcache["$forumid"]['thumb_w']) Anyone know what might be happening here? |
I don't follow everything going on there, but it may be that the query in the threadbit_process plugin, under the "//get attach file - image" comment, should have "ORDER BY attachment.dateline ASC", otherwise I think the order is undefined.
|
All times are GMT. The time now is 07:03 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:
|