xryskom
Member
How do i add php scripts to the visiolist?
We tried to add this script:
<?php
include('/home/domair/public_html/forum/SSI.php');
$translations = array(
'posts'=>'Posts on forum',
'topics'=>'Threads on forum',
);
$info = ssi_boardStats('return');
foreach($info as $key=>$val) {
if(($k = array_key_exists($key, $translations)) !== false) {
$title = $translations[$key];
echo '<li>'.$title.': '.$val.'</li>';
}
}
?>
to the wrapper file in the skin but instead of working , it shows whole php code . Ps. Separately or in any other sites the script works just fine .
Help me as quick as possible.
Thanks~
We tried to add this script:
<?php
include('/home/domair/public_html/forum/SSI.php');
$translations = array(
'posts'=>'Posts on forum',
'topics'=>'Threads on forum',
);
$info = ssi_boardStats('return');
foreach($info as $key=>$val) {
if(($k = array_key_exists($key, $translations)) !== false) {
$title = $translations[$key];
echo '<li>'.$title.': '.$val.'</li>';
}
}
?>
to the wrapper file in the skin but instead of working , it shows whole php code . Ps. Separately or in any other sites the script works just fine .
Help me as quick as possible.
Thanks~