Version: 1.00, by Dechevious
Developer Last Online: Oct 2005
Version: 3.0.3
Rating:
Released: 12-21-2004
Last Update: Never
Installs: 72
No support by the author.
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.
I included all files in a zip-files, including an image for the upload-button.
This hack isn't still finished, i'm trying to find out other things to do, so be patient.
I hope you like it.
Edit: Included a screenshot, how it looks like now.
In your txt file you say to
Code:
6. Find:
// REPLACE NUMBERS BELOW WITH FORUM IDS YOU WANT THUMBNAILS TO SHOW IN
$forumids = array(1,2,3); //this is the original-text, id's may vary depending on your forum
if (in_array($forumid, $forumids)) {
$displaythumbs = true;
}
7. Replace it with:
if (in_array($forumid, $forumids)) {
$displaythumbs = true;
}
But I jsut installed this hack and my line is totally different. . i have
Code:
// CHANGE THE LINE BELOW "4,5,17" TO BE THE FORUM ID # YOU WISH THUMBS TO BE DISPLAYED IN
$displaythumbs = false;
if (strpos("3", strval($forumid)) !== false)
$displaythumbs = true;
Also i don;t have this line
Code:
// while ($thread = $DB_site->fetch_array($threads))
You need the modified hack from Delphy (i think you find on page 2 on this thread. It's attached to his post). The lines you've posted are from Dechevious hack.
The second code you couldn't find is also in Delphys Hack.
First of all you should install it, and do my modifications. Then it should work.
You need the modified hack from Delphy (i think you find on page 2 on this thread. It's attached to his post). The lines you've posted are from Dechevious hack.
The second code you couldn't find is also in Delphys Hack.
First of all you should install it, and do my modifications. Then it should work.
AHHH
You know i read that in yor post as well and i thipught htis was that hack. :ermm:
but (i hope i am not rude asking that) i would like to have in one forum the "normal thumbnail" from delphy and in one Forum (the showroom) i would like to have your gallery mod. is that possible? i reeeeaaallly hope so.
thanks so much for the efford you guys put in this...
Thanks for this! I tried for the longest time to code it myself but lol, not a coder
I think maybe if you have no set default icon (via your admincp options), you just need to rearrange the conditional in the threadbit template in order to get it to work without having a threadicon specified. Like move that '<if condition="$show['threadicon']">' bit. But I haven't played around with that or anything so I don't know.
Edit:
Okay, yes, if you have no default post icon selected in your admincp, I used this code for the threadbit template and it works: