Jump to content

Menu Link To Profile URL


CherryGirl69

Recommended Posts

I have added an item to the menu called "My Profile" I used the URL;- http://www.mysite.com/index.php?/profile/ to try to direct to it but it does not work. When I go to my own profile page I see my name after this URL but obviously I cannot use that for a menu members can use as I want them to go to their own profiles. 

What do I need to put at the end of the URL please?

Link to comment
Share on other sites

  • 3 months later...

Using a page made on Pages app:

  • Add a new page: Manual HTML
  • In Page Filename use userprofile or any other name, except profile. It won't allow because profile already exists.

Use in CONTENT:

{{if \IPS\Member::loggedIn()->member_id}}
	{{$url = \IPS\Member::loggedIn()->url();}}
	{{\IPS\Output::i()->redirect( $url );}}
{{endif}}
  • In the Menu tab, enable Add to front navigation menu.
  • Remove GUESTS from the page Permissions.

 

My server is TOO slow, so don't bother. See it working:

https://www.screencast.com/t/6BTKeG2p0

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...