I've been trying to add some code in a Forum block to display a status image that shows on one of our download sites
I've tried adding the code below to a sidebar block and advertising block, but all that vbulletin outputs is: -
Code I'm using is below: -
Code:
<?php
$domain = 'http://openvix.co.uk/';
$StatusFile = "./feeds/status";
$states = array('stable', 'un-stable', 'updating');
if(($currentState = @file_get_contents($domain.$StatusFile)) !== false)
{
$currentState = intval(trim($currentState));
}
else
{
$currentState = 2;
}
print '<img src="'.$domain.$states[$currentState].'.png" class="statusimage" alt="OpenViX status: '.$states[$currentState].'" />';
?>
Any ideas anyone please?
Thanks in advance.