CodeCanyon

Scrolling Pagination Class

  • Has been a member for 2-3 years
  • Helped protect Envato Marketplaces against copyright violations
  • Exclusive Author
  • Sold between 1 and 100 dollars
  • Bought between 10 and 49 items
  • United States
  • Referred between 10 and 49 users
iapcsolutions says

live preview is down….

2 years ago
Author
QuanticaLabs QuanticaLabs replied

It was a temporary problem. Now everything works fine.

2 years ago
  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Bought between 10 and 49 items
Thecodingdude says

As with pretty much every single one of these on Codecanyon, you need to prevent a user entering -100 or some other random number.

But otherwise, this is actually a very nice script, and good job :)

2 years ago
Author
QuanticaLabs QuanticaLabs replied

Not exactly. Class correctly validate the data and when you specify an invalid value, pagination will not be displayed. This is a normal situation, because “class” doesn’t know which rows range have to be displayed and which data set was previously displayed. It was assumed that the user provide the correct data (in constructor). If the application’s logic is violated (as in this case) the function returns false.

Thank you for your comment.

2 years ago
  • Has been a member for 2-3 years
  • Bought between 10 and 49 items
  • Denmark
valter033 says

Any documentation on how to use this with MySQL data in PHP ? I’m a beginner, so as simple as possible would be very nice :)

2 years ago
Author
QuanticaLabs QuanticaLabs replied

Hello valter033,

I will add to the documentation some examples how to use pagination with Mysql database in next few days.

Thanks for your comment.

2 years ago
  • Has been a member for 2-3 years
  • Bought between 50 and 99 items
andrewjtalcott says
Purchased

words aren’t showing up for “Last” and Previous” buttons

2 years ago
  • Has been a member for 2-3 years
  • Bought between 50 and 99 items
andrewjtalcott says
Purchased

so, it took me a second but i figured it out, for everyone out there that was wondering the same thing, you need to include the “language” folder where ever the script is going to be. Inside that folder you need the language xml file, the default is “en.xml” to make sure the path to this file is correct, go to the “Pagination.php” in the class folder, on line 32 you will find ”$pathToLanguageFile=’../language/’” – I had to reset this to ”$pathToLanguageFile=’../language/’” for my path to be correct. This wasn’t described correctly in the documentation. The documentation says “To correctly use the language file, it is necessary to give it a name in the format: xx.en where xx is the name of the language.” what he meant was “To correctly use the language file, it is necessary to give it a name in the format: xx.xml where xx is the name of the language. (in the working example, this file is en.xml)” This script is awesome, thanks alot, hopes this helps.

2 years ago
Author
QuanticaLabs QuanticaLabs replied

Hello andrew,

I corrected a mistake in the documentation. Thanks a lot.

2 years ago
Purchased
Default-user andrewjtalcott replied

oops, I meant to write: ”$pathToLanguageFile=’../language/’” – I had to reset this to ”$pathToLanguageFile=’./language/’” for my path to be correct.

1 year ago
Author
QuanticaLabs QuanticaLabs replied

No problem andrew. Thanks.

1 year ago
  • Has been a member for 2-3 years
  • Bought between 50 and 99 items
  • Netherlands
silverspring says
Purchased

hi there!

newbie here

can you give me a quick tut on how to implement this with a sql record set? I just dont “get it”...

thanks!

2 years ago
Author
QuanticaLabs QuanticaLabs replied

Hello silverspring,

Example of the use of pagination with MySQL database can be found at: http://dhost.info/quanticalabs/Pagination/demo/#menu6

2 years ago
  • Has been a member for 2-3 years
  • Exclusive Author
  • Bought between 100 and 499 items
  • Spain
  • Referred between 1 and 9 users
rubencio says

Hi can I use this in a WordPress based site? Regards,

2 years ago
Author
QuanticaLabs QuanticaLabs replied

Hi rubencio,

Unfortunately not. The script was not designed as a Wordpress plugin. Thank you for your comment.

2 years ago
  • Has been a member for 2-3 years
  • Bought between 1 and 9 items
sanne says
Purchased

Have purchase the script but the Example of the use of pagination with MySQL database not work i get Fatal error: Class ‘Pagination’ not found in /home/aannemer/public_html/Pagination/index.php on line 69

The script dont not create the pagination but only the database results // create pagination $Pagination=new Pagination($p,$totalResults,$perPage); $Pagination->setParameters(array(‘id’=>‘MySQLExample’,’pageName’=>‘p’)); $Pagination->create();

<? My database conection $username = “aannemer”; $password = “password”; $hostname = “localhost”; $database = “aannemer”; // set the number of results per page

$perPage=5;

// “p” is the name of the variable that stores the page number

$p=(int)$_GET[‘p’]<=0 ? 1 : (int)$_GET[‘p’];

// database connection

if(($connection=mysql_connect($hostname, $username, $password))===false) die(); if((mysql_select_db($database,$connection))===false) die();

// execute main query

$mainQuery=’select SQL _CALC_FOUND_ROWS * from My database tabel limit ’.(int)($perPage*($p-1)).’,’.(int)$perPage; if(($mainResult=mysql_query($mainQuery,$connection))===false) die();

// if there are any records, then create a table

if(mysql_num_rows($mainResult)) { // execute the helped query that calculates the number of all results ?>

<? // processing rows ?> <? } ?>
<? echo $mainRow[‘id’]; ?> <? echo $mainRow[‘name’]; ?> <? echo $mainRow[‘surname’]; ?> <? echo $mainRow[‘email’]; ?> <? echo $mainRow[‘balance’]; ?>
<? // get number of all rows ?> <?

$helpRow=mysql_fetch_assoc($helpResult);
$totalResults=$helpRow['totalResults'];
// create pagination
$Pagination=new Pagination($p,$totalResults,$perPage);
$Pagination->setParameters(array('id'=>'MySQLExample','pageName'=>'p'));
$Pagination->create();

}

