usercp_register code help

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   usercp_register code help
Dauthus
CZ Addict
 Codezwiz Site Donator
Dauthus has been a member for over 20 year's 20 Year Member
usa.gif illinois.gif
Age: 61
Gender: Male
Website:
Status: Offline
Joined: Mar 17, 2004
0.06 posts per day
Posts: 426
Points: 15,917
   
I am running nuke 7.2 modified with the gender and birthday hack. For some reason when I change avatars using the forum profile, the gender is reset, and the date entered for the birthdate is deleted.

I have narrowed the code (I think) to a line in the usercp_register.php file. In my file it is line 888 which is as follows:

display_avatar_gallery($mode, $avatar_category, $user_id, $email, $current_email, $coppa, $username, $email, &$new_password, &$cur_password, $password_confirm, $icq, $aim, $msn, $yim, $website, $location, $user_flag, $occupation, $interests, $signature, $viewemail, $notifypm, $popup_pm, $notifyreply, $attachsig, $allowhtml, $allowbbcode, $allowsmilies, $allowviewonline, $user_style, $user_lang, $user_timezone, $user_dateformat, $userdata['session_id'], $birthday, $gender);


The killer here is the $userdata['session_id'] portion. Depending on where I move this around in the line of code changes the entire way the date in the birthday is displayed, and whether the gender is selected or not. If I move the $userdata['session_id'] to the end of the line, even the date time format is changed.

Anyone know what could be wrong? The way I have it set up now, all that happens is the birthdate has to be re-entered and the gender has to be chosen again after the avatar is selected.


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
   
That looks fine. Did you check the usercp_avatar.php for simple errors?




_________________
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: usercp_register code help
Dauthus
CZ Addict
 Codezwiz Site Donator
Dauthus has been a member for over 20 year's 20 Year Member
usa.gif illinois.gif
Age: 61
Gender: Male
Website:
Status: Offline
Joined: Mar 17, 2004
0.06 posts per day
Posts: 426
Points: 15,917
   
May The GODS smile upon you Telli!

I have been stumbling around in code for hours and it was right there in the usercp_avatar.php file. All I had to do was change the order of the "gender" and "birthday" in the two places they were added in the file.

For some reason I had the files

(...'birthday', 'gender')
and
(...&$birthday, &$gender)

and all I had to do was change them to:

(...'gender', 'birthday')
and
(...&$gender, &$birthday)

Thanks soooooo much! I owe you again. Wow, my tab is getting up there. icon_mrgreen.gif



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
   
Check your PM's here too please I sent you one.




_________________
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   re: usercp_register code help
Dauthus
CZ Addict
 Codezwiz Site Donator
Dauthus has been a member for over 20 year's 20 Year Member
usa.gif illinois.gif
Age: 61
Gender: Male
Website:
Status: Offline
Joined: Mar 17, 2004
0.06 posts per day
Posts: 426
Points: 15,917
   
Ok, I am back to having this issue with another forum. The only thing now is when a user selects an avatar from the avatar gallery, they lose their gender. (That doesn't sound right) , Anyway, I have tried the fix above, but all this does now is cause the birthday AND the gender to be removed.

Right now, the member has to re-enter their gender if they change avatars. Also, there is no dot in the gender checkbox, even though the gender is showing up in the view profile.

Anyone have any suggestions?




_________________
[ Register or login to view links on this board.]
Vivere disce, cogita mori
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