Dear Team,
I need to get the Author ID in URL with php in the user.php page.
For example, I added in user.php ( \html\com_k2\templates\default ) the following:
<div class="custom">
<a href="<?php echo CRoute::_('index.php?option=com_community&view=profile&userid='.$itemAuthor->userID); ?>" ><?php echo $this->user->name; ?> <?php echo JText::_('CONTACT_AUTHOR'); ?></a>
</div>
Please, have a look at
'.$itemAuthor->userID) . It should give me the AUTHOR ID, instead it gives me back the ID OF THE USER LOGGED .
How can I get the Author ID in the URL listed in the code above?
your help is really appreciate,
Best
Baggio