The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Thread Thumbnail Details »» | |||||||||||||||||||||||||
The new version is available here.
This plugin was based on Thumbnail of Attachments on forum display by Dechevious(I hope its alright with you) It is mostly the same converted to the new 3.5 hook. I also fixed the "If the attachment is not an image, a thumbnail will not be shown" problem. Note: This plugin works in v3.68 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. 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 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 |
#82
|
|||
|
|||
My VBulletin Version is 3.5.4
i can not user what can i do? plz Coder Help me |
#83
|
|||
|
|||
It's working fine with 3.5.4 for me.
Did you edit this line in the plugin for the forums you want the thumbnails to show? Code:
<phpcode><![CDATA[$tt_thumbsforums = array(22, 70); If you want more forums, just add them like 1, 2, 3, 4 |
#84
|
||||
|
||||
gives a nice look to your forumdisplay
|
#85
|
|||
|
|||
Is there a way to enable ALL forums to display thumbnails.
|
#86
|
|||
|
|||
Yep, just add all forum id's in the plugin file.
|
#87
|
|||
|
|||
Quote:
|
#88
|
|||
|
|||
This is a great hack. One thing though... its not w3c
I receive the following error cannot generate system identifier for general entity "stc" . rc="attachment.php?attachmentid=1948&stc=1&thumb=1 " alt="" border="0" height= w3c doesn't like the usage of the andpersand & - I think. Any help would be appreatiated. |
#89
|
|||
|
|||
Im running v3.5.4 and im getting "No Available Image" on posts with attachements. I have thumbnails turned on, not sure on GD stuff and I also have hundreds of forums to put in the array. *sigh
Could someone help with this? RJ |
#90
|
|||
|
|||
Ok ive managed to get this working, however...
The images are not resized to a standard thumbnail image. The images infact show as their original size, which gets messy. Also, for images that are above the allowed thumbnail size set within the AdminCP it reverts to "No Available Image" - which is pretty pointless really. Any chance someone could modify the code so that it shows an image titled "Thread Contains Images" or something to that nature? RJ |
#91
|
||||
|
||||
any chance of modifying this hack to display "lastest attachments" thumbnails on FORUMHOME!
(like many gallery that have a forumhome hack showing lastest 5 images). that would be so l33t. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|