Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 06-24-2000 Last Update: Never Installs: 0
 
No support by the author.

This is first release of the Rank Hack, which is intended to mimic the Galaga Hack of the UBB. It integrates into the vB much like the Avatar hack, where as you can add, modify, and upload new ranks from the administration.

Unlike the Galaga hack, it only displays 1 image, and not several. This can be changed if the request is high enough, otherwise it'll remain as it is.

Download it here - instructions included:
http://www.ffextreme.com/txt/rankhack.zip

For a demo, view:
http://4.3.235.30/forums/showthread.php?threadid=1

The demo is on my computer, so it might not always be available pending on whether or not my computer is on.

Enjoy.

[Edited by Krucifyx on 06-24-2000 at 09:46 AM]

Show Your Support

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

Comments
  #2  
Old 06-24-2000, 11:18 AM
Guest
 
Posts: n/a
Default

Thanks Krucifyx,

But since I have a bunch of user titles setup I could just add an image tag to them and when the title changes so will the image.

Here is the first request for a fully functional old school Galaga hack
Reply With Quote
  #3  
Old 06-24-2000, 11:56 AM
Guest
 
Posts: n/a
Default

Hmm, ok. I really only made the hack to work on my PHP skills, since I only started a week ago or so.

So I'll go disect the original Galaga hack code and take a better look at it so I can figure it out.

Quick vote: The original Galaga hack had only 7 ranks. Should I change the code so that this hack only has 7, but that means you won't be able to add ranks via the admin panel.

I'll mane an alternative version anyway, just because.
Reply With Quote
  #4  
Old 06-24-2000, 12:08 PM
Guest
 
Posts: n/a
Default

Ok, here is the ORIGINAL Galaga hack. It really is very simple. Once I took a look at it, kinda felt silly I spent so much time on the other one. But I still learned a great deal about the vB and PHP.

Anyway, for the instructions. Open showthread.php, search for "$userpostcount=$userinfo[posts];" and underneath it add:

Code:
// --- vB Galaga Hack by TommyBoy
$RankNum = $userpostcount;
$rank = "";
while ($RankNum > 1) {
	if ($RankNum > 1000) {
		$rank = $rank . "<img src=\"images/ranks/7.gif\" border=0>";
		$RankNum -= 1000;
	} 
	elseif ($RankNum > 500) {
		$rank = $rank . "<img src=\"images/ranks/6.gif\" border=0>";
		$RankNum -= 500;
	}
	elseif ($RankNum > 100) {
		$rank = $rank . "<img src=\"images/ranks/5.gif\" border=0>";
		$RankNum -= 100;
	}
	elseif ($RankNum > 50) {
		$rank = $rank ."<img src=\"images/ranks/4.gif\" border=0>";
		$RankNum -= 50;
	}
	elseif ($RankNum > 10) {
		$rank = $rank ."<img src=\"images/ranks/3.gif\" border=0>";
		$RankNum -= 10;
	}
	elseif ($RankNum > 5) {
		$rank = $rank ."<img src=\"$images/ranks/2.gif\" border=0>";
		$RankNum -= 5;
	}
	else {
		$rank = $rank ."<img src=\"images/ranks/1.gif\" border=0>";
		$RankNum--;
	}
  $rank = $rank . "<br>";
}
// --- vB Galaga Hack by TommyBoy
Now in the template postbit, add $rank to wherever you want the images to be displayed.

You'll need to download the original zip for the 7 images, or make 7 of your own.
Reply With Quote
  #5  
Old 06-24-2000, 06:18 PM
Guest
 
Posts: n/a
Default

Great. I'll be attempting me first vB hack shortly

I'll do the easy part and provide the icons







Reply With Quote
  #6  
Old 06-25-2000, 06:03 PM
Guest
 
Posts: n/a
Default

I ran into a problem Krucifyx. The images are dispayed under each other instead of next to each other.

Also the original hack divided posts by 10. The way it is now generates to many images. How can you divided it by 10?

$RankNum = $userpostcount /10; maybe??
Reply With Quote
  #7  
Old 06-26-2000, 04:28 PM
Guest
 
Posts: n/a
Default

Nice hack... i'm replacing my starts addon right now...

For anyone else using this, you'll need to add a { at the end of if ($showranks==1) (typo it seems).

Additionally, the TINYINT fields in the ranks table are limited to 127 (that means no number over 127 will properly save). If you plan to have any ranks go over 127 posts, change TINYINT to INT.

If anyone wants to see an example, check out http://www.scubaboard.com/showthread.php?postid=34 (note: I changed the ranking icons to stars for now).

[Edited by ExtremeFactor on 06-27-2000 at 02:09 AM]
Reply With Quote
  #8  
Old 06-26-2000, 06:50 PM
Guest
 
Posts: n/a
Default

John
"
Rather than code hacking (I'm assuming that this is what you have done) why not just include HTML in the user titles?

eg.

Member<br><img="1star.gif" border=0>

etc.
"

bye
Reply With Quote
  #9  
Old 06-26-2000, 07:01 PM
Guest
 
Posts: n/a
Default

Well, if you have more than 5 users and less than 5 hours of free time a day, you quickly find that not having to change people's profiles every 10 seconds is a rather nice way go to
Reply With Quote
  #10  
Old 06-26-2000, 08:14 PM
Guest
 
Posts: n/a
Default

all you would have to do is make a few user title

so if the user has so many posts they go into another group.
when they go into that group say 1000 posts

they get 5 stars or something. so you dont have to edit there PROFILE's at all.
just make a new group and if that person has 1000 posts the person would get put into that group and have this under there name.

Super user<br><img="1star.gif" border=0><img="1star.gif" border=0><img="1star.gif" border=0><img="1star.gif" border=0><img="1star.gif" border=0>

kinda hard to explain. but i think you get the idea.
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 02:31 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.04210 seconds
  • Memory Usage 2,270KB
  • 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
  • (1)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_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
  • 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