vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Custom Forum Status Icons (https://vborg.vbsupport.ru/showthread.php?t=102025)

Guest190829 12-01-2005 07:20 PM

I used template conditionals to get this affect, this is much easier. Will install!

/me clicks install...

shovel 12-01-2005 07:43 PM

Quote:

Originally Posted by Chris M
Hope it does what you're looking for - I tested it thoroughly but it's possible a bug or two skipped through the cracks :)

By the way - The Forum Manager screenshot shows images named "custom_new.gif" etc - You can name it whatever you like, I just named it "custom_new.gif" for my own ease :)

For example, "bananahammock.gif" is equally valid an image name :D

Chris

@ Chris: I think this might make vB3.6 ;) Good work.

Ps.
Developer's Make A Note
Chris rocks! Better acknowledge him when you add this functionality (that should have already been there). :D

[high]* shovel clicks Install.[/high]

Chris M 12-01-2005 07:46 PM

Thanks guys! :)

I just tested it on a fresh 3.5.1 and it didn't install with any problems, so I hope it remains that way :)

Chris

The Wise One 12-01-2005 09:30 PM

very nice. i, like Danny, used template conditionals to make this happen. installed.

i modified the template code slightly so i could apply different images based on a chosen style. i have multiple styles that use the same image...but different background colors based on the colors of the style chosen.

this is what i did:

changed
Code:

<img src="<if condition="$show['customstatusicon']">$forum[customicon]<else />$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif</if>" alt="" border="0" />
to
Code:

<img src="<if condition="$show['customstatusicon']">$stylevar[imgdir_statusicon]/forum/$forum[customicon]<else />$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif</if>" alt="" border="0" />
then created a directory in "images/statusicon" called "forum" for each statusicon directory i specified in the style options (under image paths) and placed my images there. then, for each forum, in the options, i just specified the file name.

i hope you dont mind me posting this in this thread.

Cedric_FP 12-01-2005 11:31 PM

Wow, excellent mod. I needed this!

Zachariah 12-01-2005 11:50 PM

Thanks Sir.

/me installs

PennylessZ28 12-01-2005 11:55 PM

Excellent work!-

FleaBag 12-02-2005 12:32 AM

I hadn't realised before it was made - but this will really come in handy! :)

Cedric_FP 12-02-2005 03:08 AM

Wow, check it out: It's so colourful now!

Ramsesx 12-02-2005 03:16 AM

Cool idea, I'll give it a try but first need to make some images
@cedric
looks nice, can you give me a hint where I can get this images you used?
thanks


All times are GMT. The time now is 03:44 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.01196 seconds
  • Memory Usage 1,734KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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