REGISTER or LOGIN to have the annoying ads removed.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Code For Hiding Text From Usergroup
#1
Hey all im working on adding a google ad for my side portal box, but i need a code or wrap to put around so that i can hide the ads from my paid subscribers, can someone please help. Thanks in advance
Reply
#2
PHP code edits are required. It's code like this that works.

$check = array("2","3","4");
if(!in_array($check,$mybb->user['usergroup']))
return;

Line one defines the group id's.
Line two checks if it's not in the array.
Line three returns and stops code execution if they are not in the array.

Adjust accordingly.
Reply
#3
Thank you so much labrocca. True master at mybb.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  How to disable negative rep for a certain usergroup? Dolan 9 4,075 Aug 21, 2017, 07:42 AM
Last Post: Frances
  support needed for editing the code colour creators 1 851 Mar 06, 2017, 06:32 AM
Last Post: Jodirhanna
  Avatar dim for each usergroup 1.6 > 1.8 (Plugin) X-Shadow 1 2,213 Jun 18, 2015, 11:12 AM
Last Post: Nasyr
  Auto remove text from a thread? slewis1972 0 871 Nov 07, 2013, 05:11 AM
Last Post: slewis1972
  Using the additional usergroup image xBloodshed 0 713 Nov 02, 2013, 10:54 PM
Last Post: xBloodshed

Forum Jump:


Users browsing this thread: 1 Guest(s)