inherit
163839
0
May 25, 2017 20:48:34 GMT -8
Maiden
1,020
February 2011
dreamaiden
|
Post by Maiden on Nov 20, 2012 15:41:43 GMT -8
Hello o'clever code people!
I was hoping to hide some of the profile tabs like, following, friends, groups.
Can anyone help? If this is the wrong place please move this thread.
Thanks!
|
|
inherit
180580
0
Oct 13, 2024 16:46:13 GMT -8
My Display Name
335
June 2012
jsher1994
|
Post by My Display Name on Nov 20, 2012 16:20:32 GMT -8
Not that I can see, it looks like they're all in one variable $[menu] and if you delete that you delete all tabs. It might be able to be done with a plugin so you can ask one of those geniuses
|
|
inherit
170346
0
Mar 1, 2016 12:53:37 GMT -8
Shorty
Yeah, I'm that cool. Lol! No I'm not.
3,018
August 2011
shortyverrett94
|
Post by Shorty on Nov 26, 2012 21:55:07 GMT -8
Have you got this resolved yet? If not, then which tabs are you wanting to hide?
|
|
inherit
163839
0
May 25, 2017 20:48:34 GMT -8
Maiden
1,020
February 2011
dreamaiden
|
Post by Maiden on Nov 27, 2012 4:09:06 GMT -8
Hi Shorty,
No not yet.
Activity Following Friends Groups are the ones we currently believe we want to hide.
If you can offer any suggestion It'd be appreciated thanks!
|
|
inherit
170346
0
Mar 1, 2016 12:53:37 GMT -8
Shorty
Yeah, I'm that cool. Lol! No I'm not.
3,018
August 2011
shortyverrett94
|
Post by Shorty on Nov 27, 2012 10:38:09 GMT -8
Put this in your global footer. Also, the code has it hid, but I would suggest not hiding it because thats how you would add people to a member group. So if you want, I can make it so that staff can see it and no one else, this way you can easily add people to a group.
<script>
$(document).ready(function() { $('div.ui-tabMenu ul.ui-helper-clearfix li a[href$="/activity"]').parent().hide(); $('div.ui-tabMenu ul.ui-helper-clearfix li a[href$="/following"]').parent().hide(); $('div.ui-tabMenu ul.ui-helper-clearfix li a[href$="/friends"]').parent().hide(); $('div.ui-tabMenu ul.ui-helper-clearfix li a[href$="/groups"]').parent().hide(); });
</script>
|
|
inherit
163839
0
May 25, 2017 20:48:34 GMT -8
Maiden
1,020
February 2011
dreamaiden
|
Post by Maiden on Nov 27, 2012 14:35:16 GMT -8
I was going to manage groups via the admin panel but if it's easy to make it so that only admins can see the groups tab that'd be great!
Thanks! I'll go and paste it in now ^^
|
|
inherit
170346
0
Mar 1, 2016 12:53:37 GMT -8
Shorty
Yeah, I'm that cool. Lol! No I'm not.
3,018
August 2011
shortyverrett94
|
Post by Shorty on Nov 27, 2012 14:41:45 GMT -8
Ah. Copy the one below, instead of the other then.
<script>
$(document).ready(function() { $('div.ui-tabMenu ul.ui-helper-clearfix li a[href$="/activity"]').parent().hide(); $('div.ui-tabMenu ul.ui-helper-clearfix li a[href$="/following"]').parent().hide(); $('div.ui-tabMenu ul.ui-helper-clearfix li a[href$="/friends"]').parent().hide(); if(proboards.data('user').is_staff != 1) { $('div.ui-tabMenu ul.ui-helper-clearfix li a[href$="/groups"]').parent().hide(); } });
</script>
|
|
inherit
163839
0
May 25, 2017 20:48:34 GMT -8
Maiden
1,020
February 2011
dreamaiden
|
Post by Maiden on Nov 27, 2012 14:52:31 GMT -8
Thank you! That's working perfectly!
|
|
inherit
170346
0
Mar 1, 2016 12:53:37 GMT -8
Shorty
Yeah, I'm that cool. Lol! No I'm not.
3,018
August 2011
shortyverrett94
|
Post by Shorty on Nov 27, 2012 14:58:25 GMT -8
no problem
|
|
inherit
118095
0
Feb 25, 2021 0:36:17 GMT -8
Rosefriend
Friendship is the Finest Rose in the Garden of Life
1,855
January 2008
rosefriend
|
Post by Rosefriend on Dec 1, 2012 3:06:10 GMT -8
Ah. Copy the one below, instead of the other then. <script> $(document).ready(function() { $('div.ui-tabMenu ul.ui-helper-clearfix li a[href$="/activity"]').parent().hide(); $('div.ui-tabMenu ul.ui-helper-clearfix li a[href$="/following"]').parent().hide(); $('div.ui-tabMenu ul.ui-helper-clearfix li a[href$="/friends"]').parent().hide(); if(proboards.data('user').is_staff != 1) { $('div.ui-tabMenu ul.ui-helper-clearfix li a[href$="/groups"]').parent().hide(); } }); </script> Hi Shorty - am I right in saying that if I want to leave activity or any of the other tabs showing I just taken them out of the code?? Thanks RF
|
|
inherit
118095
0
Feb 25, 2021 0:36:17 GMT -8
Rosefriend
Friendship is the Finest Rose in the Garden of Life
1,855
January 2008
rosefriend
|
Post by Rosefriend on Dec 11, 2012 20:21:24 GMT -8
Hi Shorty...need your help again please... The code works very well and takes off all the headers - however there is still the possibility to "follow" in profiles - right hand side - can that be taken off as well please?? To follow anyone on our small board would just be silly. RF
|
|
inherit
170346
0
Mar 1, 2016 12:53:37 GMT -8
Shorty
Yeah, I'm that cool. Lol! No I'm not.
3,018
August 2011
shortyverrett94
|
Post by Shorty on Dec 11, 2012 21:24:33 GMT -8
It can removrd(I think), but i only Internet capabilities on my phone, so I can't give you anything. Sorry.
|
|
inherit
118095
0
Feb 25, 2021 0:36:17 GMT -8
Rosefriend
Friendship is the Finest Rose in the Garden of Life
1,855
January 2008
rosefriend
|
Post by Rosefriend on Dec 11, 2012 22:53:53 GMT -8
OK, thanks Shorty.. Can somone else help me please?? RF
|
|
Ellie
New Member
Posts: 147
inherit
181818
0
Aug 21, 2020 11:49:14 GMT -8
Ellie
147
August 2012
elliearroway
|
Post by Ellie on Jan 3, 2013 15:03:20 GMT -8
bumping this thread.. I would love to remove 'following' if possible.
|
|
inherit
186624
0
Aug 11, 2023 14:38:15 GMT -8
Mabel Pines
110
December 2012
mabelpines
|
Post by Mabel Pines on Jan 3, 2013 15:16:08 GMT -8
Themes -> Layout Templates -> User Profile
Find and remove $[follow_button] (It should be on line 27 in the unmodified template.)
You'll have to it in each skin that you have installed.
|
|