Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Block - Users Online Details »»
Block - Users Online
Version: 1.4, by Lynne Lynne is offline
Developer Last Online: Oct 2022 Show Printable Version Email this Page

Category: vBulletin Forum Sideblocks - Version: 4.2.0 Rating:
Released: 01-22-2010 Last Update: 06-04-2012 Installs: 161
Uses Plugins Template Edits
Re-useable Code  
No support by the author.

This is a block for your forum sideblocks to show the Current Users Online.



You will need to Create a new Template (block_users_online), Cache the template, Create a new Block (Users Online), and then, optionally, remove the Currently Active Users list from the bottom of the page.

1.1 2010-06-12: Added in Most users ever online. Updated for 4.0.3.
1.2 2010-06-23: Updated to work for 4.0.4.
1.3 2011-11-17: Fixed template and block code for use in 4.1.8.
1.4 2012-06-05: Fixed template for use in 4.2.0.

Installation instructions for 4.2.0, 4.1.8 and pre-4.1.8 are included in the 1.4 download. Please make sure you use the correct Installation Instructions as both the block code and the template code are different depending on the version you are running. Read them carefully!!!

Download Now

File Type: zip Block - Users Online 1.4.zip (26.6 KB, 552 views)

Screenshots

File Type: png block-users online.png (21.5 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
BCP Hung

Comments
  #52  
Old 07-06-2010, 09:29 PM
SemperFideles's Avatar
SemperFideles SemperFideles is offline
 
Join Date: Oct 2006
Location: Northern VA
Posts: 223
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed 4.0.4 a couple of weeks ago and was working and now it's not displaying again.
Reply With Quote
  #53  
Old 07-08-2010, 10:59 AM
SemperFideles's Avatar
SemperFideles SemperFideles is offline
 
Join Date: Oct 2006
Location: Northern VA
Posts: 223
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lynne,

I figured out that the User's Online Block does, in fact, work. What troubled me is that I have the Everwhere Sidebars Mod installed. All my custom forum blocks display on other pages than FORUMHOME but the User's Online Block does not.

The Mod writer for Everywhere Sidebars noted this:
Quote:
Originally Posted by almannai View Post
That is a nice mod from Lynne.

It will not work because Lynne is restricting the mod for forumhome only in second step

PHP Code:
if (THIS_SCRIPT == 'forum')
{
    
$cache[] = 'block_users_online';

I think if you disable the if condition it will work. Better to ask Lynne
Regards, Khalid
I tried removing the conditional but it did not work. Do you have any idea why the User's Online Block won't work on other areas of the board other than FORUMHOME?
Reply With Quote
  #54  
Old 07-08-2010, 02:39 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That is just for caching the template, it won't stop it from being displayed (it will just give you an uncached template). You can try removing the other conditions I have around the code, but it could just be that you don't have other necessary information available to you on the other pages and you need to include other php scripts. You'll have to look in your error_logs probably if it isn't one of the conditions.
Reply With Quote
  #55  
Old 07-23-2010, 12:14 PM
Igel1 Igel1 is offline
 
Join Date: May 2010
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

vbulletin 4.0.5
There is a problem with the block "users online" and the Mod Everywhere Sidebar 4 VB4 https://vborg.vbsupport.ru/showthrea...233871&page=30 . If both are active there is an error message when you eg goes into the profile or FAQ, Who is Online
Fatal error: Call to undefined function fetch_online_status() in ...\includes\block\html.php(95): eval()'d code on line 93
Reply With Quote
  #56  
Old 07-23-2010, 02:11 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Igel1 View Post
vbulletin 4.0.5
There is a problem with the block "users online" and the Mod Everywhere Sidebar 4 VB4 https://vborg.vbsupport.ru/showthrea...233871&page=30 . If both are active there is an error message when you eg goes into the profile or FAQ, Who is Online
Fatal error: Call to undefined function fetch_online_status() in ...\includes\block\html.php(95): eval()'d code on line 93
It just needs you to require the file with that function since it isn't already included on those pages. Add this at the top of the code:

PHP Code:
require_once(DIR '/includes/functions_bigthree.php'); 
Reply With Quote
  #57  
Old 07-23-2010, 11:04 PM
Igel1 Igel1 is offline
 
Join Date: May 2010
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Lynne

I have entered above in the block code and now it works on all pages without error. Even if the Sidebar is disabled or uninstalled everything works without problems.
Reply With Quote
  #58  
Old 08-23-2010, 02:03 AM
neopets neopets is offline
 
Join Date: Jul 2008
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@lynne

Any reason stats and usernames would not be showing up in 4.0.6?

Reply With Quote
  #59  
Old 08-23-2010, 02:17 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by neopets View Post
@lynne

Any reason stats and usernames would not be showing up in 4.0.6?

This works fine on my 4.0.6 test forum, so you might want to double-check that you installated it correctly.
Reply With Quote
  #60  
Old 08-23-2010, 02:41 PM
neopets neopets is offline
 
Join Date: Jul 2008
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Managed to fix that issue

But when using sidebar everywhere, it'll display on a page once. then if I reload the page the block disappears.

Edit: Displays on forum home all the time. but on other pages displays once.. then is gone. Odd
Reply With Quote
  #61  
Old 08-25-2010, 04:56 PM
Marv Marv is offline
 
Join Date: Jun 2002
Location: Germany
Posts: 372
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by neopets View Post
Managed to fix that issue

But when using sidebar everywhere, it'll display on a page once. then if I reload the page the block disappears.

Edit: Displays on forum home all the time. but on other pages displays once.. then is gone. Odd
Almost same here, Lynne. Updated to 4.06 and the display on forum.php is like a lottery. I cannot tell what triggers the display cause there is no pattern which I could identify. Sometimes it works but most of the time it doesn?t. Could you afford some time to have a look into that 4.06 issue ? Would be really appreciated.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:26 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04930 seconds
  • Memory Usage 2,347KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete