Group Test by Ange Tuteur
2 posters
Page 1 of 1
Group Test by Ange Tuteur
Hi Ange Tuteur
I saw this code from topic "How to test for group membership"
https://help.forumotion.com/t140646-how-to-test-for-group-membership?highlight=check+group
but it only works in first case and last, the middle case "MOD" does not work, can you help me what is wrong here ?
I saw this code from topic "How to test for group membership"
https://help.forumotion.com/t140646-how-to-test-for-group-membership?highlight=check+group
but it only works in first case and last, the middle case "MOD" does not work, can you help me what is wrong here ?
- Code:
(function($) {
$.get('/groups', function(d) {
if ($('a[href*="/g1-"]', d)[0]) alert('ADMIN');
else if ($('a[href*="/g2-"]', d)[0]) alert('MOD');
else alert('MEMBER');
});
})(jQuery);
Last edited by TamDonCo on August 20th 2016, 1:03 am; edited 2 times in total
Re: Group Test by Ange Tuteur
When you are posting codes, please use the code tags.
- Code:
[code][/code]


Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Group Test by Ange Tuteur
Problem solved & topic archived.
|


Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

» Add a bar for Reputation by Ange Tuteur for my ModernBB forum
» Ask the staff (No support here)
» How to test for group membership
» Tagging Ange Tuteur
» Happy Birthday Ange Tuteur
» Ask the staff (No support here)
» How to test for group membership
» Tagging Ange Tuteur
» Happy Birthday Ange Tuteur
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum