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

11 participants
Guest #1

well i would really like to include a feature where members can go steady, break up, get engaged, marries and devorced in my irisblaze/lavalair script. can any 1 help pls?

subzero Super moderator Fellow · 3,954 posts #2
$staters = mysql_fetch_array(mysql_query("SELECT stats FROM ibwf_users WHERE id='".$who."'"));
$stats = parsepm($staters[0], $sid);
echo "Martial Status: $stats
";

make a row in ibwf_users

make stats var 15 not null

in user cpanel

edit settings

index.php

else if($action=="uset")
{
    addonline(getuid_sid($sid),"User Settings","");
    echo "<card id=\"main\" title=\"User Settings\">";
    echo "<onevent type=\"onenterforward\">";
    $uid = getuid_sid($sid);
    $avat = getavatar($uid);
    $email = mysql_fetch_array(mysql_query("SELECT email FROM ibwf_users WHERE id='".$uid."'"));
    $site = mysql_fetch_array(mysql_query("SELECT site FROM ibwf_users WHERE id='".$uid."'"));
    $bdy = mysql_fetch_array(mysql_query("SELECT birthday FROM ibwf_users WHERE id='".$uid."'"));
    $uloc = mysql_fetch_array(mysql_query("SELECT location FROM ibwf_users WHERE id='".$uid."'"));
    $usig = mysql_fetch_array(mysql_query("SELECT signature FROM ibwf_users WHERE id='".$uid."'"));
    $sx = mysql_fetch_array(mysql_query("SELECT sex FROM ibwf_users WHERE id='".$uid."'"));
    $uloc[0] = htmlspecialchars($uloc[0]);
  echo "<refresh>
        <setvar name=\"savat\" value=\"$avat\"/>
        <setvar name=\"semail\" value=\"$email[0]\"/>
        <setvar name=\"usite\" value=\"$site[0]\"/>
        <setvar name=\"ubday\" value=\"$bdy[0]\"/>
        <setvar name=\"stats\" value=\"$stats[0]\"/>
        <setvar name=\"uloc\" value=\"$uloc[0]\"/>
        <setvar name=\"usig\" value=\"$usig[0]\"/>
        <setvar name=\"sx\" value=\"$sx[0]\"/>
   ";
  echo "</refresh></onevent>";
    echo "<p align=\"center\">";
    echo "[b]Settings[/b]";
    echo "</p>";
    echo "

";
    echo "Avatar: <input name=\"savat\" maxlength=\"100\"/>
";
    echo "E-Mail: <input name=\"semail\" maxlength=\"100\"/>
";
    echo "Site: <input name=\"usite\" maxlength=\"100\"/>
";
    echo "Birthday[size="1"](YYYY-MM-DD)[/size]: <input name=\"ubday\" maxlength=\"50\"/>
";
    echo "Location: <input name=\"uloc\" maxlength=\"50\"/>
";
    echo "Signature: <input name=\"usig\" maxlength=\"100\"/>
";
    echo "Sex: <select name=\"usex\" value=\"$sx[0]\">";
    echo "<option value=\"M\">Male</option>";
    echo "<option value=\"F\">Female</option>";
    echo "</select>
";
    echo "Martial Status: <select name=\"stats\" value=\"$stats[0]\">";
    echo "<option value=\"single\">signle</option>";
    echo "<option value=\"taken\">taken</option>";
    echo "</select>
";
    echo "<anchor>Update";
    echo "<go href=\"genproc.php?action=uprof&sid=$sid\" method=\"post\">";
    echo "<postfield name=\"savat\" value=\"$(savat)\"/>";
    echo "<postfield name=\"semail\" value=\"$(semail)\"/>";
    echo "<postfield name=\"usite\" value=\"$(usite)\"/>";
    echo "<postfield name=\"ubday\" value=\"$(ubday)\"/>";
    echo "<postfield name=\"uloc\" value=\"$(uloc)\"/>";
    echo "<postfield name=\"usig\" value=\"$(usig)\"/>";
    echo "<postfield name=\"usex\" value=\"$(usex)\"/>";
    echo "<postfield name=\"stats\" value=\"$(stats)\"/>";
    echo "</go></anchor>";
    echo "

";
    $sml = mysql_fetch_array(mysql_query("SELECT hvia FROM ibwf_users WHERE id='".getuid_sid($sid)."'"));
    if($sml[0]=="1")
    {
        echo "<a href=\"genproc.php?action=shsml&sid=$sid&act=dis\">Disable Smilies</a>";
    }else{
        echo "<a href=\"genproc.php?action=shsml&sid=$sid&act=enb\">Enable Smilies</a>";
    }
    echo "

";
    echo "Password: <input type=\"password\" name=\"npwd\" format=\"*x\" maxlength=\"15\"/>
";
    echo "Password again: <input type=\"password\" name=\"cpwd\" format=\"*x\" maxlength=\"15\"/>
";
    echo "<anchor>Change";
    echo "<go href=\"genproc.php?action=upwd&sid=$sid\" method=\"post\">";
    echo "<postfield name=\"npwd\" value=\"$(npwd)\"/>";
    echo "<postfield name=\"cpwd\" value=\"$(cpwd)\"/>";
    echo "</go></anchor>";
    
    echo "</p>";
    echo "<p align=\"center\">";

    echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
  echo "</p>";
    echo "</card>";
}

