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
  #2  
Old 08-31-2002, 03:50 PM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm... i was actually working on my own Galaga system i'll let you know how things go if you like i have made good progress with it too... regards..

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

aranoid: Thanks for the help? :ermm:

uh.. Ok, well hopefully if I dont figure my own script out, yours is out soon, I'm hoping to get this done(plus a million other things, go figure for a SA) before I go back to school.
Reply With Quote
  #4  
Old 08-31-2002, 07:19 PM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oh lol i didn't even see that you modified that my bad... didn't connect the names i guess... sorry about that regards... i know that this was a custom feature for ubbs...

g-force2k2
Reply With Quote
  #5  
Old 08-31-2002, 07:36 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Deadman, I think you're looking for what i've requested [g-force is working on it], having an image under your title/custom title like stars or a bar in different colours etc. Just like in UBB. I'm sure you want this for mods, supermods, admins aswell
Reply With Quote
  #6  
Old 08-31-2002, 08:02 PM
DeadMan384AD's Avatar
DeadMan384AD DeadMan384AD is offline
 
Join Date: Aug 2002
Location: Right Behind you
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yah, cept its not going under the avatar.... elsewhere on the postbit... This should be a very easy hack to install... nothing fancy, it should only refer to the users post, and show the image relevant to the persons post count... I'm not even sure what "$RankNum -= 50 " does... but that might be the problem...

otherwise I think I can get most of it figured out, I just dont know how to get the users post into $RankNum....

If you wanna have fun, take the second line out of the if statements in my code, if it doesnt give you an error, it slows down the showthread really, really bad... yay for infinite loops! (found that out the hard way, its been a long time since I coded anything)
Reply With Quote
  #7  
Old 08-31-2002, 08:08 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah well the one i requested, I just want a variable available so I can insert the image anywhere in the postbit
Reply With Quote
  #8  
Old 09-02-2002, 01:47 AM
DeadMan384AD's Avatar
DeadMan384AD DeadMan384AD is offline
 
Join Date: Aug 2002
Location: Right Behind you
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yah the galaga hack works anywhere on the postbit...

I've got it to show up, and I've gotten it to display images, but its not working properly.
When I make output $RankNum all I get is "2" when I have it set the way it should be, I get the wrong image according to the amount of posts I have...
Reply With Quote
  #9  
Old 09-02-2002, 03:33 AM
DeadMan384AD's Avatar
DeadMan384AD DeadMan384AD is offline
 
Join Date: Aug 2002
Location: Right Behind you
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok after a lot of editing, trial and error I've got it to this:
Code:
// --- vB Galaga Hack by TommyBoy Modified by DeadMan384AD
		if ($bbuserinfo[posts] >= 2000) {
			$post[rank] = "<img src=\"images/ranks/34.gif\" border=0>";
		}
		elseif ($bbuserinfo[posts] >= 100) {
			$post[rank] = "<img src=\"images/ranks/7.gif\" border=0>";
		}
		elseif ($bbuserinfo[posts] >= 75) {
			$post[rank] = "<img src=\"images/ranks/6.gif\" border=0>";
		}
		elseif ($bbuserinfo[posts] >= 50) {
			$post[rank] = "<img src=\"images/ranks/5.gif\" border=0>";
		}
		elseif ($bbuserinfo[posts] >= 25) {
			$post[rank] =  "<img src=\"images/ranks/4.gif\" border=0>";
		}
		elseif ($bbuserinfo[posts] >= 10) {
			$post[rank] = "<img src=\"images/ranks/3.gif\" border=0>";
		}

		elseif ($bbuserinfo[posts] >= 5) {
			$post[rank] = "<img src=\"images/ranks/2.gif\" border=0>";
		}
		else {
			$post[rank] = "<img src=\"images/ranks/1.gif\" border=0>";
		}

	// --- vB Galaga Hack by TommyBoy Modified by DeadMan384AD
note- I cut out a huge portion, simply cause I've got a LOT of images...

Everything works fine, it posts, pulls up the proper image according to the post count.... Unfortunatly, its not using the post count of the person who made the post, its using the post count of the user browsing the page! What am I doing wrong?
Reply With Quote
  #10  
Old 09-05-2002, 12:20 AM
DeadMan384AD's Avatar
DeadMan384AD DeadMan384AD is offline
 
Join Date: Aug 2002
Location: Right Behind you
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

B - bulletin
U - user
M - Mip-Mapping
P - phorum
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:24 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.07533 seconds
  • Memory Usage 2,294KB
  • Queries Executed 23 (?)
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
  • (1)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