CZUser Info

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   CZUser Info
jcb
CZ Active Member
 Codezwiz Site Donator
uk.gif
Occupation: Soldier
Age: 49
Gender: Male
Fav. Sports Team: England
Status: Offline
Joined: Oct 20, 2003
0.02 posts per day
Posts: 135
Points: 7,618
   
Hi,

I have searched your forum for this answer but was unable to find it so I appologize to you in advance.

Im using the CZUser Info block.
I have the admin pic next to my name = thats fine
the two site owners have staff next to their names = thats fine
4 moderatoers also have staff next to their names = thats not good

what do I have to do to ensure that the moderators have the mod1.gif next to their names and not staff. I am trying to differentiate them from the two site owners.

Thnks for your time and help.

JCB



Back to top Reply with quote
#2   
JRSweets
CZ Active Member
 Codezwiz Site Donator
JRSweets has been a member for over 20 year's 20 Year Member
usa.gif massachusetts.gif
Age: 43
Gender: Male
Fav. Sports Team: NE Patriots
Website:
Status: Offline
Joined: Apr 07, 2004
0.03 posts per day
Posts: 259
Points: 19,861
  MSN Messenger 
Are the site owners and moderators all set at the same user level? They are probably both set to user level 3 which is a mod. You are user level 2 which is an admin. That is how the images are assigned.

You could try this. Open up the block and look for this code:

     $uname = $session['uname'];
     $ulevel = $session['user_level']; 

                 if ($ulevel == 2) {
                 $who_online_now .= "<br />$czi. ;;<A HREF=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$uname\"  title=\""._CZ_VIEW." $uname's "._CZ_VIEWPP."\">$uname</a> ;;<img src=\"images/CZUser/admin.gif\">\n";
                 }
                 elseif ($ulevel == 3) {
                 $who_online_now .= "<br />$czi. ;;<A HREF=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$uname\"  title=\""._CZ_VIEW." $uname's "._CZ_VIEWPP."\">$uname</a></font> ;;<img src=\"images/CZUser/staff.gif\">\n";
                 }


and replace it with:

$uname = $session['uname'];
     $ulevel = $session['user_level'];
     $uid = $session['user_id'];

                 if ($ulevel == 2) {
                 $who_online_now .= "<br />$czi. ;;<A HREF=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$uname\"  title=\""._CZ_VIEW." $uname's "._CZ_VIEWPP."\">$uname</a> ;;<img src=\"images/CZUser/admin.gif\">\n";
                 }
                 elseif ($ulevel == 3) {
                 $who_online_now .= "<br />$czi. ;;<A HREF=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$uname\"  title=\""._CZ_VIEW." $uname's "._CZ_VIEWPP."\">$uname</a></font> ;;<img src=\"images/CZUser/mod1.gif\">\n";
                 }
                 elseif (($uid == 1)&&($uid == 1)) {
                 $who_online_now .= "<br />$czi. ;;<A HREF=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$uname\"  title=\""._CZ_VIEW." $uname's "._CZ_VIEWPP."\">$uname</a></font> ;;<img src=\"images/CZUser/staff.gif\">\n";
                 }



elseif (($uid == 1)&&($uid == 1))

Replace that code with the two owners user id.


Back to top Reply with quote
#3   re: CZUser Info
jcb
CZ Active Member
 Codezwiz Site Donator
uk.gif
Occupation: Soldier
Age: 49
Gender: Male
Fav. Sports Team: England
Status: Offline
Joined: Oct 20, 2003
0.02 posts per day
Posts: 135
Points: 7,618
   
ok, ty

i have done what you said. I went to admin >>> users and got the user id off both the owners.

now they are all showing up as moderators. any ideas??

appreciate you help.

ty

JCB



Back to top Reply with quote
#4   
JRSweets
CZ Active Member
 Codezwiz Site Donator
JRSweets has been a member for over 20 year's 20 Year Member
usa.gif massachusetts.gif
Age: 43
Gender: Male
Fav. Sports Team: NE Patriots
Website:
Status: Offline
Joined: Apr 07, 2004
0.03 posts per day
Posts: 259
Points: 19,861
  MSN Messenger 
