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


All times are GMT. The time now is 02:52 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.02081 seconds
  • Memory Usage 1,772KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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