Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   Linking profile page to nav tab (http://www.mysidiaadoptables.com/forum/showthread.php?t=5641)

Micolai 06-01-2020 03:46 AM

Linking profile page to nav tab
 
So, I'm trying to make a tab in the navigation drop-down that is a user's profile and link the profile page to that tab instead of having to go into your account to click the profile link every time. How do I link it though? I've tried view, profile, profile/view, but it's wanting me to add the user's username, but I need it to work for everyone. Is this possible?

Hall of Famer 06-01-2020 09:19 AM

In general you can create navlinks easily with admin control panel, but this is a bit tricky since the profile page uses the user's username by default which is a dynamic value that changes for each user.



To achieve this, the simplest solution is to create an arbitrary link like http://yoursite.com/profile/myprofile to http://yoursite.com/profile/view/{your username}.

Micolai 06-07-2020 11:29 PM

Quote:

Originally Posted by Hall of Famer (Post 37480)
In general you can create navlinks easily with admin control panel, but this is a bit tricky since the profile page uses the user's username by default which is a dynamic value that changes for each user.



To achieve this, the simplest solution is to create an arbitrary link like http://yoursite.com/profile/myprofile to http://yoursite.com/profile/view/{your username}.

Thank you. Turns out I was just using urls wrong lol.


All times are GMT -5. The time now is 10:57 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.