We are in the process of starting over. This means that the entire board at phpbbmodders.net has been set to read-only. All phpBB 2.x and 3.0.x content should be visible but read-only. Private messaging has been disabled for registered users. Registrations will be opened in the near future at the new site. A link to the new site is provided below.

- bonelifer, Administrator

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
ThE KuKa_2
New member
New member
Posts: 6
Joined: 12 Aug 2012, 22:11

Re: If Statements

Post by ThE KuKa_2 »

Hi!

Code: Select all

<!-- IF FORUM_ID eq 2 -->Welcome to Forum Number 2<!-- ENDIF -->
For multiple forums... :coffee:
ThE KuKa_2
New member
New member
Posts: 6
Joined: 12 Aug 2012, 22:11

Re: If Statements

Post by ThE KuKa_2 »

Solved... ;)

Code: Select all

<!-- IF FORUM_ID eq 90 or FORUM_ID eq 87 or FORUM_ID eq 88 -->
Your content...
<!-- ENDIF -->
Seeeeler
New member
New member
Posts: 6
Joined: 04 May 2012, 20:30

Re: If Statements

Post 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
User avatar
Sniper_E
MOD Team
MOD Team
Posts: 591
Joined: 13 Jun 2011, 16:53
Location: Shreveport, LA

Re: If Statements

Post 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...
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
Seeeeler
New member
New member
Posts: 6
Joined: 04 May 2012, 20:30

Re: If Statements

Post by Seeeeler »

wow, it worked

Thank you so much Sniper_E
Truth
I've Been Banned!!!
Posts: 9
Joined: 31 Dec 2014, 06:36

Re: If Statements

Post by Truth »

Nice! Great source of info thanks!

Who is online

Users browsing this forum: CommonCrawl [Bot], Majestic-12 [Bot] and 1 guest