inherit
114253
0
Apr 1, 2024 6:38:35 GMT -8
Teg
Can't Wait for V6
3,138
November 2007
teg
|
Post by Teg on Oct 21, 2017 14:20:57 GMT -8
I know by default, all members have the option to create a forum signature. What I would like to know is if it is possible to disable that option for all users except certain people?
|
|
inherit
226544
0
Oct 5, 2018 10:29:39 GMT -8
Ulises
4,881
November 2015
umacklin
Ulises Weirdo
|
Post by Ulises on Oct 21, 2017 14:24:53 GMT -8
Hey Teg The only way I can think of is through Javascript since it's not easily done through the layout templates. Is that something you still need?
|
|
inherit
114253
0
Apr 1, 2024 6:38:35 GMT -8
Teg
Can't Wait for V6
3,138
November 2007
teg
|
Post by Teg on Oct 21, 2017 14:30:17 GMT -8
Ulises, ah Okay. Yes, this is something that I'm still looking for. I'd like to allow only certain users (likely by ids and/or groups) to have access to that feature.
|
|
Kami
Forum Cat
Posts: 40,064
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,064
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Oct 21, 2017 14:33:23 GMT -8
What I've wound up doing is leaving it accessible but using the templates to disable signature display except certain groups, + using Brian's Custom Profile fields organiser to leave a note on affected groups that their sigs are disabled.
|
|
inherit
114253
0
Apr 1, 2024 6:38:35 GMT -8
Teg
Can't Wait for V6
3,138
November 2007
teg
|
Post by Teg on Oct 21, 2017 14:36:21 GMT -8
What I've wound up doing is leaving it accessible but using the templates to disable signature display except certain groups, + using Brian 's Custom Profile fields organiser to leave a note on affected groups that their sigs are disabled. Am I right to assume there's a way to do that for specific users as well as well as groups. I only ask because some users may not be a part of the group where I want that enabled. If that makes sense.
|
|
Kami
Forum Cat
Posts: 40,064
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,064
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Oct 21, 2017 14:39:53 GMT -8
What I've wound up doing is leaving it accessible but using the templates to disable signature display except certain groups, + using Brian 's Custom Profile fields organiser to leave a note on affected groups that their sigs are disabled. Am I right to assume there's a way to do that for specific users as well as well as groups. I only ask because some users may not be a part of the group where I want that enabled. If that makes sense. Absolutely, you'd be able to specify both through a combination statement, eg (not verbatim, just an example), {if $[user.group_name] == "admin" || $[user.id] == 2}
|
|
inherit
114253
0
Apr 1, 2024 6:38:35 GMT -8
Teg
Can't Wait for V6
3,138
November 2007
teg
|
Post by Teg on Oct 21, 2017 14:43:44 GMT -8
Thank you, Kami! I'll take a look at Brian's Plugin and see if I can work it out. If not, I may tag you in a thread somewhere! I appreciate the insight
|
|
inherit
226544
0
Oct 5, 2018 10:29:39 GMT -8
Ulises
4,881
November 2015
umacklin
Ulises Weirdo
|
Post by Ulises on Oct 21, 2017 14:49:08 GMT -8
Teg Here is the way I was thinking of (credit to Brian since the base code comes from him): <script> $(document).ready(function(){ var disabled_user_ids = [226544, 12345]; if(pb.data('route').name.indexOf('edit_user') != -1 && disabled_user_ids.indexOf(pb.data('user').id) > -1 ){ $('.edit-user label').each(function(){ if($(this).text() == "Signature") { $(this).hide(); $(this).next().hide(); $(this).next().next().hide(); $(this).next().next().next().hide(); }});}}); </script> You'd just need to add the user ids in between the brackets in this part, [226544, 12345]; -- with a comma and that's basically it. Place it in your global header.
|
|
inherit
114253
0
Apr 1, 2024 6:38:35 GMT -8
Teg
Can't Wait for V6
3,138
November 2007
teg
|
Post by Teg on Oct 21, 2017 14:51:34 GMT -8
Thank you Ulises! I will save the code and try it out. Especially since it'll reduce the amount of plugins I need.
|
|
Kami
Forum Cat
Posts: 40,064
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,064
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Oct 21, 2017 14:52:36 GMT -8
Thank you Ulises! I will save the code and try it out. Especially since it'll reduce the amount of plugins I need. Plugins are also javascript so I'm not sure what's being reduced really?
|
|
inherit
226544
0
Oct 5, 2018 10:29:39 GMT -8
Ulises
4,881
November 2015
umacklin
Ulises Weirdo
|
Post by Ulises on Oct 21, 2017 14:55:58 GMT -8
Maybe Teg wants to save a plugin slot -- though those are gonna be unlimited soon anyways. ¯\_(?)_/¯
|
|
inherit
114253
0
Apr 1, 2024 6:38:35 GMT -8
Teg
Can't Wait for V6
3,138
November 2007
teg
|
Post by Teg on Oct 21, 2017 15:12:34 GMT -8
Maybe Teg wants to save a plugin slot -- though those are gonna be unlimited soon anyways. ¯\_(?)_/¯ Exactly this! LOL, as it is right now, I'd have to purchase additional superkeys for what I'm trying to do. And, that sucks! lol Unlimited soon.... how soon!?
|
|
inherit
226544
0
Oct 5, 2018 10:29:39 GMT -8
Ulises
4,881
November 2015
umacklin
Ulises Weirdo
|
Post by Ulises on Oct 21, 2017 15:18:52 GMT -8
|
|
inherit
114253
0
Apr 1, 2024 6:38:35 GMT -8
Teg
Can't Wait for V6
3,138
November 2007
teg
|
Post by Teg on Oct 22, 2017 7:17:37 GMT -8
That post tells me absolutely NOTHING lol
|
|