Martial Status

Started on the old forum in May 2007 · view the original in the archive · old links redirect here

27 replies · 3,391 views · started 19 years ago · 1 min read

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.

11 participants
Guest #21

DEAR BRO CAN U GIVE ME FULL SCRIPT OF CHAPPEL.THANKS

winpda Junior · 38 posts #22

this scripts can't work in lavalair?

winpda Junior · 38 posts #24

I try error in profile ...

K3V Junior · 20 posts #26

Has anyone got any updates to this topic as i myself am after the chapel script and cant find it anywhere !

rukiya Lead · 569 posts #27

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.

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close