jaymo Posted February 10, 2011 Posted February 10, 2011 If anyone could make a possibly free script where you can apply for a gang rather than being invited? Thanks. Quote
URBANZ Posted February 11, 2011 Posted February 11, 2011 ill have a go at this it a is a really simple mod Quote
Paul Evans Posted February 12, 2011 Posted February 12, 2011 just remember to filter the variables. Specially if you let them post a message with the application MRES Strip_Tags Quote
Pitch Black Posted May 28, 2011 Posted May 28, 2011 You know jaymo, there are alot of links to resources for learning basic PHP and MySQL. People are more willing to help those who atleast make an attempt at something, and, considering all of your posts have been requests for free GRPG mods, you should try learning or helping others get a good grasp on this engine. This site is not just for giving out free modifications, it is more of a collaboration-experience where you can learn from both fellow PHP developers, and game owners. Quote
acer240 Posted May 29, 2011 Posted May 29, 2011 Something like this will do the job for you- Call it apply.php <?php include 'header.php'; if ($user_class->gang != 0) <!-- check member is unganged --> { echo Message("Your in another gang already..leave current gang to apply here..."); <!-- Change text to suit needs --> include 'footer.php'; die(); } if (isset($_GET['gang']) && $user_class->gang == 0) <!-- if member is unganged proceed --> { $_GET['gang'] = (int)$_GET['gang']; $targetgang = new Gang($_GET['gang']); $gangleader = Get_ID($targetgang->leader); $result = Send_Event("".$gangleader."", "Someone applied to your gang etc etc etc "); <!-- Change text to suit needs --> echo Message("Your application has been sent "); <!-- Change text to suit needs --> $when = time(); $result = mysql_query("INSERT INTO `gangapplications` (`userid`, `gangid`, `when`) VALUES ('".$user_class->id."', '".$_GET['gang']."', '".$when."')"); <!-- Create table in DB using info from this line ..very simple --> } else { echo Message("Apply via the gang page blah blah......");<!-- Change text to suit needs --> include 'footer.php'; die(); } ?> then add this to your viewgang.php to give a link to apply <a href="apply.php?gang=<? echo "".$_GET['id'].""; ?> Apply to gang</a> very simple and basic but will do the job Quote
jaymo Posted May 29, 2011 Author Posted May 29, 2011 You know jaymo, there are alot of links to resources for learning basic PHP and MySQL. People are more willing to help those who atleast make an attempt at something, and, considering all of your posts have been requests for free GRPG mods, you should try learning or helping others get a good grasp on this engine. This site is not just for giving out free modifications, it is more of a collaboration-experience where you can learn from both fellow PHP developers, and game owners. I know m8, I'm sorry. I'm currently making my own mods for this engine and when I do I'm post them and help out a bit more. ;) Quote
jaymo Posted May 29, 2011 Author Posted May 29, 2011 oh and thanks very much acer240. Really appreciate this mod. Quote
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.