Welcome, Guest
Username: Password: Remember me

TOPIC: Add link to standard Joomla user profile?

Add link to standard Joomla user profile? 26 Oct 2012 02:23 #4747

  • hard1313
  • hard1313's Avatar
  • Offline
  • New Member
  • Posts: 4
  • Karma: 0
Wanted to know if it was possible using the author to add a link to take the user directly to the authors user page. Right now as I attempt to apply a link in the properties on the frontend default screen - it says I need to link to foreign, not sure what to do here?
Last Edit: 26 Oct 2012 02:25 by hard1313.
The administrator has disabled public write access.

Re: Add link to standard Joomla user profile? 26 Oct 2012 07:00 #4748

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
The issue here is that the users info in the sandbox is not accessible as they are pseudo-users.

For the time being at least, you will have to take the id of the user and dynamically create the link yourself in your view/layout. Something like;
echo '<a href=index.php?option=com_... &id=' . $user_id . '>' . $user_name . '</a>';
The way that joomla articles handles this is by creating a link to a contact page for the author as opposed to a 'profile' page - in J2.5 at least.

Anyway, you get the principle... So you can redirect it to any page you like based on the authors user id.

Hope this helps,

Gez
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
The administrator has disabled public write access.
The following user(s) said Thank You: admin

Re: Add link to standard Joomla user profile? 26 Oct 2012 15:43 #4752

  • hard1313
  • hard1313's Avatar
  • Offline
  • New Member
  • Posts: 4
  • Karma: 0
Thanks audibleid - let me give it a try.
The administrator has disabled public write access.
Time to create page: 0.061 seconds

Get Started