View Full Version : Miscellaneous Hacks - multiFicons - easily have a different status icons for forums
Coders Shack
05-24-2007, 10:00 PM
value. . . . . . . . Brought to you by
https://vborg.vbsupport.ru/
. . . http://www.Scriptasy.com
value
Installation Time: <1 mins
Products: 1 VB Version: 3.6.7
v1.01
cleaned up plugin code, less stressful on server
Example:
value
[live demo (http://www.codersshack.com/forums)] [screen shot (https://vborg.vbsupport.ru/attachment.php?attachmentid=64752&d=1180167249)]
Description:
value
this will let you specify what forums you would like to have a custom icon for. There are no template edits or file edits. All you need to do is specify the forum ID's in the vb section section.
Installation:
Install product
Edit settings in vb settings section
After you will need to make the icons they need to follow this pattern:
ID_forum_old.gif
ID_forum_new.gif
or if the forum is a link then: ID_forum_link.gif valueIf you like then [Mark As Installed (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=148060)]
value
Coders Shack
05-24-2007, 10:37 PM
reserved just because :P
FreshFroot
05-24-2007, 11:15 PM
seems pretty cool :D
Coders Shack
05-24-2007, 11:18 PM
yea, i had fun on this one :D
rjmjr69
05-24-2007, 11:25 PM
looks neat. reserved
digital3
05-24-2007, 11:37 PM
They don't work with forum_link.gif
Coders Shack
05-24-2007, 11:45 PM
They don't work with forum_link.gif
might add it. Buts its a totally diff template location.
digital3
05-24-2007, 11:52 PM
might add it. Buts its a totally diff template location.
It would be nice to have because my arcade and galleries etc are all links and those icons tend to be the shabbiest ones in themes.
Coders Shack
05-25-2007, 12:02 AM
It would be nice to have because my arcade and galleries etc are all links and those icons tend to be the shabbiest ones in themes.
hmm, when i got spare time ill work on adding that.
Coders Shack
05-25-2007, 07:54 AM
It would be nice to have because my arcade and galleries etc are all links and those icons tend to be the shabbiest ones in themes.
haha, actually it already can do it all you need to do is enter the link forum id and use this as the image name:
ID_forum_link.gif
projectego
05-25-2007, 02:11 PM
Awesome hack, CS! Thank you very much. :D
fr?nk
05-25-2007, 08:19 PM
Sounds good. Does it also work with vbSeo? Couldn't make it work.
Fränk
Coders Shack
05-25-2007, 10:34 PM
Sounds good. Does it also work with vbSeo? Couldn't make it work.
Fr?nk
im running vbseo 3.0 gold and vb 3.6.7
works fine for me
Hornstar
05-26-2007, 05:51 AM
can you take a screen shot and point an arrow to what icons it can change, and where do you set what icon you would like to change those icons to, im confused lol
Coders Shack
05-26-2007, 07:14 AM
EXAMPLE SITE: [here (http://www.codersshack.com/forums)]
THINGS YOU CAN CHANGE: [here (https://vborg.vbsupport.ru/attachment.php?attachmentid=64752&d=1180167249)]
its explained in the Description/Installation, you make new status icons and you upload them to your styles statusicons folder.
skunker
05-26-2007, 05:58 PM
I get the following error when installing:
Parse error: syntax error, unexpected ')' in /home/ww2admin/public_html/forum/includes/functions_forumlist.php(350) : eval()'d code on line 2
I'm running the latest version of VB.
digital3
05-26-2007, 06:19 PM
Doesn't work on my Exaltic Theme.
Coders Shack
05-26-2007, 07:35 PM
I get the following error when installing:
Parse error: syntax error, unexpected ')' in /home/ww2admin/public_html/forum/includes/functions_forumlist.php(350) : eval()'d code on line 2
I'm running the latest version of VB.
I'm pretty sure that error is not because of this hack @ installation, because theres no need to call forumlist.php when installing a plug in.
Doesn't work on my Exaltic Theme.
well there are alot of manual edits.
So you could just change your status icon html line to the vb default, not sure what your current code is but you should replace the TD with this one:
forumhome_forumbit_level1_post
<td><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>
forumhome_forumbit_level2_post
<td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>
digital3
05-26-2007, 07:55 PM
That got it! Thanks.
Coders Shack
05-26-2007, 08:01 PM
That got it! Thanks.
i just really wanted to avoid template edits lol :P
skunker
05-26-2007, 10:16 PM
I'm pretty sure that error is not because of this hack @ installation, because theres no need to call forumlist.php when installing a plug in.
What's the correct procedure for installing this hack? I went to MANAGE PRODUCTS. Is that the right way? This is the first time I've done this and my forum is: www.ww2incolor.com/forum
Thanks.
Coders Shack
05-27-2007, 01:21 AM
What's the correct procedure for installing this hack? I went to MANAGE PRODUCTS. Is that the right way? This is the first time I've done this and my forum is: www.ww2incolor.com/forum
Thanks.
yea you installed it correctly
skunker
05-27-2007, 04:30 AM
Ok I went to support and they said this:
"That is either a problem with an exiusting add-on (although I know you said you don't have one) or a problem with the add-on you are trying to install.
You will need to contact the author of that add-on for assistance with this."
Well I'm stumped. Oh well, I just won't install this. Thanks for the try.
Coders Shack
05-27-2007, 05:14 PM
Ok I went to support and they said this:
"That is either a problem with an exiusting add-on (although I know you said you don't have one) or a problem with the add-on you are trying to install.
You will need to contact the author of that add-on for assistance with this."
Well I'm stumped. Oh well, I just won't install this. Thanks for the try.
you will need to go into your config.php and define('DISABLE_HOOKS', true);
at the bottom of it. Then install my addon, or remove the one that caused the problem.
Coders Shack
05-29-2007, 06:07 AM
while working on other products i realized how stressful this hack can be the way i coded it.
if you had like 30 forums with icons it would create an if statement for each one of the, it worked but it was like a dumb method. In 1.01 it just matches to an array.
Jelmertjee
05-29-2007, 01:43 PM
Somehow this doesn't work for me, i'm running 3.6.7, and I've checked that the template is in it's original state, I've activated the mod under vbulletin options and added one forumid to test with, furthermore I've uploaded some images in the correct directory I believe, but if they are not in the correct directory, would it show up as a broken image or as the original icon? because i'm not exactly sure what's causing the problem.
Coders Shack
05-29-2007, 02:27 PM
Somehow this doesn't work for me, i'm running 3.6.7, and I've checked that the template is in it's original state, I've activated the mod under vbulletin options and added one forumid to test with, furthermore I've uploaded some images in the correct directory I believe, but if they are not in the correct directory, would it show up as a broken image or as the original icon? because i'm not exactly sure what's causing the problem.
well if your seeing a broken image its the location of your images. If not and your seeing the normal icon on the forum ID you set, then its not working.
make sure its in your styles statusicon folder.
TheMilkCarton
06-24-2007, 07:06 AM
It might be nice to add support for "$forum['parentid']".. Maybe the way you've done this already achieves this, but what I'm referring to is allowing all forums under one category ID to have a different icon than all the forums under another category ID.
This would help a lot so that people don't have to type out every single forum id if they want their different categories to have different icons. It also helps when adding new child forums, this way you don't have to go into the settings and add a new ID every time.
vwdforum
10-05-2007, 07:05 PM
I've added it to my http://www.closeprotectionworld.co.uk
Its only appearing on the first forum although I have selected 2
Can anyone help?
vwdforum
10-08-2007, 08:31 AM
I found the fault!!
When you add the forums you want, use 1,2,3, (note the comma at the end - the example shows a full stop which is incorrect)
trancetopia
10-13-2007, 06:56 PM
Have you got manual style update instructions? This doesn't work on my forum and I think it's because of the modified style I have.
UPDATE: Please ignore - fixed now!
vwdforum
10-31-2007, 09:31 AM
I've added this to a new forum using 3.68 however it wont show the images at all.
Any advice?
turbo.:R
12-15-2007, 10:02 PM
bad a$$
pspcrazy
12-21-2007, 12:48 AM
Hi are you ever going to code this so that it allowed for multiple skin support? Like different icon colors per skin choosen.
EDIT: LOl got it.
pspcrazy
12-21-2007, 05:09 AM
Same here it's not working on 3.6.8.
Red Spider
12-23-2007, 12:42 AM
3.6.8 here, not working either!
hfr-Neil
12-23-2007, 08:37 PM
Hey thanks for the good hack ;)
But not work in 3.7 beta3 VB version.
Little modification in attachements joint in the post, and work fine vb 3.7 :)
skomito
03-01-2008, 06:33 PM
what program to i open it up with?
skomito
03-01-2008, 10:17 PM
where do you enter the image info?
sflmkv
03-31-2008, 04:21 AM
got it working on 3.6.8 , like someone mentioned just make sure you enter a (,) after each forum you would like to use on the settings.
Cooleyvol
06-07-2008, 04:20 PM
Is it possible, using this, to also change the subforum status icons that show on the forum home?
It doesnt work doing it as you do for the main forum icons.
I've seen boards that have this, but can't figure out how to do it with the instructions that I have.
smooth-c
07-23-2008, 11:44 AM
I'd like to know this also.
Konstantinos
08-05-2008, 07:18 AM
the weird thing is that if u edit the product and replace gif with png it stops working . so in order to make it work with png u need to add replacement variables
JollyJack
08-05-2008, 08:42 PM
the weird thing is that if u edit the product and replace gif with png it stops working . so in order to make it work with png u need to add replacement variables
What do i need to change and where?
Konstantinos
08-05-2008, 08:53 PM
add 3 replacement variables Adminc Cp -> Style Manager -> Replacement variabled
_forum_new.gif -> _forum_new.png
_forum_old.gif -> _forum_old.png
_forum_link.gif -> _forum_link.png
JollyJack
08-06-2008, 06:33 AM
add 3 replacement variables Adminc Cp -> Style Manager -> Replacement variabled
_forum_new.gif -> _forum_new.png
_forum_old.gif -> _forum_old.png
_forum_link.gif -> _forum_link.png
Thanks alot friend
roots549
12-23-2008, 06:59 PM
we have used this hack and enjoyed it for quite some time.
I just tried adding new and old images for a forum id 10X, and something ain't right, not showing up.
Any ideas?
http://wiipals.net
TexasChoppervb
01-16-2009, 06:42 PM
where or how do I upload my various icons?
TexasChoppervb
04-14-2009, 01:43 PM
I got this to work in one of my forums using 3.7. without any problems. However I have a new forum using 3.8. I did everything the same however it's not working. Is there something different I must do? Thanks
Medina
12-24-2009, 07:32 PM
Are you please going to update this for vBulletin 4?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.