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 » 12 Feb 2014, 10:40

No, that is not the purpose of this mod.

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, 22:12

Well thanks for this mod, I use it as well. Could you possibly point me the way to what I am looking for? I only need to check against a handful of groups to simply display an image or not to display an image to everyone if that user is in a group or not.

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, 23:02


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, 23:19

scratch the above, it works the same way.

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 » 27 Jan 2015, 02:10


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 Jan 2015, 11:25

The code to use in the html files.

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 » 29 Jan 2015, 15:35


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 » 29 Jan 2015, 16:13



checks if variable is set



checks to ensure that the array that is generated has something in it.

Not sure why it matters, just use the code in the first post.


[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 7 guests