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

Reply
 
Thread Tools
User's Ranks Display Details »»
User's Ranks Display
Version: 1.00, by Tasking Mickey Tasking Mickey is offline
Developer Last Online: Feb 2013 Show Printable Version Email this Page

Category: End-User Options - Version: 3.8.x Rating:
Released: 04-21-2011 Last Update: Never Installs: 2
Template Edits
 
No support by the author.

Before I do anything with this template mod, I wanted to thank BOP5, (Bird0Prey5) for allowing me to use his code he gave me, and allowing me to share it with the rest of you guys, all credit is going to him.

Ever wonder on postbits, right under the user's name, it shows their ranks? Sometimes it can be annoying to some users, such as me, and I have gotten help on how to disable it via 'Edit Options"

== INSTALL ==

1.
Navigate over to ACP - User Profile Fields - Add new Profile Fields - Single Selection Menu

2. Put these following settings,

PHP Code:
 TitleUser's Ranks Displayment
    Description : Choose this option, if you want to show user'
s ranks on postbit or if you do want to see them, and it hides thembut not from profiles.
   
OptionsYes
                No
    Set 
Default: Yesbut no blank option
    Field Required 
No
    Field Editable by User 
Yes
    
Private FieldNo
    Field Searchable on Members 
List : No
    Show on Members 
List : No
    Which page displays this option
? : OptionsThread Viewing 
3. Now, once you've done that, head over to ACP - Style Manager - (Your Style) - Edit Templates - postbit

Find where it says:

PHP Code:
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if> 
Replace with this:
PHP Code:
<if condition="$post['rank'] AND $bbuserinfo['fieldxx'] != 'No' "><div class="smallfont">$post[rank]</div></if> 
Replace the XX with the User's Ranks Displayment profile field number.

4. Your all set and ready to go!


== NOTES ==

This allows any user to not display the ranks via postbit, however, the ranks will always show within the profile, this is just the postbit.
User's will always have the ability to re-show them again, this time going to UserCP - Edit Options, finding the option, and putting "Yes" and the ranks would show up on the postbits again.

Enjoy everybody!

Screenshots

File Type: jpg Ranks.JPG (50.5 KB, 0 views)

Show Your Support

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

Comments
  #2  
Old 04-22-2011, 12:46 PM
Eplexx Eplexx is offline
 
Join Date: Nov 2010
Location: Toronto
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thats cool, good job!
Reply With Quote
  #3  
Old 04-26-2011, 03:43 PM
Zylantex Zylantex is offline
 
Join Date: Sep 2009
Location: France
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No offence but there is no such word as "displayment" in the English language. Just use "display".

Just pointing this out because the search option won't find this useful mod if the correct search term is used.
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 07:45 AM.


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.07053 seconds
  • Memory Usage 2,238KB
  • Queries Executed 17 (?)
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
  • (3)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (2)postbit
  • (1)postbit_attachment
  • (3)postbit_onlinestatus
  • (3)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete