Skip to main content

Profile page on fluent community

I was thinking on creating something for my subscribers on the fluent community but dont know if its possible so I add the idea/question here. I would love to have on the menu of the profile of each person 1 tab to just put something I want. For example, if theres a person that has nutritional followup, to make a monthly plan, set it up with HTML code, put it in there, and the person could get into their profile whenever they want and get all the information in there. Is that possible right now? To basically create a new tab on the profile of each person on fluent community and over there just create a private page with HTML that the client can view and I can edit for them? I dont want them to edit it, I want to send them info over there.

WiLson Eberechi

Install fluentsnippet, paste these codes below, save and activate. At every member's profile you'll see "book a call". You can customise CSS, title, link, SVG, however you want.

If you have an idea for coding, you can make the menu only show for logging members, or by admin role or user id(that's username of your members) or by recent post or by badge or by verified(blue badge), etc.

Depending on what you find intriguing, so use the below code work it.

add_filter('fluent_community/profile_view_data', function ($data, $xprofile) {
    $data['profile_nav_actions'][] = [
        'css_class' => 'custom-profile-link',
        'title'     => 'Book a Call',
        'svg_icon'  => '<svg viewBox="0 0 24 24" width="18" height="18"><circle cx="12" cy="12" r="10" fill="currentColor" /></svg>',
        'url'       => 'https://example.com/call',
    ];

    return $data;
}, 10, 2);

From image 1: the "Course" is showing for everyone, as you can see in https://mpaddi.com

1.00

From image 2: the "contact manager" shows only for logged in users, and admin users roles(admin sets the contact manager button to only show on member's profile who are admins, editors, contributors, donators, Kings, etc. But the contact manager button don't show on member's profile who are authors, subscribers, course creators, space admin, etc).

1.00

So use the snippet I pasted above however you like, edit it to your taste or you can hit me up to write full code(probably more than 400-700 lines of codes), if you want logged in users only, admin user roles with admin UI toggle buttons for any role, etc.

So you'll just copy and paste on your fluent snippet or any snippet plugin you use without writing any codes, I'll write the codes for you if you want, just hit me up if you're not a developer.

WiLson EberechiΒ Wow thats incredible!!! Ill have to save this info you just wrote. Thanks a lot for real, thats going to help me a lot probably.

WiLson Eberechi

Roberto Campos ArceΒ you are welcome

AS W

you're so great! I'm becoming madder and madder at the fc devs for always ignoring my requests, and what you showed is proof that everything is easily doable... But it annoys me that we, as clients, should dig everywhere for such tips written by people like yourself who don't even make any profit. They should help us.
On your snippet, I used it and it worked, but I wondered if I could have a link different for each user. I guess not because of the code lines that are generic, but perhaps is there a way to do that? thank you!!

WiLson Eberechi

Anne-Sophie WΒ yes it's doable. You can just set it as admin role.

Members in Subscribers role will have example.com link on their profile.

While members in admin/editor role will have testing.com link on their profile.

Members in author/contributor role will have playing.com link on their profile.

If you don't want to use admin roles, you can use user ID(usernames).

So yes, it's doable, Anne.