Support Spidean |
Do you like our FREE downloads? How about the FREE support for the FREE downloads? Please help us out and donate any amount! It's fast and easy through PayPal.
|
Board Index > PHP > problem with php in theme
malykazio
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 - only 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] |
| |
| |
|
|
|
|