SimplePortal

Support => English Support => Topic started by: teos on January 04, 2013, 04:57:15 AM

Title: Who's online block problem
Post by: teos on January 04, 2013, 04:57:15 AM
SMF 2.0.3  default theme curve  SP 2.3.5

  My problem is alittle bit different.

I have "users online today" mod installed. I sse the output at the bottom of the forum page. (info center)

  But when enbaled in the block, it only shows logged in users at that time not today ..

uninstalled 2.0.2 of the mod and installed 2.0.3 of the mod but the problem is the same.
no today info displayed in thewhois online  block.

removed block after 2.0.3 installation and redefined again.  negative

Any idea ?
Title: Re: Who's online block problem
Post by: demlak on January 06, 2013, 02:55:11 AM
same here... and no log entrys

i found out.. in PortalBlocks.php at line 351 and 353 there is a reference to a file called
Subs-MembersOnlineToday.php

but the "Users Online Today"-mod installs a file called Subs-UsersOnlineToday.php

i tried to change the name in PortalBlocks.php.. but then the portal freaks out.. only blocks are shown that are loaded before the users online block.. everything else is not shown anymore

EDIT:
ok.. fixed it..
php error log showed me that there was a non existing function called..

how to get this mod working with simpel portal, open Sources/PortalBlocks.php and:
Code: (search) [Select]
if ($online_today && file_exists($sourcedir . '/Subs-MembersOnlineToday.php'))
{
require_once($sourcedir . '/Subs-MembersOnlineToday.php');
Code: (replace with) [Select]
if ($online_today && file_exists($sourcedir . '/Subs-UsersOnlineToday.php'))
{
require_once($sourcedir . '/Subs-UsersOnlineToday.php');

and also

Code: (search) [Select]
$stats += getMembersOnlineTodayStats($membersOnlineTodayOptions);
Code: (replace with) [Select]
$stats += getUsersOnlineTodayStats($membersOnlineTodayOptions);
Title: Re: Who's online block problem
Post by: demlak on January 07, 2013, 02:27:33 PM
ok.. there is a ugly scrollbar in this block, when there are to many users... how to get rid of this?

"overflow: hidden;"
as custom style in blockĀ“s properties does not work

changing    "overflow: auto;" to "hidden" in portal.css at .sp_online_flow deletes the scrollbar.. but its not possible to scroll anymore..  so this is just a makeshift.. no solution
Title: Re: Who's online block problem
Post by: demlak on January 08, 2013, 06:11:51 AM
ok.. for disabling scrollbars and still be able to scroll, there is a solution with javascript..
as im not a coder i will have many hours to find out to integrate this with simpleportal =)
but if anyone else wanna try before i do.. here is the solution: http://www.simplyeasy.cz/blog/2012/scrollable-textarea-without-scrollbar/
SimplePortal 2.3.8 © 2008-2024, SimplePortal