vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Stars v0.2.3 (https://vborg.vbsupport.ru/showthread.php?t=19081)

Darker Lord 02-05-2003 12:53 AM

Um, when I am installing, when I go to this step:

**Find

maketableheader("Update Users Info</b> - </b>updates user titles<b>","",0);

**and replace with

maketableheader("Update Users Info</b> - </b>updates user titles and stars<b>","",0);

This is in the file Admin/Misc.php

Anyhow, that line can't be found. Please help!

Shadow_NL 02-19-2003 03:31 PM

When I'm editing my files I also need to edit this:

root/newthread.php

Step 2 of 2 find:

$DB_site->query("UPDATE user SET
".iif ($foruminfo[countposts],"posts=posts+1,","")."
$dotitle"."lastpost='".time()."' WHERE userid='$bbuserinfo[userid]'");

I couldn't find it, till I noticed that I already changed it with Zajako's RPG hack to:

// Zajako's Rpg hack pay per post
$DB_site->query("UPDATE user SET ".iif ($foruminfo[countposts],"posts=posts+1,","")." $dotitle"."lastpost='".time()."',rpgmoney=rpgmoney +'$moneynewthread' WHERE userid='$bbuserinfo[userid]'");
}
// end zajako's rpg hack pay per post

How can I edit this to the right code which is needed to install this stars hack? I don't want to drop Zajako's RPG hack ofcourse.

Thanks in advance.

Jacko 02-27-2003 08:16 PM

Quote:

Originally posted by Marcel tha Mast
yes and it works!
may i ask how :rolleyes: :cheeky:

Jacko 03-02-2003 05:21 PM

Anyone got this to work on 2.2.9 yet??

if so can they MSN me??

monstergamer 03-12-2003 10:25 PM

i ran the installer and it finesh but idont see any thing

Serge 03-13-2003 01:22 AM

Quote:

Originally posted by Shadow_NL
When I'm editing my files I also need to edit this:

root/newthread.php

Step 2 of 2 find:

$DB_site->query("UPDATE user SET
".iif ($foruminfo[countposts],"posts=posts+1,","")."
$dotitle"."lastpost='".time()."' WHERE userid='$bbuserinfo[userid]'");

I couldn't find it, till I noticed that I already changed it with Zajako's RPG hack to:

// Zajako's Rpg hack pay per post
$DB_site->query("UPDATE user SET ".iif ($foruminfo[countposts],"posts=posts+1,","")." $dotitle"."lastpost='".time()."',rpgmoney=rpgmoney +'$moneynewthread' WHERE userid='$bbuserinfo[userid]'");
}
// end zajako's rpg hack pay per post

How can I edit this to the right code which is needed to install this stars hack? I don't want to drop Zajako's RPG hack ofcourse.

Thanks in advance.

Ok well the only thing that you added with Zajako's hack is:

PHP Code:

rpgmoney=rpgmoney+'$moneynewthread' 

If you could post the change you have to make I can give you something to replace with because it is just a matter of finding the differences and makeing it that way.

Shadow_NL 03-17-2003 05:24 PM

Find:

$DB_site->query("UPDATE user SET
".iif ($foruminfo[countposts],"posts=posts+1,","")."
$dotitle"."lastpost='".time()."' WHERE userid='$bbuserinfo[userid]'");
}

CHANGE it to:

// Zajako's Rpg hack pay per post
$rpgadmin = $DB_site->query_first("SELECT * FROM rpgmoneyadmin");
$payme=$rpgadmin[newthread];
$DB_site->query("UPDATE user SET ".iif ($foruminfo[countposts],"posts=posts+1,","")." $dotitle"."lastpost='".time()."',rpgmoney=rpgmoney +'$payme' WHERE userid='$bbuserinfo[userid]'");
}
// end zajako's rpg hack pay per post

catocom2 03-18-2003 04:35 AM

I need a slight bit of help on the index.php.

I installed this hack way back at ver 2.0.0.
It worked fine until I hada hacker crash my database for me. :ermm:
Anyway I'v installed updates up to 2.0.3, and ran the
forum for quite a while without stars, although the old
stars.php, and my star graphics where in place.
(also the database tables were still ok.)
I recently upgraded to 2.3.0, and decided to try this
again.
I did the upgrade, and ther were some slight changes, but I
got it working great.
The only problem I have is I made the new stars catigory
in the index.php, but since it's change so much I can't figure
out how to get the "add" & "modify" catigories under the header.
I uploaded the new stars.php, and if I go directly to it, everything
is in place. I just would like to get to it through the admin cp.

Thanks
This is still a great hack. :banana:

I stuck this in the index ????
Code:

//<!-- Stars Hack -->
maketableheader("User Stars");
makenavoption("Modify","stars.php?action=add","|");
makenavoption("Modify","stars.php?action=modify");
//<!-- Stars Hack End -->


catocom2 03-18-2003 04:46 AM

eh
nevermind I forgot I save this text file...
Got it working. :banana:

Code:

//Stars Hack
makenavoption("Add","stars.php?action=add","<br>");
makenavoption("Modify","stars.php?action=modify","<br>");
makenavselect("User Stars");
//End Stars Hack

Adaption Instructions by damicatz

Thanks Tubedogg and damicatz.

floridaideal 03-18-2003 08:19 AM

Hi all

I am really getting down with this hack, I went by the instructions and have changed all the files and used the modified code but then I started getting errors.

First was my registration, I could not see a way out so I replaced my hacked registration page with the original one. All seems ok and no difference to the hack.....or will it?

Now I just tried to modify a user group and I am getting '
Parse error: parse error, unexpected $ in /home/virtual/site76/fst/var/www/html/forum/admin/usergroup.php on line 308'

I did everything by the book, btw is there a copy of the stars.txt file that I can download so I can have another go and editing the files, the only information was in the installation file which I cant read again without wiping my tables.

Please someone, I am in urgent need of some help, thank you.


All times are GMT. The time now is 05:34 PM.

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.03632 seconds
  • Memory Usage 1,746KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete