Module: Enhanced Custom Profiles
Posted by Joe Curia
Re: Module: Enhanced Custom Profiles February 14, 2010 10:26PM |
Registered: 13 years ago Posts: 4 |
I'm using 5.2.14
I've done everything as per your instructions and can see it all appears to be working bar the "View my Profile" page which shows this error at the top of the page and no custom fields results:
Notice: Undefined variable: user in /var/www/vhosts/beatonglobal.com/httpdocs/uni21/include/controlcenter/summary.php on line 30
Event logger said this:
Message:
PHP notice: Undefined variable: user
PHP notice generated at /var/www/vhosts/beatonglobal.com/httpdocs/uni21/include/controlcenter/summary.php:30
Back trace:
Function include called at
{path to Phorum}/mods/enhanced_custom_profiles/enhanced_custom_profiles.php:298
----
Function phorum_mod_enhanced_custom_profiles_cc_panel called
----
Function call_user_func_array called at
{path to Phorum}/common.php:1691
----
Function phorum_hook called at
{path to Phorum}/control.php:208
----
Request info:
HTTP_HOST = www.beatonglobal.com
HTTP_REFERER = [www.beatonglobal.com]
REQUEST_URI = /uni21/control.php?0,panel=summary
QUERY_STRING = 0,panel=summary
Can you help me resolve this. The fields appear correctly on both the register page and the "Edit my profile" page
Edited 1 time(s). Last edit at 02/15/2010 12:21AM by Gaijin.
I've done everything as per your instructions and can see it all appears to be working bar the "View my Profile" page which shows this error at the top of the page and no custom fields results:
Notice: Undefined variable: user in /var/www/vhosts/beatonglobal.com/httpdocs/uni21/include/controlcenter/summary.php on line 30
Event logger said this:
Message:
PHP notice: Undefined variable: user
PHP notice generated at /var/www/vhosts/beatonglobal.com/httpdocs/uni21/include/controlcenter/summary.php:30
Back trace:
Function include called at
{path to Phorum}/mods/enhanced_custom_profiles/enhanced_custom_profiles.php:298
----
Function phorum_mod_enhanced_custom_profiles_cc_panel called
----
Function call_user_func_array called at
{path to Phorum}/common.php:1691
----
Function phorum_hook called at
{path to Phorum}/control.php:208
----
Request info:
HTTP_HOST = www.beatonglobal.com
HTTP_REFERER = [www.beatonglobal.com]
REQUEST_URI = /uni21/control.php?0,panel=summary
QUERY_STRING = 0,panel=summary
Can you help me resolve this. The fields appear correctly on both the register page and the "Edit my profile" page
Edited 1 time(s). Last edit at 02/15/2010 12:21AM by Gaijin.
February 15, 2010 08:11AM |
Moderator Registered: 16 years ago Posts: 1,301 |
Gaijin,
Thanks for reporting that bug.
Please redownload/install this module (or at least the enhanced_custom_profiles.php file in the 5.2.1.06 zip file) which should remove that error.
Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Thanks for reporting that bug.
Please redownload/install this module (or at least the enhanced_custom_profiles.php file in the 5.2.1.06 zip file) which should remove that error.
Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Re: Module: Enhanced Custom Profiles February 18, 2010 09:07PM |
Registered: 14 years ago Posts: 753 |
Re: Module: Enhanced Custom Profiles February 19, 2010 03:36PM |
Registered: 14 years ago Posts: 753 |
$profile["PANEL"] seems to be empty and prevents Phorum to list custom fields within Usersettings:"Edit Profile". Could you please give me a hint? Thank you!
Language: PHPfunction phorum_mod_enhanced_custom_profiles_tpl_cc_usersettings($profile) { global $PHORUM; if (empty($PHORUM["mod_enhanced_custom_profiles"])) return $profile; if (!empty($profile["PANEL"])) {
February 19, 2010 04:31PM |
Moderator Registered: 16 years ago Posts: 1,301 |
That should never be empty. My guess would be that some other module is using the tpl_cc_usersettings hook and not ending the hook function with
Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
return $profile;
Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Re: Module: Enhanced Custom Profiles February 19, 2010 04:43PM |
Registered: 14 years ago Posts: 753 |
Re: Module: Enhanced Custom Profiles February 20, 2010 11:38AM |
Registered: 14 years ago Posts: 753 |
For now I inserted two lines in your code in order to only list fields set with values. It would also be great to have an extra check-box on the settings page for indicating that you want to have the same list order on the "View Profile" or "New Registration" page as on the "Edit Profile" page. It represents a lot of extra work in case you deal with many custom fields. Thanks for your consideration!
Re: Module: Enhanced Custom Profiles March 25, 2010 11:31AM |
Registered: 14 years ago Posts: 753 |
March 26, 2010 01:12AM |
Registered: 16 years ago Posts: 533 |
I played around with this once and thought that you had to create the custom field in the admin panel before using it with this mod. Perhaps I am wrong. I decided it was easier changing templates to suit my needs instead of using this mod.
But, as per your question, I did see this line in the first post of this topic...
"Finally, you can delete any custom profile fields and they will be flagged as deleted. However, they will not be fully deleted until you select that option from the listing of deleted custom profile fields. This will also allow you to restore a previously deleted field if it has not been fully deleted."
Robert Angle
Phorum lover, nothing more.
Ruminations
But, as per your question, I did see this line in the first post of this topic...
"Finally, you can delete any custom profile fields and they will be flagged as deleted. However, they will not be fully deleted until you select that option from the listing of deleted custom profile fields. This will also allow you to restore a previously deleted field if it has not been fully deleted."
Robert Angle
Phorum lover, nothing more.
Ruminations
Re: Module: Enhanced Custom Profiles March 26, 2010 01:22AM |
Registered: 14 years ago Posts: 753 |
Sorry, only registered users may post in this forum.