New answers tagged

1

The code required to extract the first name of the currently logged in user is fairly simple. Here's an example: <?php $user = JFactory::getUser(); if (!$user->guest) { echo strtok($user->name, ' '); } ?> Using the free or paid version of Sourcerer you could insert the code directly into an article as follows: {source}<?php $user =...


Top 50 recent answers are included