Source for file _profile.php
Documentation is available at _profile.php
* This is the template that displays the user profile form
* This file is not meant to be called directly.
* It is meant to be called by an include in the _main.php template.
* To display a feedback, you should call a stub AND pass the right parameters
* For example: /blogs/index.php?disp=profile
* Note: don't code this URL by hand, use the template functions to generate it!
* b2evolution - {@link http://b2evolution.net/}
* Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
* @copyright (c)2003-2005 by Francois PLANQUE - {@link http://fplanque.net/}
if( !defined('DB_USER') ) die( 'Please, do not access this page directly.' );
echo
'<p>', T_( 'You are not logged in.' ), '</p>';
<!-- form to add a comment -->
<form action="
<?php echo
$htsrv_url ?>/profile_update.php" method="post">
<input type="hidden" name="checkuser_id" value="
<?php echo
$user_ID ?>" />
<td align="right"><strong>
<?php echo
T_('Login:') ?></strong></td>
<td>
<?php user_info( 'login', 'htmlhead' ) ?>
<strong>
<?php echo
T_('ID') ?>:</strong>
<td align="right"><strong>
<?php echo
T_('Level') ?>:</strong></td>
<td>
<?php echo
user_info( 'level', 'raw' ) ?></td>
<td align="right"><strong>
<?php echo
T_('Posts') ?>:</strong></td>
<td>
<?php echo
user_info( 'num_posts', 'raw' ) ?></td>
<td align="right"><strong><label for="newuser_idmode">
<?php echo
T_('Identity shown') ?>:</label></strong></td>
<select name="newuser_idmode">
<option value="nickname"
<?php if ( $idmode ==
'nickname' ) echo
' selected="selected"'; ?>>
<?php user_info( 'nickname', 'htmlhead' ) ?></option>
<option value="login"
<?php if ( $idmode ==
'login' ) echo
' selected="selected"'; ?>>
<?php user_info( 'login', 'htmlhead' ) ?></option>
<option value="firstname"
<?php if ( $idmode ==
'firstname' ) echo
' selected="selected"'; ?>>
<?php user_info( 'firstname', 'htmlhead' ) ?></option>
<option value="lastname"
<?php if ( $idmode ==
'lastname' ) echo
' selected="selected"'; ?>>
<?php user_info( 'lastname', 'htmlhead' ) ?></option>
<option value="namefl"
<?php if ( $idmode ==
'namefl' ) echo
' selected="selected"'; ?>>
<?php user_info( 'firstname', 'htmlhead' ); echo
' '; user_info( 'lastname', 'htmlhead' ); ?></option>
<option value="namelf"
<?php if ( $idmode ==
'namelf' ) echo
' selected="selected"'; ?>>
<?php user_info( 'lastname', 'htmlhead' ); echo
' '; user_info( 'firstname', 'htmlhead' ); ?></option>
form_checkbox_tr( 'newuser_notify', get_user_info( 'notify' ), T_('Notifications'), T_('Check this to receive notification whenever one of your posts receives comments, trackbacks, etc.') );
<td align="right"><strong><label for="pass1">
<?php echo
T_('New password') ?>:</label></strong></td>
<td><input type="password" name="pass1" id="pass1" value="" size="16" /></td>
<td align="right"><strong><label for="pass2">
<?php echo
T_('Confirm new password') ?>:</label></strong></td>
<td><input type="password" name="pass2" id="pass2" value="" size="16" /></td>
<td align="center" colspan="2">
<input type="submit" name="submit" value="
<?php echo
T_('Update') ?>" />