Anonymous,

Please Login or Register
Download Nuke Evolution Xtreme today for a CMS you can enjoy using and sharing with your friends!
[ Download Now ]
Forum Index  ·  Search  ·  Usergroups  ·  Edit your profile  ·  Members  ·  Login, Check Messages
Arcade  ·  Ranks  ·  Staff  ·  Statistics  ·  Board Rules  ·  Forum FAQ  ·  Log in

Search for at
Evolution-Xtreme Advanced Search


+  
Latest Site News   Next 5 >>  
 Forum   Author   Replies   Last Post 
File Repository 1.0.0 Released Announcements! Lonestar 0 Tue Apr 26, 2016 6:44 am
Lonestar View latest post
Image Repository Released Announcements! Lonestar 1 Mon Oct 27, 2014 7:39 pm
Lonestar View latest post
So what happened to us? Announcements! SgtLegend 0 Tue May 06, 2014 12:32 am
SgtLegend View latest post
[PROGRESS] Nuke Evolution Xtreme 2.0.9e Announcements! SgtLegend 2 Sun May 27, 2012 6:25 pm
SgtLegend View latest post
European Cookie Law Announcements! SgtLegend 0 Sat May 26, 2012 7:33 am
SgtLegend View latest post
   
Recent Topics   Next 15 >>  
 Forum   Author   Replies   Last Post 
Evo staff looking for some volunteers. Community Announcements coRpSE 20 Thu Jul 02, 2015 9:19 am
Depresjon2 View latest post
Evo Xtreme 2.0.9D Updated for PHP 5.6 General Support coRpSE 121 Thu Mar 23, 2017 3:57 pm
casterdon View latest post
[ MOD ] - Honeypot V2.2 AntiBot Module Security coRpSE 106 Tue Nov 22, 2016 11:30 am
coRpSE View latest post
Possible new Admin area layout Comments and Suggestions Lonestar 18 Wed Sep 14, 2016 11:37 am
Blackou View latest post
jQuery update General Support Lonestar 2 Wed May 11, 2016 4:49 pm
Charles64 View latest post
Deutsche Sprachdatei - german language files German DT50R 7 Thu Jan 28, 2016 7:04 am
DT50R View latest post
[FIX] Correct Cookie Settings (Invalid Session Error) Quick fixes killigan 110 Fri Mar 20, 2015 1:06 pm
Macdaddy View latest post
Looking for coRpSE? He is gone till May. General Chat coRpSE 4 Sun Mar 26, 2017 6:50 pm
coRpSE View latest post
Think I got hit with malware somehow General Support bobdude 10 Sun Mar 26, 2017 6:44 pm
coRpSE View latest post
error log Bugs Redcougarxr7 31 Tue Mar 21, 2017 8:46 pm
coRpSE View latest post
I seem to be locked out of my website Smile General Support storm 4 Sat Mar 11, 2017 12:29 pm
coRpSE View latest post
Site gone off General Support GI_ 3 Fri Mar 03, 2017 11:21 am
Lonestar View latest post
Norwegian Language Multilingual Support dogbone 0 Wed Mar 01, 2017 10:43 pm
dogbone View latest post
Arcade General Support Reaper2388 59 Sun Feb 26, 2017 7:13 pm
pholix View latest post
all blocks General Support Worfwarrior 6 Sat Feb 25, 2017 4:41 pm
coRpSE View latest post

Hide hidden members from non-admins in user info block

 
Post new topic    Reply to topic    printer-friendly view   Thank Post    Evolution-Xtreme Forum Index -> Blocks
View previous topic :: View next topic  
Author Message
AnonSpider



Gender: Gender:Male
Joined: Oct 13, 2016
Age: 34
Posts: 19

Reputation: 2.4
usa.png


Status: Offline
PostPosted: Thu Nov 03, 2016 3:59 pm Post subject: No icon Hide hidden members from non-admins in user info block Reply with quote

 The  below  code  was  a  block  included  with  RavenNuke,  I  have  changed  a  bit  of  the  code  to  implement  some  other  things,  even  started  with  adding  the  Username  coloring  used  in  Evo...  However,  hidden  members  are  still  showing  to  non-admins...anyone  know  what  I  should  add  to  prevent  this  from  happening?  Also,  if  you  have  any  ideas  on  code  clean-up  to  shorten  it  up,  feel  free  to  post  your  ideas.
 Thanks
 
                                                 
Code:                
<?php
 /************************************************************************/
 /*                                      User  Info  Block                                             */
 /*                              Original  Coding  -  Unknown  (Possibly  Raven?)           */
 /*                        Modifications  -  AnonSpider  Security                             */
 /*                          http://www.anonspidersecurity.tk                                */
 /************************************************************************/
 /*  This  program  is  free  software.  You  can  redistribute  it  and/or  modify    */
 /*  it  under  the  terms  of  the  GNU  General  Public  License  as  published  by    */
 /*  the  Free  Software  Foundation;  either  version  2  of  the  License.           */
 /************************************************************************/
 
 //  how  many  newest  members  to  show
 $recent_member_count  =  3;
 //  show  online  guests  IP  in  online  list
 $show_guest_list  =  true;
 //  how  long  before  inactive  uses  are  dropped  from  online  list
 $max_session_mins  =  20;
 //  maximum  number  of  guests  to  display
 $max_display_guests  =  25;
 //  maximum  number  of  members  to  display
 $max_display_members  =  25;
 //  notify  users  of  private  message  by  using  a  javascript  drop  box
 $pm_notify_dropin  =  true;
 //  if  set  to  true,  users  will  only  be  notified  of  private  messages  once  per  visit
 $pm_dropin_once  =  false;
 //  set  the  colors  for  the  dropin  box
 $dropin_bgcolor  =  '#879095';
 $dropin_bordercolor  =  '#000000';
 //RavenNuke
 $ravennuke  =  1;  //Set  to  0  for  Standard  Nuke
 
 
 if  (  !defined('BLOCK_FILE')  )  {
      Header("Location:  ../index.php");
      die();
 }
 
 global  $db,  $prefix,  $ya_config,  $user_prefix,  $user,  $sitekey,  $gfx_chk,  $admin;
 $content  =  '
 <Start>
 <table>
 ';
 
 //  get  user  info/show  login
 if  (!is_user($user))
 {
      $content  .=  '
   <tr>
   <td>
   <a><img>  <span><strong>Anonymous</strong></span></a><br>';
   $content  .=  '<div>';
   $content  .=  '<img>   <strong>'.  $_SERVER['REMOTE_ADDR']  .'</strong><br></div>
   
   <form>
   '.  _NICKNAME  .':<br>
   <input><br>
   '.  _PASSWORD  .':<br>
   <input><br>
   ';
     $content  .=  '<a>'  .  _LOSTPASS2  .  '</a><br>
   ';
  //Uncomment  if  raven  nuke
 if($ravennuke  =  1){
  /*****[BEGIN]******************************************
   [  Base:      GFX  Code                                         v1.0.0  ]
   ******************************************************/
      $content  .=  security_code(array(2,4,5,7),  'stacked');
   /*****[END]********************************************
   [  Base:      GFX  Code                                         v1.0.0  ]
   ******************************************************/
 }else{
        //  see  if  security  code  is  enabled
   if  (extension_loaded('gd')  &&  ($gfx_chk  ==  2  ||  $gfx_chk  ==  4  ||  $gfx_chk  ==  5  ||  $gfx_chk  ==  7))
   {
      mt_srand  ((double)microtime()*1000000);
      $maxran  =  1000000;
      $random_num  =  mt_rand(0,  $maxran);
      $datekey  =  date("F  j");
      $rcode  =  hexdec(md5($_SERVER['HTTP_USER_AGENT']  .  $sitekey  .  $random_num  .  $datekey));
      $code  =  substr($rcode,  2,  6);
      
      $content  .=  '
      '.  _SECURITYCODE  .':<br>
      <img><br>
      '.  _TYPESECCODE  .':<br>
      <input><br>
      <input>
      ';
   }
   else
   {
      $content  .=  '<br>
      <input>
      <input>';
   }
 }
   $content  .=  '
   <br>
   <input>
   <input>  
   <input>
   </form>
   </td></tr>';
 }
 else
 {
 $uinfo  =  cookiedecode($user);
   $uinfo[2]  =  str_replace("\"",  "'",  UsernameColor($uinfo[1]));
   $content  .=  '<tr><td>
   <a><span><strong>'.  $uinfo[2]  .'</strong></span></a><br>';
   $content  .=  '<div>';
   $content  .=  '<img>   <strong>'.  $_SERVER['REMOTE_ADDR']  .'</strong><br>';
   $content  .=  '<a><img>  <strong>Your  Forum  Posts</strong></a><br>';
   $content  .=  '</td></tr><tr>';
   $content  .=  '<td>';
               if  (is_admin($admin))  {
   $content  .=  '<center><strong>╒╕==Logout==╒╕</strong><br>';
   $content  .=  '<a><img>  <strong>User</strong></a>  |  <a><strong>Admin</strong>&nbsp<img></a>';
   $content  .=  '</div></td></tr>';
            }
            else
   $content  .=  '<a><img><strong>Logout</strong></a>';
   $content  .=  '</div></td></tr>';
   
   //  check  new  pms
   $sql  =  "SELECT  privmsgs_to_userid  FROM  ".$prefix."_bbprivmsgs  WHERE  privmsgs_to_userid='".  intval($uinfo[0])  ."'  AND  (privmsgs_type='5'  OR  privmsgs_type='1')";
   if  (  !($result  =  $db->sql_query($sql))  )
   {
      //  error
      die('error  checking  new  pms');
   }
   $new_pms  =  $db->sql_numrows($result);
   $db->sql_freeresult($result);
   
   //  check  old  pms
   $sql  =  "SELECT  privmsgs_to_userid  FROM  ".$prefix."_bbprivmsgs  WHERE  privmsgs_to_userid='".  intval($uinfo[0])  ."'  AND  (privmsgs_type='0')";
   if  (  !($result  =  $db->sql_query($sql))  )
   {
      //  error
      die('error  checking  old  pms');
   }
   $old_pms  =  $db->sql_numrows($result);
   $db->sql_freeresult($result);
   
   $content  .=  '
   <tr>
   <td>
   <img>  <strong>Your  Messages</strong><br>
   <div>
   <img>  <a>Unread:  <strong>'.  $new_pms  .'</strong></a><br>';
   if  ($pm_notify_dropin  &&  $new_pms  >  0)
   {
      $content  .=  '
      <script>
      
      //  Drop-in  content  box-  By  Dynamic  Drive
      //  For  full  source  code  and  more  DHTML  scripts,  visit  http://www.dynamicdrive.com
      //  This  credit  MUST  stay  intact  for  use
      
      var  ie=document.all
      var  dom=document.getElementById
      var  ns4=document.layers
      var  calunits=document.layers?  ""  :  "px"
      
      var  bouncelimit=32  //(must  be  divisible  by  8)
      var  direction="up"
      
      function  initbox(){
      if  (!dom&&!ie&&!ns4)
      return
      crossobj=(dom)?document.getElementById("dropin").style  :  ie?  document.all.dropin  :  document.dropin
      scroll_top=(ie)?  truebody().scrollTop  :  window.pageYOffset
      crossobj.top=scroll_top-250+calunits
      crossobj.visibility=(dom||ie)?  "visible"  :  "show"
      dropstart=setInterval("dropin()",50)
      }
      
      function  dropin(){
      scroll_top=(ie)?  truebody().scrollTop  :  window.pageYOffset
      if  (parseInt(crossobj.top)<100+scroll_top)
      crossobj.top=parseInt(crossobj.top)+40+calunits
      else{
      clearInterval(dropstart)
      bouncestart=setInterval("bouncein()",50)
      }
      }
      
      function  bouncein(){
      crossobj.top=parseInt(crossobj.top)-bouncelimit+calunits
      if  (bouncelimit<0>  0)  {
      offset  =  document.cookie.indexOf(search)
      if  (offset  !=  -1)  {
      offset  +=  search.length
      end  =  document.cookie.indexOf(";",  offset)
      if  (end  ==  -1)
      end  =  document.cookie.length;
      returnvalue=unescape(document.cookie.substring(offset,  end))
      }
      }
      return  returnvalue;
      }
      
      function  dropornot(){';
   if  ($pm_dropin_once)
   {
      $content  .=  '
      if  (get_cookie("droppedin")==""){
      window.onload=initbox
      document.cookie="droppedin=yes"
      }';
   }
   else
   {
      $content  .=  '
      window.onload=initbox
      
      ';
   }
   $content  .=  '
      }
      dropornot()
      </script>
      ';
      $content  .=  '
      <div>
      
      <div><a>[Close  Box]  </a></div>
      <br>
      <a>You  have  <strong>'.  $new_pms  .'</strong>  new  Private  Messages.</a>
      
      </div>
      ';
   }
   $content  .=  '
   <img>  Read:  <strong>'.  $old_pms  .'</strong><br>
   </div>
   </td>
   </tr>
   ';
 
 $content  .=  '
 <tr>
 <td>
 <img>  <strong>User  Stats:</strong>
 <br>
 ';
 //  get  new  member  info
 $timestamp  =  time();
 $today  =  date("M  d,  Y");
 $yesterday  =  date("M  d,  Y",  ($timestamp  -  86400)  );
 $this_month  =  date("M");
 $this_year  =  date("Y");
 
 //  today
 $sql  =  "SELECT  COUNT(user_id)  FROM  ".  $user_prefix  ."_users  WHERE  user_regdate='$today'";
 if  (  !($result  =  $db->sql_query($sql))  )
 {
   //  error
   die('error  getting  todays  users');
 }
 list($new_today)  =  $db->sql_fetchrow($result);
 $db->sql_freeresult($result);
 
         if  (is_admin($admin))  {
 //Suspended
 $sus  =  $db->sql_numrows($db->sql_query("SELECT  *  FROM  ".$user_prefix."_users  WHERE  user_level='0'  AND  user_id>'1'"));
 
 //Waiting
 $wu  =  $db->sql_numrows($db->sql_query("SELECT  user_id  FROM  ".$user_prefix."_users_temp"));
 
 //Hidden
 $hdn  =  $db->sql_numrows($db->sql_query("SELECT  user_id  FROM  ".  $user_prefix  ."_users  WHERE  user_allow_viewonline='0'"));
        }
 
 //Yesterday
 $sql  =  "SELECT  COUNT(user_id)  FROM  ".  $user_prefix  ."_users  WHERE  user_regdate='$yesterday'";
 if  (  !($result  =  $db->sql_query($sql))  )
 {
   //  error
   die('error  getting  yesterdays  users');
 }
 list($new_yesterday)  =  $db->sql_fetchrow($result);
 $db->sql_freeresult($result);
 
 //  this  month
 $sql  =  "SELECT  COUNT(user_id)  FROM  ".  $user_prefix  ."_users  WHERE  SUBSTRING(user_regdate,  1,  4)='$this_month'  AND  SUBSTRING(user_regdate,  9,  12)='$this_year'";
 if  (  !($result  =  $db->sql_query($sql))  )
 {
   //  error
   die('error  getting  this  months  users');
 }
 list($new_month)  =  $db->sql_fetchrow($result);
 $db->sql_freeresult($result);
 
 //  this  year
 $sql  =  "SELECT  COUNT(user_id)  FROM  ".  $user_prefix  ."_users  WHERE  SUBSTRING(user_regdate,  9,  12)='$this_year'";
 if  (  !($result  =  $db->sql_query($sql))  )
 {
   //  error
   die('error  getting  this  years  users');
 }
 list($new_year)  =  $db->sql_fetchrow($result);
 $db->sql_freeresult($result);
 
 //  all  time
 $sql  =  "SELECT  COUNT(user_id)  FROM  ".  $user_prefix  ."_users  WHERE  user_id>'1'";
 if  (  !($result  =  $db->sql_query($sql))  )
 {
   //  error
   die('error  getting  total  users');
 }
 list($total_users)  =  $db->sql_fetchrow($result);
 $db->sql_freeresult($result);
 
         if  (is_admin($admin))  {
 $content  .=  '
 <div>
 <img>  Today:  <strong>'.  $new_today  .'</strong><br>
 <img>  Yesterday:  <strong>'.  $new_yesterday  .'</strong><br>
 <img>  This  Month:  <strong>'.  $new_month  .'</strong><br>
 <img>  This  Year:  <strong>'.  $new_year  .'</strong><br>
 <img>  Total  Users:  <strong>'.  $total_users  .'</strong><br>
 <img><a>  Waiting  Users:  <strong>'.  $wu  .'</strong></a><br>
 <img><a>  Suspended:  <strong>'.  $sus  .'</strong></a><br>
 <img>  Hidden:  <strong>'.  $hdn  .'</strong><br>
 </div>
 </td>
 </tr>
 ';
        }
        else
 $content  .=  '
 <div>
 <img>  Today:  <strong>'.  $new_today  .'</strong><br>
 <img>  Yesterday:  <strong>'.  $new_yesterday  .'</strong><br>
 <img>  This  Month:  <strong>'.  $new_month  .'</strong><br>
 <img>  This  Year:  <strong>'.  $new_year  .'</strong><br>
 <img>  Total  Users:  <strong>'.  $total_users  .'</strong><br>
 </div>
 </td>
 </tr>
 ';
            
 if($recent_member_count  !=  0){
 //  get  newest  member(s)
 $sql  =  "SELECT  username  FROM  ".  $user_prefix  ."_users  ORDER  BY  user_id  DESC  LIMIT  ".  intval($recent_member_count);
 if  (  !($result  =  $db->sql_query($sql))  )
 {
   //  error
   die('error  getting  latest  users');
 }
 $content  .=  '
 <tr>
 <td>';
 $content  .=  '<img>  <strong>New';
 $content  .=  $recent_member_count  >  1  ?  '  Members:</strong><br>'  :  'est  Member:</strong><br>';
 
 while(  $row  =  $db->sql_fetchrow($result)  )
 {
   $content  .=  '
   <div>
   <img>  <a>'.$row['username'].'</a>
   </div>
   ';
   //  comment  the  5  lines  above  and  uncomment  the  5  lines  below  to  use  the  google  tapped  link
   //$content  .=  '
   //<div>
   //<img>  <a>'.$row['username'].'</a>
   //</div>
   //';
 }
 $db->sql_freeresult($result);
 $content  .=  '</td></tr>';
 }
 
 //  show  whos  online
 $members  =  '';
 $guests  =  '';
 $m  =  $g  =  0;
 $sql  =  "SELECT  uname,  time,  host_addr,  guest  FROM  ".  $prefix  ."_session  WHERE  time  >  '".(  time()  -  ($max_session_mins  *  60)  )."'  ORDER  BY  guest  ASC,time  DESC";
 if  (  !($result  =  $db->sql_query($sql))  )
 {
   //  error
   die('error  getting  online  users');
 }
 $content  .=  '
 <tr>
 <td>
 <img>  <strong>Online  Now:</strong>
 <br>';
 
 while(  $row  =  $db->sql_fetchrow($result)  )
 {
   if  ($row['guest']  ==  0)
   {
      $m++;
      if  ($m  <max_display_members>sql_query("SELECT  user_level  FROM  ".$prefix."_users  WHERE  username  =  '".$row['uname']."'");
      $row2  =  $db->sql_fetchrow($sql);
      $ulevel  =  intval($row2['user_level']);
   if($ulevel  ==  2)  {
       $icon  =  'admin.png';
       $status  =  '<img>';
   }elseif  ($ulevel  ==  3)  {      
         $icon  =  'mod.png';
         $status  =  '<img>';
     }else{
         $icon  =  'online.png';
         $status  =  '';
     }
     
              if  (is_admin($admin))  {
         $members  .=  '
         <div>
         <img>  <a>'.$row['uname'].'</a>'.$status.'<br>'.$uname.'
         </div>
         ';
            }
             else
        $members  .=  '
         <div>
         <img>  <a>'.$row['uname'].'</a>'.$status.'
         </div>
         ';
         //  comment  the  5  lines  above  and  uncomment  the  5  lines  below  to  use  the  google  tapped  link
         //$members  .=  '
         //<div>
         //<img>  <a>'.$row['uname'].'</a>
         //</div>
         //';
      }
   }
   else
   {
      $g++;
      if  ($show_guest_list  &&  $g  <=  $max_display_guests)
      {
         if  (is_admin($admin))
         {
            $uname  =  $row['uname'];
         }
         else
         {
            //  hide  last  2  octets  of  guest  ip's.
            $ip  =  explode('.',  $row['uname']);
            $uname  =  $ip[0].'.'.$ip[1].'.'.preg_replace("[0-9]",  "x",  $ip[2]).'.'.preg_replace("[0-9]",  "x",  $ip[3]);
         }
   $bot_array  =  array('Google',  'Survey',  'Tweetmeme',  'bing',  'yahoo',  'bot',  'spider',  'crawler');
   $botname  =  '';
   $is_bot  =  false;
   foreach  ($bot_array  as  $bot)
   {
      if  (strpos(strtolower($_SERVER['HTTP_USER_AGENT']),  $bot)  !==  false)
      {
         $is_bot  =  true;
         $botname  =  $bot;
             $content  .=  $botname;
      }
   }
            if  (is_admin($admin))
      {
         $guests  .=  '
         <div>
         <img><a>'.$uname.'</a>
         </div>
         ';
        }
        else
                  $guests  .=  '
         <div>
         <img>'.$uname.'</a>
         </div>
         ';   
      }
   }
 }
 $db->sql_freeresult($result);
 if  ($m  >  0)
 {
   $content  .=  '
   &nbsp;  <em>Members</em>:  <strong>
   '.  $m  .'</strong><br>';
      if($m  >  5){
  $content  .=  "<div>";
   $content  .=  ''.$members.'<br>';
  $content  .=  "</div>";  
  }else{
   $content  .=  ''.$members.'<br>';
      }
 }
 
 if  ($g  >  0)
 {
   $content  .=  '<br>
   &nbsp;  <em>Guests</em>:  <strong>
   '.  $g  .'</strong><br>';
 if($g  >  6){
  $content  .=  "<div>";
  $content  .=  ''.$guests.'<br>';
  $content  .=  "</div>";  
  }else{
        $content  .=  ''.$guests.'<br>';
      }
      }
 
 
 
 $content  .=  '<br>
 &nbsp;<em>Total  Online</em>:  <strong>
   '.  ($m  +  $g)  .'</strong><br>
 </td></tr>';
 }
 $content  .=  '
 </table>
 <END>';
 ?>                
Back to top
View user's profile Send private message Visit poster's website
coRpSE
Xtreme Developer
Xtreme Developer
Site Admin
Site Admin
Support Team
Support Team



Gender: Gender:Male
Joined: Dec 24, 2008
Age: 36
Posts: 1350
Location: Back of your mind!!!
Reputation: 185.8
votes: 10
usa.png


Status: Offline
Web Control Panel: 11.42.0 (build 23)
PostPosted: Fri Nov 04, 2016 8:06 am Post subject: No icon Re: Hide hidden members from non-admins in user info block Reply with quote

 Can  you  re-paste  the  code  and  make  sure  you  check  under  the  textarea  "DISABLE  HTML  IN  THIS  POST",  from  there  I  can  put  it  up  on  my  test  server  and  properly  test  it,  but  seems  to  be  coded  to  only  show  hidden  people  if  your  admin  only,  or  logged  in  as  admin.
Back to top
View user's profile Send private message Visit poster's website
AnonSpider



Gender: Gender:Male
Joined: Oct 13, 2016
Age: 34
Posts: 19

Reputation: 2.4
usa.png


Status: Offline
PostPosted: Fri Nov 04, 2016 3:37 pm Post subject: No icon Re: Hide hidden members from non-admins in user info block Reply with quote

 Here  is  the  code  again.  HTML/BBCode/Smilies  disabled.  And  where  it  looks  like  it  is  only  showing  hidden  members  to  admin  only,  is  probably  the  part  where  it  shows  the  count  of  members  that  are  hidden,  not  actually  hiding  their  username  from  who  is  online.  I'm  also  working  on  something  that  someone  here  was  working  on,  adding  user  flags  along  side  usernames...but  that  is  another  project.  Not  necessarily  the  concern  at  hand  currently.
 
                                                 
