V.i.p Membership For Lavalair

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

    V.i.p Membership For Lavalair

    <span style="font-size:14pt;line-height:100%">How to add V.I.P membership in lavalair script???

    Plz put da coding here or just giv a idea
    </span>

    #2
    in index.php
    Code:
    else if($action=="vipol")
    {
    
      addonline(getuid_sid($sid),"Wheres The V.I.P","");
        echo "<card id=\"main\" title=\"Staff Online\">";
    
    
      //////ALL LISTS SCRIPT <<
    
        if($page=="" || $page<=0)$page=1;
    $plus=write your plus;////////////write your plus number like 500
        $timeout = 180;
      $timeon = time()-$timeout;
      $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE plusses>&#39;".$plus."&#39; AND lastact>&#39;".$timeon."&#39;"));
        $num_items = $noi[0]; //changable
        $items_per_page= 10;
        $num_pages = ceil($num_items/$items_per_page);
        if($page>$num_pages)$page= $num_pages;
        $limit_start = ($page-1)*$items_per_page;
        if($limit_start<0)$limit_start=0;
        //changable sql
        $sql = "
        SELECT name, plusses, id FROM ibwf_users WHERE plusses>&#39;".plus."&#39; AND lastact>&#39;".$timeon."&#39;
                LIMIT $limit_start, $items_per_page
        ";
        echo "
    
    [size="1"]";
        $items = mysql_query($sql);
        echo mysql_error();
        while ($item = mysql_fetch_array($items))
        {
          $lnk = "<a href=\"index.php?action=viewuser&amp;who=$item[2]&amp;sid=$sid\">$item[0]</a>";
          
          echo "$lnk - V.I.P 
    ";
        }
        echo "[/size]</p>";
        echo "<p align=\"center\">";
        if($page>1)
        {
          $ppage = $page-1;
          echo "<a href=\"index.php?action=$action&amp;page=$ppage&amp;sid=$sid\">«PREV</a> ";
        }
        if($page<$num_pages)
        {
          $npage = $page+1;
          echo "<a href=\"index.php?action=$action&amp;page=$npage&amp;sid=$sid\">Next»</a>";
        }
        echo "
    $page/$num_pages
    ";
        if($num_pages>2)
        {
          echo getjumper($action, $sid,"index");
        }
        echo "</p>";
      ////// UNTILL HERE >>
    
      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>";
    }
    usage in index.php
    Code:
    $plus=write your plus;////////////write your plus number like 500
    $timeout = 180;
      $timeon = time()-$timeout;
      $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE plusses>&#39;".$plus."&#39; AND lastact>&#39;".$timeon."&#39;"));
      echo "Staff Online: <a href=\"index.php?action=vipol&amp;sid=$sid\">".$noi[0]."</a>
    ";

    Comment


      #3
      Thanks mate

      Comment


        #4
        in index.php
        Code:
        else if($action=="vipol")
        {
        
          addonline(getuid_sid($sid),"Wheres The V.I.P","");
            echo "<card id=\"main\" title=\"Staff Online\">";
          //////ALL LISTS SCRIPT <<
        
            if($page=="" || $page<=0)$page=1;
        $plus=write your plus;////////////write your plus number like 500
            $timeout = 180;
          $timeon = time()-$timeout;
          $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE plusses>&#39;".$plus."&#39; AND lastact>&#39;".$timeon."&#39;"));
            $num_items = $noi[0]; //changable
            $items_per_page= 10;
            $num_pages = ceil($num_items/$items_per_page);
            if($page>$num_pages)$page= $num_pages;
            $limit_start = ($page-1)*$items_per_page;
            if($limit_start<0)$limit_start=0;
            //changable sql
            $sql = "
            SELECT name, plusses, id FROM ibwf_users WHERE plusses>&#39;".plus."&#39; AND lastact>&#39;".$timeon."&#39;
                    LIMIT $limit_start, $items_per_page
            ";
            echo "
        
        [size="1"]";
            $items = mysql_query($sql);
            echo mysql_error();
            while ($item = mysql_fetch_array($items))
            {
              $lnk = "<a href=\"index.php?action=viewuser&amp;who=$item[2]&amp;sid=$sid\">$item[0]</a>";
              
              echo "$lnk - V.I.P 
        ";
            }
            echo "[/size]</p>";
            echo "<p align=\"center\">";
            if($page>1)
            {
              $ppage = $page-1;
              echo "<a href=\"index.php?action=$action&amp;page=$ppage&amp;sid=$sid\">«PREV</a> ";
            }
            if($page<$num_pages)
            {
              $npage = $page+1;
              echo "<a href=\"index.php?action=$action&amp;page=$npage&amp;sid=$sid\">Next»</a>";
            }
            echo "
        $page/$num_pages
        ";
            if($num_pages>2)
            {
              echo getjumper($action, $sid,"index");
            }
            echo "</p>";
          ////// UNTILL HERE >>
        
          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>";
        }
        usage in index.php
        Code:
        $plus=write your plus;////////////write your plus number like 500
        $timeout = 180;
          $timeon = time()-$timeout;
          $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE plusses>&#39;".$plus."&#39; AND lastact>&#39;".$timeon."&#39;"));
          echo "Staff Online: <a href=\"index.php?action=vipol&amp;sid=$sid\">".$noi[0]."</a>
        ";
        [/b]

        thankz bro...... but i wnt add Prem for that.no plusses.prem wrking.how can i do that bro.........
        <div align="center">My Web Community ......... http://pahasara.net



        </div>

        Comment


          #5
          core.php
          Code:
          function ismod($uid)
          {
            $perm = mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
            
            if($perm[0]==&#39;2&#39;)
            {
              return true;
            }
          }
          
          function isadmin($uid)
          {
            $admn = mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
            if($admn[0]==&#39;3&#39;)
            {
              return true;
            }else{
              return false;
            }
          }
          
          /////////////////////////////////////////get status
          
          function getstatus($uid)
          {
            $info= mysql_fetch_array(mysql_query("SELECT perm, plusses FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
          if($info[0]==&#39;3&#39;)
            {
              return "Admin!";
            }else if($info[0]==&#39;2&#39;)
            {
              return "Moderator!";
          
            else if($info[0]==&#39;1&#39;)
            {
              return "V.I.P!";
            }
          }
          admin.php
          Code:
          else if($action=="addchr")
          {
              echo "<card id=\"main\" title=\"Admin CP\">";
              echo "<p align=\"center\">";
              echo "[b]Add Room[/b]
          
          ";
              echo "Name:<input name=\"chrnm\" maxlength=\"30\"/>
          ";
              echo "Minimum Age:<input name=\"chrage\" format=\"*N\" maxlength=\"3\" size=\"3\"/>
          ";
              echo "Minimum Chat Posts:<input name=\"chrpst\" format=\"*N\" maxlength=\"4\" size=\"4\"/>
          ";
              echo "Permission:<select name=\"chrprm\">";
              echo "<option value=\"0\">Normal</option>";
              echo "<option value=\"1\">V.I.P</option>";
              echo "<option value=\"2\">Moderators</option>";
              echo "<option value=\"3\">Admins</option>";
          
          ////////////////////////////////////////////
          
          else if($action=="chubi")
          {
          
          echo "Privileges: <select name=\"perm\" value=\"$perm[0]\">";
              echo "<option value=\"0\">Normal</option>";
              echo "<option value=\"1\">V.I.P</option>";
              echo "<option value=\"2\">Moderator</option>";
              echo "<option value=\"3\">Admin</option>";
              echo "</select>
          ";
          /////////////////////////////////////////////
          else if($action=="addgrp")
          {
              echo "<card id=\"main\" title=\"Admin CP\">";
              echo "<p align=\"center\">";
              echo "[b]Add Group[/b]
          
          ";
              echo "Name:<input name=\"ugname\" maxlength=\"30\"/>
          ";
              echo "Auto Assign:<select name=\"ugaa\">";
              echo "<option value=\"1\">Yes</option>";
              echo "<option value=\"0\">No</option>";
              echo "</select>
          ";
              echo "
          [size="1"][b]For Auto Assign Only[/b][/size]
          ";
              echo "Allow:<select name=\"allus\">";
              echo "<option value=\"0\">Normal Users</option>";
              echo "<option value=\"1\">V.I.P</option>";
              echo "<option value=\"2\">Mods</option>";
              echo "<option value=\"3\">Admins</option>";
              echo "</select>
          ";
          index.php
          Code:
          else if($action=="vipol")
          {
          
            addonline(getuid_sid($sid),"Wheres The V.I.P","");
              echo "<card id=\"main\" title=\"V.I.P Online\">";
          
          
            //////ALL LISTS SCRIPT <<
          
              if($page=="" || $page<=0)$page=1;
              $timeout = 180;
            $timeon = time()-$timeout;
            $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE perm=&#39;1&#39; AND lastact>&#39;".$timeon."&#39;"));
              $num_items = $noi[0]; //changable
              $items_per_page= 10;
              $num_pages = ceil($num_items/$items_per_page);
              if($page>$num_pages)$page= $num_pages;
              $limit_start = ($page-1)*$items_per_page;
              if($limit_start<0)$limit_start=0;
              //changable sql
              $sql = "
              SELECT name, plusses, id FROM ibwf_users WHERE perm=&#39;1&#39; AND lastact>&#39;".$timeon."&#39;
                      LIMIT $limit_start, $items_per_page
              ";
              echo "
          
          [size="1"]";
              $items = mysql_query($sql);
              echo mysql_error();
              while ($item = mysql_fetch_array($items))
              {
                $lnk = "<a href=\"index.php?action=viewuser&amp;who=$item[2]&amp;sid=$sid\">$item[0]</a>";
                $item = $items[1];
                echo "$lnk - $item 
          ";
              }
              echo "[/size]</p>";
              echo "<p align=\"center\">";
              if($page>1)
              {
                $ppage = $page-1;
                echo "<a href=\"index.php?action=$action&amp;page=$ppage&amp;sid=$sid\">«PREV</a> ";
              }
              if($page<$num_pages)
              {
                $npage = $page+1;
                echo "<a href=\"index.php?action=$action&amp;page=$npage&amp;sid=$sid\">Next»</a>";
              }
              echo "
          $page/$num_pages
          ";
              if($num_pages>2)
              {
                echo getjumper($action, $sid,"index");
              }
              echo "</p>";
            ////// UNTILL HERE >>
          
            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>";
          }
          usage in index.php
          Code:
          $timeout = 180;
            $timeon = time()-$timeout;
            $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE perm=&#39;1&#39; AND lastact>&#39;".$timeon."&#39;"));
            echo "V.I.P Online: <a href=\"index.php?action=vipol&amp;sid=$sid\">".$noi[0]."</a>
          ";

          Comment


            #6
            thnks buddy

            Comment


              #7
              wut about the sql table??

              Comment


                #8
                wut about the sql table??[/b]
                no need buddy

                Comment


                  #9
                  LoL so easy , i made it by my self, but in here he didnt show all that what you have to change.... But its easy , think and you fill find those small things.

                  Comment


                    #10
                    just use the original lavalair sql table, that works fine.... but tell me what sort of features does a vip guest/member have.....

                    Comment


                      #11
                      old topic...but I thoght of adding a post............if u want premium acc like vip just pm me............ill give u the things...i did it


                      I'm Proud to be a Sri Lankan!

                      Comment


                        #12
                        TOO EASY TO DO, but Im lazy to do it
                        com site: http://vampist.net
                        download site: http://wapdloads.net
                        fb: http://www.facebook.com/pmplx

                        Comment


                          #13
                          yeah yeah easy...........


                          I'm Proud to be a Sri Lankan!

                          Comment


                            #14
                            I changed these functions to be able to enter VIP room but does not make me come in, tell me "You can't enter this room" , where am I wrong?
                            PHP Code:
                            ////////////////////////////////////////////is mod
                             
                            function ismod($uid)
                            {
                              
                            $perm mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE id='".$uid."'"));
                              
                              if(
                            $perm[0]>2)
                              {
                                return 
                            true;
                              }
                            }
                            /////////////////////////////////////////Is admin?
                             
                            function isadmin($uid)
                            {
                              
                            $admn mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE id='".$uid."'"));
                              if(
                            $admn[0]>=3)
                              {
                                return 
                            true;
                              }else{
                                return 
                            false;
                              }
                            }
                            /////////////////////////////////////////get status
                             
                            function getstatus($uid)
                            {
                              
                            $infomysql_fetch_array(mysql_query("SELECT perm, plusses FROM ibwf_users WHERE id='".$uid."'"));
                              if(
                            isbanned($uid))
                              {
                                return 
                            "BANNED!";
                              }
                               if(
                            $info[0]=='6')
                              {
                                return 
                            "Host!";
                              }else if(
                            $info[0]=='5')
                              {
                                return 
                            "Tech Support!";
                              }else if(
                            $info[0]=='4')
                              {
                                return 
                            "Site Owner!";
                              }else if(
                            $info[0]=='3')
                              {
                                return 
                            "Head Administrator!";
                              }else if(
                            $info[0]=='2')
                              {
                                return 
                            "Administrator!";
                              }else if(
                            $info[0]=='2')
                              {
                                return 
                            "Moderator!";
                            }else if(
                            $info[0]=='1')
                            {
                            return 
                            "V.I.P!";

                              }else{
                                if(
                            $info[1]<10)
                                {
                                  return 
                            "Member";
                                }else if(
                            $info[1]<25)
                                {
                                    return 
                            "Member";
                                }else if(
                            $info[1]<50)
                                {
                                    return 
                            "Member"

                            Comment

                            Working...
                            X