Author Topic: Paging.php  (Read 5504 times)

0 Members and 1 Guest are viewing this topic.

Offline bag53

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
Paging.php
« on: March 01, 2003, 09:58:47 AM »
How do you set the max paging links for {paging}?

For example:

In main.php, I changed this:

Code: [Select]
$lang['paging_next'] = "»";
$lang['paging_previous'] = "«";


to this:
Code: [Select]
$lang['paging_next'] = "Next Page";
$lang['paging_previous'] = "Previous Page";


Now, when I do a search with a common keyword in my gallery, I get this:

Quote
« First page  Previous Page  12  13  14  15  16  17  18  19  20  21  22  23  24  25  26  27  28  29  30  31  32  Next Page  Last page »


Which I want, but, I would like to lower that range of numbered page links from ten, to six, so it would appear as:

Quote
« First page  Previous Page  15  16  17  18  19  20  21  22  23  24  25  26  27  28  29  Next Page  Last page »


The contents of {paging}, the way it is now, is longer than the width of my table, and it word wraps inside the cell. I tried using nowrap="nowrap", but this just makes my table bigger.

Any suggestions?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Paging.php
« Reply #1 on: March 01, 2003, 10:21:34 AM »
admin control panel -> settings => under "Page and Nav settings" change "Number of "previous" and "next" pages displayed in site navigation"
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline bag53

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
Paging.php
« Reply #2 on: March 02, 2003, 10:28:02 AM »
Whoops, missed that setting :)

I spend too much time digging around in the code, I forgot about the Settings in the CP.

Thanks