Martial Status

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Martial Status

    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?

    #2
    Code:
    $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
    Code:
    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=&#39;".$uid."&#39;"));
        $site = mysql_fetch_array(mysql_query("SELECT site FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
        $bdy = mysql_fetch_array(mysql_query("SELECT birthday FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
        $uloc = mysql_fetch_array(mysql_query("SELECT location FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
        $usig = mysql_fetch_array(mysql_query("SELECT signature FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
        $sx = mysql_fetch_array(mysql_query("SELECT sex FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
        $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&amp;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=&#39;".getuid_sid($sid)."&#39;"));
        if($sml[0]=="1")
        {
            echo "<a href=\"genproc.php?action=shsml&amp;sid=$sid&amp;act=dis\">Disable Smilies</a>";
        }else{
            echo "<a href=\"genproc.php?action=shsml&amp;sid=$sid&amp;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&amp;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&amp;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
    Code:
    //////////////////////////////////////////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=&#39;".$savat."&#39;, email=&#39;".$semail."&#39;,  stats=&#39;".$stats."&#39;, site=&#39;".$usite."&#39;, birthday=&#39;".$ubday."&#39;, location=&#39;".$uloc."&#39;, signature=&#39;".$usig."&#39;, sex=&#39;".$usex."&#39; WHERE id=&#39;".$uid."&#39;");
      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&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
    echo "Home</a>";
      echo "</p></card>";
    }
    easy coding for newbies
    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

    Comment


      #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=&#39;".$who."&#39;"));
      $stats = parsepm($staters[0], $sid);
      echo "Martial Status: $stats
      ";

      Comment


        #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=&#39;".$who."&#39;"));
        $stats = parsepm($staters[0], $sid);
        echo "Martial Status: $stats
        ";[/b]
        in users profile.. put it wherever u want..

        Comment


          #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&#39;t work any ideas

          Comment


            #6
            index.php?action=uset&amp;sid=$sid

            Code:
            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=&#39;".$uid."&#39;"));
                $site = mysql_fetch_array(mysql_query("SELECT site FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
                $bdy = mysql_fetch_array(mysql_query("SELECT birthday FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
                $uloc = mysql_fetch_array(mysql_query("SELECT location FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
                $usig = mysql_fetch_array(mysql_query("SELECT signature FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
                $stats = mysql_fetch_array(mysql_query("SELECT stats FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
                $sx = mysql_fetch_array(mysql_query("SELECT sex FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
                $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&amp;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=&#39;".getuid_sid($sid)."&#39;"));
                if($sml[0]=="1")
                {
                    echo "<a href=\"genproc.php?action=shsml&amp;sid=$sid&amp;act=dis\">Disable Smilies</a>";
                }else{
                    echo "<a href=\"genproc.php?action=shsml&amp;sid=$sid&amp;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&amp;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&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
            echo "Home</a>";
              echo "</p>";
                echo "</card>";
            }
            genproc.php?action=uprof&amp;sid=$sid

            Code:
            //////////////////////////////////////////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=&#39;".$savat."&#39;, email=&#39;".$semail."&#39;,  stats=&#39;".$stats."&#39;, site=&#39;".$usite."&#39;, birthday=&#39;".$ubday."&#39;, location=&#39;".$uloc."&#39;, signature=&#39;".$usig."&#39;, sex=&#39;".$usex."&#39; WHERE id=&#39;".$uid."&#39;");
              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&amp;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..

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

            Comment


              #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

              Comment


                #8
                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[/b]
                check here example http://wap.rendevous.ro/register.php
                www.inbuzunar.mobi - Your mobile portal pocket

                Comment


                  #9
                  ineed the code in wml and need it in xhtml step by step theres demo of my site the link is above

                  Comment


                    #10
                    how do i insert the row mate im not sure how
                    http://img235.imageshack.us/my.php?i...sc00464af9.jpg



                    http://matthewdowd.bebo.com

                    Comment


                      #11
                      plzzzzzzzzzzzzzzzzzzzzzzzzzzzzz helppppppppppppp
                      http://img235.imageshack.us/my.php?i...sc00464af9.jpg



                      http://matthewdowd.bebo.com

                      Comment


                        #12
                        how to create new row please explain someone
                        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


                          #13
                          please share the row thing someone
                          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


                            #14
                            please share the row thing someone[/b]
                            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

                            or maybe just click on table ibwf_users...(structure)
                            and below table look at this
                            Attached Files
                            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ノ刀ノイリ!

                            Comment


                              #15
                              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

                              Working...
                              X