PHP:                
<?php
/************************************************************************/
/*                         User Info Block                              */
/*                    Original Coding - Unknown (Possibly Raven?)       */
/*                Modifications - AnonSpider Security                   */
/*                 http://www.anonspidersecurity.tk                     */
/************************************************************************/
/* This program is free software. You can redistribute it and/or modify    */
/* it under the terms of the GNU General Public License as published by    */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/

// how many newest members to show
$recent_member_count 3;
// show online guests IP in online list
$show_guest_list true;
// how long before inactive uses are dropped from online list
$max_session_mins 20;
// maximum number of guests to display
$max_display_guests 25;
// maximum number of members to display
$max_display_members 25;
// notify users of private message by using a javascript drop box
$pm_notify_dropin true;
// if set to true, users will only be notified of private messages once per visit
$pm_dropin_once false;
// set the colors for the dropin box
$dropin_bgcolor '#879095';
$dropin_bordercolor '#000000';
//RavenNuke
$ravennuke 1//Set to 0 for Standard Nuke

/**********************************************************/
/*                       FUNCTIONS                        */
/**********************************************************/
function info_flag_img($c2c) {
 
 global $prefix$db;
 
 $c2c strtolower($c2c);
 
 list($xcountry) = $db->sql_fetchrow($db->sql_query("SELECT `country` FROM `".$prefix."_nsnst_countries` WHERE `c2c`='$c2c' LIMIT 0,1"));
 
 if(!file_exists("images/flags/n_flag/".$c2c.".png")) {
 
   return '<img src="images/nukesentinel/countries/00.png" border="0" height="13" width="15" alt="('.$c2c.') '.$xcountry.'" title="('.$c2c.') '.$xcountry.'" />';
 
 } else {
 
   return '<img src="images/flags/n_flag/'.$c2c.'.png" border="0" alt="('.$c2c.') '.$xcountry.'" title="('.$c2c.') '.$xcountry.'" />';
 
 }
}

if ( !
defined('BLOCK_FILE') ) {
 
   Header("Location: ../index.php");
 
   die();
}

global 
$db$prefix$ya_config$user_prefix$user$sitekey$gfx_chk$admin;
$content '
<!-- Start Info -->
<table width="100%" cellspacing="2" cellpadding="1" align="left">
'
;

