XF 2.2 Members profile page Link added to Website Splash page.

oO5 Dynasty

Well-known member
My splash page is a template that is outside of xenforo.
I wanted to put a link in my splash page's navigation system that will take members to their profile page.
Not sure how this is done.
But maybe members wanted to come to my website and click a link that says profile.
A Faster Quicker way for members to get to their profile page.
 
Solution
Thank you for this information. Might be too advanced for me to follow tho lol. I am not a natural at reading code, and def don't know xenforos code
o.k. I see. Fortunately I have some annoying work to do, so I preferred to create an addon, that redirects from members/my-profile to the user's profile page (or spits an error, if the user is not logged in). 🤪
If they are logged in then the URL for their account page is: https://site.com/account/ .

If you want to load the member page -- https://xenforo.com/community/members/brogan.521/ -- then the visitor ID would be required on the splash page.

You could consider using an XF page as the splash page.
Thank you so much for the information, it is very helpful.
Bill Murray Thank You GIF by filmeditor
 
If you have access to the XF cookies, you could try reading the xf_user cookie, take the user_id and link to https://yoursite.domain/forum/members/user_id/

A bit ugly, but might work for you.

Edit: or with a few line of XF addon code, you could create a route like https://yoursite.domain/forum/my-profile and redirect to the user's profile (if the user is logged in).
Thank you for this information. Might be too advanced for me to follow tho lol. I am not a natural at reading code, and def don't know xenforos code
 
What is your splash/landing page?

If it's just HTML then it would be simple to use an XF page node, which would then open it up to widgets and content specific to logged in members.
 
Thank you for this information. Might be too advanced for me to follow tho lol. I am not a natural at reading code, and def don't know xenforos code
o.k. I see. Fortunately I have some annoying work to do, so I preferred to create an addon, that redirects from members/my-profile to the user's profile page (or spits an error, if the user is not logged in). 🤪
 

Attachments

Solution
Back
Top Bottom