vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Thumbnail of Attachments on forum display (https://vborg.vbsupport.ru/showthread.php?t=73220)

Dechevious 12-21-2004 10:00 PM

Thumbnail of Attachments on forum display
 
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.

Erwin 12-22-2004 09:45 PM

Nice idea... I assume this adds only 1 query to forumdisplay?

Dechevious 12-22-2004 09:50 PM

Quote:

Originally Posted by Erwin
Nice idea... I assume this adds only 1 query to forumdisplay?

Actually, it adds no additional query, as it was merged with an existing query.

ChrisSy 12-22-2004 10:05 PM

does this require image software to be running on the server, ie GD image?

Dechevious 12-22-2004 10:20 PM

Quote:

Originally Posted by ChrisSy
does this require image software to be running on the server, ie GD image?

Good question. Yes, it does. You also want to make sure that in your AdminCP you have thumbnails enabled, for those who do not have them already.

lasto 12-22-2004 10:58 PM

how come u released this - considering i just paid for it 2 days ago ?? - it was supposed to of been a custom paid hack ?

Also the files ive downloaded here are the exact as i have from the paid hack

In the readme file it says `Notes: THIS IS A CUSTOM HACK - DO NOT REDISTRIBUTE IT PLEASE!`

Also it has faults - if a rar or zip is attached and not an image u end up in forum display a red X - and so far is no known way to fix it.
If u add multiple attachemnts it used to show all the attachments as seperate posts but not sure if fixed in your version as i was sent an addon to fix this.

Edit ok read the txt file and seems u was the author - but i bet aint the only one to of paid for this - this week.Paid 2 days ago - 2 days later its released lets see if anyone else fell for it.

Dechevious 12-23-2004 12:49 AM

This was always meant to be released. It was a bought hack, the expense was shared, and then it was to be released. Sorry if you felt otherwise, as it was never an issue.

cinq 12-23-2004 03:01 AM

A simple yet great hack, thanks for sharing Dechevious :)

Theater 12-23-2004 03:54 AM

How does it handle multiple attachments? For example if someone posted 5 images on a single posting.

//edit - Also, what about other images posted in the thread besides the first post? Are they displayed somehow as well?

Dechevious 12-23-2004 04:59 AM

Quote:

Originally Posted by Theater
How does it handle multiple attachments? For example if someone posted 5 images on a single posting.

It would display the 1st image in the thread.

Quote:

Originally Posted by Theater
//edit - Also, what about other images posted in the thread besides the first post? Are they displayed somehow as well?

No, simply the 1st attachment.


All times are GMT. The time now is 08:52 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01761 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete