The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Thread Thumbnail Details »» | |||||||||||||||||||||||||
This plugin is the newest version of the Thread Thumbnail plugin
This plugin will display the first attachment as a thumbnail on forumdisplay.php New Features:
Installation: In your AdminCP, go to Plugin System, Download/Upload Plugins and import the xml document. Be sure to change the forum ids in the $thumbsforums array to the forum ids you want to enable thumbnails in. The plugin comes with the Search Thumbnails enabled. If you do not want to have thumbnails show up in the search results, make sure you deactivate it. If you would like thumbnails to display in the search results, you will need to replace your search.php page with the one in the zip file. Unfortunately vBulletin forgot to include a hook variable where it is necessary for this to work. I have added 1 line to search.php with the hook variable. There is no way around this until vbulletin adds it themselves. Next you will need to modify your threadbit template: Find: Code:
<if condition="$show['threadicons']"> <td class="alt2"> <if condition="$show['threadicon']"> <img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" /> <else /> </if> </td> </if> Code:
<if condition="$show['threadicons']"> <td class="alt2" align="center" valign="middle"> <if condition="$tt_displaythumbs"> <if condition="($thread['attachmentid']) AND ($thread['thumbsize'])"> <a href="showthread.php?$session[sessionurl]t=$thread[threadid]"> <img src="attachment.php?attachmentid=$thread[attachmentid]&stc=1&thumb=1" alt="" border="0" /> </a> <else /> <img src="$stylevar[imgdir_misc]/nothumb.jpg" alt="" border="0" /> </if> <else /> <if condition="$show['threadicon']"> <img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" /> </if> </if> </td> </if> __________________________________________________ ___ Add-ons (Optional) UserCP option to turn the thumbnails on/off on a per user basis Go into your admincp and click User Profile Fields->Add New User Profile Field. Select "single selection radio buttons", click continue. For title put "Thread Thumbnails", for description put "This will allow you to turn the thumbnails of threads on and off." For options, enter "On" and "Off". Skip down to Display Page and choose "Options: Thread Viewing". In your threadbit template(assuming you already applied the template changes above): Find: Code:
<if condition="$tt_displaythumbs"> Code:
<if condition="($tt_displaythumbs) AND ($bbuserinfo['field5'] <> 'Off' OR $show['guest'])"> Show Your Support
|
Comments |
#42
|
|||
|
|||
just installed on vb3.6.8
Database error in vBulletin 3.6.8: Invalid SQL: SELECT post.pagetext AS preview, thread.threadid, thread.threadid AS postid, thread.title AS threadtitle, thread.iconid AS threadiconid, thread.dateline, thread.forumid, thread.replycount, IF(thread.views=0, thread.replycount+1, thread.views) as views, thread.sticky, thread.pollid, thread.open, thread.lastpost AS postdateline, thread.visible, thread.hiddencount, thread.deletedcount, thread.lastpost, thread.lastposter, thread.lastpostid, thread.attach, thread.postusername, thread.forumid, deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason, user.userid AS postuserid , NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed , attachment.thumbnail_filesize AS thumbsize , MIN(attachment.attachmentid) AS attachmentid , attachment.thumbnail_filesize AS thumbsize , MIN(attachment.attachmentid) AS attachmentid , post.pagetext AS previewbbcode FROM thread AS thread LEFT JOIN user AS user ON(user.userid = thread.postuserid) LEFT JOIN deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND deletionlog.type = 'thread') LEFT JOIN subscribethread AS subscribethread ON(subscribethread.threadid = thread.threadid AND subscribethread.userid = 1 AND canview = 1) LEFT JOIN post AS post ON(post.postid = thread.firstpostid) LEFT JOIN attachment as attachment ON(attachment.postid = thread.firstpostid AND (attachment.extension = 'jpg' OR attachment.extension = 'gif' OR attachment.extension = 'png')) LEFT JOIN attachment as attachment ON(attachment.postid = thread.firstpostid AND (attachment.extension = 'jpg' OR attachment.extension = 'gif' OR attachment.extension = 'png')) WHERE thread.threadid IN (24907) GROUP BY thread.threadid GROUP BY thread.threadid; MySQL Error : Not unique table/alias: 'attachment' Error Number : 1066 i got that error by selecting `get new posts` |
#43
|
|||
|
|||
I fixed the above error - well sort of by going to plugin manager and disabling he 2 search boxes for it.Aint found no more errors at moment and the hack is working in the forum i selected.
Does anyone have a fix so i can have pics showing on search as well ? |
#44
|
||||
|
||||
On my 3.6.8 show just the image "nothumb.jpg" no way to show any other image.
What's wrong? I've installed the xml plugin, modified the template, add the id number of tread and disabilited the "Thread Thumbnail - Search" because I don't like. Any could help me please??? Thank's P. |
#45
|
|||
|
|||
im amazed search.php worked for u - gave me a sql error
are u sure the forums u have it set for have a valid attachment pic |
#46
|
||||
|
||||
Quote:
Thank's to all. P. |
#47
|
|||
|
|||
Wondering if this mod works with any other free hosting image such as imageshack?
|
#48
|
|||
|
|||
Err, no. It parses the attachments in each thread and produces uses the first attachments thumbnail as the thread thumbnail.
|
#49
|
|||
|
|||
What's the line you've added to search.php ? I have already modified my search.php so I would need to modify the file for this hack myself.
|
#50
|
|||
|
|||
any pics i upload i like to show inside the post but if i do then the thumbnail does not show unless i switch create thumbnail back on = then if i do that then pics are shown in threads/posts as small images which need to be clicked on to get full view.
Is there anyway i can have the thumbnail on forumdisplay while still viewing the full pic inside thread/posts without having to click on the image in the post. |
#51
|
||||
|
||||
Quote:
in option vbulletin switch yes (pic 001 rif pic 002 in english the help of pic 1) then attachment switch yes pic 003. Sorry but my forum is in italian!!! P. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|