vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - multiFicons - easily have a different status icons for forums (https://vborg.vbsupport.ru/showthread.php?t=148060)

Coders Shack 05-24-2007 10:00 PM

multiFicons - easily have a different status icons for forums
 
[hr]value[/hr]
. . . . . . . . Brought to you by
https://vborg.vbsupport.ru/
. . . http://www.Scriptasy.com
[hr]value[/hr]
Installation Time: <1 mins
Products: 1 VB Version: 3.6.7

v1.01
  • cleaned up plugin code, less stressful on server
Example:
[hr]value[/hr]
[live demo] [screen shot]

Description:
[hr]value[/hr]
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
[hr]value[/hr]
If you like then [Mark As Installed]
[hr]value[/hr]

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

Quote:

Originally Posted by digital3 (Post 1254140)
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

Quote:

Originally Posted by Coders Shack (Post 1254144)
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

Quote:

Originally Posted by digital3 (Post 1254146)
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

Quote:

Originally Posted by digital3 (Post 1254146)
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

Quote:

Originally Posted by fr?nk (Post 1254657)
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]

THINGS YOU CAN CHANGE: [here]


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

Quote:

Originally Posted by skunker (Post 1255088)
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.

Quote:

Originally Posted by digital3 (Post 1255105)
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
HTML Code:

<td><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>
forumhome_forumbit_level2_post
HTML Code:

<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

Quote:

Originally Posted by digital3 (Post 1255159)
That got it! Thanks.

i just really wanted to avoid template edits lol :P

skunker 05-26-2007 10:16 PM

Quote:

Originally Posted by Coders Shack (Post 1255144)
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

Quote:

Originally Posted by skunker (Post 1255219)
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

Quote:

Originally Posted by skunker (Post 1255327)
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
PHP Code:

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

Quote:

Originally Posted by Jelmertjee (Post 1256883)
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.


All times are GMT. The time now is 04:54 PM.

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.01378 seconds
  • Memory Usage 1,828KB
  • 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_html_printable
  • (1)bbcode_php_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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