Firefox PHP

Module: Enhanced Custom Profiles

Posted by Joe Curia 
All files from this thread

File Name File Size   Posted by Date  
settings_page.jpg 80.4 KB open | download Joe Curia 06/05/2008 Read message
control_center.jpg 24.1 KB open | download Joe Curia 06/05/2008 Read message
enhanced_custom_profiles_v5_2_1_06.zip 33.9 KB open | download Joe Curia 02/15/2010 Read message
Module: Enhanced Custom Profiles
June 05, 2008 10:40AM
This module will allow admins to create custom profile fields, choose the type of field for each, and add them automatically to most Control Center pages and the registration page without having to do a template update.

Installation and Usage:
This module installs like any other module.
By going to the modules settings page you can add, edit, and remove custom profile fields from six different Control Center pages. To begin, choose the Control Center page on which you would like to display a new profile field. Now add a new field, giving it an appropriate name, selecting the type of html form input it should use, giving it a title/heading if necessary, and setting any other parameters.

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, Simple Rounded, and Tabbed Emerald templates are supported without any extra work on your part.

If you would like to have users fill in a certain field on the registration page, you can check "Show in New User Registration".

For the checkbox, text input, text area, and multiple select input types, you can also check the "Required" box. If checked, you must also enter your "Error message for empty field" which will display if the user leaves the field empty.

For the dropdown or multiple selection input types, you will also need to set the dropdown choices. These should be entered as a comma delimited list. The actual values for the dropdown choices will be numerical starting with 1 and progressing in the order in which you entered the dropdown choices. For the multiple selection, the value will be a comma delimited numerical list of the chosen items. For example, if you enter this list in the dropdown choices of a multiple selection: "choice 1,choice 2,choice 3,choice 4" and the user chooses "choice 1" and "choice 3" the custom profile field will have a value of "1,3".

There is also one further option when adding a new field. This is the Custom HTML option. This is not actually a custom profile field but rather it gives you the option of adding your own HTML to the Control Center page. You can also include your own php scripts in this field by using the "<?php" and "?>" tags. This will allow you to customize the Control Center page as you wish. See the attached screenshots for an example of this.

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.


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 9 time(s). Last edit at 10/06/2009 08:45PM by Joe Curia.


Attachments:
open | download - enhanced_custom_profiles_v5_2_1_06.zip (33.9 KB)
noe
Re: Module: Enhanced Custom Profiles
June 05, 2008 05:40PM
great - exactly what I was looking for ;)

thanks!
noe
Re: Module: Enhanced Custom Profiles
June 11, 2008 10:22AM
One Suggestion: Would it be possible to integrate the editor toolbar for custom profile fields?
So users can easily format selected profil fields using the editor toolbar.

Would be a great addition!
Re: Module: Enhanced Custom Profiles
June 11, 2008 11:26AM
well, the only field where it would make sense because its the only field where bbcodes are parsed is the signature field. all other fields are simply not parsed for that - so its not just the toolbar needed if you want formatting.


Thomas Seifert
Re: Module: Enhanced Custom Profiles
June 11, 2008 11:27AM
It looks like Maurice created an excellent api to allow other mods to utilize his Editor Tools module. Thanks for the suggestion noe, I will add this to my todo list.

If Maurice reads this, I would suggest adding the Control Center signature box to the scope of the Editor Tools module. You know, with all that free time you have :-P

EDIT - Thomas, I guess I will have to add special parsing to my todo list also. Thanks for pointing that out (and increasing the work load :P )


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 2 time(s). Last edit at 06/11/2008 11:33AM by Azumandias.
Re: Module: Enhanced Custom Profiles
June 13, 2008 06:39AM
Very nice Mod! But when i put in my first custom text fields they don't appear in the control-center. Where could be my fault? I'm running version 5.2.6a.

Thx
Sun
Re: Module: Enhanced Custom Profiles
June 14, 2008 04:27PM
I'm not sure how to pull down the install for 5.2.6a to test that version. The mod was setup in 5.2.7.

That said, are there any errors listed in the Event Logging module? Which type of field are you using (checkbox, text input, dropdown, etc)? Which page are you trying to show the fields on? Are you using any custom html fields?


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
Module: Enhanced Custom Profiles v5.2.1.01 - Required fields and show in registration
June 16, 2008 02:13PM
I have completed v5.2.1.01 with these changes:

- Added the ability to make a custom profile field required and to display an error if the field is left empty.

- Added the ability to place custom profile fields on the registration page and to create custom HTML for that page.

- Fixed a bug which caused the first custom HTML field to become distorted on the second submit.

The latest version is available above. Please see the README for help with the new features.


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
June 19, 2008 11:02PM
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 20, 2008 12:26AM
As of now, I haven't coded profile field display into the module. I guess I didn't forsee the need when I first drew up the features I was going to work on. However, I am always ready for a challenge and willing to please. I will add that to the todo list. I think it will run similar to the "Show in New User Registration" where particular fields can be added to the "View my profile" page. Not sure how quick I can get that out, but I will work on it.

And thanks for the thanks, that kind of thing makes code work worth it.


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