PDA

View Full Version : Forum Home Enhancements - AiONets : Custom Forum Status Icons


A.Chakery
07-22-2010, 10:00 PM
Custom Forum Status Icons
by: Ali.ch.
------------------

This mod was created by Chris M (https://vborg.vbsupport.ru/member.php?u=4197) for vBulletin 3.5.x and you can find it Here (https://vborg.vbsupport.ru/showthread.php?t=102025). Thanks to him for this great mod, He has not developed this mod for higher versions of vBulletin so I decided to develope the second version of this great mod.
So Please note that All credits of this mod goes to him.


Introduction:

By installing this mod you will be able to change all forum status icons ( Forum old , Forum new ...) as you want easily.Its possible to turn off this mod for any forum that you want to be excluded.

You Can find the screen-shots below.

Installation:
Fisrt try to install " product-chrism_customstatusicons.v.2.xml " which you can find in the zip file. For installing this file goto this location :Admin CP > Plugins & Products > Manage Products > Add/Import New Product
Then Do below Template Modifications : (Thanks to inciarco (https://vborg.vbsupport.ru/member.php?u=192472) for ideas )
Step 1: In the forumhome_forumbit_level1_post template
Find :
<td><img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>And Replace it with :
<td><img src="<if condition="$show['customstatusicon'] and $forum[customicon]">$forum[customicon]<else />$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif</if>" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>STEP 2 : In the forumhome_forumbit_level2_post template

Find :

<td class="alt2"><img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>And Replace it with :

<td class="alt2"><img src="<if condition="$show['customstatusicon'] and $forum[customicon]">$forum[customicon]<else />$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif</if>" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>Note : You can change ".gif " to other image extensions to use another image formats like "PNG" and "JPG"Now It's Done! (Dont Forget to Click Installed :) )

A.Chakery
07-23-2010, 10:30 PM
Please post your feedback :)

Hornstar
07-23-2010, 10:32 PM
I will need to get some new icons made now ^^

inciarco
07-23-2010, 11:11 PM
Is important that you Add the "https://vborg.vbsupport.ru/external/2012/01/11.gif DB Changes", because this Mod Alters the Table "forum" on the Install and Uninstall Process. :confused:

Thank You For Sharing This Mod. :up:

My Best Regards.

:)

inciarco
07-23-2010, 11:46 PM
A Little Useful Idea:

You can Add

and $forum[customicon]

in the "if" Sentence, for it to Display the Default Forum Status Icons if the Admin Forgets to Include the Path (and Also if the Admin wishes to Leave it Blank to Use the Default Status Icon for One or More of the Forum Status).

so, the Template Edits, would be:

On STEP 1:

<td><img src="<if condition="$show['customstatusicon'] and $forum[customicon]">$forum[customicon]<else />$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif</if>" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>

On STEP 2:

<td class="alt2"><img src="<if condition="$show['customstatusicon'] and $forum[customicon]">$forum[customicon]<else />$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif</if>" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>

My Best Regards.

:)

A.Chakery
07-24-2010, 12:25 AM
Is important that you Add the "https://vborg.vbsupport.ru/external/2012/01/11.gif DB Changes", because this Mod Alters the Table "forum" on the Install and Uninstall Process. :confused:

Thank You For Sharing This Mod. :up:

My Best Regards.

:)

First thanks for reminding me to check the DB-changes.

and about the template edits :

thanks for the suggestion :up: Done !

A.Chakery
07-24-2010, 12:58 AM
Template Changes Updated , Thanks to inciarco (https://vborg.vbsupport.ru/member.php?u=192472)

Asterix_ita
07-24-2010, 04:11 AM
good addon

one question: what is the difference between the standard function of VB3.8.X

Prefix for Forum Status Images (This prefix will be used on status image filenames for a forum, it can only contain A-Z, 0-9, -, _, . and /)

help options standard

Forum Status images are usually shown alongside the forum in a forum listings to indicate the read status.

This prefix must only contain alphanumerical characters, though the following are also allowed - _ / ., a folder name is also acceptable to be placed within the status icon directory.

The following images are currently in use for status icons, you will need to create images with the specified prefix to match.

* forum_link.gif
* forum_new.gif
* forum_new_lock.gif
* forum_old.gif
* forum_old_lock.gif

A.Chakery
07-24-2010, 10:33 AM
I think the most important difference between this mod and the forum perfixes is the ease of use.

By this mod you are able to chose any image on any location of you forums directory. also you can specify your custom and different names for your images.
if you use forum perfixed you will have to create a new folder under the statusicon folder of every style and I think its a little hard to manage.

and for those who want to have just one image instead of all status icons it will be more functional to use this mod :)

