vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Invision-like page numbers (https://vborg.vbsupport.ru/showthread.php?t=77211)

paulmjno 02-28-2005 05:50 PM

Invision-like page numbers
 
Hey all.

I think Invision Board (or some other software) displays page numbers on the thread listing in the following way, if there are 14 pages, for example:

1,2,3 ... 12,13,14

Surely there is a hack like this for vB, right? I think this method makes far more sense, and can be extremely convenient.

ericgtr 02-28-2005 07:32 PM

I will second this, not that something doesn't exist for it but if it does, I haven't been able to find it. It's been brought up a couple of times before.

Creed 02-28-2005 09:15 PM

I think this is already done in vbulletin options.

Number of Pages Visible in Page Navigator

sabret00the 02-28-2005 09:20 PM

Quote:

Originally Posted by Creed
I think this is already done in vbulletin options.

Number of Pages Visible in Page Navigator

no it's not

Creed 02-28-2005 09:34 PM

Works that way on my forums, not sure what else you're looking for.

sabret00the 02-28-2005 09:53 PM

this is a typical vb pagination system:
Page 1 of 1131 | 1 | 2 | 3 | > | Last | ยป |

what he wants is
Page 1 of 1131 | 1 | 2 | 3 | ... | 1127 | 1129 | 1130 | 1131 |

Creed 02-28-2005 10:51 PM

This is controlled by your pagenav templates, however I believe a query would have to be created to grab the last x number of pages, then displayed. If I were home I would like to attempt it :)

Marco van Herwaarden 03-01-2005 03:41 AM

Don't think an extra query would be needed. The total number of pages are already available, so the last 3 could be displayed.

paulmjno 03-01-2005 01:05 PM

Does anyone happen to be up to the challenge of writing this hack? I would, if I could..

paulmjno 03-03-2005 12:33 PM

*just bumping this*

paulmjno 03-12-2005 03:05 PM

*bumping this* :)

Protoman 03-12-2005 05:10 PM

Quote:

Originally Posted by Creed
This is controlled by your pagenav templates

I agree. The 3 pagenav templates and in includes/functions.php
PHP Code:

function construct_page_nav 

needs to be re-written entirely, tried it, failed miserably.. but that should do it.

Brandon Sheley 01-20-2006 07:01 AM

is this possible in 3.5 ?


All times are GMT. The time now is 07:21 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01352 seconds
  • Memory Usage 1,733KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (13)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete