CZ User Info 5 convert to AUC 1.04

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   
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,440
   
Thanks I'll take a look.




_________________
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
#2   re: CZ User Info 5 convert to AUC 1.04
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,440
   
Make a backup of your original CZUser-Info block just in case

Open blocks/CZUser-Info.php and find
.

   // Some global definitions
   global $user, $prefix, $db, $gfx_chk, $admin, $userinfo, $Version_Num, $admin_file, $currentlang;


After that add


//This function is from Advanced Username Color a phpBB mod by austin http://phpbb-tweaks.com
if (!function_exists('CheckUsernameColor')) {
     function CheckUsernameColor($color, $username) {
        if (strlen($color) < 6) {
           $username = $username;
        } elseif (strlen($color) == 6) {
           $username = '<span style="color:#'. $color .'" class="gensmall"><b>'. $username .'</b></span>';   
        } else {
           $username = $username;
                          }
        return $username;      
     }
}


Then find


$members = $db->sql_query("SELECT w.uname, w.module, w.url, 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");


Replace that with


$members = $db->sql_query("SELECT w.uname, w.module, w.url, u.user_id, u.user_level, u.user_allow_viewonline, u.user_color_gc 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");


Then find (3 Times)


$uname</a>


Replace that with


".CheckUsernameColor($session['user_color_gc'], $session['uname'])."</a>



Upload it and see if it works. This isnt tested but I dont see why it wouldn't work icon_smile.gif



_________________
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 5 convert to AUC 1.04
astewart
CZ Newbie
astewart has been a member for over 19 year's 19 Year Member
canada.gif
Age: 43
Gender: Male
Website:
Status: Offline
Joined: Mar 02, 2005
0.00 posts per day
Posts: 8
Points: 509
   
That code works fine with the CZ-UserInfo Block, the Users are now Displayed with the AUC.
Sweet thanks! icon_smile.gif

Oh, Question, anyone know how to Get AUC working with NXP Online Block? icon_mrgreen.gif
Thanks



Back to top Reply with quote
#4   re: CZ User Info 5 convert to AUC 1.04
astewart
CZ Newbie
astewart has been a member for over 19 year's 19 Year Member
canada.gif
Age: 43
Gender: Male
Website:
Status: Offline
Joined: Mar 02, 2005
0.00 posts per day
Posts: 8
Points: 509
   
Ok, so I ran into one minor problem now with the CZ-UserInfo block enabled, there seems to be No more "Private Messages" area, its blank...... icon_question.gif
Anyone else experiencing the same thing?



Back to top Reply with quote
#5   re: CZ User Info 5 convert to AUC 1.04
temptress
CZ Newbie
temptress has been a member for over 19 year's 19 Year Member
Gender: Female
Status: Offline
Joined: Feb 03, 2005
0.00 posts per day
Posts: 1
Points: 217
   
Hi all can anyone help me with a link to download a user info block that will work with nuke 7.7? thxs Rachel



Back to top Reply with quote
#6   Re: re: CZ User Info 5 convert to AUC 1.04
webshark
PayPal Donation
CZ Moderator
 Codezwiz Site Donator
webshark has been a member for over 20 year's 20 Year Member
turkey.gif
Age: 56
Gender: Male
Website:
Status: Offline
Joined: Mar 23, 2004
0.09 posts per day
Posts: 643
Points: 57,200
   


Originally posted by temptress @ Mon Nov 14, 2005 3:02 am:

Hi all can anyone help me with a link to download a user info block that will work with nuke 7.7? thxs Rachel


welcome to CZ Rachel

you can find all custom CZ scripts here
[ Register or login to view links on this board. ]

p.s : there is a direct link at the header 'Our Scripts'




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#7   Re: re: CZ User Info 5 convert to AUC 1.04
webshark
PayPal Donation
CZ Moderator
 Codezwiz Site Donator
webshark has been a member for over 20 year's 20 Year Member
turkey.gif
Age: 56
Gender: Male
Website:
Status: Offline
Joined: Mar 23, 2004
0.09 posts per day
Posts: 643
Points: 57,200
   


Originally posted by astewart @ Sat Nov 12, 2005 5:46 am:

Ok, so I ran into one minor problem now with the CZ-UserInfo block enabled, there seems to be No more "Private Messages" area, its blank...... icon_question.gif
Anyone else experiencing the same thing?


hello

make sure you you adjust your own settings from block

this is the code line for setup private messages in your block

$showpms = "1"; //1 to Show Private Messages data - 0 is off


if this not helps please explain the problem more detailed



_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#8   
WeigelRich
CZ Active Member
WeigelRich has been a member for over 19 year's 19 Year Member
usa.gif pennsylvania.gif
Occupation: Safety Specialist
Age: 45
Gender: Male
Website:
Status: Offline
Joined: Jul 06, 2005
0.02 posts per day
Posts: 123
Points: 4,498
 Yahoo Messenger MSN Messenger 
Thanks Telli for the update. When I was doing it I missed the three instances..




_________________
Back to top Reply with quote
#9   re: CZ User Info 5 convert to AUC 1.04
chikenty
CZ Newbie
chikenty has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Aug 12, 2005
0.00 posts per day
Posts: 1
Points: 142
   
any1 know what i need to change for AUC to show up by the MOd/admin on the forums?



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