Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Simple rank images hack Details »»
Simple rank images hack
Version: 1.00, by EvilLS1 EvilLS1 is offline
Developer Last Online: May 2021 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 12-24-2002 Last Update: Never Installs: 7
 
No support by the author.

The stars hack wasn't really what I was looking for, so I came up with this.

This is a simple way to show rank images (based on post count) under your member's usernames in the postbit.
Since its based on post counts rather than titles, it works no matter if your users have custom titles or not.

PS: Hopefully I'm not re-inventing the wheel here.. :laugh: If someone has already posted this, my appologies, and feel free to delete this.

Screenshot below.

{Edit}
Zip file updated.

Show Your Support

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

Comments
  #22  
Old 05-06-2003, 11:23 PM
EvilLS1's Avatar
EvilLS1 EvilLS1 is offline
 
Join Date: Apr 2002
Location: Georgia, USA
Posts: 987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 12:01 AM ogden2k said this in Post #20
This does't work if I go above 1500 posts?

Use this instead and it'll work.

Code:
if ($post[posts]<=19) { 
$rank="<img src=\"http://www.binarydreams.us/forums/images/ranks/rank0.gif\">";
}
   else if ($post[posts]<=149) { 
$rank="<img src=\"http://www.binarydreams.us/forums/images/ranks/rank1.gif\">";
}
   else if ($post[posts]<=599) { 
$rank="<img src=\"http://www.binarydreams.us/forums/images/ranks/rank2.gif\">";
}
   else if ($post[posts]<=1499) { 
$rank="<img src=\"http://www.binarydreams.us/forums/images/ranks/rank3.gif\">";
}
   else if ($post[posts]<=2599) { 
$rank="<img src=\"http://www.binarydreams.us/forums/images/ranks/rank4.gif\">";
}
   else if ($post[posts]<=9999) { 
$rank="<img src=\"http://www.binarydreams.us/forums/images/ranks/rank5.gif\">";
}
   else if ($post[posts]>=10000) { 
$rank="<img src=\"http://www.binarydreams.us/forums/images/ranks/rank6.gif\">";
}
Reply With Quote
  #23  
Old 05-07-2003, 08:45 PM
ogden2k's Avatar
ogden2k ogden2k is offline
 
Join Date: Apr 2003
Posts: 192
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works, thanks very much!

Any way to show the rank in a pm?
Reply With Quote
  #24  
Old 05-08-2003, 07:41 PM
Oblivion Knight's Avatar
Oblivion Knight Oblivion Knight is offline
 
Join Date: May 2002
Location: Sheffield, UK
Posts: 1,757
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Yesterday at 10:45 PM ogden2k said this in Post #22
Works, thanks very much!

Any way to show the rank in a pm?

In the template "privmsg" find:
Code:
		<smallfont>$fromuserinfo[usertitle]</smallfont><br>
Add after it:
Code:
		$rank<br>
Not tested, but it should work.. :classic:
Reply With Quote
  #25  
Old 05-10-2003, 10:15 PM
ogden2k's Avatar
ogden2k ogden2k is offline
 
Join Date: Apr 2003
Posts: 192
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It doesn't work, I tried it in the tpl you suggested and in the annoucements tpl.
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:36 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.03665 seconds
  • Memory Usage 2,248KB
  • Queries Executed 19 (?)
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_code
  • (2)bbcode_quote
  • (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
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (5)postbit_onlinestatus
  • (5)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