Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Some help with this if statement is appreciated
nier3 Offline
Member
***
Posts: 125
Joined: Jul 2012
Post: #3
RE: Some help with this if statement is appreciated
Hi, I'm using this code in 1.8, but there is " = " in red:

[Image: 1q5oha8.png]

Different body IDs for forum ID, so for example I can have background-color for <li> of a menu if I'm in fid 128..but the equal symbol is red Frown although it's red, is okay?

EDIT: also <if in_array($thread['fid'], array(1,4,22)) then> seems not work Frown

Ok, resolved array with:

PHP Code:
<if in_array($GLOBALS['fid'], array(1,4,22)) then>

and works perfectly

and other code fid with:

PHP Code:
<if ($GLOBALS['fid'] == 128) then>


only there is always = in red

(This post was last modified: 11-30-2014 04:27 AM by nier3.)
11-30-2014 12:40 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: Some help with this if statement is appreciated - nier3 - 11-30-2014 12:40 AM

 Standard Tools
Forum Jump: