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?
Martial Status
Collapse
This topic is closed.
X
X
-
GuestTags: None
-
make a row in ibwf_usersCode:$staters = mysql_fetch_array(mysql_query("SELECT stats FROM ibwf_users WHERE id='".$who."'")); $stats = parsepm($staters[0], $sid); echo "Martial Status: $stats ";
make stats var 15 not null
in user cpanel
edit settings
index.php
You can see the change thereCode: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>"; }
also edit
genproc.php
easy coding for newbiesCode://////////////////////////////////////////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>"; }
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...
_______
Info & Tips
php.net
w3schools.com
-
Guest
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
";
Comment
-
Guest
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
Comment
-
index.php?action=uset&sid=$sid
genproc.php?action=uprof&sid=$sidCode: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>"; }
in index.php?action=viewuserCode://////////////////////////////////////////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>"; }
insert another line containing this code.. perhaps after A/S/L or wherever u want that to be..
Code:$staters = mysql_fetch_array(mysql_query("SELECT stats FROM ibwf_users WHERE id='".$who."'")); $stats = parsepm($staters[0], $sid); echo "Martial Status: $stats ";
Comment
-
Guest
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
Comment
-
check here example http://wap.rendevous.ro/register.phpthanx 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[/b]www.inbuzunar.mobi - Your mobile portal pocket
Comment
-
Guest
ineed the code in wml and need it in xhtml step by step theres demo of my site the link is abovecheck here example http://wapworld.freehostia.com/register.php[/b]
Comment
-
how to create new row please explain someoneFailure is not when a girls leaves you, its only when you let her go virgin. heheh!!
<span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

Comment
-
please share the row thing someoneFailure is not when a girls leaves you, its only when you let her go virgin. heheh!!
<span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

Comment
-
maybe you just click on table ibwf_users...(structure)please share the row thing someone[/b]
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
or maybe just click on table ibwf_users...(structure)
and below table look at thisキノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ â“â“¡â“” â“ⓑⓛⓔ ⓣⓞ â“—â“”â“â“¡ !
ιη тнєσÑу, тнє ÏÑα¢тι¢є ιѕ α Ñєѕυℓт σƒ тнє тнєσÑу, вυт ιη ÏÑα¢тι¢є ιѕ тнє σÏÏσѕιтє.
Comment
-
still waiting for some help in here
Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!
<span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

Comment
Comment