Firefox PHP

Module: Enhanced Custom Profiles

Posted by Joe Curia 
Re: Module: Enhanced Custom Profiles
March 26, 2010 07:04AM
Well, the module wasn't really setup to work this way, but you can accomplish what you are asking with these steps:
  1. Delete the field in this module's settings page. (Do not fully delete it though.)
  2. Go to the "Custom Profiles" page of the Admin Section (found under "Users/Groups" on the right).
  3. 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.)
  4. You will receive a message stating that "A previously deleted custom profile field with the same name was found." Click on "Restore deleted field."
  5. 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 07:20AM
It worked out. Thank you. I already tried to replace the custom field with a dummy field. When I fully deleted the dummy field it actually removed the custom field in question. Mh..I will survive it.
Re: Module: Enhanced Custom Profiles
June 09, 2010 03:56PM
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.
Re: Module: Enhanced Custom Profiles
June 11, 2010 06:05AM
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!
Re: Module: Enhanced Custom Profiles
June 13, 2010 03:22PM
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/14/2010 12:23AM by Joe Curia.
Re: Module: Enhanced Custom Profiles
June 13, 2010 03:27PM
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
Re: Module: Enhanced Custom Profiles
October 18, 2010 03:59PM
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.
Re: Module: Enhanced Custom Profiles
October 18, 2010 04:05PM
did you try to disable the birthday module?

And its "fields" not "feilds" btw. ;-).


Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de
Custom Phorum and general software development
worry-free Phorum Hosting




Edited 1 time(s). Last edit at 10/18/2010 04:06PM by Thomas Seifert.
Re: Module: Enhanced Custom Profiles
October 18, 2010 04:13PM
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 04:15PM by Joe Curia.
Re: Module: Enhanced Custom Profiles
October 18, 2010 04:36PM
i shall update the birthday module , i only have 1.0.2, and il let you know how it works, , a little thing with that 1.0.2, is that the editing of the birthday is in every sections , privacy, edit, email. . lol ,
but il let you know in 10.

and thanks for the mistake :)
Sorry, only registered users may post in this forum.

Click here to login