![]() |
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. |
Um... Looks like the star number isn't reseted every post.
Post here the code for the hack. |
|
There are like 6 versions of the hack in that thread only, please post the code you are using.
|
i cant remember which 1 im using
|
Then open functions.php in your favorite text editor, find what we are looking for, copy it and paste it here.
|
what part do u want
|
The part of the hack of course.
|
can i just email you the file?
|
can i just icq you the file?
|
//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! |
Like I thought.
Right after PHP Code:
PHP Code:
|
Yeah,
PHP Code:
|
I modified the code a bit, and I suggest using this, as it is at least 3 times smaller:
PHP Code:
Sneakz, thanks for repeating me. :p;) |
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. |
I believe my code is right. Try it and share with us...
|
still dont work
|
It works for me. Something else must be wrong.
|
if i give u ftp and cp access will u fix it
|
If I don't know what is wrong I cannot fix it.
|
you can just have a look round
|
I guess... PM the FTP access. No need in admin access, just keep $stars where you want it in your postbit template.
|
I will need an account on the forum to see what I'm doing.
|
ok i have sent u the info by pm
|
It's done.
|
All times are GMT. The time now is 01:25 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|