se7enet purgatorio

Page 1 of 1 1
Topic Options
Rate This Topic
#18807 - 11/29/08 10:01 PM Forum
EAL
Grape Nuts


Registered: 07/03/08
Posts: 31

Offline
I been improving the internal forum a lot but there is one thing that i am stuck on. I was wondering if anyone new how to make it so that when it list all the threads there is for example 50 threads shown but on the bottom there are links to pages with the rest of the threads. Like it does on this site or the mod index. I know how to get it to show only 50 threads but the other part i am stuck on.
Top
#18808 - 11/30/08 08:04 AM Re: Forum [Re: EAL]
Fayt
Crunchberries
***

Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA

Offline
That is called "Pagination". I have never done it before, because it's confusing to me. But look up a pagination tutorial.
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#18809 - 11/30/08 08:47 AM Re: Forum [Re: Fayt]
EAL
Grape Nuts


Registered: 07/03/08
Posts: 31

Offline
Thank you a lot.
Top
#18810 - 11/30/08 11:04 AM Re: Forum [Re: EAL]
Fayt
Crunchberries
***

Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA

Offline
No prob, you can also make your own like this

SELECT id FROM {{table}} WHERE id>'0' AND id<'21'", "items");

That will show 20 items on a page. So you can call it Page 1
then make a link for page 2 and in that function do.

SELECT id FROM {{table}} WHERE id>'20' AND id<'41'", "items");

So that will list another 20 items.
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
Page 1 of 1 1


Hop to:

se7enet

Barack Obama Logo