Nicholas Posted March 22, 2010 Share Posted March 22, 2010 hi, ive convented the following files into 1 file... propose.php decision.php acceptpro.php declinepro.php so if you this mod on your game, you can use this file instead of them 4 files (save disk space) this file should be secured too. call it "marriage.php" You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. put this link on explore You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. link should work perfectly. hope you like it. lol. NOTE: i modified it on my pc without testing it as i had to change some ".staffcolor($r['userid']." into ".htmlentities($r['username'])." and {$r['userid']} into ".abs(intval($r['userid']))." and so on... shouldnt of made it error, but if you do have any problems please contact me :) Quote Link to comment Share on other sites More sharing options...
CrazyT Posted March 22, 2010 Share Posted March 22, 2010 I see quite a few of you people doing the same thing using You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. It's pritty useless, if your using switch() because you all have a default one, so if it isn't found, it would just use the default switch, function. Quote Link to comment Share on other sites More sharing options...
Nicholas Posted March 22, 2010 Author Share Posted March 22, 2010 lmao... i knew the first post be something to do with something bad or un-needed... Quote Link to comment Share on other sites More sharing options...
CrazyT Posted March 22, 2010 Share Posted March 22, 2010 lmao... i knew the first post be something to do with something bad or un-needed... lol - I'm just saying so you don't add it again into another mod :) Quote Link to comment Share on other sites More sharing options...
Nicholas Posted March 22, 2010 Author Share Posted March 22, 2010 thanks for the tip :) Quote Link to comment Share on other sites More sharing options...
Jordan Palmer Posted March 22, 2010 Share Posted March 22, 2010 I do like the way you've gone with this, however could off made it shorter but using isset() I've slighty edited you're code and removed all the die(""); as it's alot cleaner when it show's the endpage function :P You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. I'll release a new martial system once I've finished the updates :) Quote Link to comment Share on other sites More sharing options...
Nicholas Posted March 23, 2010 Author Share Posted March 23, 2010 thanks for the update :) im starting to learn how to do functions and etc, so i might be making alot of stupid mods lol. also would this new marriage system include shared housing? as im after a shared housing mod. Quote Link to comment Share on other sites More sharing options...
JAMESOMIGHTY Posted March 28, 2010 Share Posted March 28, 2010 thanks, i'll be using this Quote Link to comment Share on other sites More sharing options...
DJShad10 Posted December 14, 2010 Share Posted December 14, 2010 do we have to make any mysql tables? Thanks Shad Quote Link to comment Share on other sites More sharing options...
Nicholas Posted December 16, 2010 Author Share Posted December 16, 2010 do we have to make any mysql tables? Thanks Shad 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...
Seker Posted April 19, 2012 Share Posted April 19, 2012 Alright, so I'm trying to use this, converted to V1. The problem is, the forum added so many "target=_blank"'s, that I'm completely lost. I've tried to fix them, but I obviously am not correcting it in the right way. I'm wondering if anyone can help me. I'm getting this error: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Here's the code as I have it after "attempting" to fix it: 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...
mixmaster Posted April 19, 2012 Share Posted April 19, 2012 (edited) Alright, so I'm trying to use this, converted to V1. The problem is, the forum added so many "target=_blank"'s, that I'm completely lost. I've tried to fix them, but I obviously am not correcting it in the right way. I'm wondering if anyone can help me. I'm getting this error: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Here's the code as I have it after "attempting" to fix it: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. ovewrite lines 141 - 143 with this You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Edited April 19, 2012 by mixmaster Quote Link to comment Share on other sites More sharing options...
Seker Posted April 19, 2012 Share Posted April 19, 2012 ovewrite lines 141 - 143 with this You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Okay, now I get Parse error: syntax error, unexpected T_STRING in /home/district/public_html/marriage.php on line 141 Quote Link to comment Share on other sites More sharing options...
mixmaster Posted April 19, 2012 Share Posted April 19, 2012 (edited) You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Edited April 19, 2012 by mixmaster Added code tags Quote Link to comment Share on other sites More sharing options...
Seker Posted April 19, 2012 Share Posted April 19, 2012 You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Have made both of the changes, and still getting this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Definitely appreciate the help. Starting to think this is just more trouble than it's worth, though. Quote Link to comment Share on other sites More sharing options...
lucky3809 Posted April 20, 2012 Share Posted April 20, 2012 (edited) Not really hard take a look at your statement... <font color="#666666">or</font> <font color="#666666"><a href='marriage.php?action=decline&pro=".abs(intval($pro['userid']))." '><font color=red>Decline</font></a></td></tr></table>";</font> If your statement ends in "; then your <font color="#666666"> should be: <font color='#666666'> Edit: Also you have "; then </font> You do not need two font closing tags, and also if you did need that closing tag it should be put into the print or echo statement not out of it like you have:</table>";</font> should be:</font></table>"; Edited April 20, 2012 by lucky3809 Quote Link to comment Share on other sites More sharing options...
Seker Posted April 21, 2012 Share Posted April 21, 2012 (edited) Not really hard take a look at your statement... <font color="#666666">or</font> <font color="#666666"><a href='marriage.php?action=decline&pro=".abs(intval($pro['userid']))." '><font color=red>Decline</font></a></td></tr></table>";</font> If your statement ends in "; then your <font color="#666666"> should be: <font color='#666666'> Edit: Also you have "; then </font> You do not need two font closing tags, and also if you did need that closing tag it should be put into the print or echo statement not out of it like you have:</table>";</font> should be:</font></table>"; Still the same error. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Here are lines 140-145: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Again, thanks for trying to help, though. Still figuring this all out. Edited April 21, 2012 by Seker Quote Link to comment Share on other sites More sharing options...
lucky3809 Posted April 21, 2012 Share Posted April 21, 2012 It's none of those lines anymore they are fixed, it may be lines above, those that had same thing... You will have errors where there is double quotes like the ones I fixed. because if you put this line in a different page you will get no error print" <td>Decision: <a href='marriage.php?action=accept&pro=".abs(intval( $pro['userid']))."'><font color='#666666'>Accept</font></a> <font color='#666666'>or</font> <a href='marriage.php?action=decline&pro=".abs(intval ($pro['userid']))." '><font color='#666666'>Decline</font></a></td></tr></table>"; So that is not your error now. Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted April 21, 2012 Share Posted April 21, 2012 Post the code again and it will be easier to fix it for you. Quote Link to comment Share on other sites More sharing options...
Seker Posted April 22, 2012 Share Posted April 22, 2012 Okay, here's the whole code as I have it right now: 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...
mixmaster Posted April 22, 2012 Share Posted April 22, 2012 Okay, here's the whole code as I have it right now: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Try this 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...
Seker Posted April 22, 2012 Share Posted April 22, 2012 To start: Line 140: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. to You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Done and no go. Now I get this: 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...
Seker Posted April 22, 2012 Share Posted April 22, 2012 Try this You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Now I get this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. @SRB - I don't blame you at all. Thanks for trying. Quote Link to comment Share on other sites More sharing options...
mixmaster Posted April 22, 2012 Share Posted April 22, 2012 Yep , i know lol , i wil be done in a min (hopefully) :p Quote Link to comment Share on other sites More sharing options...
mixmaster Posted April 22, 2012 Share Posted April 22, 2012 (edited) Try now You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Edited April 22, 2012 by mixmaster 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.