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 |
#182
|
|||
|
|||
I got it working, thanks bud!! but now I have this problem, in FF I can see the images just fine but under IE I get the no image with a red cross symbol when the image is not working, how can I fix that?
Thanks!! John. |
#183
|
|||
|
|||
ok I just noticed that it only happens when I am not logged in but it only happens in IE, any idea how can I fix this?
|
#184
|
|||
|
|||
I got it!! It had to do with the forum permissions for unregistered/not logged in users. Thanks anyway!!
|
#185
|
|||
|
|||
Thanks very much, will have a play with that later.
|
#186
|
|||
|
|||
attachment.php?attachmentid=&stc=1&thumb=1
attachmentid not work help |
#187
|
||||
|
||||
bing11,
Help us here. Is this happening in a Tag Search or a New Post/regular search or in one of your forums you've thread thumbnailed? |
#188
|
|||
|
|||
theOzer thank you help me.
"<if condition="($thread['attachmentid'])" it's not work . could you tell me what is this? when I remove it attachmentid cannot work, but I active any attachment option |
#189
|
||||
|
||||
bing11,
I don't have a clue what you're talking about? Did you already have this hack installed and it worked and now it doesn't? Is this the first time you've tried to install this hack? Did you follow Jason's installation instructions. They are pretty straight-forward, easy to understand and follow? Is this problem you're having because you tried to add thumbnails to Tag Searches (see 02 JUN 2008 Post # 169)? Did you add the forum numbers to the Thread Thumbnail plugin array (see 02 APR 2008 Post # 114)? If you are using the Thread Thumbnail Search plugin did you tweak Search.php (see 02 APR 2008 Post # 112)? Is Thumbnail Creation turned ON? AdminCP > vBulletin Options > Message Attachment Options > Thumbnail Creation I have mine set to 'Yes, with border and dimensions' (which just may be the default, I don't know). Also, in Attachment Manager gif, jpg, jpeg Thumb column all read Yes (Yes?). If you need help you need to ask better questions, detail what your problem is, be a bit more specific. Okay? |
#190
|
|||
|
|||
Can someone post a copy of what it looks like in the tag search?
|
#191
|
||||
|
||||
Here's a Tag Search that shows both possible situations.
1) Thumbnails are displayed for threads with a thumbnail attachment in the 1st post. 2) Default Thread Icon displays for threads without a thumbnail in the 1st post. As I also note in 02 JUL 2008 Post # 175 "And, for what it's worth, you can tweak the Thread Thumbnail Search plugin, have it use a different temp true/false variable, e.g., $tt_displaythumbs_search, and add an additional IF statement to handle regular searches like I'm handling Tag Search." Now my New Posts and regular searches also are displayed this way, and only my thumbnailed forums show the 'No Image' icon if there's no thumbnail pic. ~OZ |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|