![]() |
|
Customization Tutorial Unique on/off/offlock icons for each forum - Printable Version +- MyBB Source (http://mybbsource.com) +-- Forum: Customization (/forum-9.html) +--- Forum: Tutorials (/forum-40.html) +--- Thread: Customization Tutorial Unique on/off/offlock icons for each forum (/thread-6318.html) |
Unique on/off/offlock icons for each forum - darkhorus - 04-03-2012 03:46 AM I know there is a plugin for this somewhere, however seeing there are seemingly many problems with the plugin, I have decided to create a little tutorial on how to accomplish this without any plugin whatsoever. It only requires 1 simple minor edit to a few templates, mainly the forumbit_depth2_forum template, no plugin required. In the forumbit_depth2_forum template, find Code: {$lightbulb['folder']}.gifreplace with Code: {$lightbulb['folder']}{$forum['fid']}.gifThat's it for the template edits ![]() Now the only thing left to do is, upload a couple of different on/off/offlock icons to your theme's images folder, naming them onX, offX, offlockX (X standing for the forum id of the forum you want to use the respective icons for). That's it, not much to it really ![]() Anyone with only a little bit of coding knowledge probably already knows this but for the ones that don't, here goes
RE: Unique on/off/offlock icons for each forum - Jacob - 07-11-2012 11:05 PM Approved This has been posted a while back. I was actually searching for something like this. RE: Unique on/off/offlock icons for each forum - Cyber_Punk - 07-20-2012 10:18 AM Thanks for this will put it to use for sure. [EDIT] Damn its stylish, but a real pain in the neck to add to every forum, including sub forums. I guess this is where a plugin would come in to auto add it to the subforums. RE: Unique on/off/offlock icons for each forum - darkhorus - 07-21-2012 09:58 PM I see my thread has been approved, I was wondering why it was taking so long Thanks ![]() Yeah it can really be much work to add different icons for every forum, but I felt this could be useful to those having problems with getting the plugin to work. And honestly I would much rather do it manually this way than having to install an extra plugin for it, and besides uploading the images needs to be done just 1 time, except if you add more forums later on they will need their own images too. RE: Unique on/off/offlock icons for each forum - Cyber_Punk - 07-22-2012 06:13 AM (07-21-2012 09:58 PM)darkhorus Wrote: I see my thread has been approved, I was wondering why it was taking so long Yeah I think it was totally worth it even if it was time consuming. Thanks for the tutorial. RE: Unique on/off/offlock icons for each forum - darkhorus - 07-22-2012 07:41 AM (07-22-2012 06:13 AM)Cyber_Punk Wrote: Yeah I think it was totally worth it even if it was time consuming. Thanks for the tutorial. You're welcome
RE: Unique on/off/offlock icons for each forum - [B]oss - 09-15-2012 01:41 AM Wow , Cool Thanks iam gonna try this
RE: Unique on/off/offlock icons for each forum - Cropsin - 10-15-2012 10:42 PM I've seen this on another forum, i did not know it was this easy. RE: Unique on/off/offlock icons for each forum - exec - 10-22-2012 12:09 PM Wow. Didn't think that its so easy. Thanks! |