Keyword

Profile customization

  • eastkilla
  • eastkilla's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 5 months ago #127807 by eastkilla
Profile customization was created by eastkilla
Hi,

On my users pages (user.php), I have added some new links like "edit my profile", "my kunena profile" ..
It works very well, but everybody can see those news links. Is it possible to make them visible only by the user ?

Thanks a lot.

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

More
10 years 5 months ago #127808 by Lefteris
Replied by Lefteris on topic Re: Profile customization
Hi. I strongly suggest to use the modules these extensions provide to generate those links. They perform several checks in order to display or hide the links. They also ensure that your links will not break in the future. The only simple thing you can do on your own is check if user is logged in:
<?php if(!JFactory::getUser()->guest): ?>
<a href="your link">your link</a>
<?php endif; ?>

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • eastkilla
  • eastkilla's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 5 months ago #127809 by eastkilla
Replied by eastkilla on topic Re: Profile customization
Hi,

Thanks for your answer. It works with your code, links are displayed for only registred users. But registred users can see links others registred users. I want that links are displayed for each users, in their profile, not on the others profiles.

Is it possible ?

Thanks a lot

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

More
10 years 5 months ago #127810 by Lefteris
Replied by Lefteris on topic Re: Profile customization
Yes. Use the modules each extension provides as i already suggested.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • eastkilla
  • eastkilla's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 5 months ago #127811 by eastkilla
Replied by eastkilla on topic Re: Profile customization
I havn't module for each link i want to do.

Maybe have you a code to do that ?

Thanks a lot

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

More
10 years 5 months ago #127812 by Lefteris
Replied by Lefteris on topic Re: Profile customization
No. There is no code. Each extension ( Kunena , K2 etc. ) have their own modules.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum