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????

g-force2k2 08-28-2002 02:30 AM

PHP Code:

ALTER TABLE forum DROP countgold
ALTER TABLE forum DROP goldpp 

regards...

g-force2k2

ExAvIoUr 08-28-2002 02:21 PM

thanx.

kmfdm_kid2000 08-29-2002 11:18 AM

When trying to set Amounts where users earn gold from different forums in the Admin CP, I get the following Database Error:

PHP Code:

Database error in vBulletin Control Panel 2.2.6:

Invalid SQLUPDATE forum
SET
styleid
='1'title='The Senate'description='All Staff voting issues to be held here, and displayed publically. High Staff may make threads, to bring up issues demanded by the public. Mods may reply, and the public may view.',
active='1'displayorder='1'parentid='41'parentlist='42,41,-1',
allowposting='1'cancontainthreads='1'daysprune='1000',
newpostemail=''newthreademail='',
moderatenew='0'allowhtml='1'allowbbcode='1',
allowimages='1'allowsmilies='1'allowicons='1',
styleoverride='0'allowratings='1'countposts='1',
                     
moderateattach='0'collapsed='1' countgold='1'goldpp='20'
                   
WHERE forumid='42'
mysql errorYou have an error in your SQL syntax near 'countgold='1', goldpp='20'
                   WHERE forumid='
42'' at line 10

mysql error number
1064 

How can I correct this??

EDIT: Never Mind, found it, a Missing Comma Character in the PHP between Collapsed and Yadda Yadda, fixed it...

[high]* kmfdm_kid2000 installs, and names it "Quality Points" instead...[/high]

Areku 09-20-2002 11:23 AM

Can any1 enlight me with the usage of this hack?

Once people earn gold, what do they do with it?

Towards what does it count?

Tu!

jitzs 10-03-2002 11:59 PM

g-force - I read through this post twice, so I'm sorry if you already answered this, but did you ever put together instructions on how to make a top 10 richest members list?

g-force2k2 10-04-2002 01:38 AM

jitzs... add this coding to the php file that you want to have the top ten list shown in:

PHP Code:

$richest $DB_site->query("
  SELECT username, userid, posts, joindate, gold
  FROM user 
  WHERE userid != 0
  ORDER BY gold DESC LIMIT 10"
);
while(
$rich $DB_site->fetch_array($richest)) {
  
$member "<a href='member.php?s=$session[sessionhash]&action=getinfo&userid=$rich[userid]'>$rich[username]</a>";
  
$joindate vbdate($dateformat,$rich[joindate]);
   
$richtop10.="<tr><td width='40%'><smallfont>$member</smallfont></td><td width='20%'><smallfont>$joindate</smallfont></td><td width='20%'><smallfont>$rich[gold]</smallfont></td><td width='20%'><smallfont>$rich[posts]</smallfont></td></tr>";
  }
  eval(
"\$top10rich = \"".gettemplate('richest_members')."\";"); 

Create a new template called:

richest_members

and in the template place:

<table cellpadding='4' cellspacing='1' border=0>
$richtop10
</table>

And from there you can customize how ever you want... regards...

g-force2k2

PsyBlast 12-17-2002 10:53 PM

When I try to install this (either with vbhacker, or running the install_goldhack.php file) it doesnt work, when I try to install it with vbhacker it has (attachment), and I have the newest version of vbhacker installed, also when I select the (By ) option it gives this error

Warning: Variable passed to reset() is not an array or object in /home/psyblast/public_html/forums/admin/vbhacker.php on line 291
Warning: The vBulletin version you are currently using (2.2.9) does not match the vBulletin version required by this hack ().

and when I try to run install_goldhack.php in the browser I just get the whole file in text format. .. . . . .

PsyBlast 12-18-2002 11:15 AM

bump

PsyBlast 12-19-2002 07:53 PM

will somebody please help me out?

Silenced Soul 12-20-2002 09:05 PM

uh, psy, you have to do it through text editing. Take your files, and edit them by hand. That seems like your only problem, if you ask me.

PsyBlast 12-21-2002 02:23 AM

what exactly do i have to edit? it would of been nice if this came in zip, with INSTRUCTIONS ON WHAT TO DO

PsyBlast 12-21-2002 02:38 AM

OMG DONT MIND MY STUPIDITY!!!!!!!!!!!!!!!

Silenced Soul 12-24-2002 03:39 AM

Ive got a question... has anyone written a bank hack for this thing? It'd be really helpful for me... heh.

PsyBlast 12-26-2002 10:09 AM

ok, another question how do i get the itemshop to use the gold as the money form?

PsyBlast 12-27-2002 10:07 PM

BUMPAGE

TraceyPRO 02-17-2003 12:20 AM

I have made a new Add-On for g-force2k2's Gold Hack. This add-on was originally created by Eander for Lasane's Store hack. What it does is it gives you the option in the AdminCP to 'pay' all moderators, supermoderators, and admins gold for a job well done.

All credit is given to Eander as I only converted his code to work with g-force2k2's Gold Hack. The original Add-On for Lasane's store hack can be found at https://vborg.vbsupport.ru/showthrea...threadid=44597.

Tested on:
vBulletin 2.2.9

Installation:
Simply download the attached zip file and follow the directions in the ReadMe text file.

hashesh 06-10-2003 04:47 AM

This is a great hack!

One note however, if you delete a thread or post. It does not remove the gold.

Thanks!!

nghiasi 07-14-2003 05:36 PM

anyone got the idea for the same as add-on on the vBProArcade...
The
Quote:

#vBProArcade and Store hack addon Beta 2 #
#Made by Dark Jim (darkjim@thegaminguniverse.net)#
can anyone addon with this gold currency?


All times are GMT. The time now is 04: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.01220 seconds
  • Memory Usage 1,833KB
  • 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
  • (7)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (28)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