You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 48 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Stories Archive module page numbers function never end [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
rovshan
Nuke Cadet
Nuke Cadet


Joined: Apr 21, 2005
Posts: 3


PostPosted: Fri Oct 20, 2006 2:29 pm Reply with quoteBack to top

Hello,

I hope here someone who knows php programming, I am not so advanced..Sad

in Stories Archive module possible to change number of stories on page, "by default " it is 250.... So if you have 600 stories it should be 3 pages ... 1 and 2 pages 250 stories per page and 3 page 100 stories and normaly on the 3 page we don't find next link only previuos link...

BUT SOMETHING WRONG IN CODE ! The NEXT LINK never stop.

here is code in index.php of Stories_Archive module .... function show_all

-----------
function show_all($min) {
global $prefix, $user_prefix, $db, $bgcolor1, $bgcolor2, $user, $cookie, $sitename, $multilingual, $language, $module_name, $userinfo;
if (!isset($min) || intval($min) <= 0) {
$min = 0;
}
else $min = intval($min);
$max = 250;
include("header.php");
title(""._STORIESARCHIVE."");.................................
.............................................

$a = 0;
if (($numrows > 250) AND ($min == 0)) {
$min = $min+250;
$a++;
echo "<center>[ <a href=\"modules.php?name=$module_name&amp;sa=show_all&amp;min=$min\">"._NEXTPAGE."</a> ]</center><br>";
}
if (($numrows > 250) AND ($min >= 250) AND ($a != 1)) {
$pmin = $min-250;
$min = $min+250;
$a++;
echo "<center>[ <a href=\"modules.php?name=$module_name&amp;sa=show_all&amp;min=$pmin\">"._PREVIOUSPAGE."</a> | <a href=\"modules.php?name=$module_name&amp;sa=show_all&amp;min=$min\">"._NEXTPAGE."</a> ]</center><br>";
}
if (($numrows <= 250) AND ($a != 1) AND ($min != 0)) {
$pmin = $min-250;
echo "<center>[ <a href=\"modules.php?name=$module_name&amp;sa=show_all&amp;min=$pmin\">"._PREVIOUSPAGE."</a> ]</center><br>";
}
...............................
...........................
-----------------------

Help please..... to fix !
Thnks
Find all posts by rovshanView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.159 Seconds - 291 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::