User Levels

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   User Levels
Gunslinger2
CZ Super Newbie
usa.gif indiana.gif
Age: 44
Gender: Male
Status: Offline
Joined: Oct 30, 2003
0.00 posts per day
Posts: 33
Points: 3,930
  MSN Messenger 
I would like some information as to where exactley does the nuke_users > User_level table comes into play.

the reason I ask is that I am using CZuser-Info block [latest release] and I need to add more ranks but would like to do this only for individual users.

I know that this is for multiple users by editing the czuser-info block

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";


$ulevel == 2 > Admin Image
$ulevel == 3 > Staff Image
$ulevel == 4 > Moderator Image [Dont know if this one is still an option with the current block, don't recall]

I would like to know where the number comes from as I need to change it from the above to the following:

$ulevel == 2 > admin image
$ulevel == 3 > staff image
$ulevel == 4 > photographer '''
$ulevel == 5 > model '''
$ulevel == 6 > misc. rank

but I don't know if I should do this from within phpmyadmin or if there is a section in phpnuke admin/forum admin that allows me to do this.

As stated before I would like this for individual users, not how the block is currently set up [with the exception of the models rank]

hope this is clear, I don't really know all that much about php.



_________________
[ Register or login to view links on this board.]

+ [ Register or login to view links on this board. ]
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,475
   
You wont be able to change the levels like that. The Forums depend on those levels for the auth level. You could make your own database table and add users in it that way and classify them with thier own image. Or you could add another field on the nuke_users table maybe called user_image or something and place it there.
Also my first two versions of the block you can add them by user_id so you could copy that.

//Filtering Administrator add more admin names if needed
       if ($user_id == 2){
                  $who_online_now .= "<br>$zi.<a href=\"modules.php?name=Private_Messages&mode=post&u=$user_id\"><img src=\"images/CZUser/pm.gif\" width=\"18\" height=\"10\" border=\"0\" ALT=\"Send a Private Message to $session[uname] \"></a>&nbsp;<A HREF=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$session[uname]\">$session[uname]</a>&nbsp;<img src=\"images/CZUser/admin.gif\">\n";
                  }
//Filtering Staff 1 add more admin names if needed
   elseif ($user_id == USER_ID_HERE){
                  $who_online_now .= "<br>$zi.<a href=\"modules.php?name=Private_Messages&mode=post&u=$user_id\"><img src=\"images/CZUser/pm.gif\" width=\"18\" height=\"10\" border=\"0\" ALT=\"Send a Private Message to $session[uname] \"></a>&nbsp;<A HREF=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$session[uname]\">$session[uname]</a>&nbsp;<img src=\"images/CZUser/staff.gif\">\n";         
            }
//Filtering Staff 2
   elseif ($user_id == USER_ID_HERE){
                  $who_online_now .= "<br>$zi.<a href=\"modules.php?name=Private_Messages&mode=post&u=$user_id\"><img src=\"images/CZUser/pm.gif\" width=\"18\" height=\"10\" border=\"0\" ALT=\"Send a Private Message to $session[uname] \"></a>&nbsp;<A HREF=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$session[uname]\">$session[uname]</a>&nbsp;<img src=\"images/CZUser/staff.gif\">\n";         
            }
//Filtering Staff 3
   elseif ($user_id == USER_ID_HERE){
                  $who_online_now .= "<br>$zi.<a href=\"modules.php?name=Private_Messages&mode=post&u=$user_id\"><img src=\"images/CZUser/pm.gif\" width=\"18\" height=\"10\" border=\"0\" ALT=\"Send a Private Message to $session[uname] \"></a>&nbsp;<A HREF=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$session[uname]\">$session[uname]</a>&nbsp;<img src=\"images/CZUser/staff.gif\">\n";         
            }
      else {
         $who_online_now .= "<br>$zi.<a href=\"modules.php?name=Private_Messages&mode=post&u=$user_id\"><img src=\"images/CZUser/pm.gif\" width=\"18\" height=\"10\" border=\"0\" ALT=\"Send a Private Message to $session[uname] \"></a>&nbsp;<A HREF=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$session[uname]\">$session[uname]</a>\n";
         }




_________________
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: User Levels
Gunslinger2
CZ Super Newbie
usa.gif indiana.gif
Age: 44
Gender: Male
Status: Offline
Joined: Oct 30, 2003
0.00 posts per day
Posts: 33
Points: 3,930
  MSN Messenger 
hmm any of those options are going to be hard to do seeing as how we over 25+ users that I would need to do edit.

I just dont know enough yet on working with tables icon_neutral.gif

another project on the back burner




_________________
[ Register or login to view links on this board.]

+ [ Register or login to view links on this board. ]
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