View Full Version : Donation Add-on to Points System Hack
GameZilla
02-21-2002, 10:00 PM
Hey guys members of my forums kept asking me if they can donate to each other and the mods had to spend times adding and substracting and it got annoying. I made this that some sites I know are already using. It allows members to donate points to each other.
Demo: www.otakuforums.com go there and register then go to any post and click the "donate" button under any of the users posts.
Enjoy and please rate!
maybe you can make it each user only allow give points at a day....thx
GameZilla
02-22-2002, 01:45 PM
k i will try to do that
Gaffer
02-22-2002, 01:54 PM
thanx
afterlab
02-22-2002, 07:20 PM
Did this fix those bugs we were trying to fix earlier?
Psychdrone
02-22-2002, 08:54 PM
eh I already made mine but nice :)
GameZilla
02-22-2002, 09:28 PM
yeha i fixed them afterlab get on aim and i will give it to u
GameZilla
02-23-2002, 03:29 PM
^BUMP^
ExcErr
02-26-2002, 03:27 PM
it's possible to do this thing:
user become 2 points for one post?
GameZilla
02-26-2002, 07:49 PM
yes i did it on my forums
iwill postthe code shortly
Palmer ofShinra
02-27-2002, 08:38 AM
Originally posted by Psychdrone
eh I already made mine but nice :)
After I gave you my entire code for that, yeah :p
ExcErr
03-01-2002, 12:51 PM
iwill postthe code shortly
thx! i will wait for it!
jags2ooo
03-01-2002, 06:55 PM
lol zilla u a hacker.. i dont think so
Saiyan XL
03-01-2002, 09:28 PM
where is the code??? or any updates?? and nice hack Zilla
GameZilla
03-02-2002, 04:52 AM
do same in newthread.php and newreply.php
find:
// update user stuff
$dotitle="";
if ($bbuserinfo[userid]!=0)
and below that put
// START Update GOLD
$userpointstr = $DB_site->query_first("SELECT field5 FROM userfield WHERE userid='$bbuserinfo[userid]'");
$pointstr = $userpointstr[field5];
$gold = $pointstr + 4;
$DB_site->query("UPDATE userfield SET field5='$gold' WHERE userid='$bbuserinfo[userid]'");
// END Update GOLD
REMEMBER TO CHANGE "field5" to the freld of your points
ExcErr
03-02-2002, 10:06 AM
thx - great mod!
Psychdrone
03-02-2002, 05:13 PM
Originally posted by Palmer ofShinra
After I gave you my entire code for that, yeah :p
hehe, thanks again bud!
anone121
03-05-2002, 08:09 PM
wow thnx gamezilla i'll install this on my forums thnx for helping me out
Saiyan XL
03-05-2002, 09:17 PM
heh, I made my own!! lol, but I think yours is more advanced!!
Saiyan XL
03-05-2002, 10:35 PM
Vivi Ornitier, get online NOW!!!!!!!!! lol
I have to talk to you, very important
Psychdrone
03-06-2002, 12:41 AM
Goshdamn, stop spamming!
Jezz I hate when little kids actually find enough money in there couch cushions to buy Vb
Saiyan XL
03-06-2002, 12:55 AM
lol, I said SORRY IN THE OTHER THREAD
Lesane
03-06-2002, 03:11 PM
Saiyan XL... just wondering... How Old Are You?
Saiyan XL
03-06-2002, 06:28 PM
I am 10
Psychdrone
03-06-2002, 06:40 PM
Originally posted by Saiyan XL
I am 10
Don't you have to be at least 13 to run a vb? :supwink:
Lesane
03-07-2002, 08:50 AM
Originally posted by Saiyan XL
I am 10
lol, no offence but when i was 10 i played outside... didnt even knew what internet was :D.. aah well.. thats almost 12 years back ;):D
eg_92901
03-14-2002, 11:58 AM
I'm having problems getting the donations to work. My points work and I even accumulate points with new replies and new threads, but I can't get a member to donate to another member.
I've changed all of my [field5] to [field14] My points field.
eg_92901
03-14-2002, 07:34 PM
Looks like the link in the postbit template maybe the problem. I don't know php but when I'm hovering over the link there is something like this
/forums/donate.php?olduser=Array[userid]&newuser=Array[userid]
eg_92901
03-14-2002, 07:37 PM
Nevermind. I don't know what I did but it seems to be working now. :)
Vivi Ornitier
03-15-2002, 12:10 AM
goddamn, why u guys making fun of us kids. What'd we ever do to u? Just cause we start off young doesn't mean u have to pick on us. Besides about the money, why should you care how we get the money, as long as we have the VB and payed for it it's none of ur business. Sorry . . just got really pissed off there.
Btw: GREAT HACK!! Works like a charm, just one thing tho. In donate.php
// Configuration
$pointfield = "field14"; // The field in which the the point data is stored.
$pointname = "Gil"; // What ever you call the points on your forum
$error = "<b>Message:</b> Welcome Generous Member"; // This is the introduction when people old the posts page
This part, what in gods name does This is the introduction when people old the posts page mean? I can't even guess what that means. :D
Vivi Ornitier
03-15-2002, 12:14 AM
hmm . . can we make a javascript pop up window? So people won't have to donate and then come back to the original poast again? thx!
Floris
03-22-2002, 10:29 AM
Can't you make this work with referrals systems? So users can donate their gained referral points to other users ?
custsrvcrep
09-28-2002, 02:43 AM
Can anyone figure out how to address the GIVER and the RECEIVER by username for this hack?
At the donation page (the donation template) ... I would like to say
"Welcome (THE GIVER USERNAME), you wish to donate to (THE RECEIVER USERNAME). Is that correct? If not, press your back key now."
This should be easy right? I can't make it work ... any suggestions ...
$bbuserinfo[userid] $bbuserinfo [olduser], etc., don't work.
The only thing I can get it to do is to display the giver and receiver account number (olduser/newuser) ... but I can't figure out how to translate this into a username.
Holidazed
07-17-2003, 03:20 AM
Is this hack still being supported? Can you add PM notification to the person recieving the donation? Maybe even to the person doing the donating?
Frozen Dreams
07-22-2003, 11:10 AM
03-02-02 at 08:52 AM GameZilla said this in Post #15 (https://vborg.vbsupport.ru/showthread.php?postid=224580#post224580)
do same in newthread.php and newreply.php
find:
// update user stuff
$dotitle="";
if ($bbuserinfo[userid]!=0)
and below that put
// START Update GOLD
$userpointstr = $DB_site->query_first("SELECT field5 FROM userfield WHERE userid='$bbuserinfo[userid]'");
$pointstr = $userpointstr[field5];
$gold = $pointstr + 4;
$DB_site->query("UPDATE userfield SET field5='$gold' WHERE userid='$bbuserinfo[userid]'");
// END Update GOLD
REMEMBER TO CHANGE "field5" to the freld of your points
would there be any way to turn this around?
take away 2 points whenever the user posts? but this only when posting in a specific forum?
I need this for an RPG ... and it's gonna be energy level ... so this will only show in the RPG forum and I also just want points taken away when posting in there
anyone could please help me with this?
Holidazed
07-22-2003, 07:17 PM
I don't think anyone is here.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.