Register Arama Bugünkü Mesajlar Tüm Forumu Okundu Say

Thread Tools
DJ's "Custom Forum Icons" (Default Functionality You Didn't Know About)
vB.Org Poster
vB.Org Poster has disabled reputation
Kayıt Tarihi: Jul 2018
Mesajlar: 298

Show Printable Version Email this Page
yazan vB.Org Poster 10 Jul 2018, 15:57

Periodically, I see questions asking how to add custom forum icons to a specific forum. Now in the case of Categories, there are a few mods out there that will do just that for various versions of vBulletin and you would need one of those if that's what you're looking for. But what a number of administrators don't know about, or don't quite understand, is vBulletin's default ability to add custom icons to your individual forum sections. And the default Admin CP instructions might be vague to beginners. In truth, it's actually easy as pie once explained. Here's a brief explanation for you to reference and for others to point to when this question comes up again.

Create Your Images
First and foremost, create/select the images you want to use for this forum section. You will need 5 images exactly. One for each status that forum might represent. Then you'll need to give them the same naming convention that your existing forum icons have, with one difference that I'll explain in a moment. Here's what you'll need.
For when there are unread posts in an open forum:

For when there are unread posts in a closed forum:

For when there are NO unread posts in an open forum:

For when there are NO unread posts in a closed forum:

For when your forum is a link to another URL:
That last one you may not need if you're not planning on making that forum a hyperlink. Or, you may just need a forum to have a hyperlink and nothing else. Make whatever images you think your going to need. Obviously, if it's a forum where posting is taking place, you'll need the first four.

I probably don't have to tell you to make sure those images are distinct and that it's clear at a glance what they mean. A forum where a user might not be allowed to post should reflect that, unless for some reason you don't care.

NOTE: If for some reason, you've edited your forumhome_ templates to use a different extension for Status Icon images, say you've changed them so they use .png instead .gif, then your custom icons will need to be the same extension type.

Rename Your Images
Now you need to make that change to the image names before you upload them to your /statusicon directory, otherwise you'll overwrite your existing default icons. Add a prefix to the beginning of the name.


The prefix can be whatever you want, and doesn't have to include the underscore I used here. But the characters can only contain A-Z, 0-9, a dash, an underscore or a period.

Upload these images to your /statusicon directory. Be default, that's usually located in the /images folder. But you'll also need to upload them to the /statusicon folder of any custom styles you think people will be using when browsing that forum.

You can also add the icons to a subfolder in the statusicon folder. You would follow the same naming rules as above. You also don't necessarily have to add prefixes to the file names in this case.

Adding Your Icons
Now go to your Admin CP » Forums & Moderators » Forum Manager and select the forum you want to add custom icons to. Scroll down to Style Options and in Prefix for Forum Status Images your going to put the prefix name you just gave your images. In my case, I would simple put djs_ and save.

If you've instead added your icons to a subfolder in your statusicons folder, then put the name of the folder and a slash to indicate that it's a folder directory. For example, if the icons are located in your images/statusicons/new folder. Put new/ into that field and save.

If you also added prefixes to the images in this subdirectory, then include the prefixe name. For example, if my images are in the images/statusicons/new folder and they're all prefixed like this" djs_forum_new.gif. Then I simply put new/djs_ into that field and save.

Like I said, really easy, but not necessarily clear from the default instructions. Hopefully, this makes life a little easier for you and for anyone this needs explaining to. Have fun customizing your images. For adding Category icons, please see one of the numerous modifications throughout the forums that do just that for different versions of vB.
Views: 26
Reply With Quote

Thread Tools

Şunları Yapabilirsin
Yeni Konu Açmak
Konuya Cevap Yazmak
Eklenti Eklemek
Düzenleme Yapabilmek

Forum Atla

LD'de Yeni misin? Yardıma mı ihtiyacın var?

All times are GMT +3. The time now is 10:09.

Tasarım Özelliği | Genişlik: Geniş Renk: DJ's "Custom Forum Icons" (Default Functionality You Didn't Know About) DJ's "Custom Forum Icons" (Default Functionality You Didn't Know About) DJ's "Custom Forum Icons" (Default Functionality You Didn't Know About) DJ's "Custom Forum Icons" (Default Functionality You Didn't Know About) DJ's "Custom Forum Icons" (Default Functionality You Didn't Know About)