BaLoP Posted March 1, 2011 Share Posted March 1, 2011 this is just a small mod it just allows user to punch someone and it gives the user a event saying they where punched and it will also show how many people you have punched on your profile ok add punches int 11 default 0 into your users table then make a file called punch.php and in it put You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. then add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. to viewuser.php 1 Quote Link to comment Share on other sites More sharing options...
War_Hero Posted March 1, 2011 Share Posted March 1, 2011 This is a good little feature, but I did notice something: you're not checking to see if the $_GET['id'] contains a valid userid. After You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. you should add in: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and then run the rest of the code. Just a bit of error checking. :) Quote Link to comment Share on other sites More sharing options...
Zan Posted March 1, 2011 Share Posted March 1, 2011 TIve seen one same like this before ha! now i remember ...NUDGE USER BY JOEL Quote Link to comment Share on other sites More sharing options...
chicka Posted March 1, 2011 Share Posted March 1, 2011 I've had this exact mod in my game for years. I called it slap.php. same thing.. My players love it Quote Link to comment Share on other sites More sharing options...
Equinox Posted March 1, 2011 Share Posted March 1, 2011 You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
BaLoP Posted March 1, 2011 Author Share Posted March 1, 2011 thanks for the feedback and thanks Equinox for the better coded one Quote Link to comment Share on other sites More sharing options...
Equinox Posted March 1, 2011 Share Posted March 1, 2011 Just really coded to my preference and implementing War_Hero's code, it's a simple addition to a game but some people may like it, I dunno :) Quote Link to comment Share on other sites More sharing options...
Zan Posted March 2, 2011 Share Posted March 2, 2011 Chicka is this wat u r talking abt? You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
chicka Posted March 2, 2011 Share Posted March 2, 2011 Yup pretty much exactly the same. Quote Link to comment Share on other sites More sharing options...
BaLoP Posted March 2, 2011 Author Share Posted March 2, 2011 i never seen that before but you guys can think what you want to think i can see why you think it but i really made myself Quote Link to comment Share on other sites More sharing options...
DreamCoder Posted March 2, 2011 Share Posted March 2, 2011 nice m8 ;) Quote Link to comment Share on other sites More sharing options...
chicka Posted March 2, 2011 Share Posted March 2, 2011 i never seen that before but you guys can think what you want to think i can see why you think it but i really made myselfi'm not accusing you of anything. I think its a great mod and i'm sure you did code it.. All i'm saying is that I have this exact same idea in my game that I coded a while ago. The coding is different a little but none the less its the same. the only difference between this one and mine is I have it so they can only slap that user once a day. Quote Link to comment Share on other sites More sharing options...
BaLoP Posted March 2, 2011 Author Share Posted March 2, 2011 oh kk sorry about that lol Quote Link to comment Share on other sites More sharing options...
Teath Posted March 3, 2011 Share Posted March 3, 2011 Very nice little mod =) Quote Link to comment Share on other sites More sharing options...
Galahad Posted March 14, 2011 Share Posted March 14, 2011 Very nice mod. I was thinking about making a similar mod like this for EzRPG. I'm going to attempt to convert it Quote Link to comment Share on other sites More sharing options...
Tangled Posted October 16, 2014 Share Posted October 16, 2014 (edited) can someone help I have V2: I get this error: Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/killersi/public_html/punch.php:2) in /home/killersi/public_html/globals.php on line 28 It also says User does not exhist. I tried the original post here as well as what Equinox posted. with those I got critical errors: line 28 in globals.php is: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Punch SQL You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. -------------------------------------------------------- punch.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. ==================================================== then add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Then add to viewuser.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Edited October 16, 2014 by Tangled Quote Link to comment Share on other sites More sharing options...
Tangled Posted October 16, 2014 Share Posted October 16, 2014 G7470 fixed me Thank you G! in the view user find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and change it to this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. the punch.php from the original post from BaLoP and Equinox worked but it had to be tweeked around to make it work. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.