Uutiset:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu
Advertisement:

SMF pagination code

Aloittaja virsa punjabi, tammikuu 23, 2014, 01:11:00 IP

« edellinen - seuraava »

virsa punjabi

Hi everyone,
Could anyone please tell me what is the code for smf style pagination?

JBlaze

Take a look at the constructPageIndex() function in the function database.
Jason Clemons
Former Team Member 2009 - 2012

virsa punjabi

Thank you for this link :) is it possible if i can find this code somewhere on script? In SMF Files?

Arantor

It's a very large, very nasty chunk of code in Subs.php.

You will get better results if you explain what you're trying to do.
Holder of controversial views, all of which my own.


virsa punjabi

I have a comment system and i want to use this pagination on that using jquery.

Arantor

Which won't work since jQuery exists on the browser, and SMF's pagination exists on the server. You could make the look the same but you will definitely not he using SMF's code to do it.
Holder of controversial views, all of which my own.


Matthew K.

What do you mean by you want to use this pagination using jQuery? What are you wanting jQuery to do?


Arantor

So a completely different piece of code to SMF then.
Holder of controversial views, all of which my own.


Advertisement: