https://www.icyphoenix.com/viewtopic.php?f=17&t=6014 ----------------------------------- Coroner Tue 23 Jun, 2009 19:42 [SOLVED]User CP Organize 1.0.5 And Custom Profile Fields 1.2.1 ----------------------------------- Hello folks. I have been instructed to start a new thread for my issue in order to get really needed support. I am running a phpbb2 board but without IP. I added User CP Organize 1.0.5 to my heavily modded board and all went well with the exception of Birthdays by TerraFrost and Custom profile fields by aboyd. I found the fix for Birthdays here on another thread but not Custom profile fields. As with Birthday, when you click on the Profile button in the Control Panel, Custom profile fields doesn't show. I have looked at the edits in the usercp_register.php and everything is in the correct place so it's obvious that there are code changes or additions that are required to fix the problem. I have attached both mods to this for your review. Please help. I want to finish adding User CP Organize to the rest of the templates as soon as possible. Thank you in advance for your efforts and continued support. ----------------------------------- DWho Wed 24 Jun, 2009 09:24 Re: User CP Organize 1.0.5 And Custom Profile Fields 1.2.1 ----------------------------------- Hi Have you ever thought about downloading icy phoenix .27c and seeing how the code works there.... as these mods are installed... I am sure you could find the code to make yours work.. :mrgreen: :mrgreen: ----------------------------------- Coroner Wed 24 Jun, 2009 11:52 Re: User CP Organize 1.0.5 And Custom Profile Fields 1.2.1 ----------------------------------- Thanks for the advice. I was able to get it working but now I've discovered what appears to be a new problem. Any changes made in the Registration Information page errases anything I inputed in the Profile Information page and visa versa. It only effects the installed mods such as Weather (zip code), first and last name fields. Those switch with Myspace, Xfire, Birthdays and Custom fields. In other words, if I ad my birth date on the Profile Information page then once I save it, my first/last name fields turn blank. If I enter my first/last name in the Registration Information page and save it then my birthday fields go blank. I have attached a zip with my current usercp_register.php for review. Please help! I have been at this all night and it's now 3am and I really want to finish this project. Thank you in advance for your efforts and support. ----------------------------------- DWho Wed 24 Jun, 2009 12:03 Re: User CP Organize 1.0.5 And Custom Profile Fields 1.2.1 ----------------------------------- open your usercp_register.ph and look for this... [code linenumbers=false] // Add Hidden inputs to replace the ones not displayed. if ($cpl_mode != 'reg_info' && $cpl_mode != 'all') { $s_hidden_fields .= ''; $s_hidden_fields .= ''; } if ($cpl_mode != 'profile_info' && $cpl_mode != 'all') { $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $profile_data = get_fields('WHERE users_can_view = ' . ALLOW_VIEW);[/code] you need to move the line of code above to the correct field... for example if you wanted a member to add their website when the register [code linenumbers=false]if ($cpl_mode != 'reg_info' && $cpl_mode != 'all')[/code] you need to move it from the profile section [code linenumbers=false]if ($cpl_mode != 'profile_info' && $cpl_mode != 'all')[/code] so move [code linenumbers=false]$s_hidden_fields .= '';[/code] to underneath [code linenumbers=false]$s_hidden_fields .= '';[/code] hope that is what you are after and is clear enough to understand... :mrgreen: :mrgreen: ----------------------------------- Coroner Wed 24 Jun, 2009 23:24 Re: User CP Organize 1.0.5 And Custom Profile Fields 1.2.1 ----------------------------------- Thanks for the advise. I was able to use some of the codes to get the Custom Profile Fields to show and stick once an entry was made. I still had the issue with changes being made on the Registration Information page erasing the input fields in the Profile Information page. I was able to fix this by creating code missing for the additional mods installed: [code] $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; } if ($cpl_mode != 'profile_info' && $cpl_mode != 'all') { $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; [/code] At this point I've tested each back and forth to see if either pages cancel one anothers input fields out and all seems fine. What I'll have to do is add these additional codes to the install.txt file so If something happens or I decide to add another Profile Fields mod I will know where to look. Thanks for your assistance with this. ----------------------------------- DWho Thu 25 Jun, 2009 10:13 Re: [SOLVED]User CP Organize 1.0.5 And Custom Profile Fields 1.2.1 ----------------------------------- no problem glad we were able to finally get the help you needed... thanks for leaving your code.. might come in handy for someone else... Your site is looking good as well.... are you using importal..? :mrgreen: :mrgreen: ----------------------------------- Coroner Fri 26 Jun, 2009 12:06 Re: [SOLVED]User CP Organize 1.0.5 And Custom Profile Fields 1.2.1 ----------------------------------- Thanks and yes it's IM Portal. It's pretty flexible and works with all my templates straight out of the box. ----------------------------------- DWho Fri 26 Jun, 2009 23:11 Re: [SOLVED]User CP Organize 1.0.5 And Custom Profile Fields 1.2.1 ----------------------------------- Icy uses a more advanced version of importal.. but importal was and still is a great portal... great theme as well.. I love evil... those guys at nuke come up with some brilliant concepts.. :mrgreen: :mrgreen: