Module: Enhanced Custom Profiles
Posted by Joe Curia
March 26, 2010 02:04AM |
Moderator Registered: 16 years ago Posts: 1,301 |
Well, the module wasn't really setup to work this way, but you can accomplish what you are asking with these steps:
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
- Delete the field in this module's settings page. (Do not fully delete it though.)
- Go to the "Custom Profiles" page of the Admin Section (found under "Users/Groups" on the right).
- Type the exact field name of the custom profile field that you deleted into the "Add A Profile Field" -> "Field Name" blank and hit the "Add" button. (The other settings do not matter.)
- You will receive a message stating that "A previously deleted custom profile field with the same name was found." Click on "Restore deleted field."
- This will restore the deleted field, but will leave it deleted as far as my module is concerned.
- Any user data stored in this field will be preserved throughout this process.
- If you decide you want the module to take control of it again, you can simply restore it in the module's settings page.
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 26, 2010 02:20AM |
Registered: 14 years ago Posts: 753 |
Re: Module: Enhanced Custom Profiles June 09, 2010 09:56AM |
Registered: 13 years ago Posts: 1 |
Re: Module: Enhanced Custom Profiles June 11, 2010 12:05AM |
Registered: 13 years ago Posts: 1 |
First, THANK YOU for developing this, makes life much easier. However...
I'm not quite sure what I am doing wrong. I have added several fields to "Edit My Profile" control center panel and checked the "Show in New User Registration" box as well. The fields added show in those two places, but they do not appear in the actual View My Profile section (or View Profile) which is where I'd like users to be able to see them. I've figured out how to manually add them to the profile.tpl (finally) but having this Module add them in would be top notch. Thanks again!
I'm not quite sure what I am doing wrong. I have added several fields to "Edit My Profile" control center panel and checked the "Show in New User Registration" box as well. The fields added show in those two places, but they do not appear in the actual View My Profile section (or View Profile) which is where I'd like users to be able to see them. I've figured out how to manually add them to the profile.tpl (finally) but having this Module add them in would be top notch. Thanks again!
June 13, 2010 09:22AM |
Moderator Registered: 16 years ago Posts: 1,301 |
Quote
Nefer
What is the best way to "render" drop-downs etc into text?
I want to display some fields in forum message body and get only numbers against text.
Thanks.
Unfortunately, this isn't going to be perfectly simple, but hopefully I can give you enough to get going. So, first some basic concepts: The profile field only stores the ids for the choices shown in order to be database friendly. Also, the choices shown have to be retrieved from the database based on the profile page they are edited on. This probably sounds a bit complex, but basically, if the drop-down you want to show in the forum message is located in the "Edit My Profile" page then we will need to access that page's enhanced custom profile settings to get a list of available choices for that drop-down. We will then need to compare the user's choice(s) against that list to display the proper text rather than the numbers (ids) you are seeing. So, after that long explanation, here is an example for getting the text for the dropdown "foo" found on the "Edit My Profile" page.
Language: PHP// first we get the "foo" field. please note, if you know the field_id for the // "foo" field, you can simply use the line: // $foo_field = $PHORUM["mod_enhanced_custom_profiles"]["user_settings"][<foo field id>]; foreach ($PHORUM["mod_enhanced_custom_profiles"]["user_settings"] as $field_id => $field) { if ($field["name"] == "foo") { $foo_field = $field; break; } else { continue; } } // get the actual text for the dropdown choices $dropdown_choices = explode(",",$foo_field["dropdown_choices"]); $drop_i = 1; // get the actual text for the user';s selection, note the location of the user';s selection may // be different on the message page (ie not in $PHORUM["DATA"]["PROFILE"]), but you // have already gotten that data if you are seeing the numbers, so just use the variable you // found in place of $PHORUM["DATA"]["PROFILE"]. foreach ($dropdown_choices as $choice) { if (!empty($PHORUM["DATA"]["PROFILE"]["foo"]) && $PHORUM["DATA"]["PROFILE"]["foo"] == "$drop_i") { $content = $choice; break; } $drop_i++; } // if the user has made a selection, print the text. if (!empty($content)) print $content;
Here is a list of profile page keys which can be used in place of "user_settings" in $PHORUM["mod_enhanced_custom_profiles"]["user_settings"] above:
"user_settings" = "Edit My Profile"
"sig_settings" = "Edit Signature"
"email_settings" = "Edit Email Settings"
"privacy_settings" = "Edit My Privacy Options"
"forum_settings" = "Forum Settings"
"password_settings" = "Change Password"
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 06/13/2010 06:23PM by Joe Curia.
June 13, 2010 09:27AM |
Moderator Registered: 16 years ago Posts: 1,301 |
Quote
maop
First, THANK YOU for developing this, makes life much easier. However...
I'm not quite sure what I am doing wrong. I have added several fields to "Edit My Profile" control center panel and checked the "Show in New User Registration" box as well. The fields added show in those two places, but they do not appear in the actual View My Profile section (or View Profile) which is where I'd like users to be able to see them. I've figured out how to manually add them to the profile.tpl (finally) but having this Module add them in would be top notch. Thanks again!
This module is setup to show selected fields in the "View My Profile" and "View Profile" sections. Two things that may be the source of your problem. Both should be addressed in this paragraph from the module's README file:
If you would like to show users a certain field on the "View My Profile" and user profile pages, you can check "Show in View My Profile". If you have a custom template and want to use this feature, you will need to create a folder in this mod's template folder and copy your template's cc_start.tpl into that folder. Finally, add the following line to the file where you would like the custom profile fields to be displayed: {hook "ecp_tpl_cc_start"} You can see an example of this in any of the supported templates which accompany this mod. The Aeriel Boudaries, Black-Grey, Classic, Emerald, Lightweight, Orange on Olive, Savoir-Aimer, and Tabbed Emerald templates are supported without any extra work on your part.
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
October 18, 2010 09:59AM |
Registered: 12 years ago Posts: 24 |
Hello,
Im having a problem with this module,
i have installed it according to the readme, copying cc_start and profile tpl files to my own template folder within the modules template directory,
i have no-idea how to work this application, but after some fiddling about, i made 3 new fields to show in the user profile section.
these being
Windows live (MSN)
Skype (skype)
about me (about)
After inspecting my profile, i noticed that the 3 new feilds had shown up in peoples profile, but when you enter the "edit profile" option, where i beleive this module is suposed to create the edit feild for the feilds i have created, there is nothing in there at all.
just real name, and birthday(birthday mod)
Am i supposed to add the forms to edit for these feilds manaully? or have i missed adding the line in your readme file somewhere ?
looking foward to a reply ,
Samuel.
Im having a problem with this module,
i have installed it according to the readme, copying cc_start and profile tpl files to my own template folder within the modules template directory,
i have no-idea how to work this application, but after some fiddling about, i made 3 new fields to show in the user profile section.
these being
Windows live (MSN)
Skype (skype)
about me (about)
After inspecting my profile, i noticed that the 3 new feilds had shown up in peoples profile, but when you enter the "edit profile" option, where i beleive this module is suposed to create the edit feild for the feilds i have created, there is nothing in there at all.
just real name, and birthday(birthday mod)
Am i supposed to add the forms to edit for these feilds manaully? or have i missed adding the line in your readme file somewhere ?
looking foward to a reply ,
Samuel.
Re: Module: Enhanced Custom Profiles October 18, 2010 10:05AM |
Admin Registered: 20 years ago Posts: 9,240 |
October 18, 2010 10:13AM |
Moderator Registered: 16 years ago Posts: 1,301 |
I'm guessing that Thomas has hit the nail on the head. I actually released an updated version of the Birthdays module which patched it to work well with other profile modules. Please try updating to the 1.0.5 version of the Birthdays module and see if that fixes your issue.
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 10/18/2010 10:15AM by Joe Curia.
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 10/18/2010 10:15AM by Joe Curia.
October 18, 2010 10:36AM |
Registered: 12 years ago Posts: 24 |
Sorry, only registered users may post in this forum.