Page 1 of 1

"IF SCRIPT_NAME neq index" Not Working

Posted: Thu Aug 21, 2014 2:20 pm
by Alien_Time
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?

Re: "IF SCRIPT_NAME neq index" Not Working

Posted: Thu Aug 21, 2014 2:25 pm
by nicofuma

Code: Select all

<!-- IF SCRIPT_NAME neq 'index' -->
I think

Re: "IF SCRIPT_NAME neq index" Not Working

Posted: Thu Aug 21, 2014 2:28 pm
by Alien_Time
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' -->

Re: "IF SCRIPT_NAME neq index" Not Working

Posted: Thu Dec 25, 2014 7:35 am
by wintstar
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?' -->