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.

Spidean Forums

Board Index > PHP > problem with php in theme


 < Last Thread   Next Thread >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


Main Menu

Get AutoTheme

Featured Item

Gray  Theme
Gray Theme
$15.00

Poll

How do you like the new look?

[ Results | Polls ]

Votes: 103
Comments: 0

Powered by the AutoTheme HTML Theme System
Page created in 0.106780 Seconds