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
  #12  
Old 02-08-2010, 12:12 AM
New Joe's Avatar
New Joe New Joe is offline
 
Join Date: May 2009
Posts: 1,128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok cool, number 2 above is fixed, I just changed the "old" in the code for the template to "new" and it shows the clearer picture.
Now just for number one above, how to make the pictures show bigger?
Reply With Quote
  #13  
Old 02-08-2010, 03:22 AM
New Joe's Avatar
New Joe New Joe is offline
 
Join Date: May 2009
Posts: 1,128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Something seems to over-writing the size. my pictures are 75x75 but this is the result: Image Dimensions 75px × 75px (scaled to 48px × 48px

Any help would be great.
Reply With Quote
  #14  
Old 02-08-2010, 04:09 AM
ahmedipa ahmedipa is offline
 
Join Date: Feb 2009
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

good thank you so much
Reply With Quote
  #15  
Old 02-08-2010, 08:11 AM
nextslit's Avatar
nextslit nextslit is offline
 
Join Date: May 2009
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Something seems to over-writing the size. my pictures are 75x75 but this is the result: Image Dimensions 75px ? 75px (scaled to 48px ? 48px

Any help would be great.
Hello

Go to Style Variable Editor > forums > forumiconsize > size

Attached Images
File Type: jpg vb.jpg (156.2 KB, 0 views)
Reply With Quote
  #16  
Old 02-15-2010, 05:44 PM
MrD's Avatar
MrD MrD is offline
 
Join Date: Aug 2003
Location: Germany/NRW
Posts: 419
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,
Works in FF but not in IE
Reply With Quote
  #17  
Old 02-16-2010, 02:49 AM
New Joe's Avatar
New Joe New Joe is offline
 
Join Date: May 2009
Posts: 1,128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MrD View Post
Hi,
Works in FF but not in IE
I installed it, did the template changes and it works and shows in FF, IE, Google Chrome and Opera.
Reply With Quote
  #18  
Old 02-16-2010, 09:49 AM
Gamempire Gamempire is offline
 
Join Date: Aug 2008
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

maybe ie6 doesn't support css opacity...maybe, but don't worry about that..
Reply With Quote
  #19  
Old 02-16-2010, 12:54 PM
MrD's Avatar
MrD MrD is offline
 
Join Date: Aug 2003
Location: Germany/NRW
Posts: 419
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,
@NewJoe: it runs not in IE8.
The Icon are not transparency if only old Thread are in the Board.

Maybe a wrong opacity Param.?
Reply With Quote
  #20  
Old 02-16-2010, 05:30 PM
movslow movslow is offline
 
Join Date: Aug 2008
Posts: 297
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Gamempire View Post
my mod is the replacing of some rows of a templates...
i specified that the product is of another person..

well guys, i'm a coder, and i spent time for doing this mod for me, and i decided to share my work with the community spending other time...
so, I do not care to spend time to be criticized by you, then tell me, and i remove this mod...

You are a community of ungrateful

thanks a lot!
lol, made me laugh this did.
:up:
Reply With Quote
  #21  
Old 02-17-2010, 12:20 AM
New Joe's Avatar
New Joe New Joe is offline
 
Join Date: May 2009
Posts: 1,128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MrD View Post
Hi,
@NewJoe: it runs not in IE8.
The Icon are not transparency if only old Thread are in the Board.

Maybe a wrong opacity Param.?
I forgot to say, I didn't like the "transparency" part so when I added the code to the template I changed "old" to "new" so it always shows as a solid normal picture.
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:29 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.04554 seconds
  • Memory Usage 2,342KB
  • 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
  • (3)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
  • (2)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