Skip to main content

Gamechanger for user links

Hello. I really miss one feature from BP/BB. Despite BP/BB are heavy, buggy and bloaty solutions compared to FC, they had one great feature for linking on user profiles. They had pretty useful function for "/me/" in links. That mean if you want to navigate some users to specific user page/settings etc, you could for example link everyone with "/portal/u/me/notification-settings" where "me" in link linked each user on own profile on specific page. I noticed that FC dont have this feature and I think it is really pity. I know I can make this work with php snippet but I think this could be as core function.

What do you think everyone?

Thomas Oates

If you're creating menu links within FluentCommunity you can use #user_url. For example, #user_url/notification-settings would take the user to their notification settings.

Drive Zone

Thomas OatesΒ Perfect, that is exactly I wanted to achieve. Thank you.

Jonathan Gwyer

In FC, the "me" is surrounded by underscores - eg /portal/u/__me__/posts

Drive Zone

Jonathan GwyerΒ not working on my site :) /#user_url/ works for me.

Jonathan Gwyer

Drive Zone strange - works here! That's two underscores on each side, but either way, if it works, it works 😁

Drive Zone

Jonathan GwyerΒ oh, there are two underscores on each side of "me" not one πŸ˜† works for me too then πŸ˜†

Interesting, I'll run some tests

Thomas Oates

From what I see in the code, #userurl is done in PHP as the menu is loaded whereas me _ is done in client side JavaScript. Not sure which is technically better but both should work...in theory. I prefer the #user_url method since the links show the correct URL.

Thomas Oates

Formatting got screwed up but hopefully that made sense. :)