vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Forum Home Enhancements - Forum Icons (https://vborg.vbsupport.ru/showthread.php?t=239274)

ry215 03-27-2010 10:00 PM

Forum Icons
 
Features: replacement status icon of each box (see attached images)
Install:
- Download & import .xml file.

- If you set the Replace Templates is No, then you do the following steps:

-- Step 1: Open template: forumhome_forumbit_level1_post, find:

HTML Code:

<img src="{vb:stylevar imgdir_statusicon}/{vb:raw forum.imageprefix}forum_{vb:raw forum.statusicon}-48.png" class="forumicon" id="forum_statusicon_{vb:raw forum.forumid}" alt="" />
replace with:

HTML Code:

<vb:if condition="$forum['forumicon']"><img src="{vb:raw forum.forumicon}" class="forumicon" id="forumicon_{vb:raw forum.forumid}" alt="" /><vb:else /><img src="{vb:stylevar imgdir_statusicon}/{vb:raw forum.imageprefix}forum_{vb:raw forum.statusicon}-48.png" class="forumicon" id="forum_statusicon_{vb:raw forum.forumid}" alt="" /></vb:if>
Save (ok)

-- Step 2: Open template: forumhome_forumbit_level2_post, find:

HTML Code:

<img src="{vb:stylevar imgdir_statusicon}/{vb:raw forum.imageprefix}forum_{vb:raw forum.statusicon}-48.png" class="forumicon" id="forum_statusicon_{vb:raw forum.forumid}" alt="" />
replace with:

HTML Code:

<vb:if condition="$forum['forumicon']"><img src="{vb:raw forum.forumicon}" class="forumicon" id="forumicon_{vb:raw forum.forumid}" alt="" /><vb:else /><img src="{vb:stylevar imgdir_statusicon}/{vb:raw forum.imageprefix}forum_{vb:raw forum.statusicon}-48.png" class="forumicon" id="forum_statusicon_{vb:raw forum.forumid}" alt="" /></vb:if>
Save >> Done

Have fun! :)



Pls Mark Install My Mod
I have strength for code new mod :D

tom001 03-28-2010 03:03 PM

I need This for 3.8 anybody got?

ry215 03-28-2010 03:09 PM

3.8 have many mod the same it man

tom001 03-28-2010 03:10 PM

ok,please post it now :) Thanks so much

tafreeh 03-28-2010 03:18 PM

I think we already have this option by default, correct me if i m wrong.

betts02 03-28-2010 06:57 PM

After trying many ways and it not working, this mod worked a treat

many thanks

betts02 03-28-2010 07:08 PM

would i just replce the 48 with say 100 to show a bigger image ?

raja811 03-28-2010 07:16 PM

thank you installed

esperone 03-28-2010 07:42 PM

Quote:

Originally Posted by tafreeh (Post 2011670)
I think we already have this option by default, correct me if i m wrong.

yes. this is default in vb4.

Under Forum Manager, choose the forum you want to change the icon on and click edit.

Scroll down to Prefix for Forum Status Images .

Enter a desired prefix for use with your forum icon.
I.E. If you were to enter forum1_ as the prefix then you would need to upload the forum icons as:

/statusicon/forum1_forum_new.gif
/statusicon/forum1_forum_old.gif

ry215 03-29-2010 01:18 AM

Quote:

Originally Posted by betts02 (Post 2011814)
would i just replce the 48 with say 100 to show a bigger image ?

Styles & Templates >> StyleVars >> search for 'forumicon_size' then edit 48 to 100


All times are GMT. The time now is 03:39 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.01035 seconds
  • Memory Usage 1,738KB
  • 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
  • (4)bbcode_html_printable
  • (2)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