Template variable for checking group membership

Support for mods released by phpbbmodders.net found at either https://github.com/phpbbmodders/ or the MODDB at http://www.phpbb.com
Forum rules
Please only request support for mods released by phpbbmodders.net found at either https://github.com/phpbbmodders/ or the MODDB at http://www.phpbb.com
User avatar
RMcGirr83
Supporter
Supporter
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr

Re: Template variable for checking group membership

Post by RMcGirr83 »

read the permission

Can view profiles, memberlist and online list


So by changing it to no, the guest group will not be able to view the member list.
optik
New member
New member
Posts: 10
Joined: 29 Aug 2011, 04:40

Re: Template variable for checking group membership

Post by optik »

Is there a way to use this mod to say usergroup x sees the advertisement till x number of posts?
User avatar
RMcGirr83
Supporter
Supporter
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr

Re: Template variable for checking group membership

Post by RMcGirr83 »

Why not just have them get added into a new usergroup after x number of posts?
optik
New member
New member
Posts: 10
Joined: 29 Aug 2011, 04:40

Re: Template variable for checking group membership

Post by optik »

RMcGirr83 wrote:Why not just have them get added into a new usergroup after x number of posts?

i dont know i guess i was trying to make something so easy difficult over thinking the process thanks for the reply and the great mods you offer
neuropass
Member
Member
Posts: 66
Joined: 12 Apr 2010, 17:07

Re: Template variable for checking group membership

Post by neuropass »

I would I use the statements to show something for registered users and not show something for Admin and global mod? :sweat:
User avatar
RMcGirr83
Supporter
Supporter
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr

Re: Template variable for checking group membership

Post by RMcGirr83 »

Code: Select all

<!-- IF S_GROUP_registered_user_group and not (S_GROUP_moderator_group or S_GROUP_admin_group) -->
Bramster
New member
New member
Posts: 1
Joined: 16 Dec 2011, 10:02

Re: Template variable for checking group membership

Post by Bramster »

Hi all,

I added the code to functions.php and set up a test page with the code:

<!-- IF not S_GROUP_25 -->blablabla<!-- ENDIF -->

It works perfect. Thanks for sharing the code !

But instead of showing the user the text blablabla I would like to kick them back to the index.php page

Does anyone know how to do that ?

Thanks in advance for your help !
User avatar
Sniper_E
MOD Team
MOD Team
Posts: 591
Joined: 13 Jun 2011, 16:53
Location: Shreveport, LA
Contact:

Re: Template variable for checking group membership

Post by Sniper_E »

This would be one way...

Code: Select all

<!-- IF not S_GROUP_25 -->
<script type="text/javascript">
<!--
window.location = "http://yoursite.com/phpBB3/index.php"
//-->
</script>
<!-- ENDIF -->
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
Drak
New member
New member
Posts: 3
Joined: 27 Jan 2011, 16:36
Location: Virginia, USA
Contact:

Re: Template variable for checking group membership

Post by Drak »

This is by far the most useful thing I've used on my board. Thank you.
Image
Build: phpBB 3.0.10 + Kiss Portal Engine
Mess
New member
New member
Posts: 16
Joined: 05 May 2010, 09:00
Contact:

Re: Template variable for checking group membership

Post by Mess »

/like ;)
sgeorge
New member
New member
Posts: 15
Joined: 28 Dec 2012, 08:15

Re: Template variable for checking group membership

Post by sgeorge »

Hello, I just registered. So this mod checks if a certain user belongs to a certain group and if this statement is true it displays for example a certain div I want ?

Thank you in advance !
User avatar
RMcGirr83
Supporter
Supporter
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr

Re: Template variable for checking group membership

Post by RMcGirr83 »

That's exactly what it does you can also use it to display to those not in a group.
sgeorge
New member
New member
Posts: 15
Joined: 28 Dec 2012, 08:15

Re: Template variable for checking group membership

Post by sgeorge »

RMcGirr83 wrote:That's exactly what it does you can also use it to display to those not in a group.


Thank you sir for the super fast response ! I will set it up and if I have any problems I will post them here...

Thank you again ! I have been searching for this for ages !
anglefire
New member
New member
Posts: 1
Joined: 29 Dec 2013, 22:42

Re: Template variable for checking group membership

Post by anglefire »

Just added this to a board I admin and it works perfectly thanks :woot:
sonoma
New member
New member
Posts: 4
Joined: 12 Feb 2014, 04:14

Re: Template variable for checking group membership

Post by sonoma »

I am trying to use this mod to display rank titles of groups so that when a person changes their default group everyone can still see they are part of that group graphically in topicview. is it possible to use this mod that way? and how can I go about it?
Post Reply