The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How do I disallow a certain group to not view the widgets?

2 posters

Go down

In progress How do I disallow a certain group to not view the widgets?

Post by Kynata March 28th 2014, 10:25 pm

I have a group called "inactive users" on my forum, and I've already hidden the board from them, but I cant seem to find a way to hide the widgets. 

The idea is to have these inactive users post on a specific topic before becoming full members again. So everything is basically invisible for them, but with the widgets they'd be able to see some of the topics.
Kynata
Kynata
Forumember

Female Posts : 64
Reputation : 2
Language : English

http://geekyspace.canadian-forum.com/

Back to top Go down

In progress Re: How do I disallow a certain group to not view the widgets?

Post by Ange Tuteur March 28th 2014, 11:09 pm

Hello Kynata,

Are you using the toolbar ?

If so you can do this :
Administration panel > modules > javascript codes managemet > create a new script
Title : what you wish
Placement : wherever you do not want the Inaactive users to see the widgets

Paste this and save if you're using the right widgets :
Code:
$(function() {
    if (_lang.rank_title == 'Inactive Member') {
       document.getElementById('right').setAttribute('style','width:0;');
       document.getElementById('content').setAttribute('style','margin-right:0;');
    }
});

Paste this and save if you're using the left widgets :
Code:
$(function() {
    if (_lang.rank_title == 'Inactive Member') {
       document.getElementById('left').setAttribute('style','width:0;');
       document.getElementById('content').setAttribute('style','margin-left:0;');
    }
});

Then create a special rank that has the following title :
Code:
Inactive Member

After you have created that, give that rank to members who you don't want to see the widgets.
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

In progress Re: How do I disallow a certain group to not view the widgets?

Post by Kynata March 29th 2014, 5:13 pm

I did exactly that, and it still allows inactive members to view the widgets.
Kynata
Kynata
Forumember

Female Posts : 64
Reputation : 2
Language : English

http://geekyspace.canadian-forum.com/

Back to top Go down

In progress Re: How do I disallow a certain group to not view the widgets?

Post by Ange Tuteur March 29th 2014, 5:17 pm

Please post a link to your forum then.

Thanks Smile
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum