Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

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
  #82  
Old 01-18-2005, 02:59 PM
ryancooper ryancooper is offline
 
Join Date: Jul 2002
Posts: 433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Harald_T
O.k., i think, i've got it so far. :nervous:

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))
in my fourm display??
Reply With Quote
  #83  
Old 01-18-2005, 04:33 PM
Harald_T Harald_T is offline
 
Join Date: Aug 2003
Location: Kleve, Germany
Posts: 531
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No Panic!

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.
Reply With Quote
  #84  
Old 01-18-2005, 05:06 PM
ryancooper ryancooper is offline
 
Join Date: Jul 2002
Posts: 433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Harald_T
No Panic!

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:

DUHHH


Thanks!!

Ryan
Reply With Quote
  #85  
Old 01-20-2005, 02:57 PM
mhobelsb mhobelsb is offline
 
Join Date: Oct 2004
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Really cool this gallery hack!!! Love it...

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...

Martin
Reply With Quote
  #86  
Old 01-20-2005, 05:06 PM
Harald_T Harald_T is offline
 
Join Date: Aug 2003
Location: Kleve, Germany
Posts: 531
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmh, i think it could be possible. I'll have a look after it at the weekend.
Reply With Quote
  #87  
Old 01-21-2005, 09:08 AM
gkar gkar is offline
 
Join Date: Sep 2002
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice one, thanks for your efforts.
Reply With Quote
  #88  
Old 01-21-2005, 10:49 AM
Keta Keta is offline
 
Join Date: Nov 2001
Location: michigan
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i tried and followed the steps i re did it 4 times and my forum still looks like this:
http://www.illefx.com/forum/forumdisplay.php?f=18

what am i missing? what am i doing wrong?
Reply With Quote
  #89  
Old 01-21-2005, 11:08 AM
Harald_T Harald_T is offline
 
Join Date: Aug 2003
Location: Kleve, Germany
Posts: 531
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you set the right forum id in "global.php"? That could be, why it isn't working.

Edit: Could be also something on the permissions. I'll check it with my testforum here at home.
Reply With Quote
  #90  
Old 01-21-2005, 01:42 PM
Keta Keta is offline
 
Join Date: Nov 2001
Location: michigan
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Harald_T
Did you set the right forum id in "global.php"? That could be, why it isn't working.

Edit: Could be also something on the permissions. I'll check it with my testforum here at home.
global.php? it says in the install file IN FILE: forumdisplay.php FIND THE FOLLOWING:
Reply With Quote
  #91  
Old 01-21-2005, 01:50 PM
Keta Keta is offline
 
Join Date: Nov 2001
Location: michigan
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sadie Frost
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:
thanks!!! your code worked for me
Reply With Quote
Reply


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 03:00 PM.


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.06575 seconds
  • Memory Usage 2,314KB
  • 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
  • (3)bbcode_code
  • (4)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
  • (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