Page 3 of 3
Re: If Statements
Posted: 18 Apr 2013, 09:28
by ThE KuKa_2
Re: If Statements
Posted: 18 Apr 2013, 09:54
by ThE KuKa_2
Re: If Statements
Posted: 28 Apr 2014, 22:13
by Seeeeler
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
Re: If Statements
Posted: 28 Apr 2014, 23:02
by Sniper_E
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...
Re: If Statements
Posted: 28 Apr 2014, 23:51
by Seeeeler
wow, it worked
Thank you so much Sniper_E
Re: If Statements
Posted: 17 Jan 2015, 17:24
by Truth
Nice! Great source of info thanks!