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 News not showing up in sub folder
Akkurat
Posted on 03 May 2011, 13:47:32

Access: Member
Total Posts: 2
Joined: 2011-05-03

Hi,

I've created a sub folder domain.com/subfolder and would like to include news of a certain category to the index.php in that folder. This doesn't work, no news showing up. However, it works fine in domain.com/index.php.

I'm guessing it has something do to with the include path to news/index.php. I've tried

include 'news/index.php'; <--- works fine in domain.com/index.php
include 'domain.com/news/index.php';

and some others with/without http:// and www.

Any ideas?
#3451
Akkurat
Posted on 03 May 2011, 22:22:15

Access: Member
Total Posts: 2
Joined: 2011-05-03

Nevermind, I solved it by adding "../" to the path. Like this:

include '../news/index.php';
#3452
Last edited by Akkurat at 2011-05-03 22:22:43 Reason:
Network-13.com © 2013