The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||
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
|
Comments |
#2
|
|||
|
|||
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 |
#3
|
|||
|
|||
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. |
#4
|
|||
|
|||
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 You'll need to download the original zip for the 7 images, or make 7 of your own. |
#5
|
|||
|
|||
Great. I'll be attempting me first vB hack shortly
I'll do the easy part and provide the icons |
#6
|
|||
|
|||
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?? |
#7
|
|||
|
|||
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] |
#8
|
|||
|
|||
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 |
#9
|
|||
|
|||
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
|
#10
|
|||
|
|||
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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|