-

cyb3rgh0st_
07-29-2010, 12:12 AM
hrm aint working on my bord lol ..
dono how or why its anoying me tho i relly want it lol

A.Chakery
07-29-2010, 03:37 AM
@ Cyb3egh0st :

annoying ??

which section or part is annoying ?

vBarsiv
07-29-2010, 02:11 PM
thank you

inciarco
07-29-2010, 03:40 PM
hrm aint working on my bord lol ..
dono how or why its anoying me tho i relly want it lol

@ Cyb3egh0st :

annoying ??

which section or part is annoying ?

Remember to Do The Template Edits Mentioned on the First Post of this Thread, Otherwise the Custom Icons Won't Appear. ;)

Also Check if You're Trying to View the Custom Icons for Forums for Whick Apply the (nopost) Templates, "forumhome_forumbit_level1_nopost" or the "forumhome_forumbit_level2_nopost", because in that case you should Find the Right Lines to Include the Proper Template Edit Code Lines. ;)

Also Check If You Checked "Yes" on the "Enable Custom Status Icons?" Yes/No Check Box. ;)

Also Remember the Following Instructions:

Select yes to enable Custom Status Icons in this forum.
Turning this off will disable any custom images you enter below.
Please make sure all images are in RELATIVE PATHS i.e. /customicons/myimage.gif

But if you have your Forum/Board on a Location Different than the root of your Web Site, then the Relative Path Should NOT Include the First "/", then it Should be Like This:

customicons/myimage.gif

Without the First "/", otherwise it'll Point to the Root of the Web Site and not the Forum Location "www.yourforum.com/forum/". ;)

(I Forgot to Mention This Last Tip that I Found when I Tried to Use the Image Path with the initial "/"). ;)

My Best Regards.

:)

A.Chakery
07-30-2010, 02:53 AM
Thanks inciarco (https://vborg.vbsupport.ru/member.php?u=192472) you are so helpful.

Regards :)

Kyojii
08-08-2010, 11:34 PM
nice addon

ShawneyJ
08-11-2010, 07:13 AM
this looks good thanks, will test now.

EDIT: Install and Nominate for Modification of the Month.

unknown22
08-18-2010, 06:06 AM
Will this work on vbulletin 4.0.6??

A.Chakery
08-19-2010, 01:56 AM
Will this work on vbulletin 4.0.6??
unfortunately no.

I will try to recode it for vb4.


Regards.

onealien
12-10-2010, 11:48 AM
GREAT!
exactly what ive been searching for...will check it out.

thanks

Gophers
02-22-2013, 12:14 PM
I know this does not work for vbulletin 4. But anyone if there is some simlair to this one, i really would love to have this for vb 4.

A.Chakery
02-23-2013, 07:32 AM
I know this does not work for vbulletin 4. But anyone if there is some simlair to this one, i really would love to have this for vb 4.

Yeah .. since there was a similar version for VB4 I haven't ported this one for vb4 ...

Here is the vb4 version :
https://vborg.vbsupport.ru/showthread.php?t=244351

since the vb4 version has some additional *.JS files it will increase your page load time a little bit (not so much)

I hope it helps

Goomzee
11-14-2014, 03:45 AM
what about subforums different icon on each sub forum

A.Chakery
11-26-2014, 09:59 AM
You mean in the main page (forum home) ? -or- when you enter the forums which have sub forums ?

webnsn
07-04-2016, 11:35 AM
Hi

I am not able to see the Output.

I have installed and follow the steps.

Please guide - My site www.wikinewforum.com

I have some time back disable Forums stats (Original one) is this bcoz of that I am not able to see this Add-on output?

A.Chakery
07-05-2016, 05:45 AM
would you please pm me the content these templates :

forumhome_forumbit_level1_post

and

forumhome_forumbit_level2_post