Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Prefix for Sub-Forum Status Images Details »»
Prefix for Sub-Forum Status Images
Version: 1.00, by dannykilla dannykilla is offline
Developer Last Online: Oct 2011 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 3.7.1 Rating:
Released: 06-28-2008 Last Update: Never Installs: 36
Template Edits
Re-useable Code Code Changes Translations  
No support by the author.

This allows the Prefix for Forum Status Images on Sub forums.

In the template
forumhome_subforumbit_nopost

replace all the code with this:

Code:
<img class="inlineimg" src="$stylevar[imgdir_statusicon]/subforum_$forum[statusicon].png" alt="" border="0" id="forum_statusicon_$forum[forumid]" /> <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
In the template
forumhome_subforumbit_post

replace all the code with this:

Code:
<img class="inlineimg" src="$stylevar[imgdir_statusicon]/$forum[imageprefix]subforum_$forum[statusicon].png" alt="" border="0" id="forum_statusicon_$forum[forumid]" /> <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
to change the file type simply edit the code (highlighed in RED)!

Supporters / CoAuthors

    Show Your Support

    • This modification may not be copied, reproduced or published elsewhere without author's permission.

    Comments
      #2  
    Old 06-29-2008, 07:20 PM
    iogames's Avatar
    iogames iogames is offline
     
    Join Date: Jan 2007
    Location: Las Vegas, NV.
    Posts: 1,433
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Finally! :up:
    Reply With Quote
      #3  
    Old 06-30-2008, 10:08 AM
    irongloves irongloves is offline
     
    Join Date: May 2007
    Posts: 6
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Well done! :up:
    Reply With Quote
      #4  
    Old 07-02-2008, 07:12 PM
    tunistunis tunistunis is offline
     
    Join Date: Jun 2007
    Posts: 33
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    how to add img ?? link adresse ???
    Reply With Quote
      #5  
    Old 07-02-2008, 10:55 PM
    dannykilla's Avatar
    dannykilla dannykilla is offline
     
    Join Date: Jun 2007
    Location: Manchester, UK
    Posts: 151
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    simply add a prefix to your subforum.

    for an example lets say we have a subforum called "manutd"
    Now in:
    AdminCP > Forum & Moderators > Forum Manager > choose your sub forum in this case manutd

    then in the option > Prefix for Forum Status Images
    add a prefix called (this is an example)

    manutd_

    Now create your images, I have two images and called them the following:

    manutd_subforum_new.png
    manutd_subforum_old.png

    Now upload these images to the directory /images/statusicon/

    and thats it, if you want to change the file type of the status images simply change the file name in the code (above) to whatever you want. I have now highlighted that part in red!

    I have attached some images to help some of you out!
    Reply With Quote
      #6  
    Old 07-03-2008, 12:08 AM
    aksolo aksolo is offline
     
    Join Date: Feb 2007
    Posts: 8
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    very nice thank u sir.
    Reply With Quote
      #7  
    Old 07-03-2008, 11:58 AM
    tunistunis tunistunis is offline
     
    Join Date: Jun 2007
    Posts: 33
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    thanks my friend
    Reply With Quote
      #8  
    Old 07-05-2008, 03:07 AM
    aksolo aksolo is offline
     
    Join Date: Feb 2007
    Posts: 8
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    i have 1 question, this is for the subforums. and it also works for the forums status icon.
    but i see on your forums that u have 3 icons. i was wondering how did u that other icon next to the forums, looks very nice.
    Reply With Quote
      #9  
    Old 07-05-2008, 07:23 AM
    dannykilla's Avatar
    dannykilla dannykilla is offline
     
    Join Date: Jun 2007
    Location: Manchester, UK
    Posts: 151
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    I dont know what you mean by 3 icons?
    if you mean, what I think you mean (look at image)


    http://www.vbulletin.com/forum/showthread.php?t=114545

    Dan
    Reply With Quote
      #10  
    Old 07-05-2008, 09:47 AM
    KURTZ KURTZ is offline
     
    Join Date: Nov 2006
    Location: Italy
    Posts: 2,257
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    hi Danny, interesting hack, but i saw that you have a trouble with the alignment of the subforums (if you have some) ... it's possible to fix this?

    thanks
    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 02:07 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.08141 seconds
    • Memory Usage 2,288KB
    • 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
    • (1)footer
    • (1)forumjump
    • (1)forumrules
    • (1)gobutton
    • (1)header
    • (1)headinclude
    • (1)modsystem_post
    • (1)navbar
    • (6)navbar_link
    • (120)option
    • (1)pagenav
    • (1)pagenav_curpage
    • (2)pagenav_pagelink
    • (10)post_thanks_box
    • (10)post_thanks_button
    • (1)post_thanks_javascript
    • (1)post_thanks_navbar_search
    • (10)post_thanks_postbit_info
    • (9)postbit
    • (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
    • post_thanks_function_fetch_thanks_end
    • post_thanks_function_thanked_already_start
    • post_thanks_function_thanked_already_end
    • fetch_musername
    • postbit_imicons
    • bbcode_parse_start
    • bbcode_parse_complete_precache
    • bbcode_parse_complete
    • postbit_display_complete
    • post_thanks_function_can_thank_this_post_start
    • pagenav_page
    • pagenav_complete
    • tag_fetchbit_complete
    • forumrules
    • navbits
    • navbits_complete
    • showthread_complete