MultiPage - pagecount

All new Coranto Addons, updates and patches to addons, will be released here...also, get support for addons within!

Moderators: Spunkmeyer, Dale Ray, SrNupsen, Bluetooth, Jackanape

MultiPage - pagecount

Postby Aurous » Thu May 22, 2003 1:11 pm

When I use '<MP: PageNumber> of <MP: PageCount> pages' on a profile with MultiPage it says: '1 of 5.2 pages' when I am on page 1 and '2 of 5.2 pages' when I am on page 2.

But there are 6 pages, why isn't it saying '1 of 6 pages'? Is there a way to round it off to whole numbers? (and preferably to the next whole number, not the previous).
Aurous
 
Posts: 27
Joined: Mon May 05, 2003 9:23 pm

Postby Sumaleth » Thu May 22, 2003 1:59 pm

Hmm, I would have thought that I was smart enough to round that number up. Doesn't look like I did.

Open cra_multipage.pl into a text editor and find this line:

Code: Select all
my $mpPageCount = $mpPostTotal / $mpNumber;

And right after that line paste this:

Code: Select all
$mpPageCount = int($mpPageCount + .99);

Try that out and see if it breaks anything.
Sumaleth
 
Posts: 1366
Joined: Thu Jul 11, 2002 4:31 pm

Postby Aurous » Thu May 22, 2003 3:07 pm

oh great, that worked !! thanks a lot :)
Aurous
 
Posts: 27
Joined: Mon May 05, 2003 9:23 pm


Return to Addon Release and Support

Who is online

Users browsing this forum: No registered users and 0 guests

cron