Profile Fields "edit" only once

Does anybody know an easy way to change dolphins code so i can make a profile field invisible after the user entered valid data into it?

For example, the user edits his profile and changes his Firstname. After this i want the field not to be displayed for edit anymore.

I already can hide it in function getFormEdit($aParams) in BxDolProfileFields.php but the javascript code validating the input fields still recognises it saying there is an error validating a field (exclamation mark) after submitting the form. So i think there is another function somewhere which again reads from the profile fields even it is not in the form anymore. Where is it? Or is there an easier solution?

Check my GeoDistance, Watermark, TorBlock and Android Push Notifications mods | http://goo.gl/H3Vp81
Quote · 2 Aug 2013

Perhaps you should just remove all the navigational links to their profile edit page, assuming that upon joining they will be directed to that page - but they will NOT be guided back to it.

This is my signature, there are many like it but this one is mine...
Quote · 2 Aug 2013

No thats not what i want. Lets assume Firstname and Lastname are mandatory on pedit.php (Profile edit)

After a user entered his name i want this field to be disabled or just removed upon next visit of pedit.php. the rest should be accessible and editable like before.

I already found out why the check routine still sees this field even it is not displayed anymore. I can fix that but have to change lots to remove this field from an array. Is there not an easier solution?

Check my GeoDistance, Watermark, TorBlock and Android Push Notifications mods | http://goo.gl/H3Vp81
Quote · 2 Aug 2013

The easiest solution is to remove the fields you don't want users to edit from the "edit profile" section of the Fields Builder

Quote · 2 Aug 2013

Put Firsname and Lastname fields in your join form and remove them from edit form.

Quote · 2 Aug 2013

This is exactly how i used it before. But i want to remove these 2 fields from the join page. Let the user enter the names later in the profile and then disable or remove them once entered.

Put Firsname and Lastname fields in your join form and remove them from edit form.

 

Check my GeoDistance, Watermark, TorBlock and Android Push Notifications mods | http://goo.gl/H3Vp81
Quote · 3 Aug 2013

Found an easy solution. I can hide profile fields in code just by adding

                        $aInput['tr_attrs'] = array(
                                'class' => 'hidable',
                                'style' => 'display: none',
                        );

in its properties.

Check my GeoDistance, Watermark, TorBlock and Android Push Notifications mods | http://goo.gl/H3Vp81
Quote · 6 Aug 2013

I am guessing to hide them once filled in, you will do a database query to see if the fields are not null, if not null, then hide them.

Geeks, making the world a better place
Quote · 6 Aug 2013

 No not needed, the array passing the fields already provides all information and values.

I am guessing to hide them once filled in, you will do a database query to see if the fields are not null, if not null, then hide them.

 

Check my GeoDistance, Watermark, TorBlock and Android Push Notifications mods | http://goo.gl/H3Vp81
Quote · 6 Aug 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.