Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 <if> in newthread.php
Jonatthu Offline
Junior Member
**
Posts: 34
Joined: Mar 2013
Post: #1
<if> in newthread.php
I want to put a conditional

<if  then></if>

Only if somebody are en newthread.php

Because I want to hide a code or link if somebody is in newreply or newthread C: in the header

How to do that?
(This post was last modified: 06-01-2013 06:56 AM by Jonatthu.)
06-01-2013 06:55 AM
Find all posts by this user Quote this message in a reply
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #2
RE: <if> in newthread.php
If your div has a class or id and you only want to hide this for cosmetic purposes then put a style tag in the header of the newthread template and hide it with CSS display:none.

If you need it to be gone then you could try

Code:
<if THIS_SCRIPT != 'newthread.php' then></if>



[Image: leelink.gif]
MYBB1.6 & XThreads
(This post was last modified: 06-04-2013 03:09 PM by leefish.)
06-04-2013 03:06 PM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: