digitalFAQ.com Forum

digitalFAQ.com Forum (https://www.digitalfaq.com/forum/)
-   Website and Server Troubleshooting (https://www.digitalfaq.com/forum/web-tech/)
-   -   VBulletin custom graphic icon by forum name (https://www.digitalfaq.com/forum/web-tech/1934-vbulletin-custom-graphic.html)

kpmedia 01-03-2010 11:15 PM

vBulletin custom graphic icon by forum name
 
1 Attachment(s)
Note to self: Need to learn how to do this:

Attachment 548

as seen at http://www.nzboards.com/forum/

Not really sure what to look up, as "forum icons" brings up so many other unrelated topics.

Anybody out there reading this? Have some ideas? :)

admin 01-04-2010 03:27 AM

from http://www.vbulletin.com/forum/showt...om-Forum-Icons

Quote:

Just figuring this one out myself now.

First of all, here's the help section on custom forum image prefixes:
The following images are currently in use for status icons, you will need to create images with the specified prefix to match.

Quote:

* forum_link.gif
* forum_new.gif
* forum_new_lock.gif
* forum_old.gif
* forum_old_lock.gif
So every single custom forum icon is going to need 5 different variations (I'd probably just build some kind of template in photoshop and then replicate it multiple times, and splice the images).

If your forum is called News, then your prefix could be news_.
If the image originally being shown is forum_old.gif, then your forum will instead show news_forum_old.gif.

The reason why the image didn't change for me when I put the prefix in was because I was missing the code in my custom style.

It's located in two templates, in forumhome_forumbit_level1_post and forumhome_forumbit_level2_post.

You're basically looking for this:
Code:

Code:

<img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif"
I was missing the part in bold:
Code:

Code:

<img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif"
Add that to your two templates and it will work

... and that should do it.


All times are GMT -5. The time now is 10:45 AM

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.