// get user info/show login
if (!is_user($user))
{
 
   $content .= '
  <tr align="left">
  <td style="border-bottom: 1px dotted #CCCCCC; padding-bottom: 4px; padding-top: 4px;">
  <a href="modules.php?name=Your_Account" style="text-decoration: none" title="Login or Register"><img src="images/info/user.png" alt=""  /> <span style="font-size: 14px;"><strong>Anonymous</strong></span></a><br />'
;
 
 $content .= '<div style="" title="Your Ip Address">';
 
 $content .= '<img src="images/info/your_ip1.png" alt="">  <strong>'$_SERVER['REMOTE_ADDR'] .'</strong><br /></div>
  
  <form action="modules.php?name=Your_Account" method="post">
  '
_NICKNAME .':<br />
  <input type="text" name="username" value="" size="15" maxlength="25" /><br />
  '
_PASSWORD .':<br />
  <input type="password" name="user_password" size="15" maxlength="20" /><br />
  '
;
    
$content .= '<a href="modules.php?name=Your_Account&op=pass_lost" title="' _LOSTPASS '">' _LOSTPASS2 '</a><br />
  '
;
 
//Uncomment if raven nuke
if($ravennuke 1){
 
/*****[BEGIN]******************************************
  [ Base:    GFX Code                           v1.0.0 ]
  ******************************************************/
 
   $content .= security_code(array(2,4,5,7), 'stacked');
 
 /*****[END]********************************************
  [ Base:    GFX Code                           v1.0.0 ]
  ******************************************************/
}else{
 
    // see if security code is enabled
 
 if (extension_loaded('gd') && ($gfx_chk == || $gfx_chk == || $gfx_chk == || $gfx_chk == 7))
 
 {
 
   mt_srand ((double)microtime()*1000000);
 
   $maxran 1000000;
 
   $random_num mt_rand(0$maxran);
 
   $datekey date("F j");
 
   $rcode hexdec(md5($_SERVER['HTTP_USER_AGENT'] . $sitekey $random_num $datekey));
 
   $code substr($rcode26);
 
   
    $content 
.= '
    '
_SECURITYCODE .':<br />
    <img src="?gfx=gfx&random_num='
$random_num .'" alt="'_SECURITYCODE .'" /><br />
    '
_TYPESECCODE .':<br />
    <input type="text" name="gfx_check" value="" size="6" maxlength="6" /><br />
    <input type="hidden" name="random_num" value="'
$random_num .'" />
    '
;
 
 }
 
 else
  
{
 
   $content .= '<br />
    <input type="hidden" name="random_num" value="'
$random_num .'">
    <input type="hidden" name="gfx_check" value="'
$code .'">';
 
 }
}
 
 $content .= '
  <br />
  <input type="hidden" name="op" value="login" />
  <input type="submit" name="login" value="'
_LOGIN .'" /> 
  <input type="button" onclick="parent.location=\'modules.php?name=Your_Account&op=new_user\'" name="'
_BREG .'" title="'_BREG .'" value="'_BREG .'" />
  </form>
  </td></tr>'
;
}
else
{
$uinfo cookiedecode($user);
 
 $uinfo[2] = str_replace("\"""'"UsernameColor($uinfo[1]));
 
 $content .= '<tr align="center"><td style="border-bottom: 1px dotted #CCCCCC; padding-bottom: 4px; padding-top: 4px;" title="Hello '$uinfo[1] .'">
  <a href="modules.php?name=Your_Account&op=edituser" style="text-decoration: none" title="Edit Account Info"><span style="font-size: 14px;"><strong>'
$uinfo[2] .'</strong></span></a><br />';
 
 $content .= '<div>';
 
 $content .= '<img src="images/info/your_ip1.png" alt="">  <strong>'$_SERVER['REMOTE_ADDR'] .'</strong><br />';
 
 $content .= '<a href="modules.php?name=Forums&file=search&search_id=egosearch" style="text-decoration: none" title="View Your Forum Posts"><img src="images/info/your_posts.png" alt="" > <strong>Your Forum Posts</strong></a><br />';
 
 $content .= '</td></tr><tr>';
 
 $content .= '<td style="border-bottom: 1px dotted #CCCCCC; padding-bottom: 4px; padding-top: 4px;">';
 
         if (is_admin($admin)) {
 
 $content .= '<center><strong>╒╕==Logout==╒╕</strong><br/>';
 
 $content .= '<a href="modules.php?name=Your_Account&op=logout" style="text-decoration: none" title="User Logout"><img src="images/info/logout.png" alt=""> <strong>User</strong></a> | <a href="admin.php?op=logout" style="text-decoration: none" title="Admin Logout"><strong>Admin</strong>&nbsp<img src="images/info/logout.png" alt=""></a>';
 
 $content .= '</div></td></tr>';
         
 }
 
       else
  $content 
.= '<a href="modules.php?name=Your_Account&op=logout" style="text-decoration: none" title="Logout"><img src="images/info/logout.png" alt=""><strong>Logout</strong></a>';
 
 $content .= '</div></td></tr>';
 
 
  
// check new pms
 
 $sql "SELECT privmsgs_to_userid FROM ".$prefix."_bbprivmsgs WHERE privmsgs_to_userid='"intval($uinfo[0]) ."' AND (privmsgs_type='5' OR privmsgs_type='1')";
 
 if ( !($result $db->sql_query($sql)) )
 
 {
 
   // error
 
   die('error checking new pms');
 
 }
 
 $new_pms $db->sql_numrows($result);
 
 $db->sql_freeresult($result);
 
 
  
// check old pms
 
 $sql "SELECT privmsgs_to_userid FROM ".$prefix."_bbprivmsgs WHERE privmsgs_to_userid='"intval($uinfo[0]) ."' AND (privmsgs_type='0')";
 
 if ( !($result $db->sql_query($sql)) )
 
 {
 
   // error
 
   die('error checking old pms');
 
 }
 
 $old_pms $db->sql_numrows($result);
 
 $db->sql_freeresult($result);
 
 
  $content 
.= '
  <tr>
  <td style="border-bottom: 1px dotted #CCCCCC; padding-bottom: 4px; padding-top: 4px;">
  <img src="images/info/pms.png" alt=""> <strong>Your Messages</strong><br />
  <div style=" ">
  <img src="images/info/new_pms.png" alt=""> <a href="modules.php?name=Private_Messages">Unread: <strong>'
$new_pms .'</strong></a><br />';
 
 if ($pm_notify_dropin && $new_pms 0)
 
 {
 
   $content .= '
    <script type="text/javascript" language="JavaScript1.2">
    
    // Drop-in content box- By Dynamic Drive
    // For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
    // This credit MUST stay intact for use
    
    var ie=document.all
    var dom=document.getElementById
    var ns4=document.layers
    var calunits=document.layers? "" : "px"
    
    var bouncelimit=32 //(must be divisible by 8)
    var direction="up"
    
    function initbox(){
    if (!dom&&!ie&&!ns4)
    return
    crossobj=(dom)?document.getElementById("dropin").style : ie? document.all.dropin : document.dropin
    scroll_top=(ie)? truebody().scrollTop : window.pageYOffset
    crossobj.top=scroll_top-250+calunits
    crossobj.visibility=(dom||ie)? "visible" : "show"
    dropstart=setInterval("dropin()",50)
    }
    
    function dropin(){
    scroll_top=(ie)? truebody().scrollTop : window.pageYOffset
    if (parseInt(crossobj.top)<100+scroll_top)
    crossobj.top=parseInt(crossobj.top)+40+calunits
    else{
    clearInterval(dropstart)
    bouncestart=setInterval("bouncein()",50)
    }
    }
    
    function bouncein(){
    crossobj.top=parseInt(crossobj.top)-bouncelimit+calunits
    if (bouncelimit<0)
    bouncelimit+=8
    bouncelimit=bouncelimit*-1
    if (bouncelimit==0){
    clearInterval(bouncestart)
    }
    }
    
    function dismissbox(){
    if (window.bouncestart) clearInterval(bouncestart)
    crossobj.visibility="hidden"
    }
    
    function truebody(){
    return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
    }
    
    
    function get_cookie(Name) {
    var search = Name + "="
    var returnvalue = ""
    if (document.cookie.length > 0) {
    offset = document.cookie.indexOf(search)
    if (offset != -1) {
    offset += search.length
    end = document.cookie.indexOf(";", offset)
    if (end == -1)
    end = document.cookie.length;
    returnvalue=unescape(document.cookie.substring(offset, end))
    }
    }
    return returnvalue;
    }
    
    function dropornot(){'
;
 
 if ($pm_dropin_once)
 
 {
 
   $content .= '
    if (get_cookie("droppedin")==""){
    window.onload=initbox
    document.cookie="droppedin=yes"
    }'
;
 
 }
 
 else
  
{
 
   $content .= '
    window.onload=initbox
    
    '
;
 
 }
 
 $content .= '
    }
    dropornot()
    </script>
    '
;
 
   $content .= '
    <div id="dropin" style="position:absolute;visibility:hidden;left:400px;top:100px;width:300px;height:100px;background-color:'
.$dropin_bgcolor.';border: 1px solid '.$dropin_bordercolor.'">
    
    <div align="right"><a href="#" onClick="dismissbox();return false">[Close Box] </a></div>
    <br />
    <a href="messages.html" onClick="dismissbox();">You have <strong>'
$new_pms .'</strong> new Private Messages.</a>
    
    </div>
    '
;
 
 }
 
 $content .= '
  <img src="images/info/old_pms.png" alt=""> Read: <strong>'
$old_pms .'</strong><br />
  </div>
  </td>
  </tr>
  '
;

$content .= '
<tr>
<td style="border-bottom: 1px dotted #CCCCCC; padding-bottom: 4px; padding-top: 4px;">
<img src="images/info/members.png" alt=""> <strong>User Stats:</strong>
<br />
'
;
// get new member info
$timestamp time();
$today date("M d, Y");
$yesterday date("M d, Y", ($timestamp 86400) );
$this_month date("M");
$this_year date("Y");

// today
$sql "SELECT COUNT(user_id) FROM "$user_prefix ."_users WHERE user_regdate='$today'";
if ( !(
$result $db->sql_query($sql)) )
{
 
 // error
 
 die('error getting todays users');
}
list(
$new_today) = $db->sql_fetchrow($result);
$db->sql_freeresult($result);

 
     if (is_admin($admin)) {
//Suspended
$sus $db->sql_numrows($db->sql_query("SELECT * FROM ".$user_prefix."_users WHERE user_level='0' AND user_id>'1'"));

//Waiting
$wu $db->sql_numrows($db->sql_query("SELECT user_id FROM ".$user_prefix."_users_temp"));

//Hidden
$hdn $db->sql_numrows($db->sql_query("SELECT user_id FROM "$user_prefix ."_users WHERE user_allow_viewonline='0'"));
     
 }

//Yesterday
$sql "SELECT COUNT(user_id) FROM "$user_prefix ."_users WHERE user_regdate='$yesterday'";
if ( !(
$result $db->sql_query($sql)) )
{
 
 // error
 
 die('error getting yesterdays users');
}
list(
$new_yesterday) = $db->sql_fetchrow($result);
$db->sql_freeresult($result);

// this month
$sql "SELECT COUNT(user_id) FROM "$user_prefix ."_users WHERE SUBSTRING(user_regdate, 1, 4)='$this_month' AND SUBSTRING(user_regdate, 9, 12)='$this_year'";
if ( !(
$result $db->sql_query($sql)) )
{
 
 // error
 
 die('error getting this months users');
}
list(
$new_month) = $db->sql_fetchrow($result);
$db->sql_freeresult($result);

// this year
$sql "SELECT COUNT(user_id) FROM "$user_prefix ."_users WHERE SUBSTRING(user_regdate, 9, 12)='$this_year'";
if ( !(
$result $db->sql_query($sql)) )
{
 
 // error
 
 die('error getting this years users');
}
list(
$new_year) = $db->sql_fetchrow($result);
$db->sql_freeresult($result);

// all time
$sql "SELECT COUNT(user_id) FROM "$user_prefix ."_users WHERE user_id>'1'";
if ( !(
$result $db->sql_query($sql)) )
{
 
 // error
 
 die('error getting total users');
}
list(
$total_users) = $db->sql_fetchrow($result);
$db->sql_freeresult($result);

 
     if (is_admin($admin)) {
$content .= '
<div style="">
<img src="images/info/today.png" alt=""> Today: <strong>'
$new_today .'</strong><br />
<img src="images/info/yesterday.png" alt=""> Yesterday: <strong>'
$new_yesterday .'</strong><br />
<img src="images/info/month.png" alt=""> This Month: <strong>'
$new_month .'</strong><br />
<img src="images/info/year.png" alt=""> This Year: <strong>'
$new_year .'</strong><br />
<img src="images/info/total_users.png" alt=""> Total Users: <strong>'
$total_users .'</strong><br />
<img src="images/info/waiting.png" alt=""><a href="modules.php?name=Resend_Email"> Waiting Users: <strong>'
$wu .'</strong></a><br />
<img src="images/info/sus.png" alt=""><a href="admin.php?op=yaListUsers&listtype=0&sumin="> Suspended: <strong>'
$sus .'</strong></a><br />
<img src="images/info/hidden.gif" alt=""> Hidden: <strong>'
$hdn .'</strong><br />
</div>
</td>
</tr>
'
;
     
 }
     
 else
$content 
.= '
<div style="">
<img src="images/info/today.png" alt=""> Today: <strong>'
$new_today .'</strong><br />
<img src="images/info/yesterday.png" alt=""> Yesterday: <strong>'
$new_yesterday .'</strong><br />
<img src="images/info/month.png" alt=""> This Month: <strong>'
$new_month .'</strong><br />
<img src="images/info/year.png" alt=""> This Year: <strong>'
$new_year .'</strong><br />
<img src="images/info/total_users.png" alt=""> Total Users: <strong>'
$total_users .'</strong><br />
</div>
</td>
</tr>
'
;
         
 
if($recent_member_count != 0){
// get newest member(s)
$sql "SELECT username FROM "$user_prefix ."_users ORDER BY user_id DESC LIMIT "intval($recent_member_count);
if ( !(
$result $db->sql_query($sql)) )
{
 
 // error
 
 die('error getting latest users');
}
$content .= '
<tr>
<td style="border-bottom: 1px dotted #CCCCCC; padding-bottom: 4px; padding-top: 4px;">'
;
$content .= '<img src="images/info/new_users.png" alt=""> <strong>New';
$content .= $recent_member_count ' Members:</strong><br />' 'est Member:</strong><br />';

while( 
$row $db->sql_fetchrow($result) )
{
 
 $content .= '
  <div style="padding-left: 12px;">
  <img src="images/info/member_new.png" alt=""> <a href="modules.php?name=Your_Account&op=userinfo&username='
.$row['username'].'" title="View Profile: '.$row['username'].'">'.$row['username'].'</a>
  </div>
  '
;
 
 // comment the 5 lines above and uncomment the 5 lines below to use the google tapped link
 
 //$content .= '
 
 //<div style="padding-left: 12px;">
 
 //<img src="images/info/member_new.png" alt=""> <a href="userinfo-'.$row['username'].'.html" title="View Profile: '.$row['username'].'">'.$row['username'].'</a>
 
 //</div>
 
 //';
}
$db->sql_freeresult($result);
$content .= '</td></tr>';
}

// show whos online
$members '';
$guests '';
$m $g 0;
$sql "SELECT uname, time, host_addr, guest FROM "$prefix ."_session WHERE time > '".( time() - ($max_session_mins 60) )."' ORDER BY guest ASC,time DESC";
if ( !(
$result $db->sql_query($sql)) )
{
 
 // error
 
 die('error getting online users');
}
$content .= '
<tr>
<td style="border-bottom: 1px dotted #CCCCCC; padding-bottom: 4px; padding-top: 4px;">
<img src="images/info/members.png" alt=""> <strong>Online Now:</strong>
<br />'
;

while( 
$row $db->sql_fetchrow($result) )
{
 
 if ($row['guest'] == 0)
 
 {
 
   $m++;
 
   if ($m <= $max_display_members)
 
   {
 
   $sql $db->sql_query("SELECT user_level FROM ".$prefix."_users WHERE username = '".$row['uname']."'");
 
   $row2 $db->sql_fetchrow($sql);
 
   $ulevel intval($row2['user_level']);
 
 if($ulevel == 2) {
 
     $icon 'admin.png';
 
     $status '<img src="images/info/admin.gif" alt="Admin">';
 
 }elseif ($ulevel == 3) {     
        
$icon 'mod.png';
        
$status '<img src="images/info/staff.gif" alt="Mod">';
    }else{
        
$icon 'online.png';
        
$status '';
    }
        
$result1 $db->sql_query("SELECT `ip_addr`, `c2c` FROM `".$prefix."_nsnst_tracked_ips`");
         
 while(list($ipaddr,$c2c) = $db->sql_fetchrow($result1))
     
 $getIPs['flag_img'] = info_flag_img($c2c);
     
     if (is_admin($admin)) {
 
     $members .= '
      <div style="padding-left: 2px;">
      '
.$getIPs['flag_img'].' <img src="images/info/'.$icon.'" alt=""> <a href="modules.php?name=Your_Account&op=userinfo&username='.$row['uname'].'" title="View Profile: '.$row['uname'].'">'.$row['uname'].'</a>'.$status.'<br />'.$uname.'
      </div>
      '
;
         
 }
            else
     
 $members .= '
      <div style="padding-left: 2px;">
      '
.$getIPs['flag_img'].' <img src="images/info/'.$icon.'" alt=""> <a href="modules.php?name=Your_Account&op=userinfo&username='.$row['uname'].'" title="View Profile: '.$row['uname'].'">'.$row['uname'].'</a>'.$status.'
      </div>
      '
;
 
     // comment the 5 lines above and uncomment the 5 lines below to use the google tapped link
 
     //$members .= '
 
     //<div style="padding-left: 12px;">
 
     //<img src="images/info/online.png" alt=""> <a href="userinfo-'.$row['uname'].'.html" title="View Profile: '.$row['uname'].'">'.$row['uname'].'</a>
 
     //</div>
 
     //';
 
   }
 
 }
 
 else
  
{
 
   $g++;
 
   if ($show_guest_list && $g <= $max_display_guests)
 
   {
 
     if (is_admin($admin))
 
     {
 
       $uname $row['uname'];
 
     }
 
     else
      
{
 
       // hide last 2 octets of guest ip's.
 
       $ip explode('.'$row['uname']);
 
       $uname $ip[0].'.'.$ip[1].'.'.preg_replace("[0-9]""x"$ip[2]).'.'.preg_replace("[0-9]""x"$ip[3]);
 
     }
 
 $bot_array = array('Google''Survey''Tweetmeme''bing''yahoo''bot''spider''crawler');
 
 $botname '';
 
 $is_bot false;
 
 foreach ($bot_array as $bot)
 
 {
 
   if (strpos(strtolower($_SERVER['HTTP_USER_AGENT']), $bot) !== false)
 
   {
 
     $is_bot true;
 
     $botname $bot;
            
$content .= $botname;
 
   }
 
 }
 
       if (is_admin($admin))
 
   {
 
     $guests .= '
      <div style="padding-left: 2px;">
      '
.$getIPs['flag_img'].' <img src="images/info/online_guest.png" alt=""><a href="http://www.networksolutions.com/whois/results.jsp?ip='.$uname.' " target="_blank">'.$uname.'</a>
      </div>
      '
;
     
 }
     
 else
              $guests 
.= '
      <div style="padding-left: 2px;">
      <img src="images/info/online_guest.png" alt="">'
.$uname.'</a>
      </div>
      '
 
    
}
 
 }
}
$db->sql_freeresult($result);
if (
$m 0)

{
 
 $content .= '
  &nbsp; <em>Members</em>: <strong>
  '
$m .'</strong><br />';
 
   if($m 5){
 
$content .= "<div style=\"border:none; height:98px; width:100%; overflow-x:hidden; overflow-y:scroll;\">";
 
$content .= ''.$members.'<br />';
 
$content .= "</div>"
 }else{
 
 $content .= ''.$members.'<br />';
     }
}

if (
$g 0)
{
 
 $content .= '<br />
  &nbsp; <em>Guests</em>: <strong>
  '
$g .'</strong><br />';
if(
$g 6){
 
$content .= "<div style=\"border:none; height:98px; width:100%; overflow-x:hidden; overflow-y:scroll;\">";
 
$content .=  ''.$guests.'<br />';
 
$content .= "</div>"
 }else{
      
$content .= ''.$guests.'<br />';
     }
     }

$content .= '<br />
&nbsp;<em>Total Online</em>: <strong>
  '
. ($m $g) .'</strong><br />
</td></tr>'
;
}
$content .= '
</table>
<!-- END Info -->'
;
?>
               

 
 EDIT:  Updated  by  coRpSE
