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
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Template variable for checking group membership

Postby RMcGirr83 » 28 Jul 2011, 15:48


optik
New member
New member
Posts: 10
Joined: 29 Aug 2011, 04:40
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Template variable for checking group membership

Postby optik » 31 Aug 2011, 05:09

Is there a way to use this mod to say usergroup x sees the advertisement till x number of posts?

User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Template variable for checking group membership

Postby RMcGirr83 » 31 Aug 2011, 12:22

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
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Template variable for checking group membership

Postby optik » 31 Aug 2011, 14:56


neuropass
Member
Member
Posts: 66
Joined: 12 Apr 2010, 17:07
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Template variable for checking group membership

Postby neuropass » 08 Oct 2011, 23:34

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
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Template variable for checking group membership

Postby RMcGirr83 » 10 Oct 2011, 17:29


Bramster
New member
New member
Posts: 1
Joined: 16 Dec 2011, 10:02
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Template variable for checking group membership

Postby Bramster » 16 Dec 2011, 10:04

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

Postby Sniper_E » 16 Dec 2011, 20:29

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

Postby Drak » 09 May 2012, 20:45

This is by far the most useful thing I've used on my board. Thank you.

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

Postby Mess » 17 Dec 2012, 13:10

/like ;)

sgeorge
New member
New member
Posts: 15
Joined: 28 Dec 2012, 08:15
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Template variable for checking group membership

Postby sgeorge » 28 Dec 2012, 08:19

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
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Template variable for checking group membership

Postby RMcGirr83 » 28 Dec 2012, 09:34

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
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Template variable for checking group membership

Postby sgeorge » 28 Dec 2012, 20:29


anglefire
New member
New member
Posts: 1
Joined: 29 Dec 2013, 22:42
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Template variable for checking group membership

Postby anglefire » 30 Dec 2013, 09:19

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
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Template variable for checking group membership

Postby sonoma » 12 Feb 2014, 07:50

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?


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “Modders MOD support”

Who is online

Users browsing this forum: No registered users and 9 guests