Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 How to detect location on the board? index, forumdisplay, showthread etc?
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #4
RE: How to detect location on the board? index, forumdisplay, showthread etc?
Smile

That isnt going to work. The syntax is THIS_SCRIPT, not $nav. THIS_SCRIPT sort of says if the loaded page is one of those pages that you can see in your forum root (forumdisplay.php, member.php, showthread.php etc) then do what is inside the statement. $nav isnt one of your scripts, so THIS_SCRIPT == $nav would not work either.

Are you trying to hide the navigation on index only? Or add something to it?

If you are hiding, then you can just drop a style tag in the top of your index template. Alternatively, if you want to ADD something then see code below.

Try this in the header :

Code:
<if THIS_SCRIPT =='index.php' then>
<navigation> hello
</if>


If you add it correctly then on index ONLY the navigation has the word hello at the end of it.



[Image: leelink.gif]
MYBB1.6 & XThreads
(This post was last modified: 02-23-2015 12:03 AM by leefish.)
02-22-2015 11:49 PM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: How to detect location on the board? index, forumdisplay, showthread etc? - leefish - 02-22-2015 11:49 PM

 Standard Tools
Forum Jump: