| Author |
Message |
PJR
Joined: 17 Oct 2005 Posts: 165 Location: Czech republic |
|
Pagination problem (2.5.2) |
|
I have problem with pagination of posts (skip=15 etc) in 2.5.2 version. It doesn't work... Is there any bug in this version CNR (i havent changed anything but version CNR)?
|
|
| Wed Jan 04, 2006 10:26 am |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
PJR
Joined: 17 Oct 2005 Posts: 165 Location: Czech republic |
|
|
|
I guess its problem with the $static['number'] = 10;
I've tried $number = 10; but it shows all posts...
|
|
| Wed Jan 04, 2006 8:26 pm |
|
 |
PJR
Joined: 17 Oct 2005 Posts: 165 Location: Czech republic |
|
|
|
OK, I need help with this.. how to use the $number tag in new versions?
|
|
| Thu Jan 05, 2006 7:58 pm |
|
 |
BadDog
Joined: 21 Nov 2005 Posts: 62
|
|
|
|
 |  | OK, I need help with this.. how to use the $number tag in new versions? |
I just do this in 2.5.2 seems to work OK:
$template = "Default";
$number = 20;
include($path . '/show_news.php');
|
|
| Sat Jan 07, 2006 6:59 am |
|
 |
PJR
Joined: 17 Oct 2005 Posts: 165 Location: Czech republic |
|
|
|
Well there is some bug on my website, because on the example page $number = 20; works fine, but otherelse it shows all posts. I really cant find out the problem... So, what could may affect this? Any idea? Im quite desperate 
|
|
| Sat Jan 07, 2006 5:04 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2857 Location: Germany |
|
|
|
Did you include head.php correctly on your page?
|
|
| Sat Jan 07, 2006 6:21 pm |
|
 |
PJR
Joined: 17 Oct 2005 Posts: 165 Location: Czech republic |
|
|
|
<?php
include "xxx/head.php";
?>
If is this correct...?!
|
|
| Sat Jan 07, 2006 7:35 pm |
|
 |
BadDog
Joined: 21 Nov 2005 Posts: 62
|
|
|
|
Go clean out the cache directory and try it again.
|
|
| Sun Jan 08, 2006 3:23 am |
|
 |
PJR
Joined: 17 Oct 2005 Posts: 165 Location: Czech republic |
|
|
|
It's empty..all the time
|
|
| Sun Jan 08, 2006 11:51 am |
|
 |
PJR
Joined: 17 Oct 2005 Posts: 165 Location: Czech republic |
|
|
|
Well, there is some bug on my site or cutenews or something. I Cant you simply $number = "xx"; because it shows all posts - I must use the static code, but tt blocks tha pagination... I really cant find out the problem.
What kind of bug I should looking for?
|
|
| Tue Jan 31, 2006 10:52 am |
|
 |
Ramon
Joined: 12 Oct 2005 Posts: 551 Location: Hoogeveen, NL |
|
|
|
Would be helpfull if you just posted the code of the whole page 
|
|
| Wed Feb 01, 2006 5:28 pm |
|
 |
PJR
Joined: 17 Oct 2005 Posts: 165 Location: Czech republic |
|
|
|
Here's the code of index page (only structure, I'm sure the content is no problem here)
 |  | <?php
include "administrace/head.php";
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
<title>Title</title>
<link rel="stylesheet" type="text/css" href="/style.css">
</head>
<body>
<div align="center">
<div id="body">
<?php
include "b_top.php";
?>
<div id="levo">
<div id="levysloupec">
<div id="levysloupectitle_top">Info</div>
<div id="levysloupectext">
</div>
<div id="levysloupectitle">Reklama</div>
<div id="levysloupectitle">Anketa</div>
<div id="levysloupectext">
</div>
<div id="levysloupectitle"></div>
<div id="levysloupectext">
>
</div>
<div id="levysloupectitle">
</div>
<div id="levysloupectext">
</div>
</div>
</div>
<?php
include "b_pravomenu.php";
?>
<?php
include "b_pravomenu_konec.php";
?>
<div class="sloupec_stred_nadpis">Novinky</div><br>
<?PHP
$static['category'] = "5,6,7,8,14,22,23";
$static['number'] = "30"; (I have to use static to display only 30 posts...)
include $cutepath.'/show_news.php';
?>
</div>
</div>
</div>
<div id="pruhdole">
</div>
</div>
</body>
</html> |
|
|
| Wed Feb 01, 2006 6:01 pm |
|
 |
|