vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Forum Home Enhancements - AiONets : Custom Forum Status Icons (https://vborg.vbsupport.ru/showthread.php?t=247174)

A.Chakery 07-22-2010 10:00 PM

AiONets : Custom Forum Status Icons
 
1 Attachment(s)
Custom Forum Status Icons
by: Ali.ch.
------------------

This mod was created by Chris M for vBulletin 3.5.x and you can find it Here. 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 for ideas )

Step 1:
In the forumhome_forumbit_level1_post template
Find :
PHP Code:

<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 :
PHP Code:

<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 :

PHP Code:

<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 :

PHP Code:

<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

Quote:

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

Code:

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:

PHP Code:

<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:

PHP Code:

<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

Quote:

Originally Posted by inciarco (Post 2073617)
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

Asterix_ita 07-24-2010 04:11 AM

good addon

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

Quote:

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

Quote:

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

Quote:

Originally Posted by cyb3rgh0st_ (Post 2076011)
hrm aint working on my bord lol ..
dono how or why its anoying me tho i relly want it lol

Quote:

Originally Posted by UIQarena (Post 2076062)
@ 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:

Quote:

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 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

Quote:

Originally Posted by unknown22 (Post 2085625)
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

Quote:

Originally Posted by Gophers (Post 2405765)
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


All times are GMT. The time now is 06:02 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,821KB
  • 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
  • (1)bbcode_code_printable
  • (6)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (25)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete