vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vB3 Moderators and Onlineusers-Look in Forumdisplay v 1.1 (https://vborg.vbsupport.ru/showthread.php?t=50867)

kdog316 04-18-2003 07:09 PM

perfect works great but is there a hack where it will show how many users or in a forum from the forum homepage sort of like what vbulletin.com has
like this

General Chat (4 users in this board)

something along those lines

Kars10 04-18-2003 07:28 PM

Hi Kdog316!
Glad you like my hack. :)
You can ask Boofo for the hack with the onlineusers on Forumhome.
He has made this hack, and it works great on my board.

Kars

Synicide 04-23-2003 09:28 PM

This is an awesome hack man, my forum looks so much sleeker now. :D

Kars10 04-23-2003 09:45 PM

@ Synicide, glad that you like my little Hack!!

Kars :)

+Fares+ 04-26-2003 08:19 AM

any way to have this in the top instead of the button ?

subu1 04-29-2003 04:14 PM

und install, danke Dir;)

Kars10 04-29-2003 04:58 PM

Kein Thema subu! :)

Gru?
Kars

Boofo 05-25-2003 02:17 PM

For anyone using the Usercount Addon, there is a bug with this. If you have a forum where a guest is viewing the thread listing and they are the only one in that forum, the line will look something like this:

0 User011a20289dccd608bbf00f7eba44917b 24 browsing this Forum:

To fix this, you will need to find:

PHP Code:

    if ($browsers) {
        if (!
$moderatedby) {
            
$onlineusers "";
        }
        
$i 'are';
    if (
intval($usercount) < 1) {
            
$usercount 0;
        }
        if (
intval($usercount) == 1) {
            
$i 'is';
        }
    
$s 's';
    if (
intval($usercount) < 1) {
            
$usercount 0;
        }
        if (
intval($usercount) == 1) {
            
$s '';
        }
        eval(
"\$onlineusers .= \"".gettemplate('forumdisplay_loggedinusers')."\";");
    }


and replace that with:

PHP Code:

            $s 's';
        
$i 'are';
    if (
intval($usercount) < 1) {
            
$usercount "No";
        }
    if (
intval($usercount) == 1) {
                
$s '';
        
$i 'is';
        }
    if (
$browsers) {
        if (!
$moderatedby) {
            
$onlineusers "";
        }
        eval(
"\$onlineusers .= \"".gettemplate('forumdisplay_loggedinusers')."\";");
    }



Chris M 05-25-2003 03:05 PM

Nice:)

Satan

spaceb 05-27-2003 01:28 PM

How can i put it in the top of the forum instead of the button??


All times are GMT. The time now is 07:01 AM.

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.01818 seconds
  • Memory Usage 1,743KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete