Plusses

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

    Plusses

    l want to have it on my site that you need x amonut of plusses before you can look at smilies pages ie when you click on smilies if you havent got enoght plusses it wont let you see them thanks in advance if you post in here any links that l need to put in script its a lava script thanks also l have put this code in list.php and all l get is a blank page

    if(points(getuid_sid($sid))<15)
    {
    $need=15-points(getuid_sid($sid));
    echo "
    You need $need more points to shout!";
    }

    #2
    on top of the smile page
    Code:
    $pluses = mysql_fetch_array(mysql_query("SELECT pluses FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
    if($pluses[0]<50) {
    echo "You dont got enough pluses to view this page :(";
    }
    else
    {
    //coding
    }

    R.M.C
    ----------
    PHP Adovocate B)

    Comment


      #3
      on top of the smile page
      Code:
      $pluses = mysql_fetch_array(mysql_query("SELECT pluses FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
      if($pluses[0]<50) {
      echo "You dont got enough pluses to view this page :(";
      }
      else
      {
      //coding
      }
      [/b]

      can i add the same code so ppl cant view forums until they have how ever many plusses they have . and if so . where would i put the code . thanks.
      Wapchat4u


      Topsites4u

      Comment


        #4
        ///forums
        if($action=="forum")
        {
        place that code here
        }
        else
        {
        //print the forums
        }
        }
        if you dont understand copy and paste the page WHERE you have the forums on here
        eg
        ///forums
        if($action=="forum")
        {
        //coding here
        }

        R.M.C
        ----------
        PHP Adovocate B)

        Comment


          #5
          here you go mate add it below card


          Code:
          else if($action=="smilies")
          {
              addonline(getuid_sid($sid),"Smilies List","");
              echo "<card id=\"main\" title=\"Smilies List\">";
          
             if(points(getuid_sid($sid))<15)
          {
          $need=15-points(getuid_sid($sid));
          echo "
          You need $need more points to shout!";
          }
          
              
              //////ALL LISTS SCRIPT <<
          
              if($page=="" || $page<=0)$page=1;
              $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_smilies"));
              $num_items = $noi[0]; //changable
              $items_per_page= 5;
              $num_pages = ceil($num_items/$items_per_page);
              if(($page>$num_pages)&&$page!=1)$page= $num_pages;
              $limit_start = ($page-1)*$items_per_page;
          
              //changable sql
          
                  $sql = "SELECT id, scode, imgsrc FROM ibwf_smilies ORDER BY id DESC LIMIT $limit_start, $items_per_page";
          
          
              echo "
          
          ";
              $items = mysql_query($sql);
              
              echo mysql_error();
              if(mysql_num_rows($items)>0)
              {
              while ($item = mysql_fetch_array($items))
             {
                  if(isadmin(getuid_sid($sid)))
                  {
                      $delsl = "<a href=\"admproc.php?action=delsm&amp;sid=$sid&amp;smid=$item[0]\">[x]</a>";
                  }else{
                      $delsl = "";
                  }
                  echo "$item[1] » ";
                  echo "<img src=\"$item[2]\" alt=\"$item[1]\"/> $delsl
          ";
              }
              }
              echo "</p>";
              echo "<p align=\"center\">";
              if($page>1)
              {
                $ppage = $page-1;
                echo "<a href=\"lists.php?action=smilies&amp;page=$ppage&amp;sid=$sid&amp;view=$view\">«PREV</a> ";
              }
              if($page<$num_pages)
              {
                $npage = $page+1;
                echo "<a href=\"lists.php?action=smilies&amp;page=$npage&amp;sid=$sid&amp;view=$view\">Next»</a>";
              }
              echo "
          $page/$num_pages
          ";
              if($num_pages>2)
              {
                $rets = "Jump to page<input name=\"pg\" format=\"*N\" size=\"3\"/>";
                  $rets .= "<anchor>[GO]";
                  $rets .= "<go href=\"lists.php\" method=\"get\">";
                  $rets .= "<postfield name=\"action\" value=\"$action\"/>";
                  $rets .= "<postfield name=\"sid\" value=\"$sid\"/>";
                  $rets .= "<postfield name=\"page\" value=\"$(pg)\"/>";
                  $rets .= "</go></anchor>";
          
                  echo $rets;
              }
              echo "</p>";
            ////// UNTILL HERE >>
              echo "<p align=\"center\">";
              echo "<a href=\"index.php?action=cpanel&amp;sid=$sid\">";
          echo "CPanel</a>
          ";
              echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
          echo "Home</a>";
            echo "</p>";
              echo "</card>";
          }
          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