Martial Status
Started on the old forum in May 2007 · view the original in the archive · old links redirect here
TL;DR · summary of 27 replies
- - The fix was not provided in the thread. It remained unresolved.
- - The chapel script for marital status features was mentioned but not fully explained or provided in a step-by-step manner.
- - A SQL command to add a new row to the table ibwf_users and options were suggested, but no full script was given.
- - Users requested more details on how to implement these changes, including adding queries to the database and modifying genproc.php.
Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.
u can try External image (may be gone)
if like my post click:
how I can add a query at ibwf_users ??
if like my post click:
Will post my version... Add this sql row to your database:
mysql -> ALTER TABLE ibwf_users ADD ms INT(1) NOT NULLED DEFAULT '0';Add this option where needed:
else if($action=="ms") { $uid =getuid_sid($sid); if($uid>0) { addonline(getuid_sid($sid),"Updating marital status",""); } echo "<card id=\"main\" title=\"Marital status\">"; echo "<p align=\"center\">"; $uid = getuid_sid($sid); $mss = mysql_fetch_array(mysql_query("SELECT ms FROM ibwf_users WHERE id='".$uid."'")); echo ""; echo "Marital status: <select name=\"ms\" value=\"$mss[0]\">"; echo "<option value=\"0\">Single</option>"; echo "<option value=\"1\">Involved</option>"; echo "<option value=\"2\">Engaged</option>"; echo "<option value=\"3\">Maried</option>"; echo "<anchor>Update<go href=\"genproc.php?action=ms&sid=$sid\" method=\"post\">"; echo "<postfield name=\"ms\" value=\"$(ms)\"/>"; echo "</go></anchor> "; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>Home</a>"; echo "</p>"; echo "</card>"; }Add this to your genproc.php:
//////////////////////////////////////mood else if($action=="ms") { addonline(getuid_sid($sid),"Updating marital status",""); echo "<card id=\"main\" title=\"WapTECH\">"; echo "<p align=\"center\">"; $uid = getuid_sid($sid); $ms = $_POST["ms"]; $isud = mysql_query("UPDATE ibwf_users SET ms='".$ms."' WHERE id='".$uid."'"); if($isud) { echo "<img src=\"images/ok.gif\" alt=\"o\"/>Marital status updated successfully "; }else{ echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database error, please inform H3llsp@wn. "; } echo " <a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p></card>"; }And add this to your user profile:
$msq = mysql_fetch_array(mysql_query("SELECT ms FROM ibwf_users WHERE id='".$who."'")); echo "Marital status: "; if($msq[0]=='0') { echo "single "; } else if($msq[0]=='1') { echo "involved "; } else if($msq[0]=='2') { echo "engaged "; } else if($msq[0]=='3') { echo "married "; }Thats pretty much it lol enjoy
NOTE: I added this as part of the registration form, hense the default is single lol
this is a bugs free code.so whoever is looking for code marrital status,are requested to use it.
this code work at wapdesire??
if like my post click: