Accounts Validation

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #31
    my register() function sets if the default value is 0 or 1 depending if validation is on or off so that u wont hav to validate a whole lot when u change it from off to on if ur transferring ur old users to my sript change the value in users table to be default of 1 as wont matter when validation option is set if that made sense lol

    Comment


      #32
      suvita or somethin like that ur msg dnt make sense ppl cant get plusses if they arent validated lol

      Comment


        #33
        my register() function sets if the default value is 0 or 1 depending if validation is on or off so that u wont hav to validate a whole lot when u change it from off to on if ur transferring ur old users to my sript change the value in users table to be default of 1 as wont matter when validation option is set if that made sense lol[/b]

        lol no that didnt make sense at all lol :/

        your register() function sets the value of either 0 or 1 depending if validation is switched on / off

        and then i lose track of what youre trying to say .. ? it looks like a repeat of what i said [[when youre creating the new header in the database, set the default value to 1 so that you dont have to validate all of your existing members?]]
        but yeah, i dont have a clue
        --Kwah

        Comment


          #34
          lmao.... anyway i just validated half of them and other half i deleted lmao END LOL
          sigpiceeeeerrr....

          Comment


            #35
            lmfao

            Comment


              #36
              lmao.... anyway i just validated half of them and other half i deleted lmao END LOL[/b]
              yh i suppose that is one way of dealing with it

              Comment


                #37
                I Dont Like This Unless It Work With Normal Xhtml Script , I Cant Put A Wml Login.php On Xhtml Script

                Comment


                  #38
                  I Dont Like This Unless It Work With Normal Xhtml Script , I Cant Put A Wml Login.php On Xhtml Script[/b]
                  validation works on both all wml, xhtml and html scripts .. i dont see any reason why it wouldnt work on yours ..
                  and why cant you use a wml login.php page?

                  Comment


                    #39
                    I Dont Like This Unless It Work With Normal Xhtml Script , I Cant Put A Wml Login.php On Xhtml Script[/b]
                    LoL ... LoL .... LoL ... No, u can use it in xhtml, html, wml or any other language , it do not meter with what markup language u output ur content, coz all validation stuff goin on in php functions and in mysql data base ! LoL

                    Comment


                      #40
                      Thats Not What I Meant That It Wont Work In Xhtml Or Html , I Meant It Not Working On My Xhtml Login.php , Linkrx7 Put Updates To His Login.php

                      Comment


                        #41
                        someone please give me the validation for funmobile??? and how do u insert tables when i try it gives me error
                        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


                          #42
                          well i here help people if it is possible for me but you people don&#39;t even want to help all i asked was account validation for funmobile can&#39;t someone give me that?
                          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


                            #43
                            well i here help people if it is possible for me but you people don&#39;t even want to help all i asked was account validation for funmobile can&#39;t someone give me that? [/b]
                            Well i dont use funmobile...
                            U can overcome this issue abt validating prob to existing users by a small php code that can set the value in that column to validated value. I use a different validating code in both xhtml and wml So thers no prob in doin it on xhtml.

                            Comment


                              #44
                              put a new field in user table call it validated int(1) default &#39;0&#39;

                              create this function in core.php

                              Code:
                              function isvalidated($uid) {
                              
                              $sql = mysql_fetch_array(mysql_query("SELECT validated FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
                              
                              if($sql[0]=="1")
                              return true;
                              }else{
                              return false;
                              }
                              }
                              next u need a page in ur admincp to check for users that arent validated

                              in a new action of ur choice do this

                              Code:
                              $count = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE validated=&#39;0&#39;"));
                                  if($page=="" || $page<=0)$page=1;
                                  $num_items = count[0]; //changable
                                  $items_per_page= 10;
                                  $num_pages = ceil($num_items/$items_per_page);
                                  if(($page>$num_pages)&&$page!=1)$page= $num_pages;
                                  $limit_start = ($page-1)*$items_per_page;
                              
                              $get = mysql_query("SELECT id, name FROM ibwf_users WHERE validated=&#39;0&#39;");
                              while($getthem = mysql_fetch_array($get))
                              {
                              echo "<a href=\"index.php?action=viewuser&amp;who=$getthem[0]&amp;ses=$ses\">$getthem[1]</a>, [url="admproc.php?action=validateuser&amp;who=$getthem[0]&amp;ses=$ses\"]validate user[/url]";
                              }
                              
                              
                                  if($page>1)
                                  {
                                    $ppage = $page-1;
                                    echo "<a href=\"admincp.php?action=vusers&amp;page=$ppage&amp;ses=$ses\">«PREV</a> ";
                                  }
                                  if($page<$num_pages)
                                  {
                                    $npage = $page+1;
                                    echo "<a href=\"admincp.php?action=vusers&amp;page=$npage&amp;ses=$ses\">Next»</a>";
                                  }
                                  echo "
                              $page/$num_pages
                              ";
                                  if($num_pages>2)
                                  {
                                      $rets = "<form action=\"admincp.php\" method=\"get\">";
                                    $rets .= "Jump to page<input name=\"page\" format=\"*N\" size=\"3\"/>";
                                      $rets .= "<input type=\"hidden\" name=\"action\" value=\"$action\"/>";
                                      $rets .= "<input type=\"hidden\" name=\"ses\" value=\"$ses\"/>";
                                      $rets .= "<input type=\"submit\" value=\"GO\"/>";
                                      $rets .= "</form>";
                              
                                      echo $rets;
                                  }
                              in the admin proc validate user

                              Code:
                              $who = $_GET["who"];
                              $res = mysql_query("UPDATE ibwf_users SET validated=&#39;1&#39; WHERE id=&#39;".$who."&#39;");
                              if($res) {
                              
                              echo "validated successfully";
                              
                              }else{
                              
                              echo "error";
                              
                              }
                              and in ur authenticated pages put up top where user should already b logged

                              Code:
                               if(islogged($ses)==true) {
                              if(isvalidated(getuid_ses($ses))) {
                              //make page to show that user isnt validated
                              }
                              }

                              Comment


                                #45
                                yo wizard bro u rock i&#39;m sure now irisblaze cant hack into anybodys funmobile script;)
                                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