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 Suggestions select by date
1 2
Master_je
Posted on 12 Jul 2009, 13:25:09

Access: Member
Total Posts: 28
Joined: 2009-06-05

Hello,

Is it perhaps a good option that you can select by date. for example, through a php code?? because i want a archive by month. So for example. You click on June and that you will see only the news from June
#612
Chris
Posted on 12 Jul 2009, 19:32:09

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

This would require a bit of effort to do unfortunately. If I ever make another version of the script I'll try add this functionality.
#613
Last edited by Chris at 2009-07-12 22:47:43 Reason:
Master_je
Posted on 12 Jul 2009, 21:09:28

Access: Member
Total Posts: 28
Joined: 2009-06-05

Ok thats great. But i've 2 questions left.

When you have Amount of news per page at 10 then tis is for every pages but i want that 1 page has 10 news articles and another 5 anothere 7, how can i do this?

And is t possible when you click at "read more" that it links to the pages of the catagorie.
For example
Code:
Heerde 1 opent competitie

2009/07/12 20:55 Nummer 17

read more

The catagorie is here "heerde 1" and when i will click on read more that it go to the news page of heerde 1.
I hope you know what i mean:happy:
#614
Chris
Posted on 12 Jul 2009, 22:54:39

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

You can control the amount of news that gets shown you can use the $nppage variable like this

Code:
<?php
$nppage 
= '4'; #this shows 4 news articles
include 'news/index.php';
?>


Regarding the read more link, do you mean that if you were to click the read more link it would then show you the next news article assigned to the "Heerde 1" category?. If so then this sounds like something the system already does with the pagintation, the links you see at the bottom of the page that lets you view the next page.
#615
Master_je
Posted on 13 Jul 2009, 14:30:19

Access: Member
Total Posts: 28
Joined: 2009-06-05

Thanks for the first one:grin:, but there is no way that i can selected it on date. So that you only show the news from a particular month. bacause that would be great:grin:

euh how could explain it.

Well my news page is on "index.php". at this page come every news item, and when i click on "read more" i want that i go to the page "heerde_1.php" and not that it will open in "index.php". I know that this sounds quite difficult but i hope that you know what i mean:cheese:
#618
Last edited by Master_je at 2009-07-13 14:33:17 Reason:
Chris
Posted on 13 Jul 2009, 15:21:43

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

Alright if you download this file, extract it and replace your copy of index.php with this one new.

Now when including your news do the following

Code:
<?php
$openpage 
= 'heerde_1.php'; #this is the page that will open if you click the reamore link
include 'news/index.php';
?>
#619
Master_je
Posted on 13 Jul 2009, 17:51:15

Access: Member
Total Posts: 28
Joined: 2009-06-05

Mm alright thanks,
maybe I'm a little bore but I have another question.
Is this possible to do which categories. so that you can link a categorie to a page.
#621
Last edited by Master_je at 2009-07-15 20:24:29 Reason:
Master_je
Posted on 15 Jul 2009, 20:28:37

Access: Member
Total Posts: 28
Joined: 2009-06-05

what have you changed in index.php?? And it isn't that posible to do with a categorie??
like
Code:
<?php 
$cat
[] = heerde_1 $openpage = 'heerde_1.php'
?>

Or something like that?
#634
Chris
Posted on 15 Jul 2009, 20:40:44

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

Try this.

Code:
<?php
$cat
[] = 'heerde_1';
$openpage = 'heerde_1.php';
include 
'news/index.php';
?>
#635
Master_je
Posted on 18 Jul 2009, 13:49:46

Access: Member
Total Posts: 28
Joined: 2009-06-05

Thanx that works:grin:.
But when i want:
This is index.php
Code:
<?php 
$cat
[] = 'heerde_1';
$openpage = 'Heerde_1.php';

$cat[] = 'heerde_2';
$openpage = 'Heerde_2.php';
?>

So that every single cat can open in a a new page, or isn't that possible
#669
1 2
Network-13.com © 2013