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 ?