The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

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

View previous topic View next topic Go down

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

Post by Kynata on 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
Forumember

Female Posts : 61
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 on 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
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://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 on March 29th 2014, 5:13 pm

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

Kynata
Forumember

Female Posts : 61
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 on March 29th 2014, 5:17 pm

Please post a link to your forum then.

Thanks Smile

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


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