You can see the change there

also edit

genproc.php

//////////////////////////////////////////Update profile
else if($action=="uprof")
{
    addonline(getuid_sid($sid),"Updating Settings","");
    $savat = $_POST["savat"];
    $semail = $_POST["semail"];
    $usite = $_POST["usite"];
    $ubday = $_POST["ubday"];
    $uloc = $_POST["uloc"];
    $usig = $_POST["usig"];
    $usex = $_POST["usex"];
    $stats = $_POST["stats"];
    echo "<card id=\"main\" title=\"lavalair.net\">";
  echo "<p align=\"center\">";
  //$uid = getuid_sid($sid);
  $res = mysql_query("UPDATE ibwf_users SET avatar='".$savat."', email='".$semail."',  stats='".$stats."', site='".$usite."', birthday='".$ubday."', location='".$uloc."', signature='".$usig."', sex='".$usex."' WHERE id='".$uid."'");
  if($res)
  {
    echo "<img src=\"images/ok.gif\" alt=\"o\"/>Your profile was updated successfully
";
  }else{
    echo "<img src=\"images/notok.gif\" alt=\"x\"/>Error updating your profile
";
  }
  echo "
<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
  echo "</p></card>";
}

easy coding for newbies External image (may be gone)

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

Guest #3

thanx sub. um just 1 q sub where does this go? $staters = mysql_fetch_array(mysql_query("SELECT stats FROM ibwf_users WHERE id='".$who."'")); $stats = parsepm($staters[0], $sid); echo "Martial Status: $stats ";

thanatos Senior · 261 posts #4

thanx sub. um just 1 q sub where does this go? $staters = mysql_fetch_array(mysql_query("SELECT stats FROM ibwf_users WHERE id='".$who."'")); $stats = parsepm($staters[0], $sid); echo "Martial Status: $stats ";

in users profile.. put it wherever u want.. External image (may be gone)

Guest #5

ok well it looks like this Settings

Avatar: E-Mail: Site: Birthday(YYYY-MM-DD): Location: Signature: Sex: Martial Status: Update

Disable Smilies

Password: Password again: ////////////////////// but update don't work any ideas

thanatos Senior · 261 posts #6

index.php?action=uset&sid=$sid

else if($action=="uset")
{
    addonline(getuid_sid($sid),"User Settings","");
    echo "<card id=\"main\" title=\"User Settings\">";
    echo "<onevent type=\"onenterforward\">";
    $uid = getuid_sid($sid);
    $avat = getavatar($uid);
    $email = mysql_fetch_array(mysql_query("SELECT email FROM ibwf_users WHERE id='".$uid."'"));
    $site = mysql_fetch_array(mysql_query("SELECT site FROM ibwf_users WHERE id='".$uid."'"));
    $bdy = mysql_fetch_array(mysql_query("SELECT birthday FROM ibwf_users WHERE id='".$uid."'"));
    $uloc = mysql_fetch_array(mysql_query("SELECT location FROM ibwf_users WHERE id='".$uid."'"));
    $usig = mysql_fetch_array(mysql_query("SELECT signature FROM ibwf_users WHERE id='".$uid."'"));
    $stats = mysql_fetch_array(mysql_query("SELECT stats FROM ibwf_users WHERE id='".$uid."'"));
    $sx = mysql_fetch_array(mysql_query("SELECT sex FROM ibwf_users WHERE id='".$uid."'"));
    $uloc[0] = htmlspecialchars($uloc[0]);
  echo "<refresh>
        <setvar name=\"savat\" value=\"$avat\"/>
        <setvar name=\"semail\" value=\"$email[0]\"/>
        <setvar name=\"usite\" value=\"$site[0]\"/>
        <setvar name=\"ubday\" value=\"$bdy[0]\"/>
        <setvar name=\"stats\" value=\"$stats[0]\"/>
        <setvar name=\"uloc\" value=\"$uloc[0]\"/>
        <setvar name=\"usig\" value=\"$usig[0]\"/>
        <setvar name=\"sx\" value=\"$sx[0]\"/>
   ";
  echo "</refresh></onevent>";
    echo "<p align=\"center\">";
    echo "[b]Settings[/b]";
    echo "</p>";
    echo "

";
    echo "Avatar: <input name=\"savat\" maxlength=\"100\"/>
";
    echo "E-Mail: <input name=\"semail\" maxlength=\"100\"/>
";
    echo "Site: <input name=\"usite\" maxlength=\"100\"/>
";
    echo "Birthday[size="1"](YYYY-MM-DD)[/size]: <input name=\"ubday\" maxlength=\"50\"/>
";
    echo "Location: <input name=\"uloc\" maxlength=\"50\"/>
";
    echo "Signature: <input name=\"usig\" maxlength=\"100\"/>
";
    echo "Sex: <select name=\"usex\" value=\"$sx[0]\">";
    echo "<option value=\"M\">Male</option>";
    echo "<option value=\"F\">Female</option>";
    echo "</select>
";
    echo "Martial Status: <select name=\"stats\" value=\"$stats[0]\">";
    echo "<option value=\"single\">signle</option>";
    echo "<option value=\"taken\">taken</option>";
    echo "</select>
";
    echo "<anchor>Update";
    echo "<go href=\"genproc.php?action=uprof&sid=$sid\" method=\"post\">";
    echo "<postfield name=\"savat\" value=\"$(savat)\"/>";
    echo "<postfield name=\"semail\" value=\"$(semail)\"/>";
    echo "<postfield name=\"usite\" value=\"$(usite)\"/>";
    echo "<postfield name=\"ubday\" value=\"$(ubday)\"/>";
    echo "<postfield name=\"uloc\" value=\"$(uloc)\"/>";
    echo "<postfield name=\"usig\" value=\"$(usig)\"/>";
    echo "<postfield name=\"usex\" value=\"$(usex)\"/>";
    echo "<postfield name=\"stats\" value=\"$(stats)\"/>";
    echo "</go></anchor>";
    echo "

";
    $sml = mysql_fetch_array(mysql_query("SELECT hvia FROM ibwf_users WHERE id='".getuid_sid($sid)."'"));
    if($sml[0]=="1")
    {
        echo "<a href=\"genproc.php?action=shsml&sid=$sid&act=dis\">Disable Smilies</a>";
    }else{
        echo "<a href=\"genproc.php?action=shsml&sid=$sid&act=enb\">Enable Smilies</a>";
    }
    echo "

";
    echo "Password: <input type=\"password\" name=\"npwd\" format=\"*x\" maxlength=\"15\"/>
";
    echo "Password again: <input type=\"password\" name=\"cpwd\" format=\"*x\" maxlength=\"15\"/>
";
    echo "<anchor>Change";
    echo "<go href=\"genproc.php?action=upwd&sid=$sid\" method=\"post\">";
    echo "<postfield name=\"npwd\" value=\"$(npwd)\"/>";
    echo "<postfield name=\"cpwd\" value=\"$(cpwd)\"/>";
    echo "</go></anchor>";
    
    echo "</p>";
    echo "<p align=\"center\">";

    echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
  echo "</p>";
    echo "</card>";
}

