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: #9
RE: How to detect location on the board? index, forumdisplay, showthread etc?
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:

Code:
1
2
3
4
5
6
7
8
9
<if THIS_SCRIPT =='forumdisplay.php' OR 'showthread.php' then>
jquery active

<elseif THIS_SCRIPT =='index.php' then>
No jquery

<else THIS_SCRIPT =='member.php' then>
mootools
</if>



[Image: leelink.gif]
MYBB1.6 & XThreads
(This post was last modified: 09-22-2015 06:16 PM by leefish.)
09-22-2015 06:13 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 - 09-22-2015 06:13 PM

 Standard Tools
Forum Jump: