Version: 1.4, by Lynne
Developer Last Online: Oct 2022
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!!!
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
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?
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.
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
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:
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.
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.