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 I need help
Ronald
Posted on 11 Nov 2009, 21:37:50

Access: Member
Total Posts: 45
Joined: 2009-09-11

Hi, i have some trouble with multiple includes on my index page.
In versie 3.2 it was possible and i left everything the same and now i don´t work anymore.
Here is my index site here
This is my code use on the index page:

Code:
 
<div class="title"><font color="#ffa92b">Tk</font>trekker nieuws headlines</div>
<?php
$nppage 
= '5'; 
$template = 'headlines';
include 
'news/index.php';
?>
<br>
<div class="title"><font color="#ffa92b">Tk</font>trekker nieuwste foto posts</div><br>
<?php
$cat
[] = "foto";
$nppage = '3'; 
$template = 'foto';
include 
'news/index.php';
?>
<br>
<div class="title"><font color="#ffa92b">Tk</font>trekker nieuwste video posts</div><br>
<?php
$cat
[] = "video";
$nppage = '3'; 
$template = 'video';
include 
'news/index.php';
?>


Problem:
He shows the headlines great but the foto cat doens't show up and the video cat shows everything foto cat video cat test cat ect.
How is that possible ? (foto=>photo)
#1163
Last edited by Ronald at 2009-11-17 17:22:04 Reason:
Ronald
Posted on 17 Nov 2009, 17:24:18

Access: Member
Total Posts: 45
Joined: 2009-09-11

I don't know whats wrong,?
#1179
Chris
Posted on 17 Nov 2009, 17:32:35

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

Try making the includes static.

Tutorial here
#1180
Ronald
Posted on 17 Nov 2009, 17:39:53

Access: Member
Total Posts: 45
Joined: 2009-09-11

I tried that many times but i wont have any effect:

Code:

<div class="title"><font color="#ffa92b">Tk</font>trekker nieuws headlines</div>
<?php
$static 
= true;
$nppage = '5'; 
$template = 'headlines';
include 
'news/index.php';
?>
<br>
<div class="title"><font color="#ffa92b">Tk</font>trekker nieuwste foto posts</div><br>
<?php
$static 
= true;
$nppage = '3'; 
$template = 'foto';
$cat[] = "foto";
include 
'news/index.php';
?>
<br>
<div class="title"><font color="#ffa92b">Tk</font>trekker nieuwste video posts</div><br>
<?php
$nppage 
= '3'; 
$cat[] = "film";
$template = 'video';
include 
'news/index.php';
?>


He shows the headlines template and the video template but the foto doesn't work ..
If i try first the headlines - video - foto
He doesn't show the second template why ?

They link to nieuws.php, static is for using it in 1 one page ?

#1181
Last edited by Ronald at 2009-11-17 17:53:06 Reason:
Chris
Posted on 17 Nov 2009, 18:13:43

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

Try downloading a new version of index.php from here and replace your own copy to see if that fixes the problem. I may have made some changes to the script since you first downloaded it.
#1184
Ronald
Posted on 17 Nov 2009, 18:23:01

Access: Member
Total Posts: 45
Joined: 2009-09-11

Haha nice it works !

Thanks :flowers:
#1185
Network-13.com © 2013