Xeikh
詠春 ☯
- Joined
- Oct 23, 2009
- Messages
- 728
- Reaction score
- 18
Hello, im trying to add this into latestnews.php inside a $main_content area...
Like this...
It dont works, what i have to do to make it works? :/
Please someone help me... :$
PHP:
<?PHP
if($config['status']['serverStatus_online'] == 1)
echo '<font color="#057A9E">Online</font><br><br>
'.$config['status']['serverStatus_players'].'
<br /><a href="?subtopic=whoisonline">Players Online</a><br>';
else
echo '<font color="#697a86">Offline</font>';
?>
Like this...
PHP:
$main_content .= '
Status:
<?PHP
if($config['status']['serverStatus_online'] == 1)
echo '<font color="#057A9E">Online</font><br><br>
'.$config['status']['serverStatus_players'].'
<br /><a href="?subtopic=whoisonline">Players Online</a><br>';
else
echo '<font color="#697a86">Offline</font>';
?>
';
Please someone help me... :$