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 |
#142
|
|||
|
|||
As far as tags, I think another plugin needs to be created in addition to adding the code to tags.php. I tried looking at the file myself, but I just have no idea where it'd go. It would seem it'd be a pretty easy thing to do for someone that knows what they're doing to adapt it to tags. It's too bad someone with the knowledge hasn't taken over this mod for 3.7, since the author is gone.
|
#143
|
|||
|
|||
Well this mod is working fine in my 3.7 installation, and with the addition of that little piece of code I also get the thumbnails in search. But as you say, we just need someone that know what they're doing to tell us where to put this line of code to TAGS.PHP so that we can have thumbs there too.
Anyone? |
#144
|
|||
|
|||
cant see the attachemnt as thumbnail
|
#145
|
|||
|
|||
Quote:
thanks for explaining this. This is what happens: if we have thumbnail creation on, when we post a message with attachment, it shows a (correct) thumbnail before the post. Inside the post however, it still shows a thumbnail instead of the full size photo. When, after creating this post, I switch thumbnail creation off again, than the situation is how we would like to have it: thumbnail before the post and fullsize inside.. Of course we can not have thumbnail creation switched to off.. Any suggestion? Thanks a lot!! |
#146
|
|||
|
|||
Quote:
Copy and paste the postbit_attachmentimage template contents into the postbit_attachmentthumbnail template (overwrite the current postbit_attachmentthumbnail contents). And leave thumbnail creation on. |
#147
|
|||
|
|||
This is a great mod! Love it. One question though, would it be possible to set a nothumb image per forum?
Thanks in advance... |
#148
|
|||
|
|||
Quote:
Then save your seperate nothumb images with the forum id in the file name. |
#149
|
|||
|
|||
Well then - that sounds easy enough... lol thanks
|
#150
|
|||
|
|||
Quote:
PS we tested it now using the vbulletin default template and have this problem there as well.. thanks again, Paul |
#151
|
|||
|
|||
Quote:
To make sure, I just tested on my board again, and it works as it should. All uploaded images in posts are displayed at their full size. The only thing I can think of is you reversed the templates (copied postbit_attachmentthumbnail to postbit_attachmentimage instead of the opposit). If that's not the case I really have no idea what the problem could be. Like I said I've tested it twice on my board and it worked instantly, and based on the simplicity of what it's doing I can't think of why it's not working for you. |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|