View Single Post
  #9  
Old 8th December 2011, 11:57
accretio accretio is offline
Senior Member
 
Join Date: Nov 2011
South Africa
Posts: 26
Wink Personaling TorrentStrike login screen
@Bigjoos, okay will see how it goes. thanks

EDIT: got the hang of it guys and its working great. the boxes don't show anymore, only when the user logs in. thats exactly what i wanted. thanks!

Bump: Okay guys, sorry to bother again, but i'm sitting with another problem:

i removed the "General" box successfully and now i'm trying to remove the "Stats" and "NZB's" boxes.

i'm not too sure what to do here, and when i try always get errors. what am i doing wrong?

here is the code below: stdfoot.php

PHP Code:
<!--- block panel start here -->
<?
          $USERS 
number_format(get_row_count("users""WHERE class='0'"));
          
$poweruser number_format(get_row_count("users""WHERE class='16'"));
          
$uploaders number_format(get_row_count("users""WHERE class = '48'"));
          
$Moderator number_format(get_row_count("users""WHERE class = '64'"));
          
$ADMINISTRATOR number_format(get_row_count("users""WHERE class = '80'"));
          
$sysop number_format(get_row_count("users""WHERE class = '96'"));
          
$warnedu number_format(get_row_count("users""WHERE warned='yes'"));
          
$disabled number_format(get_row_count("users""WHERE enabled='no'"));
          
$VIP number_format(get_row_count("users""WHERE class='32'"));
          
$registered number_format(get_row_count("users"));
          
$unverified number_format(get_row_count("users""WHERE status='pending'"));
          
$nzbs number_format(get_row_count("nzbs"));
          
?>
<?
              begin_block
("Stats");?>
              <table width="100%" border="0" cellspacing="0" cellpadding="0" class="forumline" align="center">
                 <tr><td class="row1"><font color="Black"><strong>Users<strong></td><td class="row1" align="right"><?=$USERS?></td></tr>
                 <tr><td class="row1"><font color="#D21E36"><strong>Power Users<strong></td><td class="row1" align="right"><?=$poweruser?></td></tr>
                 <tr><td class="row1"><font color="#EAEE0F"><strong>Uploaders<strong></font></td><td class="row1" align="right"><?=$uploaders?></td></tr>
                 <tr><td class="row1"><font color="#EE950F"><strong>Moderator<strong></td><td class="row1" align="right"><?=$Moderator?></td></tr>
                 <tr><td class="row1"><font color="#30EE0F"><strong>Adminstrator<strong></td><td class="row1" align="right"><?=$ADMINISTRATOR?></td></tr>
                 <tr><td class="row1"><font color="#0F6CEE"><strong>Sysop<strong></td><td class="row1" align="right"><?=$sysop?></td></tr>
                 <tr><td class="row1"><font color=FF0000>Disabled users</font> <img src= pic/disabled.gif> </td><td class="row1" align="right"><b><font color=FF0000><?=$disabled?></font></b></td></tr>
                 <tr><td class="row1"><font color=0000FF>Warned users</font> <img src= pic/warned.gif> </td><td class="row1" align="right"><b><font color=0000FF><?=$warnedu?></font></b></td></tr>
                 <tr><td class="row1"><font color=009933>VIP's</font> <img src= pic/star.gif> </td><td class="row1" align="right"><b><font color=009933><?=$VIP?></font></b></td>
                 <tr><td class="row1">Registered users</td><td class="row1" align="right"><?=$registered?></td></tr>
                 <tr><td class="row1">Unconfirmed users</td><td class="row1" align="right"><?=$unverified?></td></tr>
                 <tr><td class="row1">NZB's</td><td class="row1" align="right"><?=$nzbs?></td></tr>
              </table>
              <?
              end_block
();

                
begin_block("NZB's");?>
              <table width="100%" border="0" cellspacing="1" cellpadding="1" class="forumline" align="center">
              <tr><td class="row1" align="center" width="100%">Search NZB's:<br /><form method="get" action="nzbbrowse.php">
              <input type="hidden" name="searchwhere" value="title" />
              <input type="submit" value="Go!" style='height: 18px' />
              <input type="text" name="search" size="15" value="<?= safe($_GET["searchstr"]) ?>" />
              </form></td></tr>
              <tr><td class="row2" align="center" width="100%"><a href="nzbbrowse.php">View Latest</a></td></tr>
              <?nzb_categories_list();?>
              <tr><td class="row2" align="center" width="100%"><a href="uploadnzb.php">Upload NZB</a></td></tr>
              </table>
              <?
              end_block
();
?>
<!--- block panel finish here -->
*i'm using nzbstrike, thanks.

EDIT: if you want me to upload the actual file, just give me a shout, okay.

Last edited by joeroberts; 8th December 2011 at 13:56. Reason: please use tags
Reply With Quote