Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support different result from same template
Alankeys
Posted on 07 Jun 2010, 18:07:54

Access: Member
Total Posts: 107
Joined: 2009-11-28


If I call a story from a headline eg http://www.domain.com/news/fullstory.php?id=412
I get comments working fine but no prev/next pagination.


If I call same story as an include eg

<?php
$template = "3.2 Ajax comments style";
$nppage = "1";
include '../news/index.php';
?>


I then get pagination at page bottom but no comments form.





Yet both options call the same template 3.2 Ajax comments style
Why does it do that ?
#2407
Chris
Posted on 08 Jun 2010, 01:43:02

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Comments pagintation only shows if there are enough comments to warrant it. If the news article only has 1 or 2 comments and "comments per page" / $cppage has been set to a higher number then the comments pagintation won't show.
#2409
Alankeys
Posted on 08 Jun 2010, 10:46:47

Access: Member
Total Posts: 107
Joined: 2009-11-28

hmmm

This one still a problem.

I enabled 3.6 Ajax Template but still get the same result

If I click from a headline eg /news/fullstory.php?id=418
Then I get comments form but no pagination. [news pagination not comments pagination].

But, if the page is generated from an include eg

<?php
$template = "3.6 Ajax Template";
$cat[] = "Week Ahead";
$nppage = "1";
include '../news/index.php';
?>


Then strangely I get no comments form at all. But I do get full [news] pagination.
#2412
Chris
Posted on 08 Jun 2010, 12:16:25

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

fullstory.php is used to view an individual full news article, when viewing the full news article you're viewing the full article/comments page so the "news pagintation" won't show, the comments pagintation however will.

When doing a normal include like

Code:
<?php
$template 
= 'adsa';
include 
'news/index.php';
?>


The news pagintation will show because you're viewing all the news articles not one specific one.
#2413
Network-13.com © 2013