#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Feb 8, 2018 14:37:14 GMT -8
No worries...
|
|
inherit
252656
0
Mar 26, 2020 14:09:14 GMT -8
rav4club
24
February 2018
rav4club
|
Post by rav4club on Mar 9, 2018 14:55:20 GMT -8
Hi Todge, question on this plugin I have a member who doesn't want this plugin on the forum. Well, basically tough - I do I can apply a setting in 'read' permissions where he will not see any awards on anyones mini-profiles, but is there a way that he will not see the "Awards" tab on anyones Profile, and that no one will see the "Awards" tab on HIS profile - so he is 100% opted out of it?
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Mar 9, 2018 16:55:49 GMT -8
Hi Todge , question on this plugin I have a member who doesn't want this plugin on the forum. Well, basically tough - I do I can apply a setting in 'read' permissions where he will not see any awards on anyones mini-profiles, but is there a way that he will not see the "Awards" tab on anyones Profile, and that no one will see the "Awards" tab on HIS profile - so he is 100% opted out of it? Nice to know that someone dislikes this plugin so much that they want all traces removed from their pages... Anyhow, add this to your GLOBAL Footer... <script type="text/javascript"> // Remove all traces of Awards for one mwmber...
$(document).ready(function(){ if(pb.data('route').name == 'user') { if(pb.data('user').id == 5 || location.href.match(/user\/5[\/|$]?/)) { $('.ui-tabMenu').find('li').each(function(){ if($(this).html().match(/Awards/)) { $(this).remove(); } }); $('.profile-awards').remove(); } } }); </script>
Change the TWO red numbers to the user ID of the member who you want this code to effect and all should be good.
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,849
January 2015
msg
|
Post by Lynx on Mar 9, 2018 18:36:05 GMT -8
|
|
inherit
252656
0
Mar 26, 2020 14:09:14 GMT -8
rav4club
24
February 2018
rav4club
|
Post by rav4club on Mar 10, 2018 3:49:53 GMT -8
Hi Todge, Thanks for the fast reply and solution. I had similar thoughts on the comment below from Lynx, and as it happens I had already created a "Award OptOut" group hoping it could be as simple as excluding that group. I made the same mistake as on a different plug-in and forgot use the "Permissions" section, but went into the key settings. So just checked your plugin again, added my "Award OptOut" group as excluded in permissions and someone in that group no longer sees Awards given to others, OR sees the Award Tab. However, others CAN still see the Award tab on THEIR Profile and give them awards. So really just about 90% of what I needed really However, I just added your piece of extra code and now they can't get any awards given either - 100% So thanks for help again, and just added last bit in case someone else has an awkward customer and wanted a quick fix without adding code. Cheers
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Mar 10, 2018 8:18:22 GMT -8
That would stop them from having any access to the plugin, but it wouldn't stop others from seeing the Awards tab on their profile.
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,849
January 2015
msg
|
Post by Lynx on Mar 10, 2018 11:11:26 GMT -8
That would stop them from having any access to the plugin, but it wouldn't stop others from seeing the Awards tab on their profile. Eh, just ignore me - I'm an idiot. Didn't think about others seeing the tab on an opted out person's profile. I gotta stop jumping in other people's support threads.
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Mar 10, 2018 16:00:44 GMT -8
That would stop them from having any access to the plugin, but it wouldn't stop others from seeing the Awards tab on their profile. Eh, just ignore me - I'm an idiot. Didn't think about others seeing the tab on an opted out person's profile. I gotta stop jumping in other people's support threads. No... You keep on jumping in... In most cases your suggestion would be the perfect answer. The member that wants to be ommited from the Awards plugin would not be effected by others giving them awards, and unless they were told, would have no idea, and so would not normally matter.
|
|
inherit
252656
0
Mar 26, 2020 14:09:14 GMT -8
rav4club
24
February 2018
rav4club
|
Post by rav4club on Mar 11, 2018 5:18:48 GMT -8
IGNORE THIS POST. Thought I had a problem, but it was finger-trouble!
|
|
inherit
253734
0
Mar 19, 2018 17:27:06 GMT -8
adi1430
5
March 2018
adi1430
|
Post by adi1430 on Mar 17, 2018 10:16:15 GMT -8
<div class="awards $[user.id] $[user.name]"></div> How would I incorporate this into the mini-profile coding? Please help me I want the awards to appear on the miniprofile when a member posts Thanks in advance
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Mar 17, 2018 15:48:47 GMT -8
<div class="awards $[user.id] $[user.name]"></div> How would I incorporate this into the mini-profile coding? Please help me I want the awards to appear on the miniprofile when a member posts Thanks in advance While in your Admin Panel, in the top right, click on 'Themes' >> 'Layout Templates' >> 'Mini-Profile' You should be presented with code box containing the code for your mini-profiles. If you want the awards to be displayed in a certain position, insert <div class="awards $[user.id] $[user.name]"></div> into that position. if not, try adding it to the very bottom of the code, just above the last </div>.. Save changes and all should be good.
|
|
inherit
253734
0
Mar 19, 2018 17:27:06 GMT -8
adi1430
5
March 2018
adi1430
|
Post by adi1430 on Mar 18, 2018 7:41:31 GMT -8
<div class="awards $[user.id] $[user.name]"></div> How would I incorporate this into the mini-profile coding? Please help me I want the awards to appear on the miniprofile when a member posts Thanks in advance While in your Admin Panel, in the top right, click on 'Themes' >> 'Layout Templates' >> 'Mini-Profile' You should be presented with code box containing the code for your mini-profiles. If you want the awards to be displayed in a certain position, insert <div class="awards $[user.id] $[user.name]"></div> into that position. if not, try adding it to the very bottom of the code, just above the last </div>.. Save changes and all should be good. Ok, it works on the default template but not another template. Could it have something to do with the Mini-Profile Class Name? How would I fix this?
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Mar 18, 2018 8:35:56 GMT -8
The <div class="awards $[user.id] $[user.name]"></div> should work with any mini-profile..
Could you please post or PM me your mini-profile template so I can do some testing.
Thanks.
|
|
inherit
253734
0
Mar 19, 2018 17:27:06 GMT -8
adi1430
5
March 2018
adi1430
|
Post by adi1430 on Mar 18, 2018 9:56:29 GMT -8
Never mind, I got it working. Thanks for all your help and input! Have a nice day!
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Mar 18, 2018 14:42:23 GMT -8
No worries.. Good to hear you got it working.
|
|