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)
-   -   Forum Avatars (https://vborg.vbsupport.ru/showthread.php?t=93755)

Andrew111888 08-05-2005 10:00 PM

Forum Avatars
 
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 :).

kall 08-06-2005 09:33 PM

This could be done with template modifications only...but thank you for sharing. :)

Andrew111888 08-06-2005 10:06 PM

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?

BluPhoenix 08-07-2005 10:51 AM

You could also use:
Code:

<img src="banner$foruminfo[forumid].jpg">
and then add a banner(forumid).jpg for each forum.

kall 08-07-2005 10:54 AM

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))">
)

bigcurt 08-07-2005 12:53 PM

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

~Curt

Andrew111888 08-07-2005 05:19 PM

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

kall 08-08-2005 09:19 AM

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

Some people like to do everything from the adminCP though dude. Your hack has its place. :)

Yukino_AE 08-10-2005 07:18 PM

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.

Andrew111888 08-12-2005 02:04 AM

Are you sure you followed all instructions in the readme?


All times are GMT. The time now is 07:35 AM.

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.01572 seconds
  • Memory Usage 1,732KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete