The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Hi, I am about to switch from UBB to vB and my users would probably kill me if they don't have their Galaga shields anymore. As stupid as it seems it is by far the hack they like the most. Here is the code for vB (does it need ot be changed, cannot test it since I can't find where to insert it in vB 2). If the code is still good to go, where would I add it to showthread.php?
vB1.x instructions : Open showthread.php, search for "$userpostcount=$userinfo[posts];" and underneath it add: Code:
// --- vB Galaga Hack by TommyBoy $RankNum = $userpostcount / 10; $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 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|