If Statements

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
shadowslight
New member
New member
Posts: 8
Joined: 13 Jul 2012, 05:26
Location: United Stated
[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: If Statements

Postby shadowslight » 13 Jul 2012, 09:15

oh thank you so much for this guide!

i have been trying to figure out how to make it so some new buttons on my header were only visible to members. this helps a ton!

[ Post made via Android ] [img]http://www.rmcgirr83.org/images/mobile/Android.png[/img]

juango
New member
New member
Posts: 9
Joined: 03 Jul 2012, 02:27
[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: If Statements

Postby juango » 13 Jul 2012, 16:11

i've had a doubt about this, how is the correct way to add a IF statement for two forum pages

i've tried this:
but i thought i could make it shorter and try this: but it doesn't seem to work i still see the code in the index page.
or is it or i've tried my first example and it works!

sorry for so many questions in one, but i think i might not be the only one...... or maybe i am. :x :D

nBd
New member
New member
Posts: 25
Joined: 08 Mar 2011, 20:01
[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: If Statements

Postby nBd » 18 Sep 2012, 14:50

Is there any statement for groups?

For example: if is_newly_registered_user?

Edit: Found it: <!-- IF GROUP_ID eq number --><!-- ENDIF -->

User avatar
Sniper_E
MOD Team
MOD Team
Posts: 591
Joined: 13 Jun 2011, 16:53
Location: Shreveport, LA
Contact:

Re: If Statements

Postby Sniper_E » 18 Sep 2012, 18:45

Don't miss [url=http://RMcGirr83.org/viewtopic.php?p=308#p308]this page[/url]

[ Post made via Android ] [img]http://www.rmcgirr83.org/images/mobile/Android.png[/img]
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™

noth
New member
New member
Posts: 34
Joined: 07 Jul 2012, 13: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: If Statements

Postby noth » 07 Oct 2012, 22:36


ciscoa
Member
Member
Posts: 76
Joined: 04 Aug 2009, 20:31
Contact:

Re: If Statements

Postby ciscoa » 08 Oct 2012, 03:40

because even though you may have a forum or a section to be able to be seen by bots, there are certain areas, specially a link to a custom page or other custom stuff that you don't want a bot to see then you would use that statement for that!

User avatar
kevinviet
Member
Member
Posts: 96
Joined: 03 Mar 2010, 10:09
[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: If Statements

Postby kevinviet » 20 Nov 2012, 06:02


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: If Statements

Postby RMcGirr83 » 20 Nov 2012, 10:24

What is mchatpage_h and S_ENABLE_SNOW?

User avatar
Ooopsie
Supporter
Supporter
Posts: 1213
Joined: 19 Aug 2010, 16:34
Location: Index, WA
Contact:

Re: If Statements

Postby Ooopsie » 20 Nov 2012, 14:22

I do know that the snow command normally causes the pages to jump for some reason. Smashable Lights is a better way to go.

WaGuns
Member
Member
Posts: 172
Joined: 06 Apr 2011, 02:01
Contact:

Re: If Statements

Postby WaGuns » 20 Nov 2012, 15:31

Love smashable lights. Turning mine on Friday AM!

User avatar
Ooopsie
Supporter
Supporter
Posts: 1213
Joined: 19 Aug 2010, 16:34
Location: Index, WA
Contact:

Re: If Statements

Postby Ooopsie » 20 Nov 2012, 15:50


User avatar
Sniper_E
MOD Team
MOD Team
Posts: 591
Joined: 13 Jun 2011, 16:53
Location: Shreveport, LA
Contact:

Re: If Statements

Postby Sniper_E » 20 Nov 2012, 15:57

No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™

User avatar
kevinviet
Member
Member
Posts: 96
Joined: 03 Mar 2010, 10:09
[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: If Statements

Postby kevinviet » 20 Nov 2012, 17:21

Last edited by kevinviet on 20 Nov 2012, 17:40, edited 1 time in total.

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: If Statements

Postby RMcGirr83 » 20 Nov 2012, 17:30

There is nothing wrong with the code...that's just the way notepad++ works.

User avatar
kevinviet
Member
Member
Posts: 96
Joined: 03 Mar 2010, 10:09
[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: If Statements

Postby kevinviet » 20 Nov 2012, 17:39

Thanks Rich, I feel more confident now.


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