Template variable for checking group membership
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
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
-
- 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
Is there a way to use this mod to say usergroup x sees the advertisement till x number of posts?
- RMcGirr83
- 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
Why not just have them get added into a new usergroup after x number of posts?
-
- 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
I would I use the statements to show something for registered users and not show something for Admin and global mod?
-
- 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
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 !
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 !
Re: Template variable for checking group membership
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™
Re: Template variable for checking group membership
This is by far the most useful thing I've used on my board. Thank you.
Build: phpBB 3.0.10 + Kiss Portal Engine
-
- 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
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 !
Thank you in advance !
- RMcGirr83
- 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
That's exactly what it does you can also use it to display to those not in a group.
-
- 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
Just added this to a board I admin and it works perfectly thanks :woot:
-
- 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
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?
Return to “Modders MOD support”
Who is online
Users browsing this forum: No registered users and 19 guests