Register | Login | |||||
Main
| Memberlist
| Active users
| ACS
| Commons
| Calendar
| Online users Ranks | FAQ | Color Chart | Photo album | IRC Chat |
| |
0 user currently in Acmlmboard support?. |
Acmlm's Board - I2 Archive - Acmlmboard support? - money per post | | | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread |
User | Post | ||
luigi_mario Micro-Goomba Level: 7 Posts: 3/16 EXP: 1113 For next: 335 Since: 01-03-05 Since last post: 98 days Last activity: 67 days |
| ||
Is there any hacks/scripts/whatever that could allow for a certain amount of money per post? I have tried to do it on my acmlboard (1.8a) and i can't figure it out, but i know its possible. | |||
DarkSlaya POOOOOOOOOOOORN! Level: 88 Posts: 3152/4249 EXP: 6409254 For next: 241410 Since: 05-16-04 From: Montreal, Quebec, Canada Since last post: 8 hours Last activity: 5 hours |
| ||
Sure, pretty easy I'd say. Make a new field in users called 'money' (or whatever you want to call it) Then search for: "mysql_query("UPDATE users SET posts=posts+1,lastposttime=$currenttime WHERE id=$userid");" in newreply.php Change it to: "mysql_query("UPDATE users SET posts=posts+1,lastposttime=$currenttime,money=money+$num WHERE id=$userid");" Replace $num (in the above query) by any number. And change money to the name you gave it. Then go in newthread.php and do the same thing. Easy, no? There was a money hack, but I can't find it and had to come up with this (same on my test board, had an item shop hack without a money hack) (edited by DarkSlaya on 01-04-05 05:36 PM) |
|||
luigi_mario Micro-Goomba Level: 7 Posts: 4/16 EXP: 1113 For next: 335 Since: 01-03-05 Since last post: 98 days Last activity: 67 days |
| ||
I did as you said, except i used gp instead of money, and its not working. And I can't seem to find a way to make it appear in the profile without MySQL errors. I guess i did something wrong.... | |||
DarkSlaya POOOOOOOOOOOORN! Level: 88 Posts: 3157/4249 EXP: 6409254 For next: 241410 Since: 05-16-04 From: Montreal, Quebec, Canada Since last post: 8 hours Last activity: 5 hours |
| ||
When you make it display in the profile, are you sure you put "gp" in this query: "$user=mysql_fetch_array(mysql_query("SELECT posts,regdate,name,picture,signature,bio,powerlevel,title,lastactivity,email,icq,aimname,sex,homepage,timezone,realname,location,lastip,lastposttime,postheader,useranks,birthday,minipic,pagename,scheme FROM users WHERE id=$id"));" or else, you'll get an error. | |||
luigi_mario Micro-Goomba Level: 7 Posts: 5/16 EXP: 1113 For next: 335 Since: 01-03-05 Since last post: 98 days Last activity: 67 days |
| ||
I think i did something terribly wrong, because i added gp into the list as you said, and i get Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/gamingg/public_html/board/profile.php on line 52 Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /home/gamingg/public_html/board/function.php on line 101 Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /home/gamingg/public_html/board/function.php on line 102 Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /home/gamingg/public_html/board/function.php on line 101 Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /home/gamingg/public_html/board/function.php on line 102 as well as the error i got before: Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /home/gamingg/public_html/board/profile.php on line 34 Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/gamingg/public_html/board/profile.php on line 3 |
|||
DarkSlaya POOOOOOOOOOOORN! Level: 88 Posts: 3159/4249 EXP: 6409254 For next: 241410 Since: 05-16-04 From: Montreal, Quebec, Canada Since last post: 8 hours Last activity: 5 hours |
| ||
I uploaded a copy of profile.php in which it displays the money, it works for me, so I guess it should work for you (everything uses gp). Profile.php (Zip File) See if it works. |
|||
SyntaxLegend Double metal axe Level: 25 Posts: 133/222 EXP: 78264 For next: 11356 Since: 04-21-04 From: Australia Since last post: 20 days Last activity: 10 hours |
| ||
did you add the field to the SQL users table, if not, there is your problem. i reccomend, gp INT(7) DEFAULT '0' NOT NULL |
|||
luigi_mario Micro-Goomba Level: 7 Posts: 6/16 EXP: 1113 For next: 335 Since: 01-03-05 Since last post: 98 days Last activity: 67 days |
| ||
I have the line in newreply.php looking like this now: "mysql_query("UPDATE users SET posts=posts+1,lastposttime=$currenttime,gp=gp+10 WHERE id=$userid");" Is that correct? Because it isn't adding any money to the gp count. EDIT: Nevermind, I fixed it (edited by luigi_mario on 01-08-05 10:56 AM) |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread |
Acmlm's Board - I2 Archive - Acmlmboard support? - money per post | | | |