Plz Heave Somebody Vip.php Membership

Started on the old forum in December 2008 · view the original in the archive · old links redirect here

6 replies · 612 views · started 17 years ago · 1 min read

3 participants
sweetangel Lead · 885 posts #5

at index.php

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>'".$plus."' AND lastact>'".$timeon."'"));
    $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>'".plus."' AND lastact>'".$timeon."'
            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&who=$item[2]&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&page=$ppage&sid=$sid\">«PREV</a> ";
    }
    if($page<$num_pages)
    {
      $npage = $page+1;
      echo "<a href=\"index.php?action=$action&page=$npage&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&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
  echo "</p>";
  echo "</card>";
}

and

$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>'".$plus."' AND lastact>'".$timeon."'"));
  echo "Staff Online: <a href=\"index.php?action=vipol&sid=$sid\">".$noi[0]."</a>
";

this add vip status based plusses...if user have 5000plusses is vip... 😉

if like my post click:

External image (may be gone)

WhiteWarrior Principal · 1,419 posts #6

i have the original vip.php as i coded the vip parts for this script but i ain't giving it out as if its the script edits i made then only one person should have them other than me as i've never given them out.

anyhow code it yourself, its easy... just let VIP's have own chatroom, own tools to give plusses, game points, own vip forum and an update system when a member reches a number of posts get it to update them to vip or if they win the lotto etc.. the coding is already on the script you just need to copy and paste it and change a few things but yeah it would take about half hour to fully code the vip lounge.

valentin2br Junior · 47 posts #7

QUOTE (sweetangel @ Dec 15 2008, 12:12 PM) <{POST_SNAPBACK}>

at index.php

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>'".$plus."' AND lastact>'".$timeon."'"));
    $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>'".plus."' AND lastact>'".$timeon."'
            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&who=$item[2]&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&page=$ppage&sid=$sid\">«PREV</a> ";
    }
    if($page<$num_pages)
    {
      $npage = $page+1;
      echo "<a href=\"index.php?action=$action&page=$npage&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&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
  echo "</p>";
  echo "</card>";
}

and

$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>'".$plus."' AND lastact>'".$timeon."'"));
  echo "Staff Online: <a href=\"index.php?action=vipol&sid=$sid\">".$noi[0]."</a>
";

this add vip status based plusses...if user have 5000plusses is vip... ;)

tanks is working

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close