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 Article Not Showing
Duane
Posted on 31 May 2012, 22:16:36

Access: Member
Total Posts: 11
Joined: 2012-05-27

I'm having difficulty again. When I think I've solved one thing, another one comes up. Right now, I cannot seem to get the full article to show after clicking a headline. Let me explain how I would like the news to flow:

  1. Headlines will appear on multiple portions of the website. (Ex. http://mhnaz.org/index-template.html)
  2. The headline is linked.
  3. When clicked, I would like for it to open to the full article. (When using the defaulted Ajax template, I still have a "full story" link to click.)

I've created two templates so far:

"Headlines"

<div class="headlines">

     <div class="hldate">

{date}

     </div>

     <div class="hlcontent">

<a href="fullstory.html?id{id}" title="{title}">{title}</a><br />
{summary}<br />

     </div>

</div>

"fullstory"

<h1>{title}</h1>
<p class="smaller">{author} Posted on {date} in {categories}<br /><br /></p>
{article}

The include for all the pages I wish to show the headlines is:

<?php
$static = 'true';
$template = 'Headlines';
$nppage = '4';
$newstimeformat = '%h<br />%d';
include 'news/index.php';
?>

The include for the full article is:

<?php
include 'news/index.php';
?>

This is on http://mhnaz.org/fullstory.html.

The "fullstory" template is the default template at the moment. But in any case I cannot get the full article to appear with one click from the headlines.

Sorry for the bother. I'm a former CuteNews user using similar techniques.

Thanks in advance,

Duane

#3874
Chris
Posted on 01 Jun 2012, 00:37:32

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

Your headlines template needs changed slightly, change

<a href="fullstory.html?id{id}" title="{title}">{title}</a>

to

<a href="fullstory.html?id={id}" title="{title}">{title}</a>

I'm guessing you've created new templates from scratch and have possibly left out the Comments Structure section of the template. It should look something like this

{news}
<a name="comments"></a>
{comments}
{commentspagintation}
[loggedin]Welcome, {username}[/loggedin]
{commentsform}
{loginform}
#3875
Duane
Posted on 01 Jun 2012, 04:45:08

Access: Member
Total Posts: 11
Joined: 2012-05-27

Chris, you have been a tremendous help. I'm not sure how I missed that from the different posts that I've read. Sorry, I'm usually a detail person.

BTW, I purposely leave out the comments due the extra policing that a church would have to do to keep up.

Thank you again for the script.

#3876
Duane
Posted on 01 Jun 2012, 05:03:36

Access: Member
Total Posts: 11
Joined: 2012-05-27

Just put in the following code:

<a href="fullstory.html?id={id}" title="{title}">{title}</a>

Nothing is appearing on the page now. Not sure what happened. I even copied and pasted.

#3877
Chris
Posted on 01 Jun 2012, 13:36:06

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

Something isn't right with your template. I can't really figured out what's causing it without seeing it for myself. Would you be able to give me access to the site/server so that I can take a look myself?

#3878
Duane
Posted on 01 Jun 2012, 16:05:19

Access: Member
Total Posts: 11
Joined: 2012-05-27

No problem. How do you wish me to give you the information?

#3879
Chris
Posted on 01 Jun 2012, 23:37:56

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

Send me a private message on here with the details and I'll take a look.

#3880
Chris
Posted on 02 Jun 2012, 11:26:47

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

Seems to be working now http://mhnaz.org/index-template.html - Problem was your full story template was missing the Comments Structure section.

#3881
Duane
Posted on 02 Jun 2012, 15:10:55

Access: Member
Total Posts: 11
Joined: 2012-05-27

Chris wrote at 2012-06-02 11:26:47

Seems to be working now http://mhnaz.org/index-template.html - Problem was your full story template was missing the Comments Structure section.

Perfect. Thank you again. For future reference, when creating a template, I shouldn't clear everything out. Besides the "Comments Structure," is there any other sections that I should leave alone?

Duane

#3882
Chris
Posted on 02 Jun 2012, 20:01:12

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

When creating a template the best thing to do is create a copy of a default template and begin editing that. You can make a copy my selecting the checkbox next to a template and selecting Create Copy from the dropdown box.

#3883
Network-13.com © 2013