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 index.php problem
Trader
Posted on 22 Nov 2009, 15:46:09

Access: Member
Total Posts: 8
Joined: 2009-11-22

Hi

I have for example page addres like this:
http://www.mydomain.com/index.php?page=tapahtumat

Tapahumat.php page includes one news cat. When this cat has muliple pages the next
link is poining wrong place, atleast my point of view. It's like:

http://www.mydomain.com/index.php?page=2
it should be
http://www.mydomain.com/index.php?page=tapahtumat and page=2 but how to do it?

Can someone help me please?
#1212
Chris
Posted on 22 Nov 2009, 20:27:56

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

Edit index.php, on line 35~ you'll see this

Code:
$linkprefix = '';


Change that to

Code:
$linkprefix = 'page=tapahtumat&';
#1213
Last edited by Chris at 2009-11-22 20:29:24 Reason:
Trader
Posted on 22 Nov 2009, 20:40:10

Access: Member
Total Posts: 8
Joined: 2009-11-22

Hi and thanks for answer!!

There is more pages than tapahtumat were is the same problem. If I put the code in news/index.php it allways try to point in tapahtumat.. am I right?

I tred to put the code in tapahtumat.php like:

Code:
<?php  
$template 
= 'Template1';
$cat[] = 'Tapahtumat';
$linkprefix = 'page=tapahtumat&';
include 
'news/index.php';
?>


Does not work..
#1215
Last edited by Trader at 2009-11-22 20:44:33 Reason:
Chris
Posted on 22 Nov 2009, 20:47:22

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

Edit the index.php file and on line 35~ where you previously had

Code:
$linkprefix = '';


Simply delete that line, now you should be able to specify the link prefix before your include, like so

Code:
<?php
$linkprefix 
= 'page=tapahtumat&';
include 
'news/index.php';
?>
#1216
Trader
Posted on 22 Nov 2009, 21:57:23

Access: Member
Total Posts: 8
Joined: 2009-11-22

Ok now the link points on:
www.mydomain.com/index.php?page=tapahtumat&page=2

Should this work. Because it says page not found. Could be my mistake..
#1217
Chris
Posted on 22 Nov 2009, 22:01:08

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

It should work, that's why I put the $linkprefix variable in there.
#1218
Trader
Posted on 23 Nov 2009, 19:33:09

Access: Member
Total Posts: 8
Joined: 2009-11-22

Thank you Chris!

I called same variable ($page) twice, that was the problem when it sayed page not found, my mistake. So as you sayed the $linkprefix variable worked perfectly!

Now ewerything is working just great!! I am so happy!

Thank's again! Keep up the good work!!
#1219
Network-13.com © 2013