Former Member
inherit
guest@proboards.com
87020
0
Nov 23, 2024 8:04:46 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Oct 26, 2014 13:43:02 GMT -8
I have a code that removes the buttons but not the followers & friends that are already there.
Could you add anything to this code to remove the followers & friends too?
Here is the code that goes into the global footer:-
|
|
inherit
133146
0
Nov 16, 2024 15:51:08 GMT -8
Alanna 🥀🖤
3,564
November 2008
alannab
|
Post by Alanna 🥀🖤 on Oct 26, 2014 14:54:07 GMT -8
Do you mean the Following and Friends tabs in profiles or the right hand column on the Summary tab that lists some of that user's followers and following? Also since JavaScript doesn't work on mobile, this CSS will remove the Follow button from profiles on mobile and desktop.
a.button.follow_button { display: none; }
|
|
Former Member
inherit
guest@proboards.com
87020
0
Nov 23, 2024 8:04:46 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Oct 26, 2014 14:58:59 GMT -8
I mean, in profiles, I want the buttons & the names of followers gone.
|
|
inherit
133146
0
Nov 16, 2024 15:51:08 GMT -8
Alanna 🥀🖤
3,564
November 2008
alannab
|
Post by Alanna 🥀🖤 on Oct 26, 2014 16:03:38 GMT -8
All of what I mentioned are IN profiles. Please take a screenshot and point to what exactly you want removed.
|
|
Former Member
inherit
guest@proboards.com
87020
0
Nov 23, 2024 8:04:46 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Oct 26, 2014 17:04:05 GMT -8
When someone follows you, You see the names of the followers in your profile. I want to remove the names of the followers & the follow button.
The code above removes the button but not the names of the followers.
I will follow you and you will see what I mean.
Edit: Looks like that is unnecessary - since you have 16 followers. That what I want removed - the names and their avatars.
|
|
inherit
133146
0
Nov 16, 2024 15:51:08 GMT -8
Alanna 🥀🖤
3,564
November 2008
alannab
|
Post by Alanna 🥀🖤 on Oct 26, 2014 17:32:56 GMT -8
*sighs*
Go to Admin > Structure > Layout Templates > User Profile and select the Summary tab and remove the following code near the bottom:
<td id="right-column"> {if $[following]} <div id="following" class="content-box right-col"> <h4>$[view_following_link]</h4> {foreach $[following]} <div class="mini-user"> <div class="mini-avatar"> $[following.avatar_medium] </div> <span class="name"> $[following] </span> </div> {/foreach} </div> {/if} {if $[follower]} <div id="followers" class="content-box right-col"> <h4>$[view_followers_link]</h4> {foreach $[follower]} <div class="mini-user"> <div class="mini-avatar"> $[follower.avatar_medium] </div> <span class="name"> $[follower] </span> </div> {/foreach} </div> {/if} </td>
|
|
Former Member
inherit
guest@proboards.com
87020
0
Nov 23, 2024 8:04:46 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Oct 26, 2014 18:12:57 GMT -8
Thank you very much. It worked. I appreciate the time you took for this.
|
|
Former Member
inherit
guest@proboards.com
87020
0
Nov 23, 2024 8:04:46 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Oct 27, 2014 7:16:32 GMT -8
There is still one "follow/unfollow" button showing in profiles.
I went to my guest profile, which I had followed, as a test, before I made all the above alterations - code in global footer and change to template.
I thought it had worked perfectly, until I went to the guest profile and saw the following:-
Send Message Edit Profile Follow Username: guest Last Online: 19 hours ago
Follow is a button. If I click on it, it becomes Unfollow. They no longer do anything, but can the button be removed?
|
|
inherit
The Great Cinnamon Roll
191518
0
Oct 19, 2016 22:17:44 GMT -8
David Clark
Care for some tai chi with your chai tea?
17,602
March 2013
davidlinc1
|
Post by David Clark on Oct 27, 2014 9:11:00 GMT -8
a.button.follow_button { display: none; } Do you have this CSS in place, @lucylane? If so, can you link me to your forum?
|
|
Former Member
inherit
guest@proboards.com
87020
0
Nov 23, 2024 8:04:46 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Oct 27, 2014 9:38:19 GMT -8
Sorry, I never added the above to the Advanced CSS Style Sheet, David Clark. I mistakenly thought it was to be used instead of the global footer code. I have added it now and everything is removed.
Thanks ???lq ???u??? and David Clark.
|
|