Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: V.i.p Membership For Lavalair

  1. #1
    Member
    Join Date
    Jul 2007
    Posts
    59
    Thanks
    26
    Thanked 11 Times in 2 Posts
    Rep Power
    0

    Unhappy

    <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. #2
    Senior Member rukiya's Avatar
    Join Date
    Apr 2007
    Location
    Bangladesh
    Posts
    572
    Thanks
    0
    Thanked 12 Times in 12 Posts
    Rep Power
    0

    Default

    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 "
    
    ";
        $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 "</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>
    ";
    [Only registered and activated users can see links. Click Here To Register...]




  3. #3
    Member
    Join Date
    Jul 2007
    Posts
    59
    Thanks
    26
    Thanked 11 Times in 2 Posts
    Rep Power
    0

    Default

    Thanks mate

  4. #4
    Senior Member
    Join Date
    Nov 2007
    Posts
    128
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Rep Power
    0

    Default

    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 "
    
    ";
        $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 "</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 ......... [Only registered and activated users can see links. Click Here To Register...]



    </div>

  5. #5
    Senior Member rukiya's Avatar
    Join Date
    Apr 2007
    Location
    Bangladesh
    Posts
    572
    Thanks
    0
    Thanked 12 Times in 12 Posts
    Rep Power
    0

    Default

    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 "Add Room
    
    ";
        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 "Add Group
    
    ";
        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 "
    For Auto Assign Only
    ";
        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 "
    
    ";
        $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 "</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>
    ";
    [Only registered and activated users can see links. Click Here To Register...]




  6. #6
    Member
    Join Date
    Jul 2007
    Posts
    59
    Thanks
    26
    Thanked 11 Times in 2 Posts
    Rep Power
    0

    Default

    thnks buddy

  7. #7
    Senior Member
    Join Date
    Oct 2007
    Location
    malaya
    Posts
    136
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    wut about the sql table??

  8. #8
    Member
    Join Date
    Jun 2007
    Location
    SihalawaP City
    Posts
    43
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

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

  9. #9
    Member TarzansM's Avatar
    Join Date
    Mar 2006
    Location
    Latvia
    Posts
    39
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Lightbulb

    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.

  10. #10
    Senior Member
    Join Date
    Oct 2007
    Location
    South Africa
    Posts
    100
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

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

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. v.i.p lavalair xhtml
    By doriann in forum REQUEST FORUM
    Replies: 2
    Last Post: 18-05-09, 15:59
  2. Plz Heave Somebody Vip.php Membership
    By valentin2br in forum REQUEST FORUM
    Replies: 6
    Last Post: 16-12-08, 14:44
  3. V.i.p
    By jayasanka in forum Coding Forum
    Replies: 2
    Last Post: 15-12-07, 03:15

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19