nowhere else to turn with this ?
-----
| Author | Message | |
|---|---|---|
|
khsjr1970 |
||
| Mon Dec 05, 2005 2:27 am Post subject: nowhere else to turn with this ? | ||
|
I just installed phpbb 2.0.18 and your Admin Upload Utility and Upload Avatar Utility.
All went well. I went to my FTP phpbb/images/avatars/gallery/ --- folder and created 2 subcategories. I then went to my ACP and uploaded two avatars. They uploaded succesfully. Then I went to the user side, and to edit my profile, I click on show gallery, and the gallery came up fine. I then went to choose my sub category from the drop down menu, and clicked go. now the problem arises. instead of switching sub categories, I was sent back to the edit profile screen, with an error that states, I did not fill in the required fields. Thinking that somehow my submit and go buttons got switched, I then tried again. back to show avatar gallery, , selected my sub category from the drop down, and click select avatar. sent back to edit profile screen, with an error that states i didnt fill in required fields. SUPER ODD problem now. Instead of swicthing categories, it chose that sub category folder as my avatar, and now I have a no image found X where my current avatar should be. Is this a bug in PHPBB2 ? ive been searching for an installation with a avatar gallery and seems everyone shuts it off, and forces users to get avatars from linking to them with a URL or uploading them. I am not at all sure, what I should be looking for in this. I am hoping someone can verify for me whether they themselves can access and change categories on the user side, and select an avatar from the gallery? |
||
|
Thoul |
||
| Mon Dec 05, 2005 3:11 pm Post subject: re: nowhere else to turn with this ? | ||
|
It sounds like you might have installed a hack that adds a new profile field and there is an error of some sort from that. It's probably some misplaced or missing code in usercp_register.php or usercp_avatar.php.
In you usercp_register.php file, find a line that starts with "display_avatar_gallery(". There is a similar line in usercp_avatar.php beginning with "function display_avatar_gallery(". The error is probably in one of these. Post those two lines here and I'll take a look at them. |
||
|
khsjr1970 |
||
| Mon Dec 05, 2005 6:23 pm Post subject: | ||
|
Thanks Thoul,
in usercp_register the code you had me look at is Code: //-- mod : Advanced Group Color Management -------------------------------------
// here we added // $user_group_id, //-- modify //-- mod : quick post es ------------------------------------------------------- //-- add $qp_data = array($user_qp, $user_qp_show, $user_qp_subject, $user_qp_bbcode, $user_qp_smilies, $user_qp_more); $user_qp_settings = implode('-', $qp_data); // here we added // , $user_qp_settings //-- modify //-- mod : country_flag -------------------------------------------------------- // here we added // , $user_flag //-- modify 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_group_id, $user_lang, $user_timezone, $user_dateformat, $userdata['session_id'], $user_qp_settings); //-- fin mod : country_flag ---------------------------------------------------- //-- fin mod : quick post es --------------------------------------------------- //-- fin mod : Advanced Group Color Management --------------------------------- } in usercp_avatar i have Code: //-- mod : Advanced Group Color Management -------------------------------------
// here we added // &$user_group_id, //-- modify //-- mod : quick post es ------------------------------------------------------- // here we added // , &$user_qp_settings //-- modify //-- mod : country_flag -------------------------------------------------------- // here we added // , &$user_flag //-- modify function display_avatar_gallery($mode, &$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, &$hideonline, &$style, &$language, &$user_group_id, &$timezone, &$dateformat, &$session_id, &$user_qp_settings) //-- fin mod : country_flag ---------------------------------------------------- //-- fin mod : quick post es --------------------------------------------------- //-- fin mod : Advanced Group Color Management --------------------------------- I've looked over these with the mods, install instructions and I dont see where I've misplaced any code changes. But I will keep reading. Thanks for your help with this issue. I really appreciate it. edit: WOW! i love the expand contract code thingy you have going on in viewtopic, may I ask? what MOD does that? the expand contract code. |
||
|
Thoul |
||
| Mon Dec 05, 2005 6:29 pm Post subject: re: nowhere else to turn with this ? | ||
|
Ah, I see the problem there now. In usercp_register.php, you have:
Code: $user_group_id, $user_lang
And in usercp_avatar.php, it's: Code: &$language, &$user_group_id
The language setting is the required field that is giving you the error, and it's doing that because you have the group_id and language settings reversed in these files. Change the line in usercp_avatar.php to this, and it should clear up the error: Code: function display_avatar_gallery($mode, &$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, &$hideonline, &$style, &$user_group_id, &$language, &$timezone, &$dateformat, &$session_id, &$user_qp_settings)
|
||
|
khsjr1970 |
||
| Mon Dec 05, 2005 8:08 pm Post subject: | ||
|
Thoul, you are my hero. I stared and stared at those lines. Thank you for your help with this issue.
|
||
Page 1 of 1