Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Gold Hack (currency hack) Details »»
Gold Hack (currency hack)
Version: 1.00, by g-force2k2 g-force2k2 is offline
Developer Last Online: May 2008 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 08-25-2002 Last Update: Never Installs: 14
 
No support by the author.

well it was requested (asked) whatever you may call it... to create a currency hack that is more optimizeable... well here's my version of a currency hack (i just use gold because that's what i call my currency)

What is more optimizeable? You can configure which forums that you want gold(currency) to be gained in... and you can also configure different amounts... so for instance if you're a gaming forum place less emphasis on general forums by giving less gold and on gaming forums give more emphasis by giving more gold(currency)

hope that just about explains it all Enjoy...

g-force2k2

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 08-27-2002, 12:47 AM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

g-force2k2
Reply With Quote
  #43  
Old 08-27-2002, 12:53 AM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

g-force2k2
Reply With Quote
  #44  
Old 08-27-2002, 01:19 AM
[D]Vincent's Avatar
[D]Vincent [D]Vincent is offline
 
Join Date: Jun 2002
Location: In my own little world?
Posts: 411
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #45  
Old 08-27-2002, 04:31 AM
[D]Vincent's Avatar
[D]Vincent [D]Vincent is offline
 
Join Date: Jun 2002
Location: In my own little world?
Posts: 411
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #46  
Old 08-27-2002, 02:05 PM
ExAvIoUr ExAvIoUr is offline
 
Join Date: Jan 2002
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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]'"); 
Reply With Quote
  #47  
Old 08-27-2002, 02:27 PM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #48  
Old 08-27-2002, 02:51 PM
ExAvIoUr ExAvIoUr is offline
 
Join Date: Jan 2002
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

not sure though.
Reply With Quote
  #49  
Old 08-27-2002, 02:52 PM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #50  
Old 08-27-2002, 03:01 PM
ExAvIoUr ExAvIoUr is offline
 
Join Date: Jan 2002
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nothing happened. i just un-install it. i might of done something wrong.
Reply With Quote
  #51  
Old 08-28-2002, 12:07 AM
ExAvIoUr ExAvIoUr is offline
 
Join Date: Jan 2002
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:49 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10006 seconds
  • Memory Usage 2,324KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete