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)
-   -   Gold Hack (currency hack) (https://vborg.vbsupport.ru/showthread.php?t=42752)

g-force2k2 08-27-2002 12:47 AM

you can't attached files Exaviour i just mean the part of the line of coding i asked you to change :p its only one line in each file :p just telling you to remove the files before someone else does ;) regards...

g-force2k2

g-force2k2 08-27-2002 12:53 AM

okay try this fix ;)

in both newreply.php and newthread.php

find:

PHP Code:

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

and replace with:

PHP Code:

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

see if that works now ;) im surprised that you didn't get an error :p

g-force2k2

[D]Vincent 08-27-2002 01:19 AM

Vincent]
Quote:

Originally posted by Lovaboye
sup an addition to my question above, how can i edit the amount of gold a person has in my admin options
Hey, I figured this out but I'm on my brother's labtop so I don't have my files to see what I did completely, as soon as I get on my computer I'll post the instructions.

[D]Vincent 08-27-2002 04:31 AM

Okay I got the instructions for admins to change their gold in admin CP. Okay after you install the hack do the following:
Open admin/user.php and find:

makeinputcode("Number of Posts","posts",$user[posts]);

Underneath that add:

makeinputcode("User Gold","gold",$user[gold],0);

Next find:

if ($posts=="") {
$posts=0;
}

Underneath that add:

if ($gold=="") {
$gold=0;
}

Next find:

$DB_site->query("UPDATE user SET birthday='$birthday',options='$options',usergroupi d='$usergroupid',username='".a ddslashes(htmlspecialchars($ausername))."'$pwdincl ude,email='".addslashes(htmlsp ecialchars($email))."',styleid='$userstyleid',pare ntemail='".addslashes(htmlspec ialchars($parentemail))."',coppauser=$coppauser,ho mepage='".addslashes(htmlspeci alchars($homepage))."',icq='".addslashes(htmlspeci alchars($icq))."',aim='".addsl ashes(htmlspecialchars($aim))."',yahoo='".addslash es(htmlspecialchars($yahoo))." ',signature='".addslashes($signature)."',adminemai l=$adminemail,showemail=$showe mail,invisible=$invisible,usertitle='".addslashes( $usertitle)."',customtitle=$cu stomtitle,joindate=$joindate,cookieuser=$cookieuse r,nosessionhash=$nosessionhash ,daysprune='$daysprune',lastvisit=$lastvisit,lasta ctivity=$lastactivity,lastpost =$lastpost,posts='$posts',timezoneoffset='$timezon eoffset',emailnotification=$em ailnotification,receivepm='$receivepm',emailonpm=' $emailonpm',ipaddress='".addsl ashes($aipaddress)."',pmpopup=IF(pmpopup=2 AND $pmpopup=1,pmpopup,'$pmpopup') WHERE userid=$userid");

Replace that with:

$DB_site->query("UPDATE user SET gold='$gold',birthday='$birthday',options='$option s',usergroupid='$usergroupid', username='".addslashes(htmlspecialchars($ausername ))."'$pwdinclude,email='".adds lashes(htmlspecialchars($email))."',styleid='$user styleid',parentemail='".addsla shes(htmlspecialchars($parentemail))."',coppauser= $coppauser,homepage='".addslas hes(htmlspecialchars($homepage))."',icq='".addslas hes(htmlspecialchars($icq))."' ,aim='".addslashes(htmlspecialchars($aim))."',yaho o='".addslashes(htmlspecialcha rs($yahoo))."',signature='".addslashes($signature) ."',adminemail=$adminemail,sho wemail=$showemail,invisible=$invisible,usertitle=' ".addslashes($usertitle)."',cu stomtitle=$customtitle,joindate=$joindate,cookieus er=$cookieuser,nosessionhash=$ nosessionhash,daysprune='$daysprune',lastvisit=$la stvisit,lastactivity=$lastacti vity,lastpost=$lastpost,posts='$posts',timezoneoff set='$timezoneoffset',emailnot ification=$emailnotification,receivepm='$receivepm ',emailonpm='$emailonpm',ipadd ress='".addslashes($aipaddress)."',pmpopup=IF(pmpo pup=2 AND $pmpopup=1,pmpopup,'$pmpopup') WHERE userid=$userid");

Save and upload and now you can change their gold from Admin CP. If you want the one for taking off gold the same way as giving them gold from postbit then just ask me to post that and I will.

ExAvIoUr 08-27-2002 02:05 PM

well it didn't work. i can post and everything with no problems. but not gold.

well he is oringal part of the code b4 i modified it

PHP Code:

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


g-force2k2 08-27-2002 02:27 PM

im not really sure why it didn't work... did you configure the values and run queries to create the default values for each forum? regards...

g-force2k2

ExAvIoUr 08-27-2002 02:51 PM

i might of ran a query to create the default values for each forum.

not sure though.

g-force2k2 08-27-2002 02:52 PM

PHP Code:

UPDATE forum SET goldpp='{put value here}' WHERE forumid != 

run that query but remember to place the {put value here} with the number you want to set for the default... regards...

g-force2k2

ExAvIoUr 08-27-2002 03:01 PM

nothing happened. i just un-install it. i might of done something wrong.

ExAvIoUr 08-28-2002 12:07 AM

how do i take out the added stuff to the table that i did when i ran the queries????


All times are GMT. The time now is 05:17 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.02902 seconds
  • Memory Usage 1,758KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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