The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Thumbnail of Attachments on forum display Details »» | |||||||||||||||||||||||||||
Thumbnail of Attachments on forum display
Developer Last Online: Oct 2005
This hack has been requested a number of times, for multiple versions of vBulletin. For whatever reason, it was never done (at least publicly) until now. Heres to wishing each and everyone of you a Merry Christmas, and a prosperous, healthy, and safe, New Year!
What it does: This hack will display a thumbnail of the threads attachment on the forum display. Quite useful if you have forums designated for graphics/photos .. etc. Could also be tweaked to display the posters avatar instead of an attachment. Variable possibilities. (Screenshot attached for further review) and or see it in action at this forum in realtime. If the thread has multiple attachments, it will display the first. If no attachment, a 'no attachment' thumb will appear. Can be assigned for use in any forum you wish it to be active in. Install time is minimal - Less than 5 minutes for the average joe. (Simplicity at it's Finest) 1 file to modify, and 1 template to modify, along with the upload of an image. Known Issues: If the attachment is not an image, a thumbnail will not be shown. (IE: .zip or .rar) If you install it, please click the 'Install' icon - Updates will be sent to those who do. Supporters / CoAuthors Show Your Support
|
Comments |
#137
|
|||
|
|||
thanks a million -- that's really great stuff there. it seems to work, but unfortunately it's only displaying the nothumb.gif image -- as if there was no image in the thread (even though there is)
other thing is that that codeblock was around 1200 something, not 2518 -- must be installed mods on your search.php or something my codeblock in search.php looks like this: PHP Code:
|
#138
|
|||
|
|||
I have installed, but i can't see anything.
Must I change something in the admin cp ? |
#139
|
|||
|
|||
skokari,
did you change the forum ids to the same ones you want thumbnails to appear in? bent concepts, hrm I haven't modified search.php that much at all... so it's weird that yours is on a different line. What version you running? 3.0.7 here |
#140
|
|||
|
|||
I'm running 3.07 also.
i hadn't changed it at all from the base unmodified version. what it's doing is displaying the "no thumb" image for all the items in the search. is that code change the only thing that needs to be done in search.php? is there a specific version of this hack that needs to be used in order to get the search to work? i just changed the hack code i was using to the December 20th, 2004 version. thanks |
#141
|
|||
|
|||
Hrm
It might be your $forumids = array(1,2,3,4,5,6,7,); line. Try taking out the last , in that. What I found handy when developing the hack was doing this: Code:
if ($bbuserinfo[userid] == 1) { echo "<pre>".print_r($thread, true)."</pre>"; } Obviously turn it off before you go live |
#142
|
|||
|
|||
one thing about that search.php modification -- it's retrieving the second thumbnail in each post -- how do i make it grab the first instead?
|
#143
|
|||
|
|||
Is thier a way to display the last attachement of the thread and not the first one ? I will use this mod for a Work in progress section of my forum, then, the last one is more usefull !
Another request: is it possible to display the attachement in full size and not only in thumbnail with this hack? BTW, thank you very much for this great hack! |
#144
|
|||
|
|||
Thomas,
The default will return the last image already. Also, showing the full size image would severly break your templates, so it's not recommended at all - imagine browsing a forum with a bunch of 1024x768 pictures on the forumdisplay... not a pretty sight |
#145
|
|||
|
|||
Quote:
Regards, Matt |
#146
|
|||
|
|||
memobug,
Thats correct, I think I misunderstood the question. What I meant to say was that, if given multiple attachments in the first post of a thread, it'll return the last of them. It wont scan anything other than the first post (this would actually be fairly database intensive as it would have to go through every post looking for the last attachment. Well, not *every* one, but probably a fair few. Regards, Delphy |
#147
|
|||
|
|||
This is the best..
Very cool hack,, this is in my dream I like this more than photopost.com system.. it's looke samilar to www.webshots.com http://community.webshots.com/topics...69_views_0.htm -------------- should add more feature something like admin can add thumbnail for category. |
#148
|
|||
|
|||
Not sure what you mean by "thumbnail for category"?
|
#149
|
|||
|
|||
Quote:
|
#150
|
|||
|
|||
You mean for sub-forums?
|
#151
|
|||
|
|||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|