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
User avatar
Ooopsie
Supporter
Supporter
Posts: 1213
Joined: 19 Aug 2010, 16:34
Location: Index, WA
Contact:

If Statements

Postby Ooopsie » 26 Jun 2012, 10:48


mikef35
New member
New member
Posts: 38
Joined: 21 Feb 2012, 21:05
[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 mikef35 » 26 Jun 2012, 10:50

Thanks, very helpful. I will reference this a lot!

jabhi
Member
Member
Posts: 77
Joined: 14 Mar 2012, 06:34
[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 jabhi » 26 Jun 2012, 11:11

Thanks for share ....

User avatar
Stoker
Member
Member
Posts: 198
Joined: 14 May 2011, 20:54
Contact:

Re: If Statements

Postby Stoker » 26 Jun 2012, 12:03


steve
Master of posting
Master of posting
Posts: 1213
Joined: 12 Jul 2009, 19:14
Location: uk
Contact:

Re: If Statements

Postby steve » 26 Jun 2012, 12:18

\"" Why? "\"
Steve ©

User avatar
Stoker
Member
Member
Posts: 198
Joined: 14 May 2011, 20:54
Contact:

Re: If Statements

Postby Stoker » 26 Jun 2012, 12:23

My mistake, first example works fine.

steve
Master of posting
Master of posting
Posts: 1213
Joined: 12 Jul 2009, 19:14
Location: uk
Contact:

Re: If Statements

Postby steve » 26 Jun 2012, 13:02

Steve ©

User avatar
Stoker
Member
Member
Posts: 198
Joined: 14 May 2011, 20:54
Contact:

Re: If Statements

Postby Stoker » 26 Jun 2012, 13:13


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 » 07 Jul 2012, 16:43

the way Stoker does it is the way i have been doing it for a while now, most mods use them this way.

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 » 07 Jul 2012, 23:02

Yep, I've always done it Stoker's way too.
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™

Daniel
New member
New member
Posts: 3
Joined: 05 Jun 2011, 08:05
[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 Daniel » 08 Jul 2012, 02:07


steve
Master of posting
Master of posting
Posts: 1213
Joined: 12 Jul 2009, 19:14
Location: uk
Contact:

Re: If Statements

Postby steve » 08 Jul 2012, 09:10

Not come across that statement pressume phpbb.com uses superglobals or rewrites them blah blah ,my code snippet is fine as it is checked that the $var exist's.
Who said that its not safe or can't be trusted?
Steve ©

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 » 08 Jul 2012, 10:23


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 » 08 Jul 2012, 14:22

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

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 » 08 Jul 2012, 16:24

correct Rich, that is what i meant to say that it's used for mods, and it's added depending on the page you are on


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