Recent Topics

1 Jul 24, 2008 01:28    

My b2evolution Version: 2.x

Hello, still loving b2Evolution!

I would like to edit the various properties of the User profile, ideally in both back office and at the front of my blog, but the latter is most important. There are a number of boxes I just dont need.

(Users will not be given access to backoffice and all commenting will be disabled. User profiles are simply created so users can view the blogs I add them as a member on.)

Most importantly "Nickname" is currently required. I would like to remove it all together. The only options I would like to be required are login name (not editable) and password.

Ive been playing with both /htsrv/_profile_update.php and /skins/_profile.disp.php but to no avail.

Nb. If I could also add some options like "Phone number", "City" etc that would be wonderful!

Many thanks in advance.
Sally

(Ive not found anything on the Forum which covers this)

2 Jul 24, 2008 03:19

The first part (remove input fields) is pretty easy. All you need is make those fields hidden and define default values.

If you want to remove the "Nickname" field add this line in skin profile

$ProfileForm->hidden( 'newuser_nickname', $current_User->get( 'login' ) );


and remove the original one

$ProfileForm->text_input( 'newuser_nickname', 

If you want to remove the "Identity" field add the following

$ProfileForm->hidden( 'newuser_idmode', 'login' );


and delete

$ProfileForm->select( 'newuser_idmode',

You can safely remove the following inputs without adding any hidden fields

$ProfileForm->text_input( 'newuser_url', 
$ProfileForm->text_input( 'newuser_icq', 
$ProfileForm->text_input( 'newuser_aim', 
$ProfileForm->text_input( 'newuser_msn', 
$ProfileForm->text_input( 'newuser_yim', 

3 Jul 24, 2008 03:47

Thank you :)

I seem to have achieved what wanted by deleting:

'required' => true 

from /inc/users/views/_user.form.php then commenting out inputs I didnt want in /skins/_profile.disp

Think Id best do it your way though!


Form is loading...