go back to the orginal block, find the same code again and replace it with this:

$uname = $session['uname'];
$ulevel = $session['user_level'];
$uid = $session['user_id'];

                 if ($ulevel == 2) {
                 $who_online_now .= "<br />$czi. ;;<A HREF=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$uname\"  title=\""._CZ_VIEW." $uname's "._CZ_VIEWPP."\">$uname</a> ;;<img src=\"images/CZUser/admin.gif\">\n";
                 }
                 elseif ($ulevel == 3) {
                                          if(($uid == 1)&&($uid == 1))
                                          {
                                             $who_online_now .= "<br />$czi. ;;<A HREF=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$uname\"  title=\""._CZ_VIEW." $uname's "._CZ_VIEWPP."\">$uname</a></font> ;;<img src=\"images/CZUser/staff.gif\">\n";
                                          }
                                        else
                                        {
                                                $who_online_now .= "<br />$czi. ;;<A HREF=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$uname\"  title=\""._CZ_VIEW." $uname's "._CZ_VIEWPP."\">$uname</a></font> ;;<img src=\"images/CZUser/mod1.gif\">\n";
                                        }

                                        }


Make sure to put in the userids again.


Back to top Reply with quote
#5   re: CZUser Info
jcb
CZ Active Member
 Codezwiz Site Donator
uk.gif
Occupation: Soldier
Age: 49
Gender: Male
Fav. Sports Team: England
Status: Offline
Joined: Oct 20, 2003
0.02 posts per day
Posts: 135
Points: 7,618
   
really terribly sorry about this.

now there is nothing showing next to the owners (the mods and admin are ok) i checked that the img address was right and it is, its just not displaying.

Anything you can do ? (pushing my luck)

thankyou for your time

JCB



Back to top Reply with quote
#6   
JRSweets
CZ Active Member
 Codezwiz Site Donator
JRSweets has been a member for over 20 year's 20 Year Member
usa.gif massachusetts.gif
Age: 43
Gender: Male
Fav. Sports Team: NE Patriots
Website:
Status: Offline
Joined: Apr 07, 2004
0.03 posts per day
Posts: 259
Points: 19,861
  MSN Messenger 
what is you site address?



Back to top Reply with quote
#7   re: CZUser Info
jcb
CZ Active Member
 Codezwiz Site Donator
uk.gif
Occupation: Soldier
Age: 49
Gender: Male
Fav. Sports Team: England
Status: Offline
Joined: Oct 20, 2003
0.02 posts per day
Posts: 135
Points: 7,618
   
EDITED

JCB



Back to top Reply with quote
#8   
JRSweets
CZ Active Member
 Codezwiz Site Donator
JRSweets has been a member for over 20 year's 20 Year Member
usa.gif massachusetts.gif
Age: 43
Gender: Male
Fav. Sports Team: NE Patriots
Website:
Status: Offline
Joined: Apr 07, 2004
0.03 posts per day
Posts: 259
Points: 19,861
  MSN Messenger 
I'm an idiot. icon_redface.gif

Try this:
if(($uid == 1)&&($uid == 1))


change that to:
if(($uid == 1) OR ($uid == 1))


Once again entering the user ids of the owners.


Back to top Reply with quote
#9   re: CZUser Info
jcb
CZ Active Member
 Codezwiz Site Donator
uk.gif
Occupation: Soldier
Age: 49
Gender: Male
Fav. Sports Team: England
Status: Offline
Joined: Oct 20, 2003
0.02 posts per day
Posts: 135
Points: 7,618
   
on the list the 5th one down chris

the other is not online



Back to top Reply with quote
#10   
JRSweets
CZ Active Member
 Codezwiz Site Donator
JRSweets has been a member for over 20 year's 20 Year Member
usa.gif massachusetts.gif
Age: 43
Gender: Male
Fav. Sports Team: NE Patriots
Website:
Status: Offline
Joined: Apr 07, 2004
0.03 posts per day
Posts: 259
Points: 19,861
  MSN Messenger 
I edited my post look one post up. the user id for chris is 15 right?



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