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
Forum Avatars Details »»
Forum Avatars
Version: 1.0.0, by Andrew111888 Andrew111888 is offline
Developer Last Online: Apr 2011 Show Printable Version Email this Page

Version: 3.0.5 Rating:
Released: 08-05-2005 Last Update: 08-05-2005 Installs: 1
DB Changes Template Edits
Code Changes  
No support by the author.

This hack will allow you to add a forum avatar to each of your forums. The avatar will be displayed in forumdisplay.

I originally wrote this for vBulletin 2 a couple years ago and a poor dirty one a few months ago for vBulletin 3, but this is version is an optimized and very light-weight version .

This has been tested on 3.0.5 but I don't know why it wouldn't work on any 3.0.x version.

You will need to edit one file (admincp/forum.php) which also adds a query to that file, run one query on your database to add the avatar field to the forum table, and you will need to edit one template (FORUMDISPLAY) to display the avatar.

No queries are added to forumdisplay.php.

Estimated install time: five minutes or less.

Don't forget to click install .

Show Your Support

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

Comments
  #2  
Old 08-06-2005, 09:33 PM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This could be done with template modifications only...but thank you for sharing.
Reply With Quote
  #3  
Old 08-06-2005, 10:06 PM
Andrew111888's Avatar
Andrew111888 Andrew111888 is offline
 
Join Date: Mar 2003
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you are referring to this manner:

Code:
<if condition="$foruminfo[forumid]==1">
<img src="banner1.jpg" alt="" border="0" />
</if>

<if condition="$foruminfo[forumid]==2">
<img src="banner2.jpg" alt="" border="0" />
</if>
and so fourth, doesn't that seem a little impractical?
Reply With Quote
  #4  
Old 08-07-2005, 10:51 AM
BluPhoenix BluPhoenix is offline
 
Join Date: Nov 2004
Location: Wirral Peninsula
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You could also use:
Code:
<img src="banner$foruminfo[forumid].jpg">
and then add a banner(forumid).jpg for each forum.
Reply With Quote
  #5  
Old 08-07-2005, 10:54 AM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BluPhoenix
You could also use:
Code:
<img src="banner$foruminfo[forumid].jpg">
and then add a banner(forumid).jpg for each forum.
That's what I meant.

(and
HTML Code:
<if condition="in_array($forum['forumid'], array(1,2,3))">
)
Reply With Quote
  #6  
Old 08-07-2005, 12:53 PM
bigcurt's Avatar
bigcurt bigcurt is offline
 
Join Date: Nov 2004
Location: KierDarby.php
Posts: 1,009
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

EITHER WAY, good hack man..thanks for the hard work.

~Curt
Reply With Quote
  #7  
Old 08-07-2005, 05:19 PM
Andrew111888's Avatar
Andrew111888 Andrew111888 is offline
 
Join Date: Mar 2003
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kall
That's what I meant.

(and
HTML Code:
<if condition="in_array($forum['forumid'], array(1,2,3))">
)
You're right, that is a lot easier. I never even thought of doing it that way.

My hack's pretty much useless now .
Reply With Quote
  #8  
Old 08-08-2005, 09:19 AM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Andrew111888
You're right, that is a lot easier. I never even thought of doing it that way.

My hack's pretty much useless now .
Some people like to do everything from the adminCP though dude. Your hack has its place.
Reply With Quote
  #9  
Old 08-10-2005, 07:18 PM
Yukino_AE Yukino_AE is offline
 
Join Date: Jul 2005
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i like doing things from the admin panel! ^_^

this would be really neat except i'm having some trouble. the images won't show up on the forum. any idea why. i put in the avatar url but nothing shows up on the forum.
Reply With Quote
  #10  
Old 08-12-2005, 02:04 AM
Andrew111888's Avatar
Andrew111888 Andrew111888 is offline
 
Join Date: Mar 2003
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you sure you followed all instructions in the readme?
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 11:04 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.05327 seconds
  • Memory Usage 2,292KB
  • Queries Executed 23 (?)
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
  • (2)bbcode_html
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete