solved How do I remove Follow from my Community profile?

Elise
Elise
@elise
8 years ago
249 posts
As suggested, I have created Pages, FAQ and the Forum on my Community profile.

However, my members (from Ning) are super confused and they are trying to "Follow/Friend Request" the profile community, which results in tons of friend requests.

How can I remove this link from the Community Profile?

updated by @elise: 12/12/16 06:07:11PM
michael
@michael
8 years ago
7,714 posts
Its found in the profile_header.tpl file in the jrNingja skin, so to alter it:
ACP -> SKINS -> NINGJA -> TEMPLATES -> profile_header.tpl -> MODIFY

The button code is on line 13 ish and looks like this:
{jrCore_module_function function="jrFollower_button" profile_id=$_profile_id title="Follow This Profile"}

So if you wrap that in a template block you can show it to just who you want to show it to.

Docs: "Template Blocks"
https://www.jamroom.net/the-jamroom-network/documentation/jamroom-developers-guide/3126/template-blocks

I believe you have your community in its own separate quota, so maybe a quota block that checks which quota it is before showing the button.

In .tpl files you can add {debug} to figure out what variables are available on the page.

Docs: "{debug}"
https://www.jamroom.net/the-jamroom-network/documentation/jamroom-developers-guide/1477/debug

For you, you need to figure out which quota_id the 'community' profile is in and exclude all profiles with that quota_id from having the button. (or you could use the specific profile_id if you JUST wanted that profile only)

Suggested code:
{if $profile_quota_id != 3}
{jrCore_module_function function="jrFollower_button" profile_id=$_profile_id title="Follow This Profile"}{/if}
which reads "If the profile quota id is not 3 then show the FOLLOW button.". But you will need to make sure that it is quota id 3 that is the one you want to exclude of course. If 'community' is in quota 2, then change the 3 to a 2.
updated by @michael: 09/12/16 05:52:57PM
Elise
Elise
@elise
8 years ago
249 posts
Oh I thought this was a setting I had screwed up.
Thanks.
Strumelia
Strumelia
@strumelia
8 years ago
3,603 posts
There's also the "Profile Exclude" Module:
https://www.jamroom.net/the-jamroom-network/networkmarket/243/profile-exclude

I have only one profile activated in that Exclude module: ID # 2 which is the single profile I created to 'own' my site Forum. It's in its own quota, and I named that profile "Forums" (with an S). Thus, when a member clicks on the main menu link for Forums, they get taken to: http://mysite.com/forums/forum

but i think you still need to do what Micheal suggests, as it will have broader application for what you want to achieve.

Here are more in depth details outlining what the Profile Exclude module does and doesn't do:
https://www.jamroom.net/the-jamroom-network/documentation/modules/3899/profile-exclude
(Hope I'm not just confusing things)


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
Elise
Elise
@elise
8 years ago
249 posts
Oh thanks @strumelia, i will check that out. It sounds like what i need.

I don't feel comfortable modifying the templates as I dread having conflicts later. I do it only when there is no other way and I can't live without the feature.

Maintained Module == More Happiness
michael
@michael
8 years ago
7,714 posts
Elise:....I don't feel comfortable modifying the templates as I dread having conflicts later....

Docs: "Using the Compare tool to keep cloned skins up to date"
https://www.jamroom.net/the-jamroom-network/documentation/skin-customization/2394/using-the-compare-tool-to-keep-cloned-skins-up-to-date
Elise
Elise
@elise
8 years ago
249 posts
@michael I found that compare tool early on and it's positively brilliant. I have had php sites before where I had to compare files in two editors ().

But it's not the logistics that worry me but the fact that I might not comprehend the far reaching consequence of a change in a template. That's why I am reluctant.

So far, nothing has been a show stopper (and Paul made a module for the FollowersToFriend one) so it's all good. I do appreciate the tools available to debug and update :)
paul
@paul
8 years ago
4,326 posts
Your Community profile doesn't need to be seen by anyone really as its just a 'holding' profile for the site forum, which is linked to directly so I'd suggest removing all profile menu items so as not to give any options should users/visitors find their way there. To do that, goto thye skin profile_header.tpl tempalte and take out the menu bar (lines 27-37) for this profile as follows -

{if $profile_quota_id != 2}
    <div class="row">
        <div class="col12 last">
            <div class="profile_menu">
                {if jrCore_is_mobile_device()}
                    {jrProfile_menu template="profile_menu_mobile.tpl" profile_quota_id=$profile_quota_id profile_url=$profile_url}
                {else}
                    {jrProfile_menu template="profile_menu.tpl" profile_quota_id=$profile_quota_id profile_url=$profile_url}
                {/if}
            </div>
        </div>
    </div>
{/if}



--
Paul Asher - JR Developer and System Import Specialist
Elise
Elise
@elise
8 years ago
249 posts
Oh, thanks! that's pretty simple :)

Tags