Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications

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
  #2  
Old 02-07-2010, 03:10 PM
mabersoft mabersoft is offline
 
Join Date: Jun 2009
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great. Will have to lookinto this. as this may come in use.
Reply With Quote
  #3  
Old 02-07-2010, 03:21 PM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That other user didn't mark his code as reusable. Did you obtain permission before releasing this?
Reply With Quote
  #4  
Old 02-07-2010, 04:05 PM
ndut ndut is offline
 
Join Date: Sep 2007
Location: Indonesia
Posts: 335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice..
Reply With Quote
  #5  
Old 02-07-2010, 04:12 PM
Gamempire Gamempire is offline
 
Join Date: Aug 2008
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kall View Post
That other user didn't mark his code as reusable. Did you obtain permission before releasing this?
i think that it wouldn't be such a great problem, because i'm linking to his mod and i didn't make any change to his product...it's not a very big thing, just 5 rows of template modification...

thanks for the thanks :P
this is one of my first mod that I share with the community
Reply With Quote
  #6  
Old 02-07-2010, 05:00 PM
Spiritvn's Avatar
Spiritvn Spiritvn is offline
 
Join Date: Apr 2009
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Gamempire View Post
i think that it wouldn't be such a great problem, because i'm linking to his mod and i didn't make any change to his product...it's not a very big thing, just 5 rows of template modification...

thanks for the thanks :P
this is one of my first mod that I share with the community
I dont think it's ur mod, the old xml from elmer and the new replace code for vb4 make it become ur mod?
Reply With Quote
  #7  
Old 02-07-2010, 07:55 PM
Gamempire Gamempire is offline
 
Join Date: Aug 2008
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #8  
Old 02-07-2010, 08:00 PM
Gamempire Gamempire is offline
 
Join Date: Aug 2008
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i edited the mod, read at the top..
Reply With Quote
  #9  
Old 02-07-2010, 09:41 PM
cindy helmond cindy helmond is offline
 
Join Date: Feb 2006
Location: The Netherlands
Posts: 334
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not working uninstalled on 4.01
Reply With Quote
  #10  
Old 02-08-2010, 12:09 AM
New Joe's Avatar
New Joe New Joe is offline
 
Join Date: May 2009
Posts: 1,128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It worked and I like it but can we add some more things to this.
1) the pictures need to be bigger for each of the Forums, how to make them show bigger?
2) i don't like the way the picture is so faded when it is a case that the Forum contain old posts only. I'd like the picture to be bright and clear always the same as when there are new posts.
Reply With Quote
Reply

Thread Tools

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:36 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.04644 seconds
  • Memory Usage 2,320KB
  • Queries Executed 24 (?)
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
  • (2)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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (4)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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