PDA

View Full Version : star hacks for vbb2



furious
Tue 17th Apr '01, 1:10am
i test it with the vbb2 beta 4 and it works

edit showthread.php

find :

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

place below it :


// --- Stars Hack
$stars = "";


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

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

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

elseif ($post[posts] > 400 )
{ $stars .= $starsgif_1 . $starsgif_2 . $starsgif_3 . $starsgif_4. $starsgif_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
Tue 17th Apr '01, 4:43am
In the showthread template. i can't find there "//$post[message].=$post[signature]; "

i've looked very good but i can't find it!
someone else?

i hope so!
I've been looking a whole time for a star hack! now I found one but I can't find that text :(

Furious where can i find it exactly?
or maybe someone else knows the answer?

Johnny

furious
Tue 17th Apr '01, 8:48am
not showthread template but showthread.php :)

Johnny
Tue 17th Apr '01, 8:54am
o do you mean that i don't must change it in the cp but on the file himself?

ok tnx! I hope that it works!

Johnny

Johnny
Tue 17th Apr '01, 9:03am
Ok I found showthread.php
But do you seriously know that it works?

do you have the stars to on your own board?
yes? what;s than the url of your board, than i can have al look at the stars :D

GreetZ,
Johnny

furious
Tue 17th Apr '01, 11:02am
it works, im sure
i put pokemon for the stars

Johnny
Tue 17th Apr '01, 11:30am
the url isn;t work :(
but this:

$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">';

I don;t have those images on my server called admin1.gif

can you maybe help me whit adding the hack!
do you have ICQ, MSN or something?

Johnny

furious
Tue 17th Apr '01, 11:37am
i have icq

for the gif simply upload to the images folder the gif you want for admin1.gif ...

my uin is 97138177

my host is down for the moment

ztsky
Tue 17th Apr '01, 1:44pm
I think you can easyly do it with html in usertitle.

tubedogg
Tue 17th Apr '01, 3:23pm
or you could try the stars hack in my sig.

ztsky is right, you could do stars with HTML in the title field, but it will be limited (the field is limited to 256 characters).

Degen
Tue 17th Apr '01, 5:54pm
It works for me, but it's only showing 4 stars instead of 5 (I am logged in as an Administrator). Anyway to fix this?

Thanks

furious
Tue 17th Apr '01, 8:24pm
what vbb do you have?

Degen
Wed 18th Apr '01, 2:43am
2.0.0 beta 2

Johnny
Wed 18th Apr '01, 11:33am
How can I get than stars with using html in the usertitles?
Is there a template for or something?
if it is yes; what's the name of that template and what must be changed to get the stars!

I only want that de admin and the moderators stars have! :D

GreetZ,
Johnny

ampario
Sat 28th Apr '01, 9:20am
Please can sombody chance the code below that it wil work with 8 stars .. i try it but it don't work




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

furious
Sun 20th May '01, 10:36am
i edit the script and it works now

Zarkov
Sun 20th May '01, 8:58pm
ampario, here is the modified script to use 8 stars.

change the number of posts for each additional star if you want.




// --- 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">';
$starsgif_6 = '<img src="images/Admin6.gif">';
$starsgif_7 = '<img src="images/Admin7.gif">';
$starsgif_8 = '<img src="images/Admin8.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">';
$starsgif_6 = '<img src="images/star6.gif">';
$starsgif_7 = '<img src="images/star7.gif">';
$starsgif_8 = '<img src="images/star8.gif">';
}

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

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


// --- Stars Hack End



Hope this helps.

lichtflits
Wed 27th Jun '01, 5:16am
can anybody make this hack so that a admin one more star had than an moderator or a supermoderator?

I have thry every but it don't work :(

Deacon Frost
Wed 27th Jun '01, 9:43am
At our Community, we also did a Stars-Hack. I just Post it, because I think it's self-explainig :)

Frist, create a file called "stars.php". Put the following Code in.


<?php

unset($stars);
if ($post[usergroupid]==38 || $post[usergroupid]==17)
// Adminstars
$starsroot = '<img src="star/star1.gif"><img src="star/star300s.gif"><img src="star/star100s.gif"><img src="star/stars.gif"><img src="star/star140s.gif"><img src="star/star1.gif"><img src="star/star140s.gif"><img src="star/stars.gif"><img src="star/star100s.gif"><img src="star/star300s.gif"><img src="star/star1.gif">';
elseif ($post[usergroupid]==35 || $post[usergroupid]==65)
// Supermodstars
$starsadmin = '<img src="star/star1.gif"><img src="star/star300s.gif"><img src="star/stars.gif"><img src="star/star140s.gif"><img src="star/star1.gif"><img src="star/star140s.gif"><img src="star/stars.gif"><img src="star/star300s.gif"><img src="star/star1.gif">';
else
// Alle anderen User
$stars1 = '<img src="star/stars.gif">';
$stars2 = '<img src="star/stars.gif"><img src="star/stars.gif">';
$stars3 = '<img src="star/stars.gif"><img src="star/stars.gif"><img src="star/stars.gif">';
$stars4 = '<img src="star/stars.gif"><img src="star/stars.gif"><img src="star/stars.gif"><img src="star/stars.gif">';
$stars5 = '<img src="star/stars.gif"><img src="star/stars.gif"><img src="star/stars.gif"><img src="star/stars.gif"><img src="star/stars.gif">';
$stars6 = '<img src="star/stars.gif"><img src="star/stars.gif"><img src="star/stars.gif"><img src="star/stars.gif"><img src="star/stars.gif"><img src="star/stars.gif">';
$stars7 = '<img src="star/star1.gif">';
$stars8 = '<img src="star/star1.gif"><img src="star/star1.gif">';
$stars9 = '<img src="star/star1.gif"><img src="star/star1.gif"><img src="star/star1.gif">';
$stars10 = '<img src="star/star1.gif"><img src="star/star1.gif"><img src="star/star1.gif"><img src="star/star1.gif">';
$stars11 = '<img src="star/star1.gif"><img src="star/star1.gif"><img src="star/star1.gif"><img src="star/star1.gif"><img src="star/star1.gif">';
$stars12 = '<img src="star/star1.gif"><img src="star/star1.gif"><img src="star/star1.gif"><img src="star/star1.gif"><img src="star/star1.gif"><img src="star/star1.gif">';
$stars13 = '<img src="star/star180s.gif">';
$stars14 = '<img src="star/star180s.gif"><img src="star/star180s.gif">';
$stars15 = '<img src="star/star180s.gif"><img src="star/star180s.gif"><img src="star/star180s.gif">';
$stars16 = '<img src="star/star180s.gif"><img src="star/star180s.gif"><img src="star/star180s.gif"><img src="star/star180s.gif">';
$stars17 = '<img src="star/star180s.gif"><img src="star/star180s.gif"><img src="star/star180s.gif"><img src="star/star180s.gif"><img src="star/star180s.gif">';
$stars18 = '<img src="star/star180s.gif"><img src="star/star180s.gif"><img src="star/star180s.gif"><img src="star/star180s.gif"><img src="star/star180s.gif"><img src="star/star180s.gif">';
$stars19 = '<img src="star/star220s.gif">';
$stars20 = '<img src="star/star220s.gif"><img src="star/star220s.gif">';
$stars21 = '<img src="star/star220s.gif"><img src="star/star220s.gif"><img src="star/star220s.gif">';
$stars22 = '<img src="star/star220s.gif"><img src="star/star220s.gif"><img src="star/star220s.gif"><img src="star/star220s.gif">';
$stars23 = '<img src="star/star220s.gif"><img src="star/star220s.gif"><img src="star/star220s.gif"><img src="star/star220s.gif"><img src="star/star220s.gif">';
$stars24 = '<img src="star/star220s.gif"><img src="star/star220s.gif"><img src="star/star220s.gif"><img src="star/star220s.gif"><img src="star/star220s.gif"><img src="star/star220s.gif">';
$stars25 = '<img src="star/star100s.gif">';
$stars26 = '<img src="star/star100s.gif"><img src="star/star100s.gif">';
$stars27 = '<img src="star/star100s.gif"><img src="star/star100s.gif"><img src="star/star100s.gif">';
$stars28 = '<img src="star/star100s.gif"><img src="star/star100s.gif"><img src="star/star100s.gif"><img src="star/star100s.gif">';
$stars29 = '<img src="star/star100s.gif"><img src="star/star100s.gif"><img src="star/star100s.gif"><img src="star/star100s.gif"><img src="star/star100s.gif">';
$stars30 = '<img src="star/star100s.gif"><img src="star/star100s.gif"><img src="star/star100s.gif"><img src="star/star100s.gif"><img src="star/star100s.gif"><img src="star/star100s.gif">';

if ($post[usergroupid]==38 || $post[usergroupid]==17)
$stars .= $starsroot;
elseif ($post[usergroupid]==65 || $post[usergroupid]==35)
$stars .= $starsadmin;
elseif ($post[posts] > 9999)
$stars .= $stars30;
elseif ($post[posts] > 9499)
$stars .= $stars29;
elseif ($post[posts] > 8999)
$stars .= $stars28;
elseif ($post[posts] > 8699)
$stars .= $stars27;
elseif ($post[posts] > 8399)
$stars .= $stars26;
elseif ($post[posts] > 7999)
$stars .= $stars25;
elseif ($post[posts] > 7499)
$stars .= $stars24;
elseif ($post[posts] > 6999)
$stars .= $stars23;
elseif ($post[posts] > 6499)
$stars .= $stars22;
elseif ($post[posts] > 5999)
$stars .= $stars21;
elseif ($post[posts] > 5499)
$stars .= $stars20;
elseif ($post[posts] > 4999)
$stars .= $stars19;
elseif ($post[posts] > 4599)
$stars .= $stars18;
elseif ($post[posts] > 4199)
$stars .= $stars17;
elseif ($post[posts] > 3799)
$stars .= $stars16;
elseif ($post[posts] > 3499)
$stars .= $stars15;
elseif ($post[posts] > 3199)
$stars .= $stars14;
elseif ($post[posts] > 2899)
$stars .= $stars13;
elseif ($post[posts] > 2599)
$stars .= $stars12;
elseif ($post[posts] > 2199)
$stars .= $stars11;
elseif ($post[posts] > 1999)
$stars .= $stars10;
elseif ($post[posts] > 1749)
$stars .= $stars9;
elseif ($post[posts] > 1499)
$stars .= $stars8;
elseif ($post[posts] > 1199)
$stars .= $stars7;
elseif ($post[posts] > 949)
$stars .= $stars6;
elseif ($post[posts] > 699)
$stars .= $stars5;
elseif ($post[posts] > 549)
$stars .= $stars4;
elseif ($post[posts] > 399)
$stars .= $stars3;
elseif ($post[posts] > 249)
$stars .= $stars2;
elseif ($post[posts] > 24)
$stars .= $stars1;
if (!$stars)
$stars = '<br>';
else
$stars .= '<br><br>';
?>

Then search in showthread.php for while ($post=$DB_site->fetch_array($posts) and $counter++<$perpage) { an right after that add include('stars.php');

Then edit the postbit template (include the $stars-variable).

With that hack, you can have different star-colours an differend numbers of stars for every user-group.

In attach you'll find our star-images.

Kengan
Fri 27th Jul '01, 7:50am
Originally posted by ztsky
I think you can easyly do it with html in usertitle.

agree with you ! ;)

Flack Jacket
Mon 30th Jul '01, 12:57am
Okay....now that I have done the hack 2 posts above my forum doesnt work anymore. I get this error:

There seems to have been a slight problem with the database. Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.

I put everything back the way it was but it still doesnt work.......can anyone explain why this is?

smelialichu
Sun 9th Sep '01, 3:20pm
It won't work in vb2.03. Any ideas anyone. It's the showthread.php bit???