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 path problem
Anhk
Posted on 03 Jun 2010, 13:51:15

Access: Member
Total Posts: 6
Joined: 2010-06-03

Hello all,

here's my problem:
my homepage is located in /mysite/index.php and the n-13 news are installed on ../news/

I'm calling the n-13 news from my site index.php using the usual php include
<div id="news">
<?php include '../news/index.php';?>
</div>
The news are displayed correctly but all links are pointing to /mysite.php instead of ../news/index.php

There must be something I missed with the installation/integration.
How can I solve this problem?

#2366
Chris
Posted on 03 Jun 2010, 15:35:52

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

It's designed to be like that so that you can easily include the system within your own design. If you want links to go to a different page format your own something like

Code:
<a href="http://example.com/news/?id={id}">Comments</a>
#2369
Anhk
Posted on 03 Jun 2010, 16:21:11

Access: Member
Total Posts: 6
Joined: 2010-06-03

Quote:
It's designed to be like that so that you can easily include the system within your own design. If you want links to go to a different page format your own something like

Code:
<a href="http://example.com/news/?id={id}">Comments</a>


That works for the comments link thank you
but that doesn't work for the pagintation links [prev-link] [next-link]
#2370
Chris
Posted on 03 Jun 2010, 19:00:08

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

It's not possible to edit the pagination links however the next version of the script, 3.6, is going to be released very soon so I'll add some new tags into the news/comments pagintation that'll let you create your own custom back/next links

Code:
NEWS
{currentpage} - Displays the current page number
{previouspage} - Displays the previous page number
{nextpage} - Displays the next page number

COMMENTS
{currentpage} - Displays the current page number
{previouspage} - Displays the previous page number
{nextpage} - Displays the next page number
{pid} - Displays the unique ID of the news post
#2371
Chris
Posted on 03 Jun 2010, 20:08:25

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

http://code.google.com/p/n-13news/issues/detail?id=73
#2372
Anhk
Posted on 04 Jun 2010, 10:50:14

Access: Member
Total Posts: 6
Joined: 2010-06-03

Thank you :-)
#2374
Network-13.com © 2013