Shakeynath Posted December 22, 2009 Posted December 22, 2009 Hey peeps, Just wondering whether anyone has a free advanced marriage mod they could post onto here. Ive been looking for so long and cant seem to find one ;( Thanks ^^ Quote
Jordan Palmer Posted December 23, 2009 Posted December 23, 2009 What do you mean by 'Advanced' And as for free and advanced...You might be lucky. Quote
J_StrauD Posted December 23, 2009 Posted December 23, 2009 There used to be a mod called "Advanced Marriage Mod" I used to have it a while ago but it was on a free host I had and they deleted my account :S The only thing on here now seems to be "Simple Marriage Mod" Quote
Shakeynath Posted December 23, 2009 Author Posted December 23, 2009 Thats all i can seem to find, But you gotta admit the advanced one is much better more options to choose from. Ive been trying to search for it for a long time but cant seem to get my hands on it lol ;( Sorry to here about that mate, Looks like you got another game in dev ? Quote
Shakeynath Posted December 23, 2009 Author Posted December 23, 2009 I had one for free off here a while back but cant seem to find it again :wacko: Quote
Jordan Palmer Posted December 23, 2009 Posted December 23, 2009 It'll still be around the forum somewhere. Just search ;] Quote
Shakeynath Posted December 23, 2009 Author Posted December 23, 2009 It'll still be around the forum somewhere. Just search ;] Looked everywhere mate even searched for it :/ the person must of deleted it or something ;( Quote
Shakeynath Posted December 29, 2009 Author Posted December 29, 2009 just an update to see if anyone has an advanced marriage yet ? yeh im still looking for one lol :) Quote
Zero-Affect Posted December 30, 2009 Posted December 30, 2009 i think Haunted Dawg did one before it was rubbish but advanced lol DEFINE advanced... Quote
J_StrauD Posted December 30, 2009 Posted December 30, 2009 The "advanced" marriage mod had things like taking money or crystals from your partner if they turned "marriage allowance" on and it had "Sleep with partner" and then you would gain happiness, and it also had marriage counceling. I'm pretty sure those were the major "advanced" features. I'm not sure if its Haunted Dawg's or not, I don't remember the creator. Quote
Shakeynath Posted December 30, 2009 Author Posted December 30, 2009 Yea that was it but its vanished :( lmaoo Quote
Redex Posted December 30, 2009 Posted December 30, 2009 Unlucky :( . There was a pretty high chance, that someone would be using it in there game or saved it on there computer, so could send it to you, but unfortunately not! Quote
J_StrauD Posted December 30, 2009 Posted December 30, 2009 I just found it in my recycle bin!! :thumbsup: :thumbsup: I made a backup of my game forever ago and it was one of the mods I had added. Let me just go through my sql backup and find the sql's and then I'll post it here :D Quote
J_StrauD Posted December 30, 2009 Posted December 30, 2009 Alrighty JUST A REMINDER, I DID NOT MAKE THIS, I SIMPLY FOUND IT ON MY COMPUTER :D Here are the sql's [mysql]ALTER TABLE `users` ADD `married` INT( 11 ) NOT NULL DEFAULT '0' [/mysql] [mysql]CREATE TABLE IF NOT EXISTS `proposals` ( `proID` int(11) NOT NULL auto_increment, `proPROPOSER` int(11) NOT NULL, `proPROPOSED` int(11) NOT NULL, `proMESSAGE` varchar(255) NOT NULL, PRIMARY KEY (`proID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ;[/mysql] Then this is propose.php <?php /*----------------------------------------------------- -- Advanced Marriage Mod -- Product Copyright (c) Halo 2008 -- To be sold as freeware, do not re-sell -- Free for CE Members | Mccode V2 -----------------------------------------------------*/ include "globals.php"; if ($ir['married'] != 0) { die("You are already married"); } switch($_GET['action']) { case 'propose': propose_form(); break; case 'proposesub': propose_submit(); break; default: index(); break; } function index() { global $db,$ir,$c,$h,$userid; if ($ir['married'] != 0) { die("You are already married"); } else { print"<h1>Proposal Center</h1> Do you want to propose to someone? [url='propose.php?action=propose']> Yes[/url] [url='index.php']> No[/url]"; } } function propose_form() { global $db,$ir,$c,$h,$userid; if ($ir['married'] != 0) { die("You are already married"); } else { print"<h1>Proposal Center</h1> <form action='propose.php?action=proposesub' method='post'> Please enter the user id of the user you want to propose to: User: <input type='text' name='propose' /> Message: <input type='text' name='message' /> <input type='submit' value='Propose' /></form>"; } } function propose_submit() { global $db,$ir,$c,$h,$userid; if ($ir['married'] != 0) { die("You are already married"); } else if ($ir['userid'] == $_POST['propose']) { die("You cannot marry yourself"); } else { $ch=$db->query("SELECT * FROM proposals WHERE proPROPOSED={$_POST['propose']}"); if ($db->num_rows($ch)!=0) { die("This user already has a pending proposal, please try again later <a href=index.php>> Back</a>"); } else { $m=$db->query("SELECT * FROM users WHERE userid={$_POST['propose']}"); $r=$db->fetch_row($m); if ($ir['gender'] == $r['gender']) { die("You cannot propose to someone the same gender as you"); } else { $db->query("INSERT INTO proposals VALUES('', '{$ir['userid']}', '{$_POST['propose']}', '{$_POST['message']}')"); event_add($_POST['propose'],"[url='viewuser.php?u=$userid']{$ir['username']} [{$ir['userid']}][/url] proposed to you Click [url='decision.php']<u>here</u>[/url] to make your mind up</a> ",$c); print"<h3>Proposal Center</h3> You proposed to {$r['username']} [{$r['userid']}], please wait for their decision "; } } } } $h->endpage(); ?> And this is partner.php <?php /*----------------------------------------------------- -- Advanced Marriage Mod -- Product Copyright (c) Halo 2008 -- To be sold as freeware, do not re-sell -- Free for CE Members | Mccode V2 -----------------------------------------------------*/ include "globals.php"; $m=$db->query("SELECT * FROM users WHERE userid={$ir['married']}"); $par=$db->fetch_row($m); if($ir['married'] == 0) { die("You are not married, come back when you have a partner"); } switch($_GET['action']) { case 'givemoney': give_money_form(); break; case 'givemoneysub': give_money_submit(); break; case 'givecrystals': give_crystals_form(); break; case 'givecrystalssub': give_crystals_submit(); break; case 'givebank': give_bank_form(); break; case 'givebanksub': give_bank_submit(); break; case 'givecyber': give_cyber_form(); break; case 'givecybersub': give_cyber_submit(); break; case 'takemoney': take_money_form(); break; case 'takemoneysub': take_money_submit(); break; case 'takecrystals': take_crystals_form(); break; case 'takecrystalssub': take_crystals_submit(); break; case 'takebank': take_bank_form(); break; case 'takebanksub': take_bank_submit(); break; case 'takecyber': take_cyber_form(); break; case 'takecybersub': take_cyber_submit(); break; case 'sendmessage': send_message_form(); break; case 'sendmessagesub': send_message_submit(); break; case 'sleep': sleep_form(); break; case 'sleepsub': sleep_submit(); break; case 'affair': begin_affair(); break; case 'doaffair': do_affair(); break; case 'divorce': divorce_form(); break; case 'divorcesub': divorce_submit(); break; case 'allowence': allowence_form(); break; case 'council': begin_council(); break; case 'docouncil': do_council(); break; default: index(); break; } function give_money_form() { global $db,$ir,$c,$h,$userid,$par; print "<h3>Giving Money</h3> This action will give your money to your partner <form action='partner.php?action=givemoneysub' method='post'> Money: <input type='text' name='money' value='{$ir['money']}'> <input type='submit' value='Give Money' /></form>"; } function give_money_submit() { global $db,$ir,$c,$h,$userid,$par; if ($ir['money'] < $_POST['money']) { die("You are trying to give more money than you can [url='partner.php?action=givemoney']Back[/url]"); } else { $db->query("UPDATE users SET money=money+{$_POST['money']} WHERE userid={$par['userid']}"); $db->query("UPDATE users SET money=money-{$_POST['money']} WHERE userid=$userid"); event_add($par['userid'],"You partner has just given you \${$_POST['money']}",$c); print"You gave \${$_POST['money']} to your partner"; } } function give_crystals_form() { global $db,$ir,$c,$h,$userid,$par; print "<h3>Giving Crystals</h3> This action will give your crystals to your partner <form action='partner.php?action=givecrystalssub' method='post'> Crystals: <input type='text' name='crystals' value='{$ir['crystals']}'> <input type='submit' value='Give Crystals' /></form>"; } function give_crystals_submit() { global $db,$ir,$c,$h,$userid,$par; if ($ir['crystals'] < $_POST['crystals']) { die("You are trying to give more crystals than you can [url='partner.php?action=givecrystals']Back[/url]"); } else { $db->query("UPDATE users SET crystals=crystals+'{$_POST['crystals']}' WHERE userid={$par['userid']}"); $db->query("UPDATE users SET crystals=crystals-'{$_POST['crystals']}' WHERE userid=$userid"); event_add($par['userid'],"You partner has just given you {$_POST['crystals']} crystals",$c); print"You gave {$_POST['crystals']} crystals to your partner"; } } function give_bank_form() { global $db,$ir,$c,$h,$userid,$par; if ($ir['bankmoney'] < 0) { die("You dont have a bank account"); } if ($par['bankmoney'] < 0) { die("Your partner dose not have a bank account"); } else { print "<h3>Giving Bank Money</h3> This action will give bank money to your partner <form action='partner.php?action=givebanksub' method='post'> Bank Money: <input type='text' name='bank' value='{$ir['bankmoney']}'> <input type='submit' value='Give Bank Money' /></form>"; } } function give_bank_submit() { global $db,$ir,$c,$h,$userid,$par; if ($ir['bankmoney'] < $_POST['bank']) { die("You are trying to give more bank money than you can [url='partner.php?action=givecrystals']Back[/url]"); } else { $db->query("UPDATE users SET bankmoney=bankmoney+'{$_POST['bank']}' WHERE userid={$par['userid']}"); $db->query("UPDATE users SET bankmoney=bankmoney-'{$_POST['bank']}' WHERE userid=$userid"); event_add($par['userid'],"You partner has just wired you \${$_POST['bank']} into your bank account",$c); print"You wired \${$_POST['bank']} to your partner"; } } function give_cyber_form() { global $db,$ir,$c,$h,$userid,$par; if ($ir['cybermoney'] < 0) { die("You dont have a cyber bank account"); } if ($par['cybermoney'] < 0) { die("Your partner dose not have a cyber bank account"); } else { print "<h3>Giving Cyber Bank Money</h3> This action will give cyber bank money to your partner <form action='partner.php?action=givecybersub' method='post'> Bank Money: <input type='text' name='cyber' value='{$ir['cybermoney']}'> <input type='submit' value='Give Cyber Money' /></form>"; } } function give_cyber_submit() { global $db,$ir,$c,$h,$userid,$par; if ($ir['cybermoney'] < $_POST['cyber']) { die("You are trying to give more cyber bank money than you can [url='partner.php?action=givecrystals']Back[/url]"); } else { $db->query("UPDATE users SET cybermoney=cybermoney+'{$_POST['cyber']}' WHERE userid={$par['userid']}"); $db->query("UPDATE users SET cybermoney=cybermoney-'{$_POST['cyber']}' WHERE userid=$userid"); event_add($par['userid'],"You partner has just wired you \${$_POST['cyber']} into your cyber bank account",$c); print"You wired \${$_POST['cyber']} to your partner"; } } function take_money_form() { global $db,$ir,$c,$h,$userid,$par; if ($par['allowence'] == 0) { die("Your partner hasnt allowed your to access their finacial items"); } else { print "<h3>Taking Money</h3> This action will take money from your partner <form action='partner.php?action=takemoneysub' method='post'> Money: <input type='text' name='money' value='{$par['money']}'> <input type='submit' value='Take Money' /></form>"; } } function take_money_submit() { global $db,$ir,$c,$h,$userid,$par; if ($par['allowence'] == 0) { die("Your partner hasnt allowed your to access their finacial items"); } if ($par['money'] < $_POST['money']) { die("You are trying to take more money than you can [url='partner.php?action=takemoney']Back[/url]"); } else { $db->query("UPDATE users SET money=money+'{$_POST['money']}' WHERE userid=$userid"); $db->query("UPDATE users SET money=money-'{$_POST['money']}' WHERE userid={$par['userid']}"); event_add($par['userid'],"Your partner has just taken \${$_POST['money']} from your hand money",$c); print"You took \${$_POST['money']} from your partner"; } } function take_crystals_form() { global $db,$ir,$c,$h,$userid,$par; if ($par['allowence'] == 0) { die("Your partner hasnt allowed your to access their finacial items"); } else { print "<h3>Take Crystals</h3> This action will take crystals from your partner <form action='partner.php?action=takecrystalssub' method='post'> Crystals: <input type='text' name='crystals' value='{$par['crystals']}'> <input type='submit' value='Take Crystals' /></form>"; } } function take_crystals_submit() { global $db,$ir,$c,$h,$userid,$par; if ($par['allowence'] == 0) { die("Your partner hasnt allowed your to access their finacial items"); } if ($par['crystals'] < $_POST['crystals']) { die("You are trying to take more crystals than you can [url='partner.php?action=takecrystals']Back[/url]"); } else { $db->query("UPDATE users SET crystals=crystals+'{$_POST['crystals']}' WHERE userid=$userid"); $db->query("UPDATE users SET crystals=crystals-'{$_POST['crystals']}' WHERE userid={$par['userid']}"); event_add($par['userid'],"Your partner has just taken {$_POST['crystals']} crystals from you",$c); print"You took {$_POST['crystals']} crystals to your partner"; } } function take_bank_form() { global $db,$ir,$c,$h,$userid,$par; if ($par['allowence'] == 0) { die("Your partner hasnt allowed your to access their finacial items"); } if ($ir['bankmoney'] < 0) { die("You dont have a bank account"); } if ($par['bankmoney'] < 0) { die("Your partner dose not have a bank account"); } else { print "<h3>Take Bank Money</h3> This action will take bank money from your partner <form action='partner.php?action=takebanksub' method='post'> Bank Money: <input type='text' name='bank' value='{$par['bankmoney']}'> <input type='submit' value='Take Bank Money' /></form>"; } } function take_bank_submit() { global $db,$ir,$c,$h,$userid,$par; if ($par['allowence'] == 0) { die("Your partner hasnt allowed your to access their finacial items"); } if ($par['bankmoney'] < $_POST['bank']) { die("You are trying to take more bank money than you can [url='partner.php?action=takebank']Back[/url]"); } else { $db->query("UPDATE users SET bankmoney=bankmoney+'{$_POST['bank']}' WHERE userid=$userid"); $db->query("UPDATE users SET bankmoney=bankmoney-'{$_POST['bank']}' WHERE userid={$par['userid']}"); event_add($par['userid'],"Your partner has just taken \${$_POST['bank']} from your bank account",$c); print"You took \${$_POST['bank']} from your partner"; } } function take_cyber_form() { global $db,$ir,$c,$h,$userid,$par; if ($par['allowence'] == 0) { die("Your partner hasnt allowed your to access their finacial items"); } if ($ir['cybermoney'] < 0) { die("You dont have a cyber bank account"); } if ($par['cybermoney'] < 0) { die("Your partner dose not have a cyber bank account"); } else { print "<h3>Taking Cyber Bank Money</h3> This action will take cyber bank money from your partner <form action='partner.php?action=takecybersub' method='post'> Bank Money: <input type='text' name='cyber' value='{$par['cybermoney']}'> <input type='submit' value='Take Cyber Money' /></form>"; } } function take_cyber_submit() { global $db,$ir,$c,$h,$userid,$par; if ($par['allowence'] == 0) { die("Your partner hasnt allowed your to access their finacial items"); } if ($par['cybermoney'] < $_POST['cyber']) { die("You are trying to take more cyber bank money than you can [url='partner.php?action=givecrystals']Back[/url]"); } else { $db->query("UPDATE users SET cybermoney=cybermoney+'{$_POST['cyber']}' WHERE userid=$userid"); $db->query("UPDATE users SET cybermoney=cybermoney-'{$_POST['cyber']}' WHERE userid={$par['userid']}"); event_add($par['userid'],"Your partner has just taken \${$_POST['cyber']} from your cyber bank account",$c); print"You took \${$_POST['cyber']} from your partner"; } } function send_message_form() { global $db,$ir,$c,$h,$userid,$par; print "<h3>Send a message</h3> <form action='partner.php?action=sendmessagesub' method='post'> Your LUV Message: <input type='text' name='msg'> <input type='submit' value='Give Message' /></form>"; } function send_message_submit() { global $db,$ir,$c,$h,$userid,$par; if ($_POST['msg'] == '') { die("Why send a blank message?"); } else { event_add($par['userid'],"You partner sent you a LUV message: {$_POST['msg']}",$c); print"Message sent!"; } } function sleep_form() { global $db,$ir,$c,$h,$userid,$par; if($ir['tired'] == 1 or $par['tired'] == 1) { die("You are too tired to sleep with your partner again"); } print "<h3>Sleep with your Partner</h3> <form action='partner.php?action=sleepsub' method='post'> <input type='submit' value='Sleep With {$par['username']}' /></form>"; } function sleep_submit() { global $db,$ir,$c,$h,$userid,$par; if($ir['tired'] == 1 or $par['tired'] == 1) { die("You are too tired to sleep with your partner again"); } if (!$_POST['msg']) { $db->query("UPDATE users SET happiness=happiness+1 WHERE userid={$par['userid']}"); $db->query("UPDATE users SET happiness=happiness+1 WHERE userid=$userid"); $db->query("UPDATE users SET tired=1 WHERE userid={$par['userid']}"); $db->query("UPDATE users SET tired=1 WHERE userid=$userid"); event_add($par['userid'],"Your partner slept with you, you gained one happiness",$c); print"You slept with your partner and gained one happiness!"; } } function begin_affair() { global $db,$ir,$c,$h,$userid,$par; print "<h3>Have an affair</h3>"; if ($ir['happiness'] > 4) { die("You have a happy relationship, why risk it?"); } print" <form action='partner.php?action=doaffair' method='post'> You and your partner havent been having a good time recently, and a colleuge of your asked you out, what do you do? <input type='submit' value='Go with Colleuge' /></form> <form action='partner.php' method='post'><input type='submit' value='Dont Risk It' /></form>"; } function do_affair() { global $db,$ir,$c,$h,$userid,$par; $chance=(int) rand(1,2); if($chance==1) { $db->query("UPDATE users SET happiness=10 WHERE userid=$userid"); print"1.)You go with your colleuge and have a great date, you then go over to their house and have some fun 2.) After you finish you go to your house and find out your wifes asleep 3.) She didnt suspect a thing and you get away with it"; } else if($chance=2) { $db->query("UPDATE users SET happiness=1 WHERE userid=$userid"); $db->query("UPDATE users SET happiness=1 WHERE userid={$par['userid']}"); event_add($par['userid'],"You find out your partner has cheated on you",$c); print"1.) You go with you colleuge to your date, and wish you never bothered, the date was a complete faliure 2.) You go home and to your horror see your colleuge there 3.) She told your partner about you and walks away smirking 4.) You gulp"; } } function divorce_form() { global $db,$ir,$c,$h,$userid,$par; print "<h3>Divorce Your Partner</h3> This action will divorce your partner <form action='partner.php?action=divorcesub' method='post'> <input type='submit' value='Divorce' /></form>"; } function divorce_submit() { global $db,$ir,$c,$h,$userid,$par; { $db->query("UPDATE users SET married=0 WHERE userid={$par['userid']}"); $db->query("UPDATE users SET married=0 WHERE userid=$userid"); event_add($par['userid'],"Your partner divorced you!",$c); print"You divorced your partner"; } } function allowence_form() { global $db,$ir,$c,$h,$userid,$par; print "<h3>Marriage Allowence</h3> This action will decide wether you want to allow your partner to take money or not [[url='partner.php?action=allowence&allow=yes']Allow[/url]] [[url='partner.php?action=allowence&allow=no']Do Not Allow[/url]] "; if($_GET['allow'] == yes) { $db->query("UPDATE users SET allowence=1 WHERE userid=$userid"); print" Now your partner is allowed to access your finance"; } else if($_GET['allow'] == no) { $db->query("UPDATE users SET allowence=0 WHERE userid=$userid"); print" Now your partner isnt allowed to access your finance"; } } function begin_council() { global $db,$ir,$c,$h,$userid,$par; print "<h3>Marriage Counciling</h3>"; if ($ir['happiness'] > 6 and $par['happiness'] > 6) { die("You have a happy relationship, why risk it?"); } print" <form action='partner.php?action=docouncil' method='post'> You enter Dr. Lovvels Marriage Counciling Center, you could come out with your marriage secure, or it shatters <input type='submit' value='Enter' /></form>"; } function do_council() { global $db,$ir,$c,$h,$userid,$par; $chance=(int) rand(1,2); if($chance==1) { $db->query("UPDATE users SET happiness=10 WHERE userid=$userid"); $db->query("UPDATE users SET happiness=10 WHERE userid={$par['userid']}"); print"1.) You enter the counciling room 2.) You and your partner resolve a few issues you have been having 3.) You come out feeling happy"; } else if($chance=2) { $db->query("UPDATE users SET happiness=1 WHERE userid=$userid"); $db->query("UPDATE users SET happiness=1 WHERE userid={$par['userid']}"); event_add($par['userid'],"You went to marriage coucling and it was a disaster",$c); print"1.) You go with your partner to marriage counciling 2.) You blame things on your partner and vice versa 3.) It was a disaster and you go out seeling sad and sleep on the sofa"; } } function index() { global $db,$ir,$c,$h,$userid,$par; print "<h3>Partner Managment</h3> Here you can perform many actions to do with your marriage <table width=80% height=80% border=1><tr><td>[url='partner.php?action=givemoney']Send Money[/url]</td> <td>[url='partner.php?action=givecrystals']Send Crystals[/url]</td></tr><tr> <td>[url='partner.php?action=givebank']Send Bank Money[/url]</td> <td>[url='partner.php?action=givecyber']Send Cyber Money[/url]</td></tr><tr> <tr><td>[url='partner.php?action=takemoney']Take Money[/url]</td> <td>[url='partner.php?action=takecrystals']Take Crystals[/url]</td></tr><tr> <td>[url='partner.php?action=takebank']Take Bank Money[/url]</td> <td>[url='partner.php?action=takecyber']Take Cyber Money[/url]</td></tr><tr> <td>[url='partner.php?action=sendmessage']Send Message[/url]</td> <td><a href='partner.php?action=sleep'>Sleep With {$par['username']}</td></tr> <tr><td><a href='partner.php?action=affair'>Have an Affair</td> <td>[url='partner.php?action=divorce']Divorce[/url]</td><tr> <td>[url='partner.php?action=allowence']Change Marriage Allowence</td><td><a href='partner.php?action=council'>Go to Marriage Counciling[/url]</td></tr></table> <h3>Marriage Stats</h3> <table width=80% height=80% border=1><tr><td>Your Happiness: {$ir['happiness']}</td><td>Their Happiness: {$par['happiness']}</td></tr></table>"; } $h->endpage(); ?> Then you need to add this somewhere in explore: Marriage Center And then in view user find if($r['donatordays']) { $r['username'] = "<font color=red>{$r['username']}</font>";$d="[img=donator.gif]"; And then add this before if($r['married'] != 0) { $partner= "[url='viewuser.php?u={$par[']<font color=green>{$par['username']}</font>[/url]"; } else { $partner= "<font color=red>N/A</font>"; } and then after Gender: {$r['gender']} put Married: $partner And then in index.php add this somewhere if($ir['married'] != 0) { $partner= "[url='viewuser.php?u={$par[']<font color=green>{$par['username']}</font>[/url] [[url='partner.php']Manage[/url]]"; } else { $partner= "<font color=red>N/A</font>"; } And that should be it :D It should work perfectly because I didn't edit any of the files Quote
Shakeynath Posted December 30, 2009 Author Posted December 30, 2009 Youve made me very happy lmaoo ! Been searching for so long haha :thumbdown: But you finally got it for me which i really appriciate :thumbsup: Thankyouu Quote
J_StrauD Posted December 30, 2009 Posted December 30, 2009 No problem :D I'm glad too because I can use it now too! I completely forgo I had made a backup and it was in my recycle bin and now I have this and a few other mods. Quote
Guest cablebox Posted December 31, 2009 Posted December 31, 2009 Awsome i needed a mod like this too! Thx mate! Quote
p_T_s Posted December 31, 2009 Posted December 31, 2009 [align=left]Just had a quick look over it and i believe there should be a decision.php file....[/align][align=left] [/align] Quote
Guest cablebox Posted December 31, 2009 Posted December 31, 2009 marzy states a point, I remember a mod like this that had a decision.php file do you have it? Quote
p_T_s Posted December 31, 2009 Posted December 31, 2009 Ok guys i fixed up the code a little, corrected some of the spelling mistakes and made it auto refresh. Also found the decision, acceptpro, and declinepro files and fixed them also. here's the sql's [mysql]ALTER TABLE `users` ADD `married` INT( 11 ) NOT NULL DEFAULT '0';[/mysql] [mysql]ALTER TABLE `users` ADD `happiness` INT(11) NOT NULL DEFAULT '0';[/mysql] [mysql]ALTER TABLE `users` ADD `tired` int(11) NOT NULL DEFAULT '0';[/mysql] [mysql]CREATE TABLE IF NOT EXISTS `proposals` ( `proID` int(11) NOT NULL auto_increment, `proPROPOSER` int(11) NOT NULL, `proPROPOSED` int(11) NOT NULL, `proMESSAGE` varchar(255) NOT NULL, PRIMARY KEY (`proID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ; [/mysql] for the sleep with partner add this to your cron hours [mysql]$db->query("UPDATE users SET tired=0 WHERE tired = 1");[/mysql] Now for the files. propose.php /*----------------------------------------------------- -- Advanced Marriage Mod -- Product Copyright (c) Halo 2008 -- To be sold as freeware, do not re-sell -- Free for CE Members | Mccode V2 -----------------------------------------------------*/ include "globals.php"; if ($ir['married'] != 0) { print "You are already married![color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } switch($_GET['action']) { case 'propose': propose_form(); break; case 'proposesub': propose_submit(); break; default: index(); break; } function index() { global $db,$ir,$c,$h,$userid; if ($ir['married'] != 0) { print "You are already married![color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { print"Proposal Center Do you want to propose to someone? [url='propose.php?action=propose']> Yes[/url] [url='index.php']> No[/url]"; } } function propose_form() { global $db,$ir,$c,$h,$userid; if ($ir['married'] != 0) { print "You are already married![color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { print"Proposal Center Please enter the user id of the user you want to propose to: User: Message: "; } } function propose_submit() { global $db,$ir,$c,$h,$userid; if ($ir['married'] != 0) { print "You are already married![color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else if ($ir['userid'] == $_POST['propose']) { print "You cannot marry yourself![color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { $ch=$db->query("SELECT * FROM proposals WHERE proPROPOSED={$_POST['propose']}"); if ($db->num_rows($ch)!=0) { print "This user already has a pending proposal, please try again later![color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { $m=$db->query("SELECT * FROM users WHERE userid={$_POST['propose']}"); $r=$db->fetch_row($m); if ($ir['gender'] == $r['gender']) { print "You cannot propose to someone the same gender as you![color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { $db->query("INSERT INTO proposals VALUES('', '{$ir['userid']}', '{$_POST['propose']}', '{$_POST['message']}')"); event_add($_POST['propose'],"[url='viewuser.php?u=$userid']{$ir['username']} [{$ir['userid']}][/url] proposed to you Click [url='decision.php'][u]here[/u][/url] to make your mind up ",$c); print"Proposal Center You proposed to {$r['username']} [{$r['userid']}], please wait for their decision[color=white]Being redirected, Please Wait![/color]"; } } } } $h->endpage(); ?> partner.php /*----------------------------------------------------- -- Advanced Marriage Mod -- Product Copyright (c) Halo 2008 -- To be sold as freeware, do not re-sell -- Free for CE Members | Mccode V2 -----------------------------------------------------*/ include "globals.php"; $m=$db->query("SELECT * FROM users WHERE userid={$ir['married']}"); $par=$db->fetch_row($m); if($ir['married'] == 0) { print "You are not married, come back when you have a partner.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } switch($_GET['action']) { case 'givemoney': give_money_form(); break; case 'givemoneysub': give_money_submit(); break; case 'givecrystals': give_crystals_form(); break; case 'givecrystalssub': give_crystals_submit(); break; case 'givebank': give_bank_form(); break; case 'givebanksub': give_bank_submit(); break; case 'givecyber': give_cyber_form(); break; case 'givecybersub': give_cyber_submit(); break; case 'takemoney': take_money_form(); break; case 'takemoneysub': take_money_submit(); break; case 'takecrystals': take_crystals_form(); break; case 'takecrystalssub': take_crystals_submit(); break; case 'takebank': take_bank_form(); break; case 'takebanksub': take_bank_submit(); break; case 'takecyber': take_cyber_form(); break; case 'takecybersub': take_cyber_submit(); break; case 'sendmessage': send_message_form(); break; case 'sendmessagesub': send_message_submit(); break; case 'sleep': sleep_form(); break; case 'sleepsub': sleep_submit(); break; case 'affair': begin_affair(); break; case 'doaffair': do_affair(); break; case 'divorce': divorce_form(); break; case 'divorcesub': divorce_submit(); break; case 'allowence': allowence_form(); break; case 'council': begin_council(); break; case 'docouncil': do_council(); break; default: index(); break; } function give_money_form() { global $db,$ir,$c,$h,$userid,$par; print "Giving Money This action will give your money to your partner Money: "; } function give_money_submit() { global $db,$ir,$c,$h,$userid,$par; if ($ir['money'] < $_POST['money']) { print "You are trying to give more money than you can.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { $db->query("UPDATE users SET money=money+{$_POST['money']} WHERE userid={$par['userid']}"); $db->query("UPDATE users SET money=money-{$_POST['money']} WHERE userid=$userid"); event_add($par['userid'],"You partner has just given you \${$_POST['money']}",$c); print"You gave \${$_POST['money']} to your partner[color=white]Being redirected, Please Wait![/color]"; } } function give_crystals_form() { global $db,$ir,$c,$h,$userid,$par; print "Giving Crystals This action will give your crystals to your partner Crystals: "; } function give_crystals_submit() { global $db,$ir,$c,$h,$userid,$par; if ($ir['crystals'] < $_POST['crystals']) { print "You are trying to give more crystals than you can.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { $db->query("UPDATE users SET crystals=crystals+'{$_POST['crystals']}' WHERE userid={$par['userid']}"); $db->query("UPDATE users SET crystals=crystals-'{$_POST['crystals']}' WHERE userid=$userid"); event_add($par['userid'],"You partner has just given you {$_POST['crystals']} crystals",$c); print"You gave {$_POST['crystals']} crystals to your partner[color=white]Being redirected, Please Wait![/color]"; } } function give_bank_form() { global $db,$ir,$c,$h,$userid,$par; if ($ir['bankmoney'] < 0) { print "You dont have a bank account, go get one.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } if ($par['bankmoney'] < 0) { print "Your partner dose not have a bank account.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { print "Giving Bank Money This action will give bank money to your partner Bank Money: "; } } function give_bank_submit() { global $db,$ir,$c,$h,$userid,$par; if ($ir['bankmoney'] < $_POST['bank']) { print "You are trying to give more bank money than you can.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { $db->query("UPDATE users SET bankmoney=bankmoney+'{$_POST['bank']}' WHERE userid={$par['userid']}"); $db->query("UPDATE users SET bankmoney=bankmoney-'{$_POST['bank']}' WHERE userid=$userid"); event_add($par['userid'],"You partner has just wired you \${$_POST['bank']} into your bank account",$c); print"You wired \${$_POST['bank']} to your partner[color=white]Being redirected, Please Wait![/color]"; } } function give_cyber_form() { global $db,$ir,$c,$h,$userid,$par; if ($ir['cybermoney'] < 0) { print "You dont have a cyber bank account, go get one.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } if ($par['cybermoney'] < 0) { print "Your partner dose not have a cyber bank account.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { print "Giving Cyber Bank Money This action will give cyber bank money to your partner Bank Money: "; } } function give_cyber_submit() { global $db,$ir,$c,$h,$userid,$par; if ($ir['cybermoney'] < $_POST['cyber']) { print "You are trying to give more cyber bank money than you can.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { $db->query("UPDATE users SET cybermoney=cybermoney+'{$_POST['cyber']}' WHERE userid={$par['userid']}"); $db->query("UPDATE users SET cybermoney=cybermoney-'{$_POST['cyber']}' WHERE userid=$userid"); event_add($par['userid'],"You partner has just wired you \${$_POST['cyber']} into your cyber bank account",$c); print"You wired \${$_POST['cyber']} to your partner[color=white]Being redirected, Please Wait![/color]"; } } function take_money_form() { global $db,$ir,$c,$h,$userid,$par; if ($par['allowence'] == 0) { print "Your partner hasnt allowed your to access their financial items.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { print "Taking Money This action will take money from your partner Money: "; } } function take_money_submit() { global $db,$ir,$c,$h,$userid,$par; if ($par['allowence'] == 0) { print "Your partner hasnt allowed your to access their financial items.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } if ($par['money'] < $_POST['money']) { print "You are trying to take more money than you can.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { $db->query("UPDATE users SET money=money+'{$_POST['money']}' WHERE userid=$userid"); $db->query("UPDATE users SET money=money-'{$_POST['money']}' WHERE userid={$par['userid']}"); event_add($par['userid'],"Your partner has just taken \${$_POST['money']} from your hand money",$c); print"You took \${$_POST['money']} from your partner[color=white]Being redirected, Please Wait![/color]"; } } function take_crystals_form() { global $db,$ir,$c,$h,$userid,$par; if ($par['allowence'] == 0) { print "Your partner hasnt allowed your to access their financial items.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { print "Take Crystals This action will take crystals from your partner Crystals: "; } } function take_crystals_submit() { global $db,$ir,$c,$h,$userid,$par; if ($par['allowence'] == 0) { print "Your partner hasnt allowed your to access their financial items.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } if ($par['crystals'] < $_POST['crystals']) { print "You are trying to take more crystals than you can.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { $db->query("UPDATE users SET crystals=crystals+'{$_POST['crystals']}' WHERE userid=$userid"); $db->query("UPDATE users SET crystals=crystals-'{$_POST['crystals']}' WHERE userid={$par['userid']}"); event_add($par['userid'],"Your partner has just taken {$_POST['crystals']} crystals from you",$c); print"You took {$_POST['crystals']} crystals to your partner[color=white]Being redirected, Please Wait![/color]"; } } function take_bank_form() { global $db,$ir,$c,$h,$userid,$par; if ($par['allowence'] == 0) { print "Your partner hasnt allowed your to access their financial items.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } if ($ir['bankmoney'] < 0) { print "You dont have a bank account, go get one.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } if ($par['bankmoney'] < 0) { print "Your partner dose not have a bank account.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { print "Take Bank Money This action will take bank money from your partner Bank Money: "; } } function take_bank_submit() { global $db,$ir,$c,$h,$userid,$par; if ($par['allowence'] == 0) { print "Your partner hasnt allowed your to access their financial items.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } if ($par['bankmoney'] < $_POST['bank']) { print "You are trying to take more bank money than you can.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { $db->query("UPDATE users SET bankmoney=bankmoney+'{$_POST['bank']}' WHERE userid=$userid"); $db->query("UPDATE users SET bankmoney=bankmoney-'{$_POST['bank']}' WHERE userid={$par['userid']}"); event_add($par['userid'],"Your partner has just taken \${$_POST['bank']} from your bank account",$c); print"You took \${$_POST['bank']} from your partner[color=white]Being redirected, Please Wait![/color]"; } } function take_cyber_form() { global $db,$ir,$c,$h,$userid,$par; if ($par['allowence'] == 0) { print "Your partner hasnt allowed your to access their financial items.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } if ($ir['cybermoney'] < 0) { print "You dont have a cyber bank account, go get one.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } if ($par['cybermoney'] < 0) { print "Your partner dose not have a cyber bank account.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { print "Taking Cyber Bank Money This action will take cyber bank money from your partner Bank Money: "; } } function take_cyber_submit() { global $db,$ir,$c,$h,$userid,$par; if ($par['allowence'] == 0) { print "Your partner hasnt allowed your to access their financial items.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } if ($par['cybermoney'] < $_POST['cyber']) { print "You are trying to take more cyber bank money than you can.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { $db->query("UPDATE users SET cybermoney=cybermoney+'{$_POST['cyber']}' WHERE userid=$userid"); $db->query("UPDATE users SET cybermoney=cybermoney-'{$_POST['cyber']}' WHERE userid={$par['userid']}"); event_add($par['userid'],"Your partner has just taken \${$_POST['cyber']} from your cyber bank account",$c); print"You took \${$_POST['cyber']} from your partner[color=white]Being redirected, Please Wait![/color]"; } } function send_message_form() { global $db,$ir,$c,$h,$userid,$par; print "Send a message Your LUV Message: "; } function send_message_submit() { global $db,$ir,$c,$h,$userid,$par; if ($_POST['msg'] == '') { print "Why send a blank message?.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { event_add($par['userid'],"You partner sent you a LUV message: {$_POST['msg']}",$c); print"Message sent![color=white]Being redirected, Please Wait![/color]"; } } function sleep_form() { global $db,$ir,$c,$h,$userid,$par; if($ir['tired'] == 1 or $par['tired'] == 1) { print "You are too tired to sleep with your partner again.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } print "Sleep with your Partner "; } function sleep_submit() { global $db,$ir,$c,$h,$userid,$par; if($ir['tired'] == 1 or $par['tired'] == 1) { print "You are too tired to sleep with your partner again.[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } if (!$_POST['msg']) { $db->query("UPDATE users SET happiness=happiness+1 WHERE userid={$par['userid']}"); $db->query("UPDATE users SET happiness=happiness+1 WHERE userid=$userid"); $db->query("UPDATE users SET tired=1 WHERE userid={$par['userid']}"); $db->query("UPDATE users SET tired=1 WHERE userid=$userid"); event_add($par['userid'],"Your partner slept with you, you gained one happiness",$c); print"You slept with your partner and gained one happiness![color=white]Being redirected, Please Wait![/color]"; } } function begin_affair() { global $db,$ir,$c,$h,$userid,$par; print "Have an affair "; if ($ir['happiness'] > 4) { print "You have a happy relationship, why risk it?[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } print" You and your partner havent been having a good time recently, and a colleuge of your asked you out, what do you do? "; } function do_affair() { global $db,$ir,$c,$h,$userid,$par; $chance=(int) rand(1,2); if($chance==1) { $db->query("UPDATE users SET happiness=10 WHERE userid=$userid"); print"1.)You go with your colleague and have a great date, you then go over to their house and have some fun 2.) After you finish you go to your house and find out your wifes asleep 3.) She didn't suspect a thing and you get away with it[color=white]Being redirected, Please Wait![/color]"; } else if($chance=2) { $db->query("UPDATE users SET happiness=1 WHERE userid=$userid"); $db->query("UPDATE users SET happiness=1 WHERE userid={$par['userid']}"); event_add($par['userid'],"You find out your partner has cheated on you",$c); print"1.) You go with you colleague to your date, and wish you never bothered, the date was a complete failure 2.) You go home and to your horror see your colleague there 3.) She told your partner about you and walks away smirking 4.) You gulp[color=white]Being redirected, Please Wait![/color]"; } } function divorce_form() { global $db,$ir,$c,$h,$userid,$par; print "Divorce Your Partner This action will divorce your partner "; } function divorce_submit() { global $db,$ir,$c,$h,$userid,$par; { $db->query("UPDATE users SET married=0 WHERE userid={$par['userid']}"); $db->query("UPDATE users SET married=0 WHERE userid=$userid"); event_add($par['userid'],"Your partner divorced you!",$c); print"You divorced your partner[color=white]Being redirected, Please Wait![/color]"; } } function allowence_form() { global $db,$ir,$c,$h,$userid,$par; print "Marriage Allowance This action will decide weather you want to allow your partner to take money or not [[url='partner.php?action=allowence&allow=yes']Allow[/url]] [[url='partner.php?action=allowence&allow=no']Do Not Allow[/url]] "; if($_GET['allow'] == yes) { $db->query("UPDATE users SET allowence=1 WHERE userid=$userid"); print" Now your partner is allowed to access your finance[color=white]Being redirected, Please Wait![/color]"; } else if($_GET['allow'] == no) { $db->query("UPDATE users SET allowence=0 WHERE userid=$userid"); print" Now your partner isnt allowed to access your finance[color=white]Being redirected, Please Wait![/color]"; } } function begin_council() { global $db,$ir,$c,$h,$userid,$par; print "Marriage Counseling "; if ($ir['happiness'] > 6 and $par['happiness'] > 6) { print "You have a happy relationship, why risk it?[color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } print" You enter Dr. Lovvels Marriage Counseling Center, you could come out with your marriage secure, or it shatters "; } function do_council() { global $db,$ir,$c,$h,$userid,$par; $chance=(int) rand(1,2); if($chance==1) { $db->query("UPDATE users SET happiness=10 WHERE userid=$userid"); $db->query("UPDATE users SET happiness=10 WHERE userid={$par['userid']}"); print"1.) You enter the counseling room 2.) You and your partner resolve a few issues you have been having 3.) You come out feeling happy[color=white]Being redirected, Please Wait![/color]"; } else if($chance=2) { $db->query("UPDATE users SET happiness=1 WHERE userid=$userid"); $db->query("UPDATE users SET happiness=1 WHERE userid={$par['userid']}"); event_add($par['userid'],"You went to marriage counseling and it was a disaster",$c); print"1.) You go with your partner to marriage counseling 2.) You blame things on your partner and vice versa 3.) It was a disaster and you go out feeling sad and sleep on the sofa[color=white]Being redirected, Please Wait![/color]"; } } function index() { global $db,$ir,$c,$h,$userid,$par; print "Partner Management Here you can perform many actions to do with your marriage [url='partner.php?action=givemoney']Send Money[/url] [url='partner.php?action=givecrystals']Send Crystals[/url] [url='partner.php?action=givebank']Send Bank Money[/url] [url='partner.php?action=givecyber']Send Cyber Money[/url] [url='partner.php?action=takemoney']Take Money[/url] [url='partner.php?action=takecrystals']Take Crystals[/url] [url='partner.php?action=takebank']Take Bank Money[/url] [url='partner.php?action=takecyber']Take Cyber Money[/url] [url='partner.php?action=sendmessage']Send Message[/url] [url='partner.php?action=sleep']Sleep With {$par['username']} [url='partner.php?action=affair']Have an Affair [url='partner.php?action=divorce']Divorce[/url] [url='partner.php?action=allowence']Change Marriage Allowance[url='partner.php?action=council']Go to Marriage Counseling[/url] Marriage Stats Your Happiness: {$ir['happiness']}Their Happiness: {$par['happiness']} "; } $h->endpage(); ?> Continues Quote
p_T_s Posted December 31, 2009 Posted December 31, 2009 decision.php /*----------------------------------------------------- -- Advanced Marriage Mod -- Product Copyright (c) Halo 2008 -- To be sold as freeware, do not re-sell -- Free for CE Members | Mccode V2 -----------------------------------------------------*/ include "globals.php"; $m=$db->query("SELECT * FROM proposals WHERE proPROPOSED={$ir['userid']}"); if ($db->num_rows($m)==0) { print "Nobody has proposed to you!![color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { $pro=$db->fetch_row($m); $f=$db->query("SELECT * FROM users WHERE userid={$pro['proPROPOSER']}"); $r=$db->fetch_row($f); print"Decision Center Proposer: [url='viewuser.php?u={$r[']{$r['username']}[/url] Message: {$pro['proMESSAGE']} Decision: [url='acceptpro.php?pro={$pro['][color=yellow]Accept[/color][/url] or [url='declinepro.php?pro={$pro['][color=red]Decline[/color][/url] "; } $h->endpage(); ?> acceptpro.php /*----------------------------------------------------- -- Advanced Marriage Mod -- Product Copyright (c) Halo 2008 -- To be sold as freeware, do not re-sell -- Free for CE Members | Mccode V2 -----------------------------------------------------*/ require "globals.php"; if(!$_GET['pro']) { print "Stop abusing our marriage system![color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } $m=$db->query("SELECT * FROM proposals WHERE proID={$_GET['pro']} AND proPROPOSED=$userid"); if ($db->num_rows($m) == 0) { print "Invalid proposal![color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { $m=$db->query("SELECT * FROM proposals WHERE proID={$_GET['pro']} AND proPROPOSED=$userid"); $pro=$db->fetch_row($m); $db->query("UPDATE users SET married={$pro['proPROPOSER']} WHERE userid=$userid"); $db->query("UPDATE users SET married={$pro['proPROPOSED']} WHERE userid={$pro['proPROPOSER']}"); $db->query("DELETE FROM proposals WHERE proID={$pro['proID']}"); $mr=$db->query("SELECT * FROM users WHERE userid={$pro['proPROPOSER']}"); $par=$db->fetch_row($mr); event_add($par['userid'],"Your proposal for [url='viewuser.php?u={$ir[']{$ir['username']}[/url] was accepted",$c); print"You married {$par['username']}![color=white]Being redirected, Please Wait![/color]"; } $h->endpage(); ?> declinepro.php /*----------------------------------------------------- -- Advanced Marriage Mod -- Product Copyright (c) Halo 2008 -- To be sold as freeware, do not re-sell -- Free for CE Members | Mccode V2 -----------------------------------------------------*/ require "globals.php"; if(!$_GET['pro']) { print "Stop abusing our marriage system![color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } $m=$db->query("SELECT * FROM proposals WHERE proID={$_GET['pro']} AND proPROPOSED=$userid"); if ($db->num_rows($m) == 0) { print "Invalid proposal or this is not your proposal![color=white]Being redirected, Please Wait![/color]"; $h->endpage(); exit; } else { $pro=$db->fetch_row($m); $db->query("DELETE FROM proposals WHERE proID={$pro['proID']}"); $mr=$db->query("SELECT * FROM users WHERE userid={$pro['proPROPOSER']}"); $par=$db->fetch_row($mr); event_add($par['userid'],"{$ir['username']} [{$ir['userid']}] has declined your proposal",$c); print"You declined the proposal from {$par['username']}![color=white]Being redirected, Please Wait![/color]"; } $h->endpage(); ?> Then you need to add this somewhere in explore: Marriage Center And then in view user find if($r['donatordays']) { $r['username'] = "{$r['username']}";$d=""; And then add this before if($r['married'] != 0) { $partner= "{$par['username']}"; } else { $partner= "N/A"; } and then after Gender: {$r['gender']} put Married: $partner And then in index.php add this somewhere if($ir['married'] != 0) { $partner= "{$par['username']} [Manage]"; } else { $partner= "N/A"; } That should be it. Ok for some reason it didnt add the refresh to the code, so you will have to edit it yourself. Where you see [color=white]Being redirected, Please Wait![/color] You need that in all of the code to <font color=white>Being redirected, Please Wait!</font><META HTTP-EQUIV=Refresh CONTENT='1;url=index.php'> Quote
Shakeynath Posted December 31, 2009 Author Posted December 31, 2009 QUERY ERROR: Unknown column 'proPROPOSED' in 'where clause' Query was SELECT * FROM proposals WHERE proPROPOSED=3 That comes up when you try to propose to a user ? Dunno wether its a major thing as im a noob to coding lol Quote
J_StrauD Posted December 31, 2009 Posted December 31, 2009 ooops my bad people :thumbdown: Totally forgot about the other files haha 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.