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]
If Statements
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: 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
-
- 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
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.
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.
-
- 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
Is there any statement for groups?
For example: if is_newly_registered_user?
Edit: Found it: <!-- IF GROUP_ID eq number --><!-- ENDIF -->
For example: if is_newly_registered_user?
Edit: Found it: <!-- IF GROUP_ID eq number --><!-- ENDIF -->
Re: If Statements
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]
[ 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!™
Re: If Statements
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!
- 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: If Statements
What is mchatpage_h and S_ENABLE_SNOW?
Re: If Statements
I do know that the snow command normally causes the pages to jump for some reason. Smashable Lights is a better way to go.
Re: If Statements
Love smashable lights. Turning mine on Friday AM!
Re: If Statements
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™
- kevinviet
- 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
Last edited by kevinviet on 20 Nov 2012, 17:40, edited 1 time in total.
- 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: If Statements
There is nothing wrong with the code...that's just the way notepad++ works.
- kevinviet
- 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
Thanks Rich, I feel more confident now.
Return to “Modders MOD support”
Who is online
Users browsing this forum: Yandex [Bot] and 131 guests