Go Back   vb.org Archive > vBulletin Article Depository > Read An Article > vBulletin 3 Articles
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Create a Military-Style Rank Structure
Nick King
Join Date: Mar 2005
Posts: 32

 

Charging the trenches
Show Printable Version Email this Page Subscription
Nick King Nick King is offline 01-04-2006, 10:00 PM

EDIT: I am a complete moron.

The old tutorial tought you to create a userroup and then put in conditionals into the postbit and memberinfo templates manually for each usegroup. I would like to apologize to anyone who may have actually done this.

Vbulletin lets you create ranks PER USEGROUP. The ranks don't have to be universal. You must be identified as a member of the usergroup for the rank to show up. Here's easier proceedures:

Create all your ranks as entire usegroups. For example:
E1 - Recruit
E2 - Private
E3 - Private First Class

etc etc. goto www.unifrominsignia.net for more ranks and graphics.

Goto "Usergroups" > "Promotions" in the ACP. Make a promotion for Registered Users. Change all the numbers to 0 and make it promote by post count. Change the method to "Priamry" and change the usergroup to your lowest rank. Now submit. Then create a promotion for your lowest rank. Set all numbers to zero, promote by post count, method=ADDITIONAL Usegroups, promote to Registered Users. Now when people join, they are promoted to the lowest rank and are still members of the additional usegroup.

Remember, when you promote someone, simply change their primary usergroup. If you have vbplaza installed, I reccoment making sure all your ranks are unpurchasable.

Now, goto "Usergroup > Ranks", add your rank image OR text OR HTML for EACH USEGROUP RANK. That's all there is to it. I can't believe how easy that is. I discovered this solution a few months ago and simply forgot to update this thread.
Reply With Quote
  #2  
Old 01-05-2006, 09:04 PM
Revpolar Revpolar is offline
 
Join Date: Feb 2004
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Paygrade, Rank Name
E-1 Recruit
E-2 Private
E-3 Private First Class
E-4 Sergeant
It should be:
Paygrade, Rank Name
E-1 Recruit
E-2 Private
E-3 Private First Class
E-4 Specialist
E-5 Sergeant
E-6 Staff Sergeant
E-7 Sergeant First Class
E-8 Master Sergeant, or First Sergeant
E-9 Sergeant Major, or Command Sergeant Major.
And theres only one of these:
Sergeant Major of The Army

Officers are different. And you could apply those to your staff members.
O-1 Second Lt.
o-2 Fist Lt.
o-3 Captain
0-4 Major
O-5 Lt. Colonol
O-6 Colonal
O-7 General (There are several more. all different general ranks but Id just stop here for a rank hack)

Lets say you have visiting admin and mods from other sites. You could give those foriegn ranks.
\
I did do this at one time with the regular old rank structure in VB. I also used an awards system with military awards.
Reply With Quote
  #3  
Old 01-05-2006, 09:22 PM
Nick King Nick King is offline
 
Join Date: Mar 2005
Location: Charging the trenches
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I posted the tutorial for a canadian and forgot when I converted those ranks back to US Army.

I reccomend Yet Another Awards System hack. Be sure to put a table around the ribbons at a certain width. It forces the ribbons to display a certain number per row. My ribbons are 33 px wide so I have a table width of about 105 px. Only three fit per row, then they are pushed to a new line. IE doesn't like to follow that restriction though. I guess IE never learned about <table width="105">

Here's my rank structure BTW. I customized Warrant Officers a bit. MPs can edit and delete posts only. They are regular users that just keep that watchful eye. WO's are my true moderators.
Reply With Quote
  #4  
Old 02-08-2006, 07:38 PM
nasser71 nasser71 is offline
 
Join Date: Jul 2005
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can i make this work without the user group just using the post count

like if the user have 3500+ post he get a rank and if he have 4500+ he get another rank
just using plain post count not user group
Reply With Quote
  #5  
Old 02-08-2006, 08:12 PM
mholtum's Avatar
mholtum mholtum is offline
 
Join Date: May 2004
Location: Arizona
Posts: 697
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Seems like alot of work went into this. Did you realize that it is built into vb?
Reply With Quote
  #6  
Old 02-13-2006, 03:14 AM
Nick King Nick King is offline
 
Join Date: Mar 2005
Location: Charging the trenches
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The ranks are based on post count BUT I learned that all the coding is unneccessary

Make the usergroups as normal, and simply add a rank to each usergroup with a minimum post set to 0. I feel so stupid for not realizing that.
Reply With Quote
  #7  
Old 05-29-2006, 06:32 PM
Nick King Nick King is offline
 
Join Date: Mar 2005
Location: Charging the trenches
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

UPDATE!!!!!

Read the first post again!

No, I don't like to read the wholre thread before jumping to conclusions.. Sorry. I forgot I already solved this problem. But yeah, that's for anyone if they want it.
Reply With Quote
  #8  
Old 05-16-2007, 04:17 AM
D2S05 D2S05 is offline
 
Join Date: Oct 2005
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It would be nice to use this structure with the reputation tool, a user gains reputation and instead of gaining a little green square, he would gain a military rank image. That would be awesome.
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 06:26 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04068 seconds
  • Memory Usage 2,261KB
  • Queries Executed 21 (?)
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
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_article
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete