Keyword

User Description in login form

  • Hasan Natsheh
  • Hasan Natsheh's Avatar Topic Author
  • Offline
  • New Member
More
13 years 6 months ago #95336 by Hasan Natsheh
User Description in login form was created by Hasan Natsheh
Hi,

How can i display the user description which i write in backend when go to users in K2 component, in login form after user log in after the greeting messege ?

i think i should modify the userblock file in:

modules/mod_k2_login/tmpl/userblock.php

 

i did like this :

defined('_JEXEC') or die('Restricted access');$user = &JFactory::getUser();?><div id="k2ModuleBox<?php echo $module->id; ?>" class="k2UserBlock <?php echo $params->get('moduleclass_sfx'); ?>">    <p>      <span class="ubName">          <b><?php if ($params->get('greeting')) echo JText::_('Welcome').' '; ?></b>                 <b><?php echo $user->name; ?></b>        <b><?php if ($params->get('userDescription')) echo $user->description ?></b>      </span>    </p>  <form action="index.php" method="post">    <input type="submit" name="Submit" class="button ubLogout" value="<?php echo JText::_( 'Logout'); ?>" />    <input type="hidden" name="option" value="com_user" />    <input type="hidden" name="task" value="logout" />    <input type="hidden" name="return" value="<?php echo $return; ?>" />  </form></div>

 

i think the code is correct but something is missing, or maybe error in syntax, can anyone help ?

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum