vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   massive error with the stars hack (https://vborg.vbsupport.ru/showthread.php?t=26124)

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/showthrea...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
PHP Code:

//START STARHACK! 

add
PHP Code:

$stars ""


Sneakz 08-22-2001 05:11 PM

Yeah,

PHP Code:

// --- 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:
PHP Code:

//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]==|| $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.


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
  • Page Generation 0.01702 seconds
  • Memory Usage 1,811KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (25)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete