b2evolution

Multilingual multiuser multiblog engine

b2evolution Technical Documentation (0.9.x) [ class tree: evoskins ] [ index: evoskins ] [ all elements ]

Source for file _profile.php

Documentation is available at _profile.php

  1. <?php 
  2.     /**
  3.      * This is the template that displays the user profile form
  4.      *
  5.      * This file is not meant to be called directly.
  6.      * It is meant to be called by an include in the _main.php template.
  7.      * To display a feedback, you should call a stub AND pass the right parameters
  8.      * For example: /blogs/index.php?disp=profile
  9.      * Note: don't code this URL by hand, use the template functions to generate it!
  10.      *
  11.      * b2evolution - {@link http://b2evolution.net/}
  12.      * Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
  13.      * @copyright (c)2003-2005 by Francois PLANQUE - {@link http://fplanque.net/}
  14.      *
  15.      * @package evoskins
  16.      * @subpackage basic
  17.      */
  18.     if!defined('DB_USER') ) die'Please, do not access this page directly.' );
  19.  
  20.     ifis_logged_in() )
  21.     {    // must be logged in!
  22.         echo '<p>'T_'You are not logged in.' )'</p>';
  23.         return;
  24.     }
  25.     // --- //
  26. ?>
  27.  
  28.     <!-- form to add a comment -->
  29.     <form action="<?php echo $htsrv_url ?>/profile_update.php" method="post">
  30.  
  31.     <input type="hidden" name="checkuser_id" value="<?php echo $user_ID ?>" />
  32.     
  33.     <table align="center">
  34.     
  35.         <tr>
  36.             <td align="right"><strong><?php echo T_('Login:'?></strong></td>
  37.             <td><?php user_info'login''htmlhead' ?>
  38.                 -
  39.                 <strong><?php echo T_('ID'?>:</strong> 
  40.                 <?php user_info'ID''raw' ?>
  41.             </td>
  42.         </tr>
  43.  
  44.         <tr>
  45.             <td align="right"><strong><?php echo T_('Level'?>:</strong></td>
  46.             <td><?php echo user_info'level''raw' ?></td>
  47.         </tr>
  48.  
  49.         <tr>
  50.             <td align="right"><strong><?php echo T_('Posts'?>:</strong></td>
  51.             <td><?php echo user_info'num_posts''raw' ?></td>
  52.         </tr>
  53.  
  54.         <?php
  55.             form_text_tr'newuser_firstname'get_user_info'firstname' )40T_('First name')''50'bComment' );
  56.             form_text_tr'newuser_lastname'get_user_info'lastname' )40T_('Last name')''50'bComment' );
  57.             form_text_tr'newuser_nickname'get_user_info'nickname' )40T_('Nickname')''50'bComment' );
  58.         ?>
  59.         
  60.         <tr>
  61.             <td align="right"><strong><label for="newuser_idmode"><?php echo T_('Identity shown'?>:</label></strong></td>
  62.             <td>
  63.                 <?php $idmode get_user_info'idmode' )?>
  64.                 <select name="newuser_idmode">
  65.                     <option value="nickname"<?php if $idmode == 'nickname' echo ' selected="selected"'?>><?php user_info'nickname''htmlhead' ?></option>
  66.                     <option value="login"<?php if $idmode == 'login' echo ' selected="selected"'?>><?php user_info'login''htmlhead' ?></option>
  67.                     <option value="firstname"<?php if $idmode == 'firstname' echo ' selected="selected"'?>><?php user_info'firstname''htmlhead' ?></option>
  68.                     <option value="lastname"<?php if $idmode == 'lastname' echo ' selected="selected"'?>><?php user_info'lastname''htmlhead' ?></option>
  69.                     <option value="namefl"<?php if $idmode == 'namefl' echo ' selected="selected"'?>><?php user_info'firstname''htmlhead' )echo ' 'user_info'lastname''htmlhead' )?></option>
  70.                     <option value="namelf"<?php if $idmode == 'namelf' echo ' selected="selected"'?>><?php user_info'lastname''htmlhead' )echo ' 'user_info'firstname''htmlhead' )?></option>
  71.                 </select>
  72.         </td>
  73.         </tr>
  74.  
  75.  
  76.         <?php
  77.             form_text_tr'newuser_email'get_user_info'email' )40T_('Email')''100'bComment' );
  78.             form_text_tr'newuser_url'get_user_info'url' )40T_('URL')''100'bComment' );
  79.             form_text_tr'newuser_icq'get_user_info'icq' )40T_('ICQ')''40'bComment' );
  80.             form_text_tr'newuser_aim'get_user_info'aim' )40T_('AOL I.M.')''50'bComment' );
  81.             form_text_tr'newuser_msn'get_user_info'msn' )40T_('MSN I.M.')''100'bComment' );
  82.             form_text_tr'newuser_yim'get_user_info'yim' )40T_('Yahoo I.M.')''50'bComment' );
  83.  
  84.             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.') );
  85.         ?>
  86.  
  87.         <tr>
  88.             <td align="right"><strong><label for="pass1"><?php echo T_('New password'?>:</label></strong></td>
  89.             <td><input type="password" name="pass1" id="pass1" value="" size="16" /></td>
  90.         </tr>
  91.     
  92.         <tr>
  93.             <td align="right"><strong><label for="pass2"><?php echo T_('Confirm new password'?>:</label></strong></td>
  94.             <td><input type="password" name="pass2" id="pass2" value="" size="16" /></td>
  95.         </tr>        
  96.     
  97.         <tr>
  98.             <td align="center" colspan="2">
  99.                 <input type="submit" name="submit" value="<?php echo T_('Update'?>" />
  100.             </td>
  101.         </tr>
  102.     </table>
  103.     
  104.     </form>

Documentation generated on Tue, 20 May 2008 01:55:37 +0200 by phpDocumentor 1.4.2