Back to top
View user's profile Send private message Visit poster's website
Sponsor
webstorm.jpg
coRpSE
Xtreme Developer
Xtreme Developer
Site Admin
Site Admin
Support Team
Support Team



Gender: Gender:Male
Joined: Dec 24, 2008
Age: 36
Posts: 1350
Location: Back of your mind!!!
Reputation: 185.8
votes: 10
usa.png


Status: Offline
Web Control Panel: 11.42.0 (build 23)
PostPosted: Fri Nov 04, 2016 8:15 pm Post subject: No icon Re: Hide hidden members from non-admins in user info block Reply with quote

 Okay,  so  what  are  you  looking  to  have  hidden  from  all  "non-logged  in  admins",  besides  the  hidden.  Logged  in  users  are  supposed  to  see  who  is  online,  it  just  hides  the  important  info  that  is  only  for  admins.  But  if  you  want  that  admin  only,  then  that  is  an  easy  fix.  If  you're  running  the  latest  Honeypot  on  your  site,  Version  2.2,  then  implementing  the  flags  would  be  easy.
 
 http://www.headshotdomain.net/modules.php?name=Forums&file=viewtopic&t=1417
 
 There  is  a  link  in  there  to  the  video  tutorial.
Back to top
View user's profile Send private message Visit poster's website
AnonSpider



