Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Show content to Usergroup regardless Of Additional group
cakissimo Offline
Junior Member
**
Posts: 26
Joined: Mar 2014
Post: #1
Show content to Usergroup regardless Of Additional group
Hello,

Code:
1
2
3
4
5
6
7
8
<if 
$mybb->usergroup['gid'] == 9 |
$mybb->usergroup['gid'] == 4 |
$mybb->usergroup['gid'] == 3 | 
$mybb->usergroup['gid'] == 11 
then> 
Any content 
</if>


This code work great but if user as an additional group that don't work....

So ,is it a way to give show content to  usergroups 3/4/9/11 regardless of their Additional group please ?
(because, I use "Subscriptions" plugin for "Newpoints" Mod (this plugin can upgrade member giving an additionalgroups ))


"Additionalgroups" and "Usergroup" are separated...don't understand how it works :/
Thanks

(This post was last modified: 05-25-2015 09:10 PM by cakissimo.)
05-25-2015 08:59 PM
Find all posts by this user Quote this message in a reply
MrBrechreiz Offline
Member
***
Posts: 69
Joined: May 2012
Post: #2
RE: Show content to Usergroup regardless Of Additional group
http://community.mybb.com/thread-94381-p...http://community.mybb.com/thread-94381-post-689714.html
05-26-2015 07:28 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #3
RE: Show content to Usergroup regardless Of Additional group
Assumming is_member is allowed and you are using MyBB 1.8:

Code:
<if is_member('9,4,3,11') then>YES!</if>


Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
05-27-2015 02:58 PM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: