Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Status Icons - Different Images for each Forum with opacity! Details »»
Status Icons - Different Images for each Forum with opacity!
Version: 1.00, by Gamempire Gamempire is offline
Developer Last Online: Feb 2015 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 4.0.1 Rating:
Released: 02-06-2010 Last Update: Never Installs: 142
Template Edits
Re-useable Code Translations  
No support by the author.

If you want to have different images for each forum that you have created inside your vbulletin board as you can see in this two picture:


Before (pay attention: there are some category with opacity 0.5: this are the category with old threads)



After (firefox icon is changed)



For doing this you have to install before this Add-on: Forum Icons (I put as attachment the product that you need)
BUT
1. Install only the product
2. Go Into Admincp --> Forum and Moderators; Modify each forum putting the path of each image where it says "Add the path to the icon image here."
3. Go Into Admincp --> Styles and Templates --> Manage Templates;
Edit forumhome_forumbit_level2_post

Find:
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:
Code:
            <vb:if condition="$forum['iconlocation']">
                <img src="{vb:raw forum.iconlocation}" class="forumicon" alt="{vb:raw forum.title}" style="opacity: <vb:if condition="$forum['statusicon'] == 'old'">0.5<vb:else />1</vb:if>;" id="forum_statusicon_{vb:raw forum.forumid}" />
            <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>

If you want, you can change the opacity searching "0.5" in my code.
Enjoy it and don't forget to Mark as Installed!

Ps: sorry for my bad english, i'm Italian

Screenshots

File Type: png status1.png (82.6 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
4 благодарности(ей) от:
hanhdn, Insta-Gator, livenetc, nader

Comments
  #22  
Old 02-17-2010, 07:21 PM
MrD's Avatar
MrD MrD is offline
 
Join Date: Aug 2003
Location: Germany/NRW
Posts: 419
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,
why you don´t use the original VB Options?
The only Thing is you must make 2 Icons for each forum.
1 New
1 Old

You can set the Icon Prefix in the Forumoptions.
Reply With Quote
  #23  
Old 02-20-2010, 05:46 AM
princeedward's Avatar
princeedward princeedward is offline
 
Join Date: Jan 2007
Location: Deutschland
Posts: 901
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well let me see if this will work...thanks
Reply With Quote
  #24  
Old 02-22-2010, 12:19 AM
Verionia Verionia is offline
 
Join Date: Jul 2009
Posts: 274
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this didnt work for 4.02

It shows BOTH the forum image and icon to the side. So two of the same image!
Reply With Quote
  #25  
Old 02-22-2010, 07:05 AM
jeryp jeryp is offline
 
Join Date: Feb 2006
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Verionia View Post
this didnt work for 4.02

It shows BOTH the forum image and icon to the side. So two of the same image!
Yes I have the same thing so have uninstalled for now.

Shows the Forum icon in transparent when read fine.
But still shows the original Category icon to the right.

Is this correct?
Reply With Quote
  #26  
Old 02-22-2010, 07:57 AM
New Joe's Avatar
New Joe New Joe is offline
 
Join Date: May 2009
Posts: 1,128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you delete this in the Template?:
Quote:
<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="" />
Reply With Quote
  #27  
Old 02-23-2010, 11:07 AM
MichelangeloITA's Avatar
MichelangeloITA MichelangeloITA is offline
 
Join Date: Dec 2009
Location: Italy, Rimini
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Grazieee, la cercavo da una vita una mod simile (ti ho aggiunto su msn)

Thank's a lot man!
Reply With Quote
  #28  
Old 02-26-2010, 03:04 AM
Verionia Verionia is offline
 
Join Date: Jul 2009
Posts: 274
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by New Joe View Post
Did you delete this in the Template?:
Yes I did - but look at this code

<vb:if condition="$forum['iconlocation']">
<img src="{vb:raw forum.iconlocation}" class="forumicon" alt="{vb:raw forum.title}" style="opacity: <vb:if condition="$forum['statusicon'] == 'old'">0.5<vb:else />1</vb:if>;" id="forum_statusicon_{vb:raw forum.forumid}" />
<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>

It repeats what you're suppose to delete at the end...So that code is still there
Reply With Quote
  #29  
Old 02-26-2010, 08:53 AM
nextslit's Avatar
nextslit nextslit is offline
 
Join Date: May 2009
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Verionia View Post
this didnt work for 4.02

It shows BOTH the forum image and icon to the side. So two of the same image!

Working fine for 4.0.2

Demo
Reply With Quote
  #30  
Old 02-26-2010, 11:57 PM
ndut ndut is offline
 
Join Date: Sep 2007
Location: Indonesia
Posts: 335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you
Reply With Quote
  #31  
Old 02-28-2010, 03:17 AM
Verionia Verionia is offline
 
Join Date: Jul 2009
Posts: 274
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

please help me it doesnt work!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:42 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05223 seconds
  • Memory Usage 2,341KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (4)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete