Soldato
- Joined
- 2 Jun 2004
- Posts
- 18,423
never used a cms before, and i don't know php, so having a bit of trouble with this; basically i want a new custom block which contains a news script (cutenews). but i just can't get it to work.
the code that i would have used on my old website to show the news is...
so i go to --> create new block > php block, and in the custom field for entering content it contains this...
but if i delete that and add my show news code, it doesnt work.
any idea's what i might need to do in order to get my news script showing in a custom block?
the code that i would have used on my old website to show the news is...
<?PHP
$number = "5";
include("cutenews/show_news.php");
?>
so i go to --> create new block > php block, and in the custom field for entering content it contains this...
<?
/*
Write code inserting output inside
variable $content as in following example.
You have DB connection, all global vars
and all MKPortal and Forum functions at your availability
*/
$nome = $mkportals->member['name'];
$content="Hi $nome";
?>
but if i delete that and add my show news code, it doesnt work.
any idea's what i might need to do in order to get my news script showing in a custom block?

Last edited: