Topic: Can't Get Custom Template to Work

When I install CuteNews on my website, at first all I had was the "Powered by CuteNews" sign, and then through a bit of investigation, I found out that if you move the include to the first line, my news appeared. However, now I can't get the template to work. My code looks like this:

http://i39.tinypic.com/mkdnvs.png

When I swap the template part with the include on the bottom, I get this...

http://i41.tinypic.com/10xuagg.png

Can someone please help me get the template working?

2 (edited by 2014-01-19 10:16:26)

Re: Can't Get Custom Template to Work

My code looks like this:

http://i39.tinypic.com/mkdnvs.png


I hope you did not really use
include("path/cutenews/show_news.php");
You should substitute the correct path to your cutenews directory in place of 'path'
or try
include("cutenews/show_news.php");

3 (edited by 2014-01-19 10:22:50)

Re: Can't Get Custom Template to Work

Try,

<?php
        $number="X";
        $template = "damask";
        $PHP_SELF = "Y";
        include("path/cutenews/show_news.php");
?>

Replace X with the number of news you want it to appear on the page.

Replace Y with the name of your page that your news will appear, for example if your news is in index.php, then replace Y with index.php.

Edit:

Alternatively check that your include is correct, for my include pathing my URl looks something like this,

/X/user/public_html/cutenews/show_news.php

Re: Can't Get Custom Template to Work

I hope you did not really use
include("path/cutenews/show_news.php");
You should substitute the correct path to your cutenews directory in place of 'path'
or try
include("cutenews/show_news.php");


I didn't use that, it does work, but the template doesnt.

Re: Can't Get Custom Template to Work

Did you try changing it to say

$template = "damask";

instead?

Re: Can't Get Custom Template to Work

Try,

<?php
        $number="X";
        $template = "damask";
        $PHP_SELF = "Y";
        include("path/cutenews/show_news.php");
?>

Replace X with the number of news you want it to appear on the page.

Replace Y with the name of your page that your news will appear, for example if your news is in index.php, then replace Y with index.php.

Edit:

Alternatively check that your include is correct, for my include pathing my URl looks something like this,

/X/user/public_html/cutenews/show_news.php


Thank you! That worked!