CZ user info, member visible to user

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   CZ user info, member visible to user
doneandoner
CZ Newbie
doneandoner has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Oct 09, 2004
0.00 posts per day
Posts: 14
Points: 1,100
   
hi guys,

i'm mike and i downloaded a year ago probably this block CZUser Info for my site..

right now i realize that the members online are not visible from user online so i would like know how i could fix it and make members visible to everybody...

Shoud i say that i split the block in two part... one it's the login block with all the info and then i create another block and i put it in the centr/bottom of the page and it shows the name's member of the one that are online, but as i sad before it shows the name only for member and not for users..

how can i fix it??

thanks to evetybody



Back to top Reply with quote
#2   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
You have to remove the


if (is_user($user)) {


And also the closing brace.


}




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   re: CZ user info, member visible to user
doneandoner
CZ Newbie
doneandoner has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Oct 09, 2004
0.00 posts per day
Posts: 14
Points: 1,100
   
hi telli thanks for answer but it doesn't work
i don't have any code that you pasted here..

this is my code in the block:

<?php
/**********************************************/
/* CZUser InfoV4 Block                        */
/*                                            */
/* Copyright (c) 2002-2004 by Telli           */
/* http://www.codezwiz.com                    */
/*                                            */
/**********************************************/
if (eregi( "block-Membridad.php", $_SERVER['SCRIPT_NAME']))
   die("Access Denied");

// Some global definitions
global $user, $prefix, $admin, $db, $banners;


//You can comment this out if you know its installed.
//$db->sql_query("CREATE TABLE IF NOT EXISTS $prefix"._mostonline." (total int(10) NOT NULL default '0', members int(10) NOT NULL default '0', nonmembers int(10) NOT NULL default '0',PRIMARY KEY  (`total`))");

$content = "";


//Include the language
include("language/CZUser-Info/CZUser-Info-english.php");

//Registered users online
$members = $db->sql_query("SELECT w.uname, u.user_id, u.user_level, u.user_allow_viewonline FROM ".$prefix."_session AS w LEFT JOIN ".$prefix."_users AS u ON u.username = w.uname WHERE guest = '0' ORDER by u.user_id ASC");
$guests = $db->sql_query("SELECT w.uname, u.user_id, u.user_level, u.user_allow_viewonline FROM ".$prefix."_session AS w LEFT JOIN ".$prefix."_users AS u ON u.username = w.uname WHERE guest = '0' ORDER by u.user_id ASC");
//Online Total data
$online_num[0] = $db->sql_numrows($members);

//Assemble the online registered users
$who_online_now = "";
$i = 1;
while ($session = $db->sql_fetchrow($members))
   {
   //Allow View?
   if ($session['user_allow_viewonline'] || is_admin($admin))
      {
      $uname = $session['uname'];
      $ulevel = $session['user_level']; 

      if ($ulevel == 2)
         $who_online_now .= "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$uname\"  title=\""._CZ_VIEW." $uname's "._CZ_VIEWPP."\">$uname</a>&nbsp;<img src=\"images/CZUser/admin.bmp\">";
      elseif ($ulevel == 3)
         $who_online_now .= "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$uname\"  title=\""._CZ_VIEW." $uname's "._CZ_VIEWPP."\">$uname</a></font>&nbsp;<img src=\"images/CZUser/staff.gif\">";
      else
         $who_online_now .= "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$uname\" title=\""._CZ_VIEW." $uname's "._CZ_VIEWPP."\">$uname</a></font>";
      $who_online_now .= ( $i != $online_num[0] ? ", " : "" );
      $i++;
      }
   else
      $hidden++;

        }
//Users Online List

//Line to separate
        $content .= "$who_online_now\n";
         if ($banners) {
   include("banners.php");
    }

?>



Back to top Reply with quote
#4   re: CZ user info, member visible to user
doneandoner
CZ Newbie
doneandoner has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Oct 09, 2004
0.00 posts per day
Posts: 14
Points: 1,100
   
anyone icon_sad.gif



Back to top Reply with quote
#5   re: CZ user info, member visible to user
dkwds
CZ Active Member
dkwds has been a member for over 20 year's 20 Year Member
uk.gif
Occupation: Student
Age: 38
Gender: Male
Website:
Status: Offline
Joined: Jul 29, 2004
0.04 posts per day
Posts: 282
Points: 12,713
   
Those modifications are to be made in the newer version of this block which by the looks of it you aren't using.
U can download the latest version below
[ Register or login to view links on this board.]
After doing that you can make the edit in the block file. I checked the block and the line Telli wrote above is present in it.




_________________
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

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