Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

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

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?

Please Log in or Create an account to join the conversation.

Last edit: by hard1313.

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

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
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 following user(s) said Thank You: admin

Please Log in or Create an account to join the conversation.

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

Thanks audibleid - let me give it a try.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.094 seconds

For starters it's just so easy to design an app in a way that I'm used to i.e. database first then views followed by customization. The fork system is pure brilliance from a developer standpoint as I can override things and still add and update my projects with minimal effort! Truly amazing to be able to build components in Joomla using incremental refinement without having to do everything by hand. Thanks for the great tool! I am so much more productive now than ever and I can't imagine building components any other way!!!!
Dave (Forum)

Get Started