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 > Post Reply


Post Reply
Icon:
Message:



[More smilies...]
Bold   Italic   Underline   Code   Email   Quote   Url   Image   
Rights

HTML is Off
Smilies are On
BB Code is On
[img] Code is On

Disable smileys?
Use signature?
Turn BBCode off?
Receive email notification of new replies?

Topic Review


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]



Main Menu

Get AutoTheme

Featured Item

Poll

How do you like the new look?

[ Results | Polls ]

Votes: 105
Comments: 0

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