View Full Version : star hacks for vbb2
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
04-17-2001, 06:43 AM
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
04-17-2001, 10:48 AM
not showthread template but showthread.php :)
Johnny
04-17-2001, 10:54 AM
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
04-17-2001, 11:03 AM
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
04-17-2001, 01:02 PM
it works, im sure
i put pokemon for the stars
Johnny
04-17-2001, 01:30 PM
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
04-17-2001, 01:37 PM
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
04-17-2001, 03:44 PM
I think you can easyly do it with html in usertitle.
tubedogg
04-17-2001, 05:23 PM
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
04-17-2001, 07:54 PM
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
04-17-2001, 10:24 PM
what vbb do you have?
Degen
04-18-2001, 04:43 AM
2.0.0 beta 2
Johnny
04-18-2001, 01:33 PM
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
04-28-2001, 11:20 AM
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
05-20-2001, 12:36 PM
i edit the script and it works now
zarkov
05-20-2001, 10:58 PM
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
06-27-2001, 07:16 AM
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
06-27-2001, 11:43 AM
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
07-27-2001, 09:50 AM
Originally posted by ztsky
I think you can easyly do it with html in usertitle.
agree with you ! ;)
drives_fast
07-30-2001, 02:57 AM
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
09-09-2001, 05:20 PM
It won't work in vb2.03. Any ideas anyone. It's the showthread.php bit???
Ordovicium
04-05-2002, 01:21 PM
I am useing Version 2.2.5, and the hack by furious didn't work.
But I found another way to install this great Hack:
Find in admin/functions.php:
$post[joindate]=vbdate($registereddateformat,$post[joindate]);
and directly after it add this...
// ###################################
// Start of the Star Hack
//###################################
unset($stars);
// Bilder laden je nach User-Gruppe
if ($post[usergroupid]==6 or $post[usergroupid]==5 or $post[usergroupid]==7 or $post[usergroupid]==8) {
$starsgif_1 = '<img src="stars/Admin1.gif">';
} else {
$starsgif_1 = '<img src="stars/0stars.gif">';
$starsgif_2 = '<img src="stars/1stars.gif">';
$starsgif_3 = '<img src="stars/2stars.gif">';
$starsgif_4 = '<img src="stars/3stars.gif">';
$starsgif_5 = '<img src="stars/4stars.gif">';
$starsgif_6 = '<img src="stars/5stars.gif">';
$starsgif_7 = '<img src="stars/6stars.gif">';
}
if ($post[usergroupid]==6 ) {
$stars = $starsgif_1 . $starsgif_2 . $starsgif_3 . $starsgif_4 . $starsgif_5;
} elseif ($post[usergroupid]==7) {
$stars = $starsgif_1 . $starsgif_2 . $starsgif_3;
} elseif ($post[usergroupid]==5 ) {
$stars = $starsgif_1 . $starsgif_2 . $starsgif_3 . $starsgif_4;
} else {
if ($post[posts] > 1000 )
{ $stars = $starsgif_7; }
elseif ($post[posts] > 120 )
{ $stars = $starsgif_6; }
elseif ($post[posts] > 90 )
{ $stars = $starsgif_5; }
elseif ($post[posts] > 60 )
{ $stars = $starsgif_4; }
elseif ($post[posts] > 30 )
{ $stars = $starsgif_3; }
elseif ($post[posts] > 10 )
{ $stars = $starsgif_2; }
else
{ $stars = $starsgif_1; }
}
// ###################################
// End of Star Hack
// ###################################
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>
In this Version I have more than one image with stars.
One image with 1 Star
One image with 2 Stars
...........
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.