vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   who's online: page split (https://vborg.vbsupport.ru/showthread.php?t=74330)

N8 01-13-2005 09:33 PM

who's online: page split
 
Is there a way to get rid of the page split on the who's online box, and just have all of the users/guests displayed on the first page?
( [vb3] )

Andreas 01-13-2005 10:35 PM

** Untested **

In functions_online.php comment out
PHP Code:

if ($doall == AND ($count $limitupper OR $count $limitlower))
{
        return 
'';


You might also want to remove the unnecessary pagenave controls.
In online.php comment out
PHP Code:

$pagenav construct_page_nav($totalonline"online.php?$session[sessionurl]sort=$sortfield&order=$sortorder&pp=$perpageiif($who"&who=$who") . iif($showua'&ua=1')); 

There might be a few other lines in online.php that can be commen, but I am too lazy to test if they are necessary ;)

N8 01-14-2005 12:15 AM

ahh, I figured it out :)


If anyone else wants to know, change:
Code:

        $perpage = intval($perpage);

        if ($perpage == 0)
        {
                return $default;
        }
        else if ($perpage < 1)
        {
                return 1;
        }
        else if ($perpage > $max)
        {
                return $max;
        }
        else
        {
                return $perpage;
        }

to
Code:

        $perpage = intval($perpage);

                return 999;


Andreas 01-14-2005 12:21 AM

And what if you got more then 999 users currently logged in?

N8 01-14-2005 12:59 AM

then put 99999 :P

Andreas 01-14-2005 01:02 AM

And if you got more then 99999 users currently logged in?
(I know, most likely this will not happen - I just wanted to point out that this does not turn off page splitting, it only increases the limit :))

N8 01-14-2005 01:04 AM

meh, I'm sure theres a way, I'm just not that great at php :)


All times are GMT. The time now is 02:42 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.01063 seconds
  • Memory Usage 1,726KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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