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)

Kars10 03-26-2003 10:00 PM

vB3 Moderators and Onlineusers-Look in Forumdisplay v 1.1
 
What this hack does?
With this hack you can have your Onlineusers and Moderators in Forumdisplay
displayed like on vB3.
Also you have a new Usercount displayed in Forumdisplay.

Files to edit: (1) forumdisplay.php
Templates to edit: (2) forumdisplay, forumdisplay_threadlist
Templates to add: (0)

Time to install: max. 5 min

Credits to: Boofo for the Usercount - Addon

Screenie in next Post!

[high]Note: Please backup your Files and Templates!![/high]

If you like this hack please lick install
Kars ;)

Kars10 03-27-2003 09:35 AM

Screenshot: :)


NOTE: Screenshot updatet v1.1

Boofo 03-27-2003 09:54 AM

Does this work ok if you have subforums?

Kars10 03-27-2003 09:58 AM

Quote:

Today at 12:54 Boofo said this in Post #3
Does this work ok if you have subforums?
Yes Boofo, i have subforums too and it works like a charm! :)

Kars

Boofo 03-27-2003 11:05 AM

Quote:

Today at 05:58 AM Kars10 said this in Post #4


Yes Boofo, i have subforums too and it works like a charm! :)

Kars

I realized that after I installed it. ;) Great addition, thanks! ;)

Check mine out. I have added how many members are browsing this forum. Let me know what you think. ;)

sabret00the 03-27-2003 11:07 AM

couldn't this be done with just a temple mod?

Kars10 03-27-2003 11:07 AM

Glad you like it Boofo!
Cool addition with the Online Users.
If you want i can update the first Post with your addon (credits 2u).

Kars :)

Kars10 03-27-2003 11:08 AM

Quote:

Today at 14:07 sabret00the said this in Post #6
couldn't this be done with just a temple mod?
No, because $browsers won?t work in forumdisplay_threadlist without hacking. ;)

Kars

Boofo 03-27-2003 11:10 AM

Quote:

Today at 07:07 AM Kars10 said this in Post #7
Glad you like it Boofo!
Cool addition with the Online Users.
If you want i can update the first Post with your addon (credits 2u).

Kars :)

I'll pm the file with the update to you. ;)

Boofo 03-27-2003 11:11 AM

Quote:

Today at 07:07 AM sabret00the said this in Post #6
couldn't this be done with just a temple mod?
That was tried over at vbt.com and did not work if you had subforums.

Kars10 03-27-2003 11:45 AM

Ok, updatet Txt-File in Post#1 and the Screenshot in Post#2 with the Usercount-Addon by Boofo. Thanks Boofo!

To update from 1.0 simple replace the the code from the old instructions with the code from the new instruction and make the templatechange in forumdisplay_threadlist

Kars :)

Dean C 03-27-2003 03:22 PM

Nice hack karsten :p

- miSt

Kars10 03-27-2003 03:28 PM

Thanks Mist!! :)

mharmon 03-29-2003 04:22 PM

Great hack my friend. This makes it look great! Thanks again. :)

Boofo 03-29-2003 04:35 PM

Karsten, don't you think it is a little late for that avatar? ;)

Bison 03-29-2003 05:00 PM

Yup - YUP!

Probably a last ploy to "stop the violence" message!

One question ... I have this users browsing hack displayed in the forum home page, is this *literally* the same code, but used to show who's browsing under the main category (forum Display)?

Boofo 03-29-2003 05:02 PM

That's right. My own adaptation of it. ;)

Kars10 03-29-2003 07:59 PM

@ mharmon, glad you like it!!
@ Boofo, i am against war at all, not only the Iraq-War! ;)

Kars

Kevorkian 03-29-2003 09:28 PM

Quote:

Today at 09:59 PM Kars10 said this in Post #18
@ mharmon, glad you like it!!
@ Boofo, i am against war at all, not only the Iraq-War! ;)

Kars


entry this week i will install it :P

Kars :bored: what's matter? check pm box :(

Hostc 04-11-2003 05:42 PM

Sweet thanks :D

Have it on my forum now!

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??

Destiny Islands 10-24-2003 02:58 PM

Hey this hack is great! I just installed it to my vB 2.3.2 with no problems! Thanks :)

[high]* Destiny Islands clicks installs.[/high]

VirtualHogwarts 11-29-2003 05:38 PM

/me clicks install works great! Thanks for the fix to that weird problem too!


All times are GMT. The time now is 04:47 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.01209 seconds
  • Memory Usage 1,787KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (32)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