This plugin allows you to use PHP in the templates.
Make sure you use the full PHP tags: <?php echo 'blahblah'; ?>
This won't work: <? echo 'blahblah'; ?>
And you have to escape the variables: Use \$variable instead of $variable.


Ramon wrote:This mod doesn't work the way it is supposted to..
When I just use $member_name or something without the <?PHP and ?> it works. When I use the <?PHP and ?> it show up something like this "»?PHP (member_name) ?»".
Ramon wrote:Also when i want to post a html / xml example, cutenews sees it as real code instead of text.
< instead of <> instead of >
$template_full = <<<HTML
[page-link]({pages})[/page-link]
[if-logged]<small style="font-size: 10px;"> (<a href="{cutepath}/index.php?mod=editnews&id={id}" target="_blank" title="Edit news">Edit</a> / <a href="{cutepath}/index.php?mod=editnews&action=delete&selected_news[]={id}" target="_blank" title="Delete news">Delete</a>)</small>[/if-logged]
<table width="730" height="25" border="0" cellspacing="0" cellpadding="0" align="center" class="article_top">
<tr>
<td width="32"></td>
<td width="468" align="justify">{title}</td>
<td width="230" align="right">Date: {date}</td>
</tr>
</table>
<table width="730" border="0" cellspacing="0" cellpadding="0" align="center" class="cell4">
<tr>
<td width="100%" align="justify" class="cell6">{full-story}</td></td>
</tr>
</table>
<?php include 'http://mysite.com/wallpapers/index.php'; ?>
<a name="comments"></a>
HTML;
<?php include ("http://mysite.com/wallpapers/index.php"); ?>Return to Additional Downloads
Users browsing this forum: No registered users and 0 guests