"IF SCRIPT_NAME neq index" Not Working

Get help with installation and running phpBB 3.1.x here. Please do not post bug reports, feature requests, or extension related questions here.
Scam Warning
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: phpBB 3.1.x is at its End of Life stage and support will NOT be provided after July 1st, 2018.
Locked
User avatar
Alien_Time
Registered User
Posts: 389
Joined: Fri Dec 31, 2010 7:08 am

"IF SCRIPT_NAME neq index" Not Working

Post by Alien_Time » Thu Aug 21, 2014 2:20 pm

Previously in 3.0.12, I used templates variables like this to show special elements in all pages except index:

Code: Select all

<!-- IF SCRIPT_NAME neq index -->
But the above code doesnt work when used in 3.1 templates. What has changed?

nicofuma
3.2 Release Manager
3.2 Release Manager
Posts: 546
Joined: Sun Apr 13, 2014 1:47 am
Location: Grenoble - France

Re: "IF SCRIPT_NAME neq index" Not Working

Post by nicofuma » Thu Aug 21, 2014 2:25 pm

Code: Select all

<!-- IF SCRIPT_NAME neq 'index' -->
I think
Member of phpBB Development-Team
No Support via PM

User avatar
Alien_Time
Registered User
Posts: 389
Joined: Fri Dec 31, 2010 7:08 am

Re: "IF SCRIPT_NAME neq index" Not Working

Post by Alien_Time » Thu Aug 21, 2014 2:28 pm

Yes you are right. I just figured this out too. I missed the single quote. :) Thanks this does work:

Code: Select all

<!-- IF SCRIPT_NAME != 'index' -->

User avatar
wintstar
Registered User
Posts: 280
Joined: Sat Mar 07, 2009 12:39 pm

Re: "IF SCRIPT_NAME neq index" Not Working

Post by wintstar » Thu Dec 25, 2014 7:35 am

And how does it work with their own pages of extensions?

Code: Select all

www.yourforum/app.php/dl_ext/
www.yourforum/app.php/portal/
www.yourforum/app.php/gallery/

Code: Select all

<!-- IF SCRIPT_NAME neq 'app?' -->

Locked

Return to “[3.1.x] Support Forum”