Firefox PHP

Module: Enhanced Custom Profiles

Posted by Joe Curia 
Re: Module: Enhanced Custom Profiles
February 06, 2009 04:38AM
Quote
korsakov
I am wondering how I can allow users to view their profile entries but not edit them again? Whatever option I use under the module settings the profile data show up under "Edit My Profile".

I think the easiest way for you to accomplish this would be to remove the "Edit My Profile" link from your template (found in the cc_menu.tpl file).

Quote

I would like users to go through different registration processes. With jQuery I tried to expand a registration process according a checkbox value. Can I expect any "$" conflicts? Thank you!

I have escaped the data so that any characters should be valid.

Quote

ps: Do you happen to have a compatible "simple-rounded" template for this module?

Not yet, but it is on my list. Since you have asked, though, I will bump it up. It should not take too long to work on.


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 06, 2009 05:13AM
Thank you for your fast response!
Module: Enhanced Custom Profiles v5.2.1.04 - bugfix, Simple Rounded template, language files
February 06, 2009 05:13PM
I have completed v5.2.1.04 of this module with the following changes:

- Enhancement: Support (finally) added for multiple language files. A long range goal will be to allow multiple language entries for the various profile pages.

- Enhancement: Support added for the Simple Rounded template.

- Bugfix: Unix timestamps were shown on the "View My Profile" page for the "Registered" and "Last Activity" fields. Thanks go to Phorum user korsakov for reporting this bug.


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




Edited 1 time(s). Last edit at 02/06/2009 05:30PM by Joe Curia.
Re: Module: Enhanced Custom Profiles
February 06, 2009 08:59PM
Quote
korsakov
I am wondering how I can allow users to view their profile entries but not edit them again? Whatever option I use under the module settings the profile data show up under "Edit My Profile".


Quote
Joe Curia
I think the easiest way for you to accomplish this would be to remove the "Edit My Profile" link from your template (found in the cc_menu.tpl file).

The new release is very appreciated! My question about the visibility of profile items was referring to entries that usually don't change, like your name or gender. Thanks for your advice about a possible solution, but wouldn't it be a good idea to add a checkbox for "Edit My Profile" visibility? Thanks for your consideration!
Re: Module: Enhanced Custom Profiles
February 13, 2009 08:01PM
I am wondering why the checkbox value is being set to only "1" but not to "0" during a registration process. What should I check in function phorum_mod_enhanced_custom_profiles_tpl_register_form()?
Language: PHP
case "checkbox": $content = $HTML_wrappers["data_start"]."<input type=';checkbox'; name=';$field[name]'; value=';1';"; if (!empty($PHORUM["DATA"]["PROFILE"][$field["name"]])) $content .= " checked=';checked';"; $content .= " /> $field[title]".$HTML_wrappers["data_end"]; print $content; break;

Thanks for your help!
Re: Module: Enhanced Custom Profiles
February 13, 2009 09:11PM
Quote
korsakov
I am wondering why the checkbox value is being set to only "1" but not to "0" during a registration process.

Because browsers do not send a value if the box is unchecked. I had coded a workaround for this, but only updated the $_POST data and not the $userdata. Thanks for reporting this. I'm not going to change the version, but you can redownload the 5.2.1.04 file to get the fix.


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 14, 2009 12:49AM
Thanks for your quick response! Would you mind and direct me to the location where (code line) you have fixed the code?
Re: Module: Enhanced Custom Profiles
February 14, 2009 05:09AM
I changed the code on line 495, in the phorum_mod_enhanced_custom_profiles_before_register() function which allows the module to work with the registration data before it is committed to the database.


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
March 05, 2009 01:47AM
I must have done something wrong. In the module I created three custom profile fields (that I already have as custom profile fields), added a copy of my template's cc_start.tpl and profile.tpl in a template folder of its own inside the module's /templates/ folder, and mentioned {hook "ecp_tpl_cc_start"} in each file, and then turned the module on. It shows the data fine in the Control Center, but gives me these errors when I try to view a user's profile:

Quote

Warning: include_once(../) [function.include-once]: failed to open stream: Inappropriate ioctl for device in /home/twilight/public_html/lyrunedale.com/boards/cache/tpl-lyrunedale-header-51caf1aa6df7285cc21f0e9165a2aff1.php-stage2 on line 52

Warning: include_once() [function.include]: Failed opening '../' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/twilight/public_html/lyrunedale.com/boards/cache/tpl-lyrunedale-header-51caf1aa6df7285cc21f0e9165a2aff1.php-stage2 on line 52

Warning: include_once(../) [function.include-once]: failed to open stream: Inappropriate ioctl for device in /home/twilight/public_html/lyrunedale.com/boards/cache/tpl-lyrunedale-footer-51caf1aa6df7285cc21f0e9165a2aff1.php-stage2 on line 4

Warning: include_once() [function.include]: Failed opening '../' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/twilight/public_html/lyrunedale.com/boards/cache/tpl-lyrunedale-footer-51caf1aa6df7285cc21f0e9165a2aff1.php-stage2 on line 4

I have includes in header.tpl and footer.tpl, to include my actual web site's design into the board itself. It's a relative link rather than absolute, so that variables will work. They seem to be coming up blank on the profile page. However, it doesn't do this for the Control Center, I don't know why.

-------------------------------------------

"Everything we see or seem, is but a dream within a dream." -Edgar Allan Poe
Re: Module: Enhanced Custom Profiles
March 05, 2009 02:56AM
Could you post or PM exactly how you are including your files (ie. the actual code). The profile.tpl file is run differently from the cc_start.tpl due to the need to override the default Phorum profile page. I've never seen your error however, so I will need a little more info to be able to troubleshoot this one.


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
Sorry, only registered users may post in this forum.

Click here to login