Gender Mod In CZUserInfo V5 Universal

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Gender Mod In CZUserInfo V5 Universal
Arfton
CZ Newbie
Arfton has been a member for over 19 year's 19 Year Member
usa.gif california.gif
Occupation: Designer / Promoter / DJ
Age: 41
Gender: Male
Website:
Status: Offline
Joined: Sep 24, 2004
0.00 posts per day
Posts: 18
Points: 2,827
AIM Address Yahoo Messenger MSN Messenger 
Anyone know how I can add the gender mod in CZUserInfo V5 Universal block so the gender show up beside the user name.



Back to top Reply with quote
#2   
Telli
Site Admin
Telli has been a member for over 20 year's 20 Year Member
Occupation: Self Employed
Age: 45
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.06 posts per day
Posts: 8089
Points: 494,430
   
Change this line:


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


To


    $members = $db->sql_query("SELECT w.uname, w.module, w.url, u.user_id, u.user_level, u.user_allow_viewonline, u.user_gender 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 add something like:


if ($session['user_gender'] == 1) {
     $gender = 'Male';
} else if ($session['user_gender'] == 2) {
     $gender = 'Female';
} else {
     $gender = '';



Then add $gender where you want it.



_________________
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   
Arfton
CZ Newbie
Arfton has been a member for over 19 year's 19 Year Member
usa.gif california.gif
Occupation: Designer / Promoter / DJ
Age: 41
Gender: Male
Website:
Status: Offline
Joined: Sep 24, 2004
0.00 posts per day
Posts: 18
Points: 2,827
AIM Address Yahoo Messenger MSN Messenger 
I tried doing all that but I keep getting a error in the block

Parse error: parse error, unexpected T_VARIABLE in /hsphere/local/home/avern/gtsentertainment.net/blocks/block-CZUser-Info.php on line 93

I added the block as an attachment



Attached Files
block-CZUser-Info.zip (4.1 KB, Downloaded: 5244 Time(s))


Back to top Reply with quote
#4   
Telli
Site Admin
Telli has been a member for over 20 year's 20 Year Member
Occupation: Self Employed
Age: 45
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.06 posts per day
Posts: 8089
Points: 494,430
   
Try this one...



Attached Files
czuser_Arfton.zip (4.17 KB, Downloaded: 5261 Time(s))



_________________
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   
Gordan
CZ Newbie
Gordan has been a member for over 15 year's 15 Year Member
Status: Offline
Joined: May 27, 2008
0.00 posts per day
Posts: 2
Points: 0
   
I want to ask

How do I add Country flag mod in Cz user inf block?



Back to top Reply with quote
#6   
Telli
Site Admin
Telli has been a member for over 20 year's 20 Year Member
Occupation: Self Employed
Age: 45
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.06 posts per day
Posts: 8089
Points: 494,430
   
Codezwiz.com scripts will not be supported if you are not a valid donator, they will also not be supported if they are part of PCNuke, Nuke-Evolution or any PHP Nuke fork or downloaded from a third party site. All current versions are listed here any older versions will not be supported. We have to enforce this policy to make sure that you are only downloading safe, reliable and unique scripts.




_________________
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   re: Gender Mod In CZUserInfo V5 Universal
Gordan
CZ Newbie
Gordan has been a member for over 15 year's 15 Year Member
Status: Offline
Joined: May 27, 2008
0.00 posts per day
Posts: 2
Points: 0
   
ok thanks for message icon_wink.gif



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