View Full Version : massive error with the stars hack
weezle
08-22-2001, 03:50 PM
look at this pic
http://www.tony.smith19.btinternet.co.uk/stars.jpg
can someone explain whats wrong with the stars hack and tell me how i can fix it.
Admin
08-22-2001, 03:53 PM
Um... Looks like the star number isn't reseted every post.
Post here the code for the hack.
weezle
08-22-2001, 04:01 PM
i got all the code from here
http://vbulletin.com/forum/showthread.php?s=&threadid=24411
Admin
08-22-2001, 04:12 PM
There are like 6 versions of the hack in that thread only, please post the code you are using.
weezle
08-22-2001, 04:16 PM
i cant remember which 1 im using
Admin
08-22-2001, 04:26 PM
Then open functions.php in your favorite text editor, find what we are looking for, copy it and paste it here.
weezle
08-22-2001, 04:37 PM
what part do u want
Admin
08-22-2001, 04:46 PM
The part of the hack of course.
weezle
08-22-2001, 04:50 PM
can i just email you the file?
weezle
08-22-2001, 04:51 PM
can i just icq you the file?
weezle
08-22-2001, 05:06 PM
//START STARHACK!
if ($post[userid]==316) {
$stars .= "<img src=\"images/stars/blau.gif\">";
$stars .= "<img src=\"images/stars/blau.gif\">";
$stars .= "<img src=\"images/stars/blau.gif\">";
$stars .= "<img src=\"images/stars/blau.gif\">";
$stars .= "<img src=\"images/stars/blau.gif\">";
$stars .= "<img src=\"images/stars/blau.gif\">";
$stars .= "<img src=\"images/stars/blau.gif\">";
$stars .= "<img src=\"images/stars/blau.gif\">";
$stars .= "<img src=\"images/stars/blau.gif\">";
$stars .= "<img src=\"images/stars/blau.gif\"><br>";
$post[usertitle] = "<font color=\"blue\">$post[usertitle]in</font>"; }
elseif ($post[usergroupid]==5 || $post[usergroupid]==6) {
$stars .= "<img src=\"images/stars/admin.gif\">";
$stars .= "<img src=\"images/stars/admin.gif\">";
$stars .= "<img src=\"images/stars/admin.gif\">";
$stars .= "<img src=\"images/stars/admin.gif\">";
$stars .= "<img src=\"images/stars/admin.gif\">";
$stars .= "<img src=\"images/stars/admin.gif\">";
$stars .= "<img src=\"images/stars/admin.gif\">";
$stars .= "<img src=\"images/stars/admin.gif\">";
$stars .= "<img src=\"images/stars/admin.gif\">";
$stars .= "<img src=\"images/stars/admin.gif\"><br>";
$post[usertitle] = "<font color=\"#ffffff\">$post[usertitle]</font>"; }
elseif ($post[usergroupid]==7) {
$stars .= "<img src=\"images/stars/mod.gif\">";
$stars .= "<img src=\"images/stars/mod.gif\">";
$stars .= "<img src=\"images/stars/mod.gif\">";
$stars .= "<img src=\"images/stars/mod.gif\">";
$stars .= "<img src=\"images/stars/mod.gif\">";
$stars .= "<img src=\"images/stars/mod.gif\">";
$stars .= "<img src=\"images/stars/mod.gif\">";
$stars .= "<img src=\"images/stars/mod.gif\">";
$stars .= "<img src=\"images/stars/mod.gif\">";
$stars .= "<img src=\"images/stars/mod.gif\"><br>";
$post[usertitle] = "<font color=\"green\">$post[usertitle]</font>"; }
elseif ($post[posts] > 1999) {
$stars .= "<img src=\"images/stars/user.gif\">";
$stars .= "<img src=\"images/stars/user.gif\">";
$stars .= "<img src=\"images/stars/user.gif\">";
$stars .= "<img src=\"images/stars/user.gif\">";
$stars .= "<img src=\"images/stars/user.gif\">";
$stars .= "<img src=\"images/stars/user.gif\">";
$stars .= "<img src=\"images/stars/user.gif\">";
$stars .= "<img src=\"images/stars/user.gif\">";
$stars .= "<img src=\"images/stars/user.gif\">";
$stars .= "<img src=\"images/stars/user.gif\"><br>"; }
elseif ($post[posts] > 999) {
$stars .= "<img src=\"images/stars/user.gif\">";
$stars .= "<img src=\"images/stars/user.gif\">";
$stars .= "<img src=\"images/stars/user.gif\">";
$stars .= "<img src=\"images/stars/user.gif\">";
$stars .= "<img src=\"images/stars/user.gif\">";
$stars .= "<img src=\"images/stars/user.gif\">";
$stars .= "<img src=\"images/stars/user.gif\">";
$stars .= "<img src=\"images/stars/user.gif\">";
$stars .= "<img src=\"images/stars/user.gif\"><br>"; }
elseif ($post[posts] > 799) {
$stars .= "<img src=\"images/stars/user.gif\">";
$stars .= "<img src=\"images/stars/user.gif\">";
$stars .= "<img src=\"images/stars/user.gif\">";
$stars .= "<img src=\"images/stars/user.gif\">";
$stars .= "<img src=\"images/stars/user.gif\">";
$stars .= "<img src=\"images/stars/user.gif\">";
$stars .= "<img src=\"images/stars/user.gif\">";
$stars .= "<img src=\"images/stars/user.gif\"><br>"; }
elseif ($post[posts] > 599) {
$stars .= "<img src=\"images/stars/user.gif\">";
$stars .= "<img src=\"images/stars/user.gif\">";
$stars .= "<img src=\"images/stars/user.gif\">";
$stars .= "<img src=\"images/stars/user.gif\">";
$stars .= "<img src=\"images/stars/user.gif\">";
$stars .= "<img src=\"images/stars/user.gif\">";
$stars .= "<img src=\"images/stars/user.gif\"><br>"; }
elseif ($post[posts] > 399) {
$stars .= "<img src=\"images/stars/user.gif\">";
$stars .= "<img src=\"images/stars/user.gif\">";
$stars .= "<img src=\"images/stars/user.gif\">";
$stars .= "<img src=\"images/stars/user.gif\">";
$stars .= "<img src=\"images/stars/user.gif\">";
$stars .= "<img src=\"images/stars/user.gif\"><br>"; }
elseif ($post[posts] > 299) {
$stars .= "<img src=\"images/stars/user.gif\">";
$stars .= "<img src=\"images/stars/user.gif\">";
$stars .= "<img src=\"images/stars/user.gif\">";
$stars .= "<img src=\"images/stars/user.gif\">";
$stars .= "<img src=\"images/stars/user.gif\"><br>"; }
elseif ($post[posts] > 199) {
$stars .= "<img src=\"images/stars/user.gif\">";
$stars .= "<img src=\"images/stars/user.gif\">";
$stars .= "<img src=\"images/stars/user.gif\">";
$stars .= "<img src=\"images/stars/user.gif\"><br>"; }
elseif ($post[posts] > 99) {
$stars .= "<img src=\"images/stars/user.gif\">";
$stars .= "<img src=\"images/stars/user.gif\">";
$stars .= "<img src=\"images/stars/user.gif\"><br>"; }
elseif ($post[posts] > 49) {
$stars .= "<img src=\"images/stars/user.gif\">";
$stars .= "<img src=\"images/stars/user.gif\"><br>"; }
elseif ($post[posts] > 9) {
$stars .= "<img src=\"images/stars/user.gif\"><br>"; }
//END STARHACK!
Admin
08-22-2001, 05:10 PM
Like I thought.
Right after
//START STARHACK!
add
$stars = "";
Sneakz
08-22-2001, 05:11 PM
Yeah,
// --- Stars Hack
$stars = "";
now it has to work m8 :D
Admin
08-22-2001, 05:23 PM
I modified the code a bit, and I suggest using this, as it is at least 3 times smaller:
//START STARHACK!
$stars = "";
if ($post[userid]==316) {
for ($i=0; $i<10; $i++) {
$stars .= "<img src=\"images/stars/blau.gif\">";
}
$stars .= "<br>";
$post[usertitle] = "<font color=\"blue\">$post[usertitle]in</font>";
} elseif ($post[usergroupid]==5 || $post[usergroupid]==6) {
for ($i=0; $i<10; $i++) {
$stars .= "<img src=\"images/stars/admin.gif\">";
}
$stars .= "<br>";
$post[usertitle] = "<font color=\"#ffffff\">$post[usertitle]</font>";
} elseif ($post[usergroupid]==7) {
for ($i=0; $i<10; $i++) {
$stars .= "<img src=\"images/stars/mod.gif\">";
}
$stars .= "<br>";
$post[usertitle] = "<font color=\"green\">$post[usertitle]</font>";
} else {
if ($post[posts] > 1999) {
$stars .= "<img src=\"images/stars/user.gif\">";
}
if ($post[posts] > 999) {
$stars .= "<img src=\"images/stars/user.gif\">";
}
if ($post[posts] > 799) {
$stars .= "<img src=\"images/stars/user.gif\">";
}
if ($post[posts] > 599) {
$stars .= "<img src=\"images/stars/user.gif\">";
}
if ($post[posts] > 399) {
$stars .= "<img src=\"images/stars/user.gif\">";
}
if ($post[posts] > 299) {
$stars .= "<img src=\"images/stars/user.gif\">";
}
if ($post[posts] > 199) {
$stars .= "<img src=\"images/stars/user.gif\">";
}
if ($post[posts] > 99) {
$stars .= "<img src=\"images/stars/user.gif\">";
}
if ($post[posts] > 49) {
$stars .= "<img src=\"images/stars/user.gif\">";
}
if ($post[posts] > 9) {
$stars .= "<img src=\"images/stars/user.gif\"><br>";
}
}
//END STARHACK!
Sneakz, thanks for repeating me. :p;)
weezle
08-22-2001, 05:29 PM
are you sure this is right:
//START STARHACK!
$stars = "";
if ($post[userid]==316) {
for ($i=0; $i<10; $i++) {
$stars .= "<img src=\"images/stars/blau.gif\">";
taken from the code u said to use.
Admin
08-22-2001, 05:32 PM
I believe my code is right. Try it and share with us...
weezle
08-22-2001, 05:40 PM
still dont work
Admin
08-22-2001, 05:45 PM
It works for me. Something else must be wrong.
weezle
08-22-2001, 05:47 PM
if i give u ftp and cp access will u fix it
Admin
08-22-2001, 05:50 PM
If I don't know what is wrong I cannot fix it.
weezle
08-22-2001, 05:51 PM
you can just have a look round
Admin
08-22-2001, 05:53 PM
I guess... PM the FTP access. No need in admin access, just keep $stars where you want it in your postbit template.
Admin
08-22-2001, 06:11 PM
I will need an account on the forum to see what I'm doing.
weezle
08-22-2001, 06:28 PM
ok i have sent u the info by pm
Admin
08-22-2001, 07:04 PM
It's done.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.