Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Pagination problem (2.5.2)

 
Reply to topic    Forum Index » Help View previous topic
View next topic
Pagination problem (2.5.2)
Author Message
PJR



Joined: 17 Oct 2005
Posts: 165
Location: Czech republic

Post Pagination problem (2.5.2) Reply with quote
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 View user's profile Send private message
Guest








Please login to hide the ads.

PJR



Joined: 17 Oct 2005
Posts: 165
Location: Czech republic

Post Reply with quote
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 View user's profile Send private message
PJR



Joined: 17 Oct 2005
Posts: 165
Location: Czech republic

Post Reply with quote
OK, I need help with this.. how to use the $number tag in new versions?
Thu Jan 05, 2006 7:58 pm View user's profile Send private message
BadDog



Joined: 21 Nov 2005
Posts: 62

Post Reply with quote
PJR wrote:
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 View user's profile Send private message
PJR



Joined: 17 Oct 2005
Posts: 165
Location: Czech republic

Post Reply with quote
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 Sad
Sat Jan 07, 2006 5:04 pm View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2857
Location: Germany

Post Reply with quote
Did you include head.php correctly on your page?
Sat Jan 07, 2006 6:21 pm View user's profile Send private message
PJR



Joined: 17 Oct 2005
Posts: 165
Location: Czech republic

Post Reply with quote
<?php

include "xxx/head.php";

?>



If is this correct...?!
Sat Jan 07, 2006 7:35 pm View user's profile Send private message
BadDog



Joined: 21 Nov 2005
Posts: 62

Post Reply with quote
Go clean out the cache directory and try it again.
Sun Jan 08, 2006 3:23 am View user's profile Send private message
PJR



Joined: 17 Oct 2005
Posts: 165
Location: Czech republic

Post Reply with quote
It's empty..all the time
Sun Jan 08, 2006 11:51 am View user's profile Send private message
PJR



Joined: 17 Oct 2005
Posts: 165
Location: Czech republic

Post Reply with quote
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 View user's profile Send private message
Ramon



Joined: 12 Oct 2005
Posts: 551
Location: Hoogeveen, NL

Post Reply with quote
Would be helpfull if you just posted the code of the whole page Wink
Wed Feb 01, 2006 5:28 pm View user's profile Send private message Visit poster's website
PJR



Joined: 17 Oct 2005
Posts: 165
Location: Czech republic

Post Reply with quote
Here's the code of index page (only structure, I'm sure the content is no problem here)



Quote:
<?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 View user's profile Send private message
Display posts from previous:    
Reply to topic    Forum Index » Help All times are GMT + 1 Hour
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.