UPDATES EasyBlog 6.0.11 Released! Update to the latest version now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is offline
Our team is away during the weekend. Some answers may already be available on our documentation

Rest assured that we will get back to your posts as soon as the week starts!
  Support is offline

Call Author ID or Author Alias?

David Cleworth · ·
2:48 AM Monday, 06 May 2019
Normal
Hi

I am trying to create a unique link for each logged in user. The link needs to change depending on which user is logged in (I have about 50 staff who will be using the site).

I have created an override of the easyblogwelcome module. Within the code I have added:


<div class="eb-mod-item">
<a href="/<?php echo $author->getName();?>/travelling">
<span class="mod-cell">
<i class="mod-muted fa fa-car"></i>
</span>
<span class="mod-cell">Travelling Expenses</span>
</a>
</div>


Using the author name adds a space between the first name and last name so the link won't work. Is there a variable I can call such as:


<?php echo $author->getAuthorAlias();?>


So that when, for example Joe Bloggs is logged in, his link will show up as joe-bloggs/travelling

Then I can setup that menu item within Joomla so that it points to his own page each time he logs in.

Or is there a different way to create a link for each logged in user? I've attached a screengrab of the menu.

Thank you
The replies under this section are restricted to logged in users or users with an active subscription with us