PDA

View Full Version : starhack


ampario
29 Apr 2001, 17:27
Please can sombody chance the code below that it wil work with 8 stars .. i try it but it don't work





quote:
--------------------------------------------------------------------------------
Originally posted by furious
i test it with the vbb2 beta 4 and it works

edit showthread.php

find :

//$post[message].=$post[signature];

place below it :

// --- Stars Hack by Furious

$stars = "";


if ($post[usergroupid]==6 or $post[usergroupid]==5 or $post[usergroupid]==7 ) // admin, modo ou super modo
{
$starsgif_1 = '<img src="images/Admin1.gif">';
$starsgif_2 = '<img src="images/Admin2.gif">';
$starsgif_3 = '<img src="images/Admin3.gif">';
$starsgif_4 = '<img src="images/Admin4.gif">';
$starsgif_5 = '<img src="images/Admin5.gif">';

}
else // Enregistré
{
$starsgif_1 = '<img src="images/star1.gif">';
$starsgif_2 = '<img src="images/star2.gif">';
$starsgif_3 = '<img src="images/star3.gif">';
$starsgif_4 = '<img src="images/star4.gif">';
$starsgif_5 = '<img src="images/star5.gif">';
}

if ($post[usergroupid]==6 or $post[usergroupid]==5 or $post[usergroupid]==7 )
{ $stars .= $starsgif_1 . $starsgif_2 . $starsgif_3 . $starsgif_4 . $stargif_5; }

elseif ($post[posts] > 400 )
{ $stars .= $starsgif_1 . $starsgif_2 . $starsgif_3 . $starsgif_4 . stargif_5; }
elseif ($post[posts] > 200 )
{ $stars .= $starsgif_1 . $starsgif_2 . $starsgif_3 . $starsgif_4; }
elseif ($post[posts] > 100 )
{ $stars .= $starsgif_1 . $starsgif_2 . $starsgif_3; }
elseif ($post[posts] > 50 )
{ $stars .= $starsgif_1 . $starsgif_2; }
else // ($post[posts] > 0)
{ $stars .= $starsgif_1; }


// --- Stars Hack End


edit posbit template


find :

<table width="100%" cellpadding="4" cellspacing="1" border="0">
<tr><td width="100%">
<a name="post$post[postid]"></a>
$post[firstnewinsert]
<normalfont><B>$post[username]</B></normalfont><br>

and place below it :

$stars<br>

you can change the number of post for getting new stars, you can add much stars ...
if admin, modo ou super modo change their title the hack still work

Johnny
30 Apr 2001, 09:01
does nobody know, how the code must be changed for 8 stars?
pleazzzzz


Johnny

CGiFORCE
30 Apr 2001, 10:46
just modify this:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


into this


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


then u have 8 stars on over 400 posts..
but if you want 8 different stars do this:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


into this


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

ampario
30 Apr 2001, 12:58
I try it but it don"t work

tubedogg
30 Apr 2001, 21:34
Originally posted by CGiFORCE
but if you want 8 different stars do this:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


into this


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Actually the first bit should be changed to this:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



You could also try my stars hack. :D