genproc.php?action=uprof&sid=$sid

//////////////////////////////////////////Update profile
else if($action=="uprof")
{
    addonline(getuid_sid($sid),"Updating Settings","");
    $savat = $_POST["savat"];
    $semail = $_POST["semail"];
    $usite = $_POST["usite"];
    $ubday = $_POST["ubday"];
    $uloc = $_POST["uloc"];
    $usig = $_POST["usig"];
    $usex = $_POST["usex"];
    $stats = $_POST["stats"];
    echo "<card id=\"main\" title=\"lavalair.net\">";
  echo "<p align=\"center\">";
  //$uid = getuid_sid($sid);
  $res = mysql_query("UPDATE ibwf_users SET avatar='".$savat."', email='".$semail."',  stats='".$stats."', site='".$usite."', birthday='".$ubday."', location='".$uloc."', signature='".$usig."', sex='".$usex."' WHERE id='".$uid."'");
  if($res)
  {
    echo "<img src=\"images/ok.gif\" alt=\"o\"/>Your profile was updated successfully
";
  }else{
    echo "<img src=\"images/notok.gif\" alt=\"x\"/>Error updating your profile
";
  }
  echo "
<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
  echo "</p></card>";
}

in index.php?action=viewuser

insert another line containing this code.. perhaps after A/S/L or wherever u want that to be..

$staters = mysql_fetch_array(mysql_query("SELECT stats FROM ibwf_users WHERE id='".$who."'"));
$stats = parsepm($staters[0], $sid);
echo "Martial Status: $stats
";

External image (may be gone)

Guest #7

thanx sub&thanatos it working but i ment 4 wap relationships like 1 member can go steady, get engaged and get married 2 the other 1 lol

metulj Super moderator Principal · 1,726 posts #14

please share the row thing someone

maybe you just click on table ibwf_users...(structure) then at the top click on Insert and maybe next you should see at the bottom option to choose some action? hmm.. who knows... it might works External image (may be gone)

or maybe just click on table ibwf_users...(structure) and below table look at this

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

Attachments: newrow.JPG
metulj Super moderator Principal · 1,726 posts #16

still waiting for some help in here External image (may be gone)

? External image (may be gone)

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

hellspawn #18

MySQL command to add new row to table ibwf_users:

mysql -> ALTER TABLE ibwf_users ADD stats VARCHAR(15) NOT NULLED DEFAULT ' ';

As far as I know there are only 2 sites running a chapel, DMP (half job) and mine (decent job), although that is only to get married. I'm guessing that you are asking for an option like the 1 seen on mocospace?

CREATE TABLE `ibwf_chapel` (
  `id` int(100) NOT NULL auto_increment,
  `ismd` char(1) NOT NULL default '0',
  `uid` int(100) NOT NULL default '0',
  `mid` int(100) NOT NULL default '0',
  `rpen` char(1) NOT NULL default '0',
  `mdy` int(100) NOT NULL default '0',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=1;

here is the sql for my chapel script (as much as i am willing to give out) ismd = if the marage is final or not uid = the innitial person to request a marage with some1 mid = the person as to which the request is being made rpen = if the marage is in request or not mdy = the date as to which the marage was finalised

the coding is pretty easy to do External image (may be gone) If you do take on the project, remember to add a option for the user to remove the status (unlike DMP's chapel where users can be married several times over lol)

learner Lead · 587 posts #19

by adding this sql to users in db will this script work? i mean the status ? please explain in brief brothers im not sure wht it is got lil doubts with this sql

Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

BEST MOBILE ADVERTISER

External image (may be gone)

hellspawn #20

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 "[size="1"]";
 
    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 "[/size]<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 "[b]involved[/b]
";
  }
  else if($msq[0]=='2')
  {
  echo "[b]engaged[/b]
";
  }
  else if($msq[0]=='3')
  {
   echo "[b]married[/b]
";
  }

Thats pretty much it lol enjoy

NOTE: I added this as part of the registration form, hense the default is single lol

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