Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • hjames Friend
    #201052

    Is there a way to list the users registered name in JAMasshead using parameters?

    Also, I am having a hard time understanding how this works with a component and its views. I am trying to configure unique JAMasshead instances for EasySocial and I am not having much luck.

    James

    Eragon H Friend
    #548641

    Hi hjames,

    Currently, there is no way to list the users registered name in JAMasshead using parameters?

    You can show user name by adding below code to templates/ja_sugite/html/mod_jamasshead

    FROM

    <div class="jamasshead-description"><?php echo $masshead['description']; ?> </div>

    TO


    <div class="jamasshead-description">
    <?php echo $masshead['description'];
    $user = JFactory::getUser();
    if (!$user->guest) {
    echo htmlspecialchars($user->get('username'));
    } else {
    echo JText::_('Guest');
    }
    ?>
    </div>

    Best regards

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  Eragon H 10 years, 2 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum