PDA

View Full Version : Cutenews problem REP+6



efq
14-06-2009, 03:12 PM
I know many of you use Cutenews so you might know how to fix this little problem.

Well I installed it on to my website and the news shows up all good but when I click comments or full story (I did toggle fullstory on news) it just reloads the page and does nothing...

Anyone know how to fix this? If you can help I will rep+6 you.

Thanks,
Sam.

Chippiewill
14-06-2009, 03:43 PM
It may be the '?whatever=blahblah' isn't being copied into the URL..

efq
14-06-2009, 03:50 PM
It may be the '?whatever=blahblah' isn't being copied into the URL..
Tried and nothing.

Chippiewill
14-06-2009, 05:05 PM
Can you give me the URL to it so I can see why?

efq
14-06-2009, 06:32 PM
http://samcarvalho.co.uk/news nothings finished yet but i focused on the content part so thats all finished.

Chippiewill
15-06-2009, 09:04 AM
xD, You've broken your Cutenews 'News' templates so that comments e.t.c. don't show up... If you give me access I can fix them or you can restore the templates to defaults if you get unmodified copies from a fresh install...

Edit: You've only killed your 'full news' template, the comments template still shows the comments at least.
Edit2: Go to (In CPanel) to "http://samcarvalho.co.uk/cutenews/data/default.tpl" and replace it's contents with:



<?PHP
///////////////////// TEMPLATE Default /////////////////////
$template_active = <<<HTML
<div style="width:420px; margin-bottom:30px;">
<div><strong>{title}</strong></div>

<div style="text-align:justify; padding:3px; margin-top:3px; margin-bottom:5px; border-top:1px solid #D3D3D3;">{short-story}</div>

<div style="float: right;">[full-link]Read more •[/full-link] [com-link]{comments-num} Comments[/com-link]</div>

<div><em>Posted on {date} by {author}</em></div>
</div>
HTML;


$template_full = <<<HTML
<div style="width:420px; margin-bottom:15px;">
<div><strong>{title}</strong></div>

<div style="text-align:justify; padding:3px; margin-top:3px; margin-bottom:5px; border-top:1px solid #D3D3D3;">{full-story}</div>

<div style="float: right;">{comments-num} Comments</div>

<div><em>Posted on {date} by {author}</em></div>
</div>
HTML;


$template_comment = <<<HTML
<div style="width: 400px; margin-bottom:20px;">

<div style="border-bottom:1px solid black;"> by <strong>{author}</strong> @ {date}</div>

<div style="padding:2px; background-color:#F9F9F9">{comment}</div>

</div>
HTML;


$template_form = <<<HTML
<table border="0" width="370" cellspacing="0" cellpadding="0">
<tr>
<td width="60">Name:</td>
<td><input type="text" name="name"></td>
</tr>
<tr>
<td>E-mail:</td>
<td><input type="text" name="mail"> (optional)</td>
</tr>
<tr>
<td>Smile:</td>
<td>{smilies}</td>
</tr>
<tr>
<td colspan="2">
<textarea cols="40" rows="6" id=commentsbox name="comments"></textarea><br />
<input type="submit" name="submit" value="Add My Comment">
<input type=checkbox name=CNremember id=CNremember value=1><label for=CNremember> Remember Me</label> |
<a href="javascript:CNforget();">Forget Me</a>
</td>
</tr>
</table>
HTML;


$template_prev_next = <<<HTML
<p align="center">[prev-link]<< Previous[/prev-link] {pages} [next-link]Next >>[/next-link]</p>
HTML;
$template_comments_prev_next = <<<HTML
<p align="center">[prev-link]<< Older[/prev-link] ({pages}) [next-link]Newest >>[/next-link]</p>
HTML;
?>

Lee
15-06-2009, 03:48 PM
You seem to have fixed it, as it works fine for me :)

Chippiewill
15-06-2009, 03:57 PM
It's not showing the comments on full news, or a link to comments.

Lee
15-06-2009, 04:04 PM
Oh yes, well showing the page is a start. He seems to have removed the Show Comments link from the code... :(

Chippiewill
15-06-2009, 04:11 PM
It could have some way of showing the comments from 'Full news'...

efq
15-06-2009, 04:15 PM
I fixed it from the CutePHP supports guidance.

Thanks anyway + rep+

Want to hide these adverts? Register an account for free!