02-22-2015, 12:23 PM
Pages: 1 2
02-22-2015, 12:42 PM
Try
<if THIS_SCRIPT=='forumdisplay.php' then> Something</if>
<if THIS_SCRIPT=='forumdisplay.php' then> Something</if>
02-22-2015, 02:45 PM
Hi, thanks
I tried this but no result
I tried this but no result
Code:
|
any help please
02-22-2015, 11:49 PM
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 you add it correctly then on index ONLY the navigation has the word hello at the end of it.
02-27-2015, 11:17 PM
Code:
|
can i use operands? AND, OR, ||
02-28-2015, 09:25 AM
Code:
|
A page can't be more than one page at the same time, so AND makes no sense here.
02-28-2015, 11:46 AM
LOL it doesnt matter if a page can be more than one page at a time
what matters is the header and footer can be delivered to more than "one" page
what matters is the header and footer can be delivered to more than "one" page
09-22-2015, 02:37 PM
hey if I am in the headerinclude template
Code:
|
How do i detect if its the index or forumdisplay or showthread? so i can use jquery or not just jquery?
09-22-2015, 06:13 PM
jquery gets used a lot in MyBB. It is up to you if you want to stop loading things, and the syntax remains the same, just a lot longer.
In your headerinclude:
In your headerinclude:
Code:
|
09-23-2015, 06:13 AM
thanks, i give it a shot
Pages: 1 2