Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
Thumbnail of Attachments on forum display Details »»
Thumbnail of Attachments on forum display
Version: 1.00, by Dechevious Dechevious is offline
Developer Last Online: Oct 2005 Show Printable Version Email this Page

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.

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #122  
Old 03-20-2005, 06:05 PM
GeoffE GeoffE is offline
 
Join Date: Jun 2003
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Delphy
You dont have post icons enabled Thats why the thumbnails aren't showing up
Posticons were definitely turned on .. I think I must have changed something with another hack. In the end we decided to go the whole hog and went for the VBA Gallery package but cheers for your help anyway
Reply With Quote
  #123  
Old 03-21-2005, 12:38 AM
Siouxfire Siouxfire is offline
 
Join Date: Mar 2005
Location: prague, czech republic
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ahem, excuse me... :speechless:
Reply With Quote
  #124  
Old 03-23-2005, 04:22 AM
mathias mathias is offline
 
Join Date: Feb 2002
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how do I turn post icons on?
Reply With Quote
  #125  
Old 03-23-2005, 04:32 AM
mathias mathias is offline
 
Join Date: Feb 2002
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

got it to work pretty sweet thanks my cd cover section is going to love it
Reply With Quote
  #126  
Old 03-31-2005, 02:13 PM
the123d the123d is offline
 
Join Date: Mar 2005
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi

I've installed the "Thumnail in forumdisplay" hack By dechevious but would like to make it work differently.

I want to be able to show image attachments inline !! In order to show images inline, normally the "enable thumbnails" needs to be set to "no" in the "message attachment options". Problem is, if you turn thumbnails off you can't create thumnails for the forumdisplay.php page ? (and thus un-doing the whole point of this hack) Is their a way to modify the hack to get this to work ?

If anybody's familiar with this hack - Any tips or ideas would be welcome ?
Reply With Quote
  #127  
Old 04-04-2005, 06:05 AM
memobug memobug is offline
 
Join Date: Jun 2002
Posts: 418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mathias
how do I turn post icons on?
1. I think it's a forum option in the admincp - look under forums/moderators, however I have it active and the post icons show fine, but the thumbs weren't showing at all. I had to remove the second conditional
Quote:
<if condition="$show['threadicon']">
from the template to see anything at all in the way of thumbnails

2. I am a little confused by the way the template is set up. It seems to be showing thumbnails only if there is a post icon in that thread.

3 If there is no thumb, wouldn't it make more sense to show the post icon, if there is one, instead of that NO THUMBNAIL picture?

Regards,

Matt
Reply With Quote
  #128  
Old 04-04-2005, 08:30 AM
Delphy Delphy is offline
 
Join Date: Dec 2004
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

memobug,

2. That is correct. It only shows them if post icons are enabled.

3. Replacing no thumbs with the standard post icon would look *very* strange in terms of rendering - you'd have thumbnails interspersed with very small post icons, and it generally would look horrible.

Hope this helps
Reply With Quote
  #129  
Old 04-04-2005, 07:28 PM
memobug memobug is offline
 
Join Date: Jun 2002
Posts: 418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Delphy
memobug,

2. That is correct. It only shows them if post icons are enabled.

3. Replacing no thumbs with the standard post icon would look *very* strange in terms of rendering - you'd have thumbnails interspersed with very small post icons, and it generally would look horrible.

Hope this helps
Hi Delphy
2. Actually what I meant is that I only get thumbnails if there is a post icon in that thread, not that post icons have to be enabled (although that is true, too, it is not a problem.). I am probably confused but it wasn't working at all with the provided template:

There are two nested ifs in that template,
Quote:
<if condition="$show['threadicons']">
<if condition="$show['threadicon']">
I guess the first is to see whether post icons are enabled. The second if seems to check to see if there is a post icon for some reason? That one is my problem.

3. On mixing thumbs and post icons. I am sure it is a matter of taste, but I find it doesn't look strange at all if you adjust the row height accordingly. I use <td height="100"> if there is a thumbnail and <td height="25"> if there is not (whether there is a post icon or not) it looks fine.

I am confused why anyone would want a row of thumbnails advertising that there is no thumbnail, which seems to be rather obvious if no thumbnail is printed! Also, advertising "Nothing to see here!" with the non-thumbnail thumbnail pads out the row height excessively.

Regards,

Matt
Reply With Quote
  #130  
Old 04-06-2005, 12:32 PM
Delphy Delphy is offline
 
Join Date: Dec 2004
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

memobug,

If I recall I changed something with regards to those nested ifs, but I can't remember what am I'm waiting for one of my dedicated boxes to come back up so I can see

With regards to the showing post icon if no thumbnail, now that you've explained it in that way, it makes perfect sense and would be very useful for stickies in otherwise thumbnail enabled forums. I might implement this myself on MTS2.

Regards
Delphy
Reply With Quote
  #131  
Old 04-16-2005, 07:30 PM
Delphy Delphy is offline
 
Join Date: Dec 2004
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just as an update - I've re-coded some parts of my version of this hack to allow per-forum thumbnail views configurable via the Admin CP, as well as showing thumbnails in the search/new posts display.

If anybody would be interested, I can provide an update.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:20 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08983 seconds
  • Memory Usage 2,304KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete