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 Catagories
Bakedbeans03
Posted on 15 Mar 2011, 16:17:19

Access: Member
Total Posts: 3
Joined: 2011-03-15

Hi,

I am really struggling to get to grips with the coding on this.

All i want to do is make it so that posts with the catagory "Attacks on FU" will appear on this page www.maquis-online.co.uk/fu/fu.html and posts with the catagory "Attacks on Maquis" will appear on /maquis.html

(website still under construction but the FU one is there.)

The main news page is www.maquis-online.co.uk/news/

Ive seen bits of code floating around these forums but I cant figure out where these bits of code need to go.

Any help would be appreciated
#3350
Chris
Posted on 15 Mar 2011, 16:24:42

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

Have a look at the documentation on this page for list of variables you can use to customize how your news is displayed

http://code.google.com/p/n-13news/wiki/Integration

The first thing is the page you want the news to display in needs to be a .php file instead of a .html

To display only news articles that are assigned to the category "Attacks on FU", use the following code

Code:
<?php
$cat
[] = "Attacks on FU";
include 
'news/index.php';
?>


If you're adding that code to this page www.maquis-online.co.uk/fu/fu.html then change the path to the following

Code:
<?php
$cat
[] = "Attacks on FU";
include 
'../news/index.php';
?>
#3351
Bakedbeans03
Posted on 15 Mar 2011, 16:29:11

Access: Member
Total Posts: 3
Joined: 2011-03-15

I will give that a go.

Gotta say, your a great guy replying so fast.
#3352
Bakedbeans03
Posted on 15 Mar 2011, 16:32:48

Access: Member
Total Posts: 3
Joined: 2011-03-15

Works a charm thanks very much for the great support.

#3353
Network-13.com © 2013