CZ User Info Block

  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 Block
Hitman_2oo4
CZ Active Member
uk.gif
Occupation: Student
Age: 38
Gender: Male
Fav. Sports Team: Manchester United
Website:
Status: Offline
Joined: Sep 05, 2003
0.03 posts per day
Posts: 230
Points: 15,485
   
Hey Telli i have installed the Cz user info block succseeful on a few occaision so its workin an stuff but whenever i log into admin it never shows the little admin blue wriiting next to my name i have got the images in the right folder an evreythin can not figure it out

Cheers Hitman



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
   
Open the CZUser_Info.php and look for this:

around line 54

/Filtering Administrator add more admin names if needed
   if (($session[uname] == XXXXX) or ($session[uname] == xxxxx))  {
                  $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";
                  }


Change the first XXXXX to your name in CAPS the second xxxxx to your name in small letters.

Telli



_________________
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   
Silverfox
CZ Super Newbie
 Codezwiz Site Donator
canada.gif
Age: 61
Gender: Male
Website:
Status: Offline
Joined: Aug 27, 2003
0.00 posts per day
Posts: 31
Points: 9,271
   
Teli - Have you been able to make a work around for people with more then one word names so they don't have to use the underscore?


Cheers



Back to top Reply with quote
#4   
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
   
Try placing this just above the first admin name:


$user_id = ereg_replace("_", " ", $user_id);
//Filtering Administrator add more admin names if needed


Let me know how it works out.

Telli



_________________
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
#5   
Silverfox
CZ Super Newbie
 Codezwiz Site Donator
canada.gif
Age: 61
Gender: Male
Website:
Status: Offline
Joined: Aug 27, 2003
0.00 posts per day
Posts: 31
Points: 9,271
   
hmmm nope that didn't work.

Oh well. Thanks anyway, something will come up.

Cheers



Back to top Reply with quote
#6   
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
   
Oops icon_redface.gif

try this instead

$session[uname] = ereg_replace("_", " ", $session[uname]);


Forgot i was using the sessions table there too.

Telli



_________________
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
#7   
Silverfox
CZ Super Newbie
 Codezwiz Site Donator
canada.gif
Age: 61
Gender: Male
Website:
Status: Offline
Joined: Aug 27, 2003
0.00 posts per day
Posts: 31
Points: 9,271
   
hmmm sort of worked?

Here is what I get with that entered in:



The Welcome Login Name stays the same but the Online List is now changed and still doesn't have the gif file after it. (Should say Staff)

Hope you don't mind the pic post.

Cheers



Back to top Reply with quote
#8   
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
   
Ok leave that where it is and add the following

Find:

// Determine how many READ Messages and how many UNREAD Messages
   $result = sql_query( "select user_id from $prefix"._users." where username='$username'", $dbi );
   list( $user_id ) = sql_fetch_row( $result, $dbi );
   $result2 = sql_query( "select privmsgs_type from $prefix"._bbprivmsgs." where privmsgs_to_userid='$user_id' AND (privmsgs_type='1' or privmsgs_type='5')", $dbi );
   $MesUnread = sql_num_rows( $result2 );
   $result3 = sql_query( "select privmsgs_type from $prefix"._bbprivmsgs." where privmsgs_to_userid='$user_id' AND (privmsgs_type='0')", $dbi );
   $MesRead = sql_num_rows( $result3 );


After add:

$username = ereg_replace("_", " ", $username);


Find:

// Hyperlink last registered user to phpBB viewing profile
$resultName = sql_query( "SELECT user_id FROM ".$prefix."_users where username='$lastuser'", $dbi );
list( $Lastuser_id ) = sql_fetch_row( $resultName, $dbi );


After add:

$lastuser = ereg_replace("_", " ", $lastuser);


Lets hope that does it!

Telli



_________________
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
#9   
Silverfox
CZ Super Newbie
 Codezwiz Site Donator
canada.gif
Age: 61
Gender: Male
Website:
Status: Offline
Joined: Aug 27, 2003
0.00 posts per day
Posts: 31
Points: 9,271
   
I think you're getting somewhere. The Name is now as it should be but the little gif file isn't showing up. See the example below. Both Acer Vartan and Sam Spade are Staff mbrs to the site.



On another note the only way I can get names to show up with an attached gif file is to use the correct spelling and not what you have passed on in the readme file. For example you said to use capitols letters in the first and lower case in the second. I had to actually use the correct characters in order to achieve this. Any thoughts? I sure hope I didn't do anything to make this the case.


I know you'll figure it out. icon_wink.gif


Cheers



Back to top Reply with quote
#10   
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
   
Your gonna have to add the names in there without the _ now

if (($session[uname] == Sam Spade) or ($session[uname] == sam spade))  {


Try that.



_________________
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
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