Spidean  

The home of the AutoTheme HTML Theme System: PHP-Nuke Themes, phpNuke Themes, PostNuke Themes, Zikula Themes, Platinum Nuke Themes, Nuke Evolution Themes, Smeego Themes

 
 
Pinnacle of Excellence  

FAQ

SUPPORT

THEMES

TEMPLATES

   
   

   
Main Menu

 
Welcome Guest   Register | Log in



Spidean Forums
You are not logged in

 < Last Thread   Next Thread >Ascending sortDescending sorting  New Topic  Post Reply
Author: Subject: problem with php in theme

Newbie





Posts: 3
Registered: 8/19/2004
Status: Offline

  posted on 10/23/2005 at 02:31 PM
i have postnuke 761 and aT 85. I tried to add a php code to my article.html file (taken from the AutoTheme theme) but unfortunatelly after adding it and uploading articles aren't displayed - o­nly comments are visible. the code goes as follows:

<?php
$datart = $info["unixtime"];
$mamy = time();
$arch = $mamy - $datart;
$numerek = $info["sid"];

function Archiwum() {

global $arch;
if ($arch > 1209600) {
__CB_verify(); }
else {
echo "<!-- [article-full] --><br />";
}
}

function __CB_verify() {
addittional code
}
?>

<table border="0" cellpadding="4" cellspacing="0" width="100%">
<tr>
<td class="news" width="100%" colspan="2"><b><!-- [cat-title] --></b></td>
</tr>
<tr>
<td valign="top" colspan="2" ><!-- [posted-date-time] --><br /> <!-- [article-edit-del] --></td>
</tr>
<tr><td class="news" ><!-- [topic-image] --> <?php Archiwum() ?></td>
</tr>
</table>

Help please...

[Edited on 23/10/2005 by malykazio]

 
Reply With Quote
New Topic    Post Reply



Printer Friendly Page Printer Friendly Page 
         



Copyright © 2002-2008 Shawn McKenzie and Spidean.
Legal | Credits

AutoTheme   Built with AutoTheme   Enhanced by AutoTheme   Powered by AutoTheme

Valid HTML 4.01!   Valid CSS!
Powered by the AutoTheme HTML Theme System
Page created in 0.076930 Seconds