Gender: Gender:Male
Joined: Oct 13, 2016
Age: 34
Posts: 19

Reputation: 2.4
usa.png


Status: Offline
PostPosted: Sat Nov 05, 2016 2:12 pm Post subject: No icon Re: Hide hidden members from non-admins in user info block Reply with quote

 This  particular  block  shows  hidden  members  that  are  online  to  all  members,  admin  and  non-admins.  Those  hidden  members  should  only  be  visible  to  admins.  Nowhere  in  the  code  does  it  subtract  the  hidden  members  from  the  total  online.  That's  what  I'm  trying  to  do.  I  know  the  evo  block  hides  the  hidden  members...but  that  code  is  a  bit  different  from  this  blocks  code.
 
 Thanks  for  the  heads  up  on  the  flag  tutorial,  I'll  head  over  to  your  site  and  check  it  out.
Back to top
View user's profile Send private message Visit poster's website
coRpSE
Xtreme Developer
Xtreme Developer
Site Admin
Site Admin
Support Team
Support Team



Gender: Gender:Male
Joined: Dec 24, 2008
Age: 36
Posts: 1350
Location: Back of your mind!!!
Reputation: 185.8
votes: 10
usa.png


Status: Offline
Web Control Panel: 11.42.0 (build 23)
PostPosted: Sat Nov 05, 2016 3:42 pm Post subject: No icon Re: Hide hidden members from non-admins in user info block Reply with quote

 Why  use  this  block  and  not  the  User_Info  or  the  CZUser-Info  block?
 If  you  want  to  use  the  CZUser-Info  block,  (you  can  see  it  on  my  site),  I  can  give  you  mine  that  already  has  the  flag  and  the  usercolor  in  it.  Also,  hidden  are  hidden  from  all  but  admins,  ect...
 
 If  not,  then  that  section  of  your  block  will  probably  need  to  be  re-written,  which  i  can  do,  just  need  to  give  me  some  time  to  do  it,  (been  busy  with  medical  stuff).
Back to top
View user's profile Send private message Visit poster's website
Sponsor
phpstorm.jpg
AnonSpider



Gender: Gender:Male
Joined: Oct 13, 2016
Age: 34
Posts: 19

Reputation: 2.4
usa.png


Status: Offline
PostPosted: Sat Nov 05, 2016 4:33 pm Post subject: No icon Re: Hide hidden members from non-admins in user info block Reply with quote

 Yours  seems  quite  neat.  Like  how  the  Google  bots  name  is  colorized...
 
 If  I  could  use  that  one,  that'd  be  awesome.
 
 Up  to  you  if  you  want  to  attach  it  here  via  forum  or  pm,  or  email  it.  My  email  address  is  in  my  profile  I'm  sure.
 
 Regardless,  the  reason  I  was  wanting  to  use  this  block  is  because  I've  been  putting  work  into  changing  stuff  around  on  it,  and  the  position/pattern  of  the  code  was  familiar.  Whereas  the  CZUser-Info  block  is  coded  a  bit  different.
 
 Don't  worry  about  this  block,  unless  you  want  something  to  do  on  a  non-busy  day.
Back to top
View user's profile Send private message Visit poster's website
coRpSE
Xtreme Developer
Xtreme Developer
Site Admin
Site Admin
Support Team
Support Team



Gender: Gender:Male
Joined: Dec 24, 2008
Age: 36
Posts: 1350
Location: Back of your mind!!!
Reputation: 185.8
votes: 10
usa.png


Status: Offline
Web Control Panel: 11.42.0 (build 23)
PostPosted: Sat Nov 05, 2016 5:48 pm Post subject: No icon Re: Hide hidden members from non-admins in user info block Reply with quote

 Here  is  my  block,  just  let  me  know  if  you  are  missing  any  images,  I  can  get  you  those.


Last edited by coRpSE on Sun Nov 13, 2016 10:50 am; edited 3 times in total
Back to top
View user's profile Send private message Visit poster's website
Sp0rAdiC



Gender: Gender:Male
Joined: Mar 31, 2014
Posts: 34

Reputation: 3.3
usa.png


Status: Offline
PostPosted: Sun Nov 06, 2016 2:33 pm Post subject: No icon Re: Hide hidden members from non-admins in user info block Reply with quote

 I  used  coRpSE's  Honeypot  module  and  the  ip2c  code  he  posted  on  his  site  to  include  flags  on  my  userinfo  block.
 
 Also  split  the  members,  guests,  and  known  bots  into  separate  categorizes  and  added  the  user  avatar.  
 
 
Back to top
View user's profile Send private message Visit poster's website
Sponsor
phpstorm.jpg
AnonSpider



Gender: Gender:Male
Joined: Oct 13, 2016
Age: 34
Posts: 19

Reputation: 2.4
usa.png


Status: Offline
PostPosted: Sat Nov 12, 2016 6:04 pm Post subject: No icon Re: Hide hidden members from non-admins in user info block Reply with quote

 Block  looks  good  Smile  Thanks.
 
 Just  a  heads  up  though,  while  viewing  a  page  from  within  Sentinel,  the  user  info  block  has  an  error  about  that  it  cannot  redeclare  the  abget_country()  or  something  since  it  is  declared  in  Sentinel.
 
 So  I  just  renamed  each  instance  of  the  abget_country  to  abget_countrycz  and  all  is  good  now.
Back to top
View user's profile Send private message Visit poster's website
coRpSE
Xtreme Developer
Xtreme Developer
Site Admin
Site Admin
Support Team
Support Team



Gender: Gender:Male
Joined: Dec 24, 2008
Age: 36
Posts: 1350
Location: Back of your mind!!!
Reputation: 185.8
votes: 10
usa.png


Status: Offline
Web Control Panel: 11.42.0 (build 23)
PostPosted: Sun Nov 13, 2016 10:51 am Post subject: No icon Re: Hide hidden members from non-admins in user info block Reply with quote

 I  updated  the  attached  block.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:
Post new topic  Reply to topic   printer-friendly view   Thank Post Evolution-Xtreme Forum Index ->  Blocks All times are UTC - 5 Hours
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Related topics
 Topics   Replies   Author   Views   Last Post 
This topic is locked: you cannot edit posts or make replies. Announcement: [BETA][RELEASED] Nuke Evolution 2.0.8 0 SgtLegend 3744 Fri May 28, 2010 4:54 am
SgtLegend View latest post
No new posts Dutch Language for Xtreme V2.0 4 DFC-NightMare[NL] 3901 Wed May 01, 2013 1:18 pm
coRpSE View latest post
No new posts [Solved] Birhday mod 3.0 missing: 18 Huntergreen 11760 Mon Mar 04, 2013 7:54 pm
Teo View latest post
No new posts help upgrading to evo xtream 2.0.7 1 kirky12 3735 Thu Sep 02, 2010 10:06 am
SgtLegend View latest post
This topic is locked: you cannot edit posts or make replies. [ Poll ] Xtreme v2.0 52 Lonestar 20583 Wed Oct 14, 2009 2:51 am
SgtLegend View latest post
 




Powered by phpBB © 2001, 2006 phpBB Group
EvoXtreme Theme by SgtLegend ©
Forums ©