Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives

Reply
 
Thread Tools
Ranking System Details »»
Ranking System
Version: , by DeadMan384AD DeadMan384AD is offline
Developer Last Online: Mar 2003 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 08-31-2002 Last Update: Never Installs: 0
 
No support by the author.

After looking thru just about every hack the only hack that I found that was close to what I wanted was the Galaga hack by TommyBoy.... and its obvious even to me that the code is pretty old...
What I want it to do, is display a picture according to how many posts the person has... But I dont think I'm calling the right data or something...

I have this after the global things in "buildpostbit"

Code:
// --- vB Galaga Hack by TommyBoy Modified by DeadMan384AD
$RankNum = $bbuserinfo[posts];
$rank = "";
while ($RankNum > 1) {

	if ($RankNum > 5) {
		$rank = "<img src=\"images/ranks/2.jpg\" border=0>";
		$RankNum -= 5;
	}
	elseif ($RankNum > 10) {
		$rank = "<img src=\"images/ranks/3.jpg\" border=0>";
		$RankNum -= 10;
	}
	elseif ($RankNum > 50) {
		$rank =  "<img src=\"images/ranks/4.jpg\" border=0>";
		$RankNum -= 50;
	}
	elseif ($RankNum > 100) {
		$rank = "<img src=\"images/ranks/5.jpg\" border=0>";
		$RankNum -= 100;
	}
	elseif ($RankNum > 500) {
		$rank = "<img src=\"images/ranks/6.jpg\" border=0>";
		$RankNum -= 500;
	}
	elseif ($RankNum > 1000) {
		$rank = "<img src=\"images/ranks/7.jpg\" border=0>";
		$RankNum -= 1000;
	}
	else {
		$rank = $RankNum;
		$RankNum--;
	}
}
$rank = $rank;
// --- vB Galaga Hack by TommyBoy Modified by DeadMan384AD
Right now in the else statement I have it showing $RankNum for debug... cause it just shows the image for else, when I should be seeing image 6 in my posts... but for the debug, all I get is "2" for any user....
I've tried it taking $RankNum from $post[posts] as well, same output...

And in the final version, I want this to be using 34 different ranking levels...

Show Your Support

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

Comments
  #12  
Old 09-05-2002, 05:30 PM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

DeadMan384AD try using

PHP Code:
$post 
not $bbuserinfo regards...

g-force2k2
Reply With Quote
  #13  
Old 09-05-2002, 07:37 PM
DeadMan384AD's Avatar
DeadMan384AD DeadMan384AD is offline
 
Join Date: Aug 2002
Location: Right Behind you
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent! Thank you!

Now, should I post this as a completed hack?
Thing is it no longer looks anything like the galaga hack, and you helped a lot... so its not mine so much...
Reply With Quote
  #14  
Old 09-05-2002, 07:41 PM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thats not really my call but if its like ubb's galaga hack then cool thats one of the features i've seen on ubb's that i've liked... its a cool ranking system... regards...

g-force2k2
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 03: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.03901 seconds
  • Memory Usage 2,230KB
  • Queries Executed 20 (?)
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_code
  • (1)bbcode_php
  • (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
  • (1)pagenav_pagelink
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (4)postbit_onlinestatus
  • (4)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_postinfo_query
  • fetch_postinfo
  • 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