Hi guys,
What is the IF statement for own self or a user who views his own self?
Lets say, I have warning and ban mod which shows warning and ban info on viewtopic and profile. I want warning to be shown only for the user who has the warning and of course mods and admins can see too, I tried, It works for admin and mod but does not work for the user since in don't know the IF statement for ownself
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: 6
- Joined: 12 Aug 2012, 22:11
- [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: 6
- Joined: 12 Aug 2012, 22:11
- [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
For the viewtopic page:
<!-- IF U_ACP or U_MCP or postrow.POST_AUTHOR == S_USERNAME -->show acp, mcp and that poster this warning<!-- ENDIF -->
For the profile page:
<!-- IF U_ACP or U_MCP or USERNAME == S_USERNAME -->show acp, mcp and that user this warning<!-- ENDIF -->
I'm just guessing...
<!-- IF U_ACP or U_MCP or postrow.POST_AUTHOR == S_USERNAME -->show acp, mcp and that poster this warning<!-- ENDIF -->
For the profile page:
<!-- IF U_ACP or U_MCP or USERNAME == S_USERNAME -->show acp, mcp and that user this warning<!-- ENDIF -->
I'm just guessing...
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™
-
- New member
- Posts: 6
- Joined: 04 May 2012, 20:30
- [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
wow, it worked
Thank you so much Sniper_E
Thank you so much Sniper_E
-
- I've Been Banned!!!
- Posts: 9
- Joined: 31 Dec 2014, 06:36
- [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
Nice! Great source of info thanks!
Return to “Modders MOD support”
Who is online
Users browsing this forum: DotNetDotCom.org [Bot] and 28 guests