?>

1 year ago
Author
QuanticaLabs QuanticaLabs replied

Hello sane,

If you got error like “Class ‘Pagination’ not found in ..” it means that you don’t include class file or the file is missing etc. Please add this line before you create pagination object:

require_once('../class/Pagination.php');

Of course the path is depends where you install the script.

1 year ago
  • Has been a member for 1-2 years
  • Bought between 10 and 49 items
  • Serbia
BlogMedia says
Purchased

Realy confusing manual included in pack. Can you made something more easy for people who dont have php programming in small finger?

1 year ago
Author
QuanticaLabs QuanticaLabs replied

Hello,

Sorry, but I can’t create a simpler documentation. It contains all the possible cases with implementation and examples. If you have a problem with using this item, please describe it and send me an email through my profile page. Then I can help you.

1 year ago
  • Has been a member for 1-2 years
  • Bought between 10 and 49 items
  • Serbia
BlogMedia says
Purchased

i sent you email…

1 year ago
Author
QuanticaLabs QuanticaLabs replied

Ok. I got it.

1 year ago
  • Has been a member for 1-2 years
  • Bought between 10 and 49 items
  • Serbia
BlogMedia says
Purchased

Thank you for quick response! ;)

1 year ago
Author
QuanticaLabs QuanticaLabs replied

Ok. No problem :)

1 year ago
  • Has been a member for 1-2 years
  • Bought between 10 and 49 items
msaadvertising says
Purchased

In the pagination.css file you have “background-image:url(’../graphics/arrowRightField.png’);” but in the download package there is no such file for arrowRightField.png.

1 year ago
Author
QuanticaLabs QuanticaLabs replied

Hello,

Thank you for purchased. Could you give me your e-mail address?
I will send you missing files.

1 year ago
Purchased
Default-user msaadvertising replied

dbess @ mooreandscarry.com

1 year ago
Author
QuanticaLabs QuanticaLabs replied

Hello again, I sent you e-mail.

1 year ago
  • Has been a member for 1-2 years
  • Bought between 10 and 49 items
msaadvertising says
Purchased

One more issue I have.

The Next, Last, First, previous buttons are not showing up within the pagination.

Any clue as to why this would happen? Am I missing something? Does this have issues with Jquery 1.5.1?

1 year ago
Author
QuanticaLabs QuanticaLabs replied

Hello,

Could you give me URL of your site? I will check it.

1 year ago
Purchased
Default-user msaadvertising replied

http://www.orlandohyundaicertified.com.php5-20.dfw1-2.websitetestlink.com/inventory.php

go to the very bottom of the page and you will see what I’m talking about.

1 year ago
  • Has been a member for 1-2 years
  • Bought between 10 and 49 items
msaadvertising says
Purchased

Did you get my email about the pagination being setup exactly like yours was on the site? I sent a screenshot in hopes of you responding.

1 year ago
Author
QuanticaLabs QuanticaLabs replied

Hello, I sent you e-mail.

1 year ago
  • Has been a member for 3-4 years
  • Exclusive Author
  • Bought between 50 and 99 items
  • Referred between 1 and 9 users
eaflash says

Can be used with ajax? I saw in parameters that can use ajax. Is there an example how to do this?

1 year ago
Author
QuanticaLabs QuanticaLabs replied

Hello,

Yes it could be used with ajax, but at this moment I don’t have any manual how to implement it. But if you know jquery you shouldn’t have any problems with it.

1 year ago
  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Bought between 10 and 49 items
Thecodingdude says
Purchased

Getting errors about undefined index on lines 106/7

11 months ago
Author
QuanticaLabs QuanticaLabs replied

Hello,

Did you get error or notice? If notice please add:

error_reporting(E_ALL ^ E_NOTICE);

at begininig of your script. If error, please give me URL to your page.

11 months ago
Purchased
Thecodingdude Thecodingdude replied

It seems the XML file isn’t loading correctly…hmm

11 months ago
Purchased
Thecodingdude Thecodingdude replied

Done. Thank you.

11 months ago
  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Bought between 10 and 49 items
Thecodingdude says
Purchased

Hello, it’s me again :P

How would you go about adding Ajax to this, I enabled the ajax param, but is there any function you can use jQuery to hook into?

I also get error about “use of undefined constant id – assumed ‘id’”

Thanks!

11 months ago
  • Has been a member for 1-2 years
  • Bought between 10 and 49 items
cswales says

Hi Just a couple of questions: 1. Do you have an example of the pagination class working with an image stored in the database as well as queried text? 2. Did you manage to work this with AJAX yet – is there a sample? The script looks awesome and I am excited about purchasing (especially if point 1 is available) Thanks

10 months ago
Author
QuanticaLabs QuanticaLabs replied

Hello,

Really sorry for my late reply.
Sorry, I do not have any more examples. All available examples are included in documentation.

9 months ago
  • Has been a member for 0-1 years
  • Bought between 1 and 9 items
LunarCraft says
Purchased

Greetings, I have some of the same issues as described earlier. I am missing graphics/arrowRightField.png

http://i53.tinypic.com/30tku1t.png

The whitespace between the buttons, is that the missing file?

9 months ago
Author
QuanticaLabs QuanticaLabs replied

Hello,

Could you give me URL to your site? I’ll check this.

9 months ago
Purchased
Default-user LunarCraft replied
http://mcstatus.net/indev/?p=1

I have been following the MySQL Example in the documentation.

9 months ago
Author
QuanticaLabs QuanticaLabs replied

No problem. Please rate my item. Thanks.

9 months ago

by
by
by
by
by