![]() |
Gold Hack (currency hack)
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 |
Looks good g-force2k2, I may install this when I re-do my forums ;)
|
=D I install it right away :P
|
what exactly is this for?...something for store hack?...
|
Quote:
g-force2k2 |
great, it will be a good step beyond the points hack for some ppl, great work
/me clicks install |
Great hack, I wanted to have a spam forum but I didn't want the people to gain money for it.
/me also clicks install |
ohh excellent hack! great work!
|
Just wondering does this work with Quick Reply and can SMs/Admins have a link from postbit to give a member gold? This made it easier to reward my members.
|
It works with quick reply but doesn't have the link =\
And since I'm in this thread I might as well make a request instead of post it over at the requests forum. g-force do you think you could make an add-on for it to where there is a link in postbit(like the points hack) for Sms/Admins but I was wondering if you could make it to where for the SM/Admin link that it displays their current ammount of gold so that the SM/Admin can also take away gold aor give them gold. |
Right well I made an easy add-on for this. Okay what this add-on does is makes it to where you can set a different ammount for new threads than the ammount for replys, because we me I like to give the members more for threads. Anyways do the following:
First run this query: ALTER TABLE forum ADD goldppt int(5) NOT NULL Next open admin/forum.php and find: makeinputcode("Gold recieved for posting? (forum gold must be enabled)","goldpp",0); Replace that with: makeinputcode("Gold recieved for posting a reply? (forum gold must be enabled)","goldpp",0); makeinputcode("Gold recieved for posting a thread? (forum gold must be enabled)","goldppt",0); Next find: $DB_site->query("INSERT INTO forum (forumid,styleid,title,description,active,displayo rder,parentid, parentlist,allowposting,cancontainthreads,daysprun e,newpostemail,newthreademail, moderatenew,allowhtml,allowbbcode,allowimages,allo wsmilies,allowicons, styleoverride,allowratings,countposts,moderateatta ch,countgold,goldpp) VALUES (NULL,'$styleset','".addslashes($title)."','".adds lashes($description)."','$isac tive','$displayorder','$parentid', '','$allowposting','$cancontainthreads','$daysprun e','".addslashes($newpostemail )."','".addslashes($newthreademail)."', '$moderatenew','$aallowhtmlcode','$aallowbbcode',' $aallowimgcode','$aallowsmilie s','$aallowicons', '$styleoverride','$allowratings','$countposts','$m oderateattach','$countgold','$ goldpp')"); Replace that with: $DB_site->query("INSERT INTO forum (forumid,styleid,title,description,active,displayo rder,parentid, parentlist,allowposting,cancontainthreads,daysprun e,newpostemail,newthreademail, moderatenew,allowhtml,allowbbcode,allowimages,allo wsmilies,allowicons, styleoverride,allowratings,countposts,moderateatta ch,countgold,goldpp,goldppt) VALUES (NULL,'$styleset','".addslashes($title)."','".adds lashes($description)."','$isac tive','$displayorder','$parentid', '','$allowposting','$cancontainthreads','$daysprun e','".addslashes($newpostemail )."','".addslashes($newthreademail)."', '$moderatenew','$aallowhtmlcode','$aallowbbcode',' $aallowimgcode','$aallowsmilie s','$aallowicons', '$styleoverride','$allowratings','$countposts','$m oderateattach','$countgold','$ goldpp','$goldppt')"); Next find: makeinputcode("Gold recieved for posting? (forum gold must be enabled)","goldpp",$forum[goldpp]); Replace that with: makeinputcode("Gold recieved for posting a reply? (forum gold must be enabled)","goldpp",$forum[goldpp]); makeinputcode("Gold recieved for posting a thread? (forum gold must be enabled)","goldppt",$forum[goldppt]); Next find: styleoverride='$styleoverride', allowratings='$allowratings', countposts='$countposts', moderateattach='$moderateattach', countgold='$countgold', goldpp='$goldpp' WHERE forumid='$forumid'"); Replace that with: styleoverride='$styleoverride', allowratings='$allowratings', countposts='$countposts', moderateattach='$moderateattach', countgold='$countgold', goldpp='$goldpp', goldppt='$goldppt' WHERE forumid='$forumid'"); open newthread.php and find: // +++++++ Gold Hack g-force2k2 +++++++ $DB_site->query("UPDATE user SET ".iif ($foruminfo[countposts],"posts=posts+1,","")." $dotitle"."lastpost='".time()."' ".iif($foruminfo[countgold],",gold=gold+$foruminfo[goldpp]","")." WHERE userid='$bbuserinfo[userid]'"); } // +++++++ Gold Hack g-force2k2 +++++++ Replace that with: // +++++++ Gold Hack g-force2k2 +++++++ $DB_site->query("UPDATE user SET ".iif ($foruminfo[countposts],"posts=posts+1,","")." $dotitle"."lastpost='".time()."' ".iif($foruminfo[countgold],",gold=gold+$foruminfo[goldppt]","")." WHERE userid='$bbuserinfo[userid]'"); } // +++++++ Gold Hack g-force2k2 +++++++ And you're done I believe. Haven't tested it out yet though =\ I'm not actually installing this hack until tomorrow because I'm letting my memebrs write down how much gold they have(lol I use gold on FFL also). BTW if you want to set a defualt one run this query: UPDATE forum SET goldppt='[ Default Value Here ]' WHERE forumid != 0 and replace [ Default Value Here ] with the number. |
Can I replace the current Lesane Store hack money system with this? And am I able to keep the current gil counts too? ;)
|
I think to replace the Store one would take more coding and If you write them down you can.
|
Vincent][high]* [D]Vincent cough
[/high] Okay well I went ahead and made two of the features for the points hack for this and I DO NOT TAKE CREDIT FOR ANYTHING IN THIS FOLLOWING ZIP, I repeat, I DO NOT TAKE CREDIT FOR ANYTHING IN THIS FOLLOWING ZIP. Anyways what I did was made the donation hack and made the thing with admins/mods can give them gold from postbit work with this hack. All instructions are included in the zip, everything is tested and works. For a demo go to: http://www.fflounge.com not that it will really show out any. Anyways enjoy these add-ons. If you find any errors then just report them too many. And once again, I DO NOT TAKE CREDIT FOR ANYTHING IN THE FOLLOWING ZIP!!!!!! ALL CREDIT FOR THE DONATE ADD-ON GOES TO GameZilla!!!! ALL CREDIT FOR THE ADMINS/SMS CAN GIVE MEMBERS POINTS FROM POSTBIT GOES TO Palmer of the Turks!!!! ALL CREDIT FOR THE DIFFERENT AMOUNT RECIEVED FOR POSTING A NEW THREAD GOES TO g-force2k2!!!! |
I like the idea of this hack, I've just removed the itemshop from my forum because of the extra queries it was generating.
Now i'm looking for a points system for my forum, I was going to go for the Karma hack, but I think I prefer this one because I can provide more points for my games based forums. The only problem I've got is, what will the users we working towards? I can understand that gaining more points that other forum members in itself is an achievement, but I'd still prefer to be able to offer a reward for it. Can anyone offer any suggestions? (PS, i'm not interested in installing the store hack, I don't feel that it would really fit in with my site) |
Ninth Dimension just use the store hack... [D]Vincent its is very compatible with the store hack... just where it says in the changes for newreply and newthread... just change:
PHP Code:
PHP Code:
g-force2k2 |
Vincent]lol sorry I haven't used the store hack so I didn't know how easy it would be lol anyways do you think you can make it to where admins can edit the ammount of gold they have in admin cp? If I don't figure it out myself before you post that is since I've done that with the past things lmao.
-Edit- I got figured it out myself lmao. Anyways I have another request, do you think you could make it to where admins can subtract gold from a user like it has the add gold? Like instead of having the link of gold take you to giving them gold it could take you too a selection between giving them gold or removing gold from them. That would make things much easier ^^ -edit 2- I'm on a roll I figured that last one out myself also :D very simple though lmao. |
I really like this hack because it's so simple! I'm going to install it on my test board once I request these things:
Right now there's a feature where you need a certain amount of posts for getting a Custom Avatar and/or Custom Title. Can this be integrated with that so you need a certain amount of gold AND/OR posts [boolean] are required for either/both? Also, can there be a system not unlike Lesane's Lottery Hack just for this? So users can buy a lottery ticket from somewhere, preferably on forumhome, where you could have: Lottery: Buy your ticket now by clicking here!<br> Current Jackpot: 3000 Points [or whatever you set as your currency] Hope i'm not asking too much :( |
Tha Rock the store hack is compatible with this hack if you search the thread you will see the simple mod edit to this...
btw [D]Vincent can't you just use the store donation on the admincp? (that is if you're using the store hack) if not i can code something fast for you if you like? regards... g-force2k2 |
Quote:
|
I figured it out g-force, thanks anyway ^^
|
would this hack replace the money in the store hack.
|
I believe he gave instructions for that in a previous post.
|
no Exaviour the Store points would replace the gold points... just don't run the query ::
PHP Code:
g-force2k2 |
hey bro, you know how their is a hack called top5 posts? what would i need to do to see "top5 gold"?
|
great hack
is it possible to reset someone's gold amounts back to 0? |
ok cool. i am gonna install this.
|
sup an addition to my question above, how can i edit the amount of gold a person has in my admin options
|
Quote:
PHP Code:
but if ppl want an admin file to edit users gold i can do that ;) btw about getting the top five richest members i believe the coding is something like this:: PHP Code:
g-force2k2 |
Sorry but were should i put this at?
PHP Code:
|
well Lovaboye you have to make your own template with the included data... and then put this coding in the index.php... it runs more queries on the forumhome if you don't mind ;)
g-force2k2 |
i got a problem. everytime i run instal_goldhack.php in admin directory just see bunch of letters. then i opened it in notepad. and i saw the instruction. i installed it but nothing happened. evey1 got zero money and i don't see ne changed in the admin cp about gold.
am i missing somehting???? i have thr store hack installed |
did you change the edit on post # 16 Exaviour?
in both newthread.php and newreply.php? regards... g-force2k2 |
of course. i tried it nothing. ne other ideas?
|
Quote:
|
Quote:
Lovaboye i will do it later... g-force2k2 |
Quote:
I guess i'm going to wait for a battle hack (god i'm such a lemming) if one ever gets released. |
what code do u want. new reply and new thread?
|
Exavoiur both...
ND i will try to do one in the future :) regards... g-force2k2 |
here it is. i zipped them up.
|
All times are GMT. The time now is 04:46 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|