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.076 seconds

I jumped and started to work on a demo component... but 2 days later this demo component became the real component. I just showed today the end result to my customer and he turned to me and said... "this is more than I expected"... All of this is because Cook did cut about 70% of my work and provided me more ways to improve the usability of the component. The end result was 17 tables all related between than to generate a full dashboard for the travel agents. Thanks for Cook developers for such great tool. This component would not be possible to be done at short time with all the features in it
Griiettner (Forum)  

Get Started