The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
I am currently attempting to modify the following hack:
https://vborg.vbsupport.ru/showthread.php?t=98651 Basically this hack shows the first attachment of the first post of the thread on the forumdisplay page. This would be great because I have a PROJECTS area that I would like to be able to show the LATEST PROGESS on the forumdisplay page. I'm currently trying to modify this hack to show the LAST ATACHMENT, from the LATEST POST of the THREAD STARTER. Ignoring all other attachments posted by other users to the thread. The XML file reads like this: (orginal) - Code:
<?xml version="1.0" encoding="ISO-8859-1"?> <plugins> <plugin active="1" product="vbulletin"> <title>Thread Thumbnail</title> <hookname>forumdisplay_query</hookname> <phpcode><![CDATA[$tt_thumbsforums = array(7, 43); $tt_displaythumbs = false; if (in_array($forumid, $tt_thumbsforums)) { $tt_displaythumbs = true; $hook_query_fields .= ", attachment.thumbnail_filesize AS thumbsize , MIN(attachment.attachmentid) AS attachmentid "; $hook_query_joins .= "LEFT JOIN " . TABLE_PREFIX . "attachment as attachment ON(attachment.postid = thread.firstpostid) "; $hook_query_where .= "GROUP BY thread.threadid "; }]]></phpcode> </plugin> </plugins> Would any VB Guru be willing to give me alittle guideance? Aceman Anyone?? ::taps his mic:: "is this thing on?" |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|