PDA

View Full Version : vBulletin CMS Widgets - Widget - Users Online


Pages : 1 [2] 3

goshalim
10-30-2010, 04:13 PM
Lynee
Iam talking about the very first part when you are saying

1) Create a new Template
Styles & Templates > select style (I like to do this in the MASTER STYLE) > Add Template
Title - vbcms_widget_execphp_activeusers
Template code -

HTML Code:

Where do i put the HTML code ( not the php ) my mistake

Lynne
10-30-2010, 06:44 PM
You put the html code into the template you just created.

maherl
11-03-2010, 06:38 PM
Hi Lynne,

I have followed your instructions and set up the template. It all works well when I go to the website for the first time, but then what happens when I refresh the CMS Home page is the widget disappears from the screen altogether. (www.superstox.co.uk). Give it a try...

I am using v4.0.8. Have you heard of this before?

Regards, Lee

Lynne
11-03-2010, 09:57 PM
Yes, this has already been posted about in the thread. It can happen on inactive sites (where only one user is online). If I recall, the fix was to remove the condition around the template code. (It's posted in here somewhere, I believe.)

Bergler
11-04-2010, 06:16 AM
Hi Lynne, quick question! Is there anyway to make this mod, work with this one? https://vborg.vbsupport.ru/showthread.php?t=252753

Cheers. :)

Lynne
11-04-2010, 01:50 PM
Of course there is. You'd just need to combine the code between the two in the widget configuration.

BattleBunker
11-28-2010, 11:29 AM
First post on vbulletin.org .. thanks for this. Works beautifully - installed!
Cheers
BB

soul86
12-01-2010, 08:39 AM
Excellent Job . Many Thanx

Martyn1983
12-01-2010, 07:51 PM
Can't seem to get this to display in 4.0.8 - any ideas?

Cheers,
Martyn

Lynne
12-01-2010, 11:31 PM
Most likely you didn't do the steps correctly. Reread and redo them and then see if you still have the same problem. It does work on my 4.0.8 test forum, so I know it should work for you unless you installed it incorrectly or you have another mod that is somehow making it not work.

Martyn1983
12-02-2010, 04:49 AM
Most likely you didn't do the steps correctly. Reread and redo them and then see if you still have the same problem. It does work on my 4.0.8 test forum, so I know it should work for you unless you installed it incorrectly or you have another mod that is somehow making it not work.

Worked fine before I did the upgrade, tried a reinstall of the widget last night and no joy. In both cases I followed the instructions provided.

Not being funny, but getting a bit peeved with all the suggestions that things breaking due to 4.0.8 is somehow user related, when its just code that should never have been released in the first place. But i digress. If there is a fix that I've simply missed please feel free to point me in the right direction.

Lynne
12-02-2010, 02:07 PM
Not being funny, but getting a bit peeved with all the suggestions that things breaking due to 4.0.8 is somehow user related, when its just code that should never have been released in the first place. But i digress. If there is a fix that I've simply missed please feel free to point me in the right direction.
If you did an upgrade and you had this template in the MASTER STYLE, then it's going to be gone because the upgrade will replace your MASTER STYLE. Did you check to make sure the template was still there for your style?

fluidswork
12-02-2010, 02:48 PM
Ya i think as a widget it will let us use the space that was previously used by this data..........

nick_n_ii
12-23-2010, 11:06 PM
Installed and set up but don't seem to work in 4.0.6

On the site we're running several themes. Seems this works great if I reset Home page to Default. Does that mean I need to add this to all the themes?


UPDATE
I had to enter the first part into each theme I wanted it to work in. Up and working now.

vglobal
12-25-2010, 08:13 PM
Installed. Work great on 4.1.0.

GamerPerfection
12-28-2010, 11:19 AM
There is a condition around the contents of the template:
<vb:if condition="$show['loggedinusers']">
the main content
</vb:if>

Just remove the condition and see if that fixes the issue. Otherwise, I don't know what to tell you because I have never been able to replicate this issue on any of my default vbulletin boards so there isn't anything I can do if I can't replicate it.

Thanks, that fixed my issue of it disappearing since I updated to your latest version. :up:

zaone
12-28-2010, 11:40 AM
Any idea when it will be ready for 4.1?

zaone
12-28-2010, 03:11 PM
I don't have vBulletin CMS in my admin cp. I'm using vbulletin 4.1 classic.

Lynne
12-28-2010, 03:11 PM
Any idea when it will be ready for 4.1?
Take a look at just this page in the thread....
Installed. Work great on 4.1.0.

zaone
12-28-2010, 03:18 PM
Yep, sorry I don't know where my head was at ..
Now getting back to the other question, I don't have vBulletin CMS, is this option available only for those with vbulletin publisher suite? If so, how could i use this in my vbulletin classic forum?

Lynne
12-28-2010, 03:26 PM
Yep, sorry I don't know where my head was at ..
Now getting back to the other question, I don't have vBulletin CMS, is this option available only for those with vbulletin publisher suite? If so, how could i use this in my vbulletin classic forum?
This is a widget, so yes, it is only available for the Suite version. If you want a forum version, then you should be looking at the Forum Blocks, not Widgets.

ChaFF
12-29-2010, 06:06 PM
Interesting - working fine but like when u refresh a page it dissapears than after couple of minutes you refresh again and you can see it and so on

Zweeper
01-04-2011, 09:56 PM
hello,

i have a question about this modification.
I installed it as a forum sidebar block, and it works pretty well! perfect! Thanks for that so far! :)


I installed now the everywhere sidebar mod (https://vborg.vbsupport.ru/showthread.php?p=2144134#post2144134 ) and i have some trouble with the online block.

It is still shown on the forumhome template. But when i change, for example, to a thread, the online user block disappears from the sidebar.

Can anybody help me with this issue? Any idea what's going wrong here?

I really appreciate every bit of help!



Regards

ThisIrksMe
01-07-2011, 01:09 AM
This is basically the same thing as the forum statistics. only this is for the entire site or just the CMS section?

Lynne
01-07-2011, 01:32 AM
This is basically the same thing as the forum statistics. only this is for the entire site or just the CMS section?
This is a Widget, so it's only for the CMS pages.

nhdriver4
01-15-2011, 03:45 AM
Thanks so much! Easily installed and worked as expected!

demonfatal
01-15-2011, 03:34 PM
Thx Lynne! :)

just77me
01-17-2011, 08:06 AM
Is a german version available? where can i change the text? thank you.

Lynne
01-17-2011, 05:58 PM
Is a german version available? where can i change the text? thank you.
Do you have the german language pack installed? This uses the same phrases as used on the forums.

ErnestA
01-31-2011, 11:36 PM
Nice mod Lynne. Simple to install and it just plain works!

GONUMBER6
02-11-2011, 02:57 AM
Does this widget not work with version 4.06? I have also redirected my vbCMS to be my home page and now it only seems to pop up when it wants to. So I decided to redo the whole thing and now it is not working at all. I also have multiple styles. Thank you for any assistance :)

traen
02-11-2011, 09:04 PM
Thanks this worked on 4.1.1

traen
02-11-2011, 10:04 PM
There is a condition around the contents of the template:
<vb:if condition="$show['loggedinusers']">
the main content
</vb:if>

Just remove the condition and see if that fixes the issue. Otherwise, I don't know what to tell you because I have never been able to replicate this issue on any of my default vbulletin boards so there isn't anything I can do if I can't replicate it.

This plugin seems to be working fine for logged in users, but will disappear for guests once they refresh the page on 4.1.1.

Edit: Nevermind it disappears for logged in users as well. Clearing the cms cache seems to fix it for a few minutes, and then it disappears again.

Edit to add: I lowered the widget cache setting to 0, seems to have fixed it at least for the time being.

GONUMBER6
02-12-2011, 04:52 PM
Yes my issue may have to do with my home page (CMS) set up via vbSEO? The forum block one works great, this one just shows up when it wants to.

Lynne
02-12-2011, 06:05 PM
Yes my issue may have to do with my home page (CMS) set up via vbSEO? The forum block one works great, this one just shows up when it wants to.
I don't have vbseo, so I really can't comment on how vbseo would affect this widget.

karkey
02-12-2011, 10:42 PM
VBSEO will not affect this, I have it installed and its running fine with SEO

MGP_Tech
02-16-2011, 07:59 PM
Forgive me if this has been asked before, I tried a search. Is there a way to color code the names by usergroup?

Lynne
02-16-2011, 08:05 PM
Forgive me if this has been asked before, I tried a search. Is there a way to color code the names by usergroup?
That is a default vbulletin function under usergroup manager > html markup (something like that). It has nothing to do with this modification.

OldSchoolDSL
02-17-2011, 09:25 PM
I tried adding this, but it maybe conflicting with something. I ended up with a full white page with only the following...

Fatal error: Call to a member function query_read_slave() on a non-object in /home/socially/public_html/forums/vboptimise/cachers/cacher_forumhomewol.php on line 35

I would suspect from the above, it is my vbOptimise plug-in.

Not any fault to your modification though.

Lynne
02-17-2011, 09:34 PM
I tried adding this, but it maybe conflicting with something. I ended up with a full white page with only the following...

Fatal error: Call to a member function query_read_slave() on a non-object in /home/socially/public_html/forums/vboptimise/cachers/cacher_forumhomewol.php on line 35I would suspect from the above, it is my vbOptimise plug-in.

Not any fault to your modification though.
Just quickly disable the other mod and see. If I recall, you need to sometimes rebuild something in that mod if you make changes.

OldSchoolDSL
02-17-2011, 09:39 PM
Just quickly disable the other mod and see. If I recall, you need to sometimes rebuild something in that mod if you make changes.

Yes, you have to re-build the cache. So I always do anytime I add a new modification.

Oddly your modification worked before I re-built the cache. It was only AFTER that things ended funny.

Disabling that modification did indeed correct the problem. Re-enabling it caused the problem.

So I can confirm where the error is.

Lynne
02-17-2011, 09:42 PM
Perhaps the modification interferes with the widget caching.

OldSchoolDSL
02-17-2011, 09:47 PM
Perhaps the modification interferes with the widget caching.

Kind of what I'm thinking.

I think I recall having a similar error before (also a widget using, PHP Direct Execution).

So I believe the error lies with that modification. I'll look into it further with that developer.

8thos
02-17-2011, 10:33 PM
Works great! I <3 u Lynne.

merk_aus
02-19-2011, 02:36 PM
Lynne,
Does this work with if conditionals? So on the widget on the front page can I put like Please login or register or once they logged in it displays this widget?

Lynne
02-19-2011, 05:29 PM
Lynne,
Does this work with if conditionals? So on the widget on the front page can I put like Please login or register or once they logged in it displays this widget?
You are welcome to modify it in anyway.

Nacho Vidal
02-20-2011, 06:15 PM
Hi Lynne,

This installed fine but in IE8 normal mode it doesn't display the user names properly as per the attachment.

In IE8 Compatibility Mode and Firefox it displays fine, but sooner or later I'm going to get some moans off my IE8 users.

Is there a fix for this or have I messed up somewhere? Am using vB 4.1.2 Publishing suite.

Thanks

Nach

Lynne
02-20-2011, 06:55 PM
Sorry, but I don't have IE so I don't know what the fix would be. You should check what is used in the Who's Online list on the forum.php page and apply that same CSS to the respective area in the widget.

Nacho Vidal
02-21-2011, 07:18 AM
Ok thanks Lynne.

rotor
02-25-2011, 09:07 PM
Hi,

Can only get it to show on the default vBulletin template and not on my site which is using a 3rd party skin.

Where and what do i have to add to get it to show??

Lynne
02-25-2011, 09:29 PM
Hi,

Can only get it to show on the default vBulletin template and not on my site which is using a 3rd party skin.

Where and what do i have to add to get it to show??
You need to add the template to your style.

boodog
02-28-2011, 01:02 AM
Works but then disappears. It can reappear in a few minutes after a refresh, but then it's gone again. Running 4.1.2 in the default style. I'd really like to get this to work. Suggestions?

Thanks, Lynnne!

traen
02-28-2011, 10:58 AM
Try lowering your widget cache setting to 0.

boodog
02-28-2011, 11:31 AM
I tried that. I changed it to 0 and to 1 and it still disappears after a page refresh :(

Lynne
02-28-2011, 02:31 PM
I tried that. I changed it to 0 and to 1 and it still disappears after a page refresh :(
try disabling all your other plugins (Plugin Manager page) and products (Manage Products page) except the product vBulletin CMS. I cannot reproduce this problem on my default 4.1.2 test board.

traen
02-28-2011, 02:55 PM
Did you clear your cms cache after your changed the setting?

boodog
02-28-2011, 03:14 PM
I have done all of the above suggestions. Cleared cache, changed cache setting, disabled plugins, re-enabled plugins, cleared cache between each recommended change. The bad news is that is still disappears with a refresh of the page. The good news is that it reappears if the next refresh is after 30-seconds. I'm grateful for your widget, Lynne, and I can live with the 30+ seconds refresh :)

Lynne
02-28-2011, 04:08 PM
I wish I knew what the issue was. I cannot reproduce it at all on my test site. Is it just this particular widget or any added php widget?

boodog
02-28-2011, 05:04 PM
Only this one, and it's the only php widget on my site.

Charlie98902
03-02-2011, 10:15 AM
Lynne when I installed this after upgrading to 4.1.2 it is just a clear box. I tried to refresh and clear cache to no avail. I used the code posted and not the download one if that helps as the download one is all run together so it is hard on my eyes to decipher when to separate.

Lynne
03-02-2011, 05:42 PM
I'm not sure what you mean about it being a clear box - the box is there but...??? How about a link to see it.

Also, double-check that you followed the instructions. This does work on my 4.1.2 test site.

Charlie98902
03-02-2011, 06:09 PM
Yes Lynne the box is there as it is suppose to but no names not even mine. Everything shows but the users. I would link it but I would have to reinstall it again for you to see. It looks just like that in your pic to show how it looks when installed but instead of names it is empty.

Maxi62
03-09-2011, 10:37 PM
Bug: Problem is users with char "-" in the name break line on the list!

stuartn
03-11-2011, 07:45 AM
Not working on my 4.1.2 either...I did think that maybe because my cms is in a folder and not root that this was the issue - but nope.

Lynne
03-11-2011, 03:40 PM
Not working on my 4.1.2 either...I did think that maybe because my cms is in a folder and not root that this was the issue - but nope.
If you are in a different directory, then you may need to change the path to the functions_bigthree.php file.

stuartn
03-13-2011, 01:23 AM
Found the issue was tapatalk - I removed the script calling from header include and it worked - so I placed the tapatalk into the footer.

All working now inc tapatalk.

Charlie98902
03-16-2011, 09:43 PM
Lynne I am always good to keep people like you informed on my issue(s). To let you know the mod I was using from here on showing spiders in the who's online was the issue and I am now using a different one along with re-installed this mod. All is well.

Lynne
03-16-2011, 09:48 PM
Glad you figured it out Charlie!

nick-harper
03-18-2011, 05:37 PM
I have installed this mod and sometimes it is there but then other times it isnt :(

bashy
03-19-2011, 02:39 PM
Thanks for this :)

OldSchoolDSL
03-21-2011, 11:56 PM
un-installed

Trying to better optimize my community.

Anyone know how to delete a template? vbcms_widget_execphp_activeusers

Lynne
03-22-2011, 12:04 AM
Anyone know how to delete a template? vbcms_widget_execphp_activeusers
Click revert in the style you created the template.

OldSchoolDSL
03-22-2011, 12:11 AM
Click revert in the style you created the template.

Thank you very much. I never knew that would also remove a template within a style.

CLSSY56
03-23-2011, 02:16 PM
I have this error, any ideas?

Parse error: syntax error, unexpected $end in /home/horizon/public_html/forums/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 150

Lynne
03-23-2011, 03:46 PM
I have this error, any ideas?

Parse error: syntax error, unexpected $end in /home/horizon/public_html/forums/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 150
Unexpected $end means you haven't uploaded a file completely/correctly.

CLSSY56
03-23-2011, 03:53 PM
I wonder what that could be... It was working before. I thought I would try my hand in adding a revolver map to show on that widget as well. When I did that it gave me the error, so I deleted that code. The error was still there so I copy and pasted your code back in there and the error is still there.

Lynne
03-23-2011, 04:30 PM
Some code has unexpectantly ended. So, maybe you forgot a } somewhere.

CLSSY56
03-23-2011, 05:07 PM
I have no clue... I know nothing about php.

require_once(DIR . '/includes/functions_bigthree.php');

$activeusers = '';
if ((vB::$vbulletin->options['displayloggedin'] == 1 OR vB::$vbulletin->options['displayloggedin'] == 2 OR (vB::$vbulletin->options['displayloggedin'] > 2 AND vB::$vbulletin->userinfo['userid'])) AND !$show['search_engine'])
{
$datecut = TIMENOW - vB::$vbulletin->options['cookietimeout'];
$numbervisible = 0;
$numberregistered = 0;
$numberguest = 0;

$hook_query_fields = $hook_query_joins = $hook_query_where = '';
($hook = vBulletinHook::fetch_hook('forumhome_loggedinuser_ query')) ? eval($hook) : false;

$forumusers = vB::$db->query_read_slave("
SELECT
user.username, (user.options & " . vB::$vbulletin->bf_misc_useroptions['invisible'] . ") AS invisible, user.usergroupid, user.lastvisit,
session.userid, session.inforum, session.lastactivity, session.badlocation,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid, infractiongroupid
$hook_query_fields
FROM " . TABLE_PREFIX . "session AS session
LEFT JOIN " . TABLE_PREFIX . "user AS user ON(user.userid = session.userid)
$hook_query_joins
WHERE session.lastactivity > $datecut
$hook_query_where
" . iif(vB::$vbulletin->options['displayloggedin'] == 1 OR vB::$vbulletin->options['displayloggedin'] == 3, "ORDER BY username ASC") . "
");

if (vB::$vbulletin->userinfo['userid'])
{
// fakes the user being online for an initial page view of index.php
vB::$vbulletin->userinfo['joingroupid'] = iif(vB::$vbulletin->userinfo['displaygroupid'], vB::$vbulletin->userinfo['displaygroupid'], vB::$vbulletin->userinfo['usergroupid']);
$userinfos = array
(
vB::$vbulletin->userinfo['userid'] => array
(
'userid' =>& vB::$vbulletin->userinfo['userid'],
'username' =>& vB::$vbulletin->userinfo['username'],
'invisible' =>& vB::$vbulletin->userinfo['invisible'],
'inforum' => 0,
'lastactivity' => TIMENOW,
'lastvisit' =>& vB::$vbulletin->userinfo['lastvisit'],
'usergroupid' =>& vB::$vbulletin->userinfo['usergroupid'],
'displaygroupid' =>& vB::$vbulletin->userinfo['displaygroupid'],
'infractiongroupid' =>& vB::$vbulletin->userinfo['infractiongroupid'],
)
);
}
else
{
$userinfos = array();
}
$inforum = array();

while ($loggedin = vB::$db->fetch_array($forumusers))
{
$userid = $loggedin['userid'];
if (!$userid)
{ // Guest
$numberguest++;
if (!isset($inforum["$loggedin[inforum]"]))
{
$inforum["$loggedin[inforum]"] = 0;
}
if (!$loggedin['badlocation'])
{
$inforum["$loggedin[inforum]"]++;
}
}
else if (empty($userinfos["$userid"]) OR ($userinfos["$userid"]['lastactivity'] < $loggedin['lastactivity']))
{
$userinfos["$userid"] = $loggedin;
}
}

if (!vB::$vbulletin->userinfo['userid'] AND $numberguest == 0)
{
$numberguest++;
}

$skipgroups = array(3,4);
foreach ($userinfos AS $userid => $loggedin)
{
if (in_array($loggedin['usergroupid'], $skipgroups))
{
$numberguest++;
}
else
{
$numberregistered++;
if ($userid != vB::$vbulletin->userinfo['userid'] AND !$loggedin['badlocation'])
{
if (!isset($inforum["$loggedin[inforum]"]))
{
$inforum["$loggedin[inforum]"] = 0;
}
$inforum["$loggedin[inforum]"]++;
}
fetch_musername($loggedin);

($hook = vBulletinHook::fetch_hook('forumhome_loggedinuser' )) ? eval($hook) : false;

if (fetch_online_status($loggedin))
{
$numbervisible++;
$show['comma_leader'] = ($activeusers != '');
$templater = vB_Template::create('forumhome_loggedinuser');
$templater->register('loggedin', $loggedin);
$activeusers .= $templater->render();
vB_Template::preRegister('vbcms_widget_execphp_act iveusers', array('activeusers' => $activeusers));
}
}
}

// memory saving
unset($userinfos, $loggedin);

vB::$db->free_result($forumusers);

$totalonline = $numberregistered + $numberguest;
$numberinvisible = $numberregistered - $numbervisible;

vB::$vbulletin->datastore->fetch(array('maxloggedin'));
if (vB::$vbulletin->maxloggedin === NULL)
{
vB::$vbulletin->maxloggedin = array();
}
if (intval(vB::$vbulletin->maxloggedin['maxonline']) <= $totalonline)
{
vB::$vbulletin->maxloggedin['maxonline'] = $totalonline;
vB::$vbulletin->maxloggedin['maxonlinedate'] = TIMENOW;
build_datastore('maxloggedin', serialize(vB::$vbulletin->maxloggedin), 1);
}

$recordusers = vb_number_format(vB::$vbulletin->maxloggedin['maxonline']);
$recorddate = vbdate(vB::$vbulletin->options['dateformat'], vB::$vbulletin->maxloggedin['maxonlinedate'], true);
$recordtime = vbdate(vB::$vbulletin->options['timeformat'], vB::$vbulletin->maxloggedin['maxonlinedate']);

$show['loggedinusers'] = true;

$statsarray = array('onlinestats' => $onlinestats,
'totalonline' => $totalonline,
'numberregistered' => $numberregistered,
'numberguest' => $numberguest,
'show' => $show,
'recordusers' => $recordusers,
'recorddate' => $recorddate,
'recordtime' => $recordtime,
);

vB_Template::preRegister('vbcms_widget_execphp_act iveusers', $statsarray);

Lynne
03-23-2011, 05:13 PM
I don't need to see the php code as it is in the first post in this thread. I will tell you that you are missing a } in it though. You did not copy it correctly.

CLSSY56
03-23-2011, 05:17 PM
Yep your right, } was not at the very end. Thanks!

YkudzA
03-24-2011, 12:22 PM
thx a lot ! installed !

Popa Andrei
04-07-2011, 08:25 AM
i have an conflict when vboptimize is active.

Fatal error: Call to a member function query_read_slave() on a non-object in /home/storm/public_html/forum/vboptimise/cachers/cacher_forumhomewol.php on line 35


EDIT: i solved the problem.Delleted the plugin that was managing the chace for the widget so now the cache is handled by the vboptimize.
Proof: www.stormzone.ro

YkudzA
04-07-2011, 10:00 AM
still error on your page

Charlie98902
04-07-2011, 03:32 PM
I was shocked after upgrading from 4.1.2 to 4.1.3 I expected to have to re-enter this information but didn't. I was happy as it was one less thing I had to deal with.

Gleedo
04-09-2011, 01:05 PM
Since users online are already on the Forum Home page, I'm not sure why you would want to redo the query to get all the names again and put it on the same page. But, I really don't know if it would work there since I haven't tried it.

The users that display in the 'currently active users' section in the bottom of the forum homepage no longer works after upgrading to 4.1.3. Have posted on vb forums but had no response. Have installed this in time being on homepage but it's nice to have on forum too.

Thanks for the mod.

Charlie98902
04-09-2011, 02:17 PM
Coding has to be wrong somewhere as it isn't doing this on my end. If you are using a spider display mod disable that as I had this issue and had to tweak mine so I can use this mod.

Igel1
06-09-2011, 05:47 PM
Hi Lynne,

first your widget has always worked with all VB updates for me.

But now I have a little problem,
I have updated from VB 4.1.1 to 4.1.3PL1-
The widget will still appear but the names of online users are not wrapped they are given one or two rows behind each other and run out of the widget.

This occurs only in IE8 but when I turn on compatibility view in IE8, the user name again displayed correctly.
The same problem I have also in block users online.

Perhaps you have an idea on what to do?

Excuse my English, is translated with Google.

Igel1

Lynne
06-10-2011, 02:06 AM
Hi Lynne,

first your widget has always worked with all VB updates for me.

But now I have a little problem,
I have updated from VB 4.1.1 to 4.1.3PL1-
The widget will still appear but the names of online users are not wrapped they are given one or two rows behind each other and run out of the widget.

This occurs only in IE8 but when I turn on compatibility view in IE8, the user name again displayed correctly.
The same problem I have also in block users online.

Perhaps you have an idea on what to do?

Excuse my English, is translated with Google.

Igel1
Unfortunately, I do not have IE and so I have no way to troubleshoot this. I do know that this sounds like a problem that was going on with the Currently Active Users list on the bottom of the forum home page and that was, I believe, a CSS issue. I can't remember if it is fixed now or not, but if it is, try comparing the CSS for the names on there to the CSS for the names in the widget.

doctorsexy
06-10-2011, 02:52 PM
Thanks..working with 4.1.3

Anopheles
06-14-2011, 08:25 PM
Workin with vBulletin 4.1.4 :up:

raulin
06-14-2011, 09:26 PM
<u>thanks</u>, I install

doctorsexy
08-22-2011, 10:34 AM
Installed again on 4.1.5 working smashin... thanks

markis13446
09-03-2011, 02:01 PM
can this be modded to not show who is online?

Lynne
09-03-2011, 02:50 PM
can this be modded to not show who is online?
You may mod it however you want. Just take out any code you don't want/need and remove anything you don't want/need from the template.

markis13446
09-03-2011, 11:57 PM
Thanks Lynne,

Let me rephrase, can you help with with scaling back the code? I don't have any php skills.

Thanks

Lynne
09-04-2011, 03:46 PM
Thanks Lynne,

Let me rephrase, can you help with with scaling back the code? I don't have any php skills.

Thanks
What exactly do you want the widget to look like instead? (It is a Users Online widget, so I'm not really picturing what you want if you don't want the online users to show.)

goxy63
10-07-2011, 01:32 AM
Hi
Just noticed one small "problem" after upgraded to VB4.1.7

My forum default language is not English, but English is an option on forums, and when someone chooses English as his default language I got this problem (pls check attached picture)

http://img403.imageshack.us/img403/269/widgetprob.gif

Marked area is not click able as it is when I choose my default language, its just grey not blue as before, giving right info tho

Any ideas?

Lynne
10-07-2011, 01:42 AM
Perhaps that phrase is different in your language versus what the phrase is like in English. It is the phrase itself that makes the link. So, if the link is missing, that is a problem with your phrase.

urulela
10-07-2011, 06:19 AM
with the update to 4.1.7 eliminated "vb: rawphrase there_are_x_online,"?

Lynne
10-07-2011, 07:38 PM
Yep, it does look like that happened. So, replace:
{vb:rawphrase there_are_x_online, {vb:raw totalonline}}
with:
{vb:rawphrase there_are_x_y_online_link, {vb:raw totalonline}, {vb:raw session.sessionurl_q}}

vanquish.securi
10-07-2011, 11:19 PM
Works great on vB 4.1.7. Easy to follow. Marked.

urulela
10-09-2011, 02:31 PM
Yep, it does look like that happened. So, replace:
{vb:rawphrase there_are_x_online, {vb:raw totalonline}}
with:
{vb:rawphrase there_are_x_y_online_link, {vb:raw totalonline}, {vb:raw session.sessionurl_q}}

Thank you :up:

GPOClan
10-14-2011, 10:29 AM
Great work, dude!
But I have a small problem: The widget disappears, when I refresh the page! What's wrong here?

Weetabix
10-19-2011, 10:49 AM
I don't think this has been asked in this thread (sorry if it has), is there a way to include birthdays and newest members in this widget?

OlijO
10-20-2011, 05:05 AM
Great work, dude!
But I have a small problem: The widget disappears, when I refresh the page! What's wrong here?
I have the same problem. (vB4.1.7 fresh install).

goxy63
10-20-2011, 10:34 AM
I don't think this has been asked in this thread (sorry if it has), is there a way to include birthdays and newest members in this widget?

You already got those widgets, I found them here on vb.org just search forums.
You cant get everything in one widget, I would not like such a widget;)

Micha66
10-21-2011, 04:10 PM
hi, is there a possibility to show how many users (also unregistered) where online today?

Lynne
10-21-2011, 05:19 PM
If you add in the code to do so, sure. Feel free to modify this however you want.

Micha66
10-21-2011, 09:20 PM
ok but i dont know how to do that

AcesGaming
10-23-2011, 11:06 PM
EDIT: My bad, I had done it to the original style. I got it to work.

Thank you very much for making this.

Cyburbia
10-29-2011, 09:40 PM
I have the same problem. (vB4.1.7 fresh install).

Checking in to say the same thing happens with me in 4.1.7. Reload the page, and the widget disappears. Clear the CMS cache, reload, and it reappears. Reload the page, and it vanishes again.

misericorde
11-13-2011, 04:35 PM
Hy Thank you

doctorsexy
11-16-2011, 03:42 PM
Hi.. just updated to 4.1.8 and ive lost the names of the users ... there not being displayed ..any ideas ...thanks....

goxy63
11-16-2011, 04:19 PM
Hi.. just updated to 4.1.8 and ive lost the names of the users ... there not being displayed ..any ideas ...thanks....

Same here, online users not displayed

Lynne
11-16-2011, 05:52 PM
You need to update the template.

Was:
<ol class="commalist" id="wgo_onlineusers_list">
{vb:raw activeusers}
</ol>
Change To:
<ol class="commalist" id="wgo_onlineusers_list">
<vb:each from="activeusers" value="loggedin">
<li>{vb:stylevar dirmark}<a class="username" href="{vb:link member, {vb:raw loggedin}}">{vb:raw loggedin.musername}</a>{vb:raw loggedin.invisiblemark}{vb:raw loggedin.buddymark}{vb:raw loggedin.comma}</li>
</vb:each>
</ol>

And in the widget...
Was:
foreach ($userinfos AS $userid => $loggedin)
{
$numberregistered++;
if ($userid != vB::$vbulletin->userinfo['userid'] AND !$loggedin['badlocation'])
{
if (!isset($inforum["$loggedin[inforum]"]))
{
$inforum["$loggedin[inforum]"] = 0;
}
$inforum["$loggedin[inforum]"]++;
}
fetch_musername($loggedin);

if (fetch_online_status($loggedin))
{
$numbervisible++;
$show['comma_leader'] = ($activeusers != '');
$templater = vB_Template::create('forumhome_loggedinuser');
$templater->register('loggedin', $loggedin);
$activeusers .= $templater->render();
vB_Template::preRegister('vbcms_widget_execphp_act iveusers', array('activeusers' => $activeusers));
}
}

Change to:
$activeusers = array();
foreach ($userinfos AS $userid => $loggedin)
{
$numberregistered++;
if ($userid != vB::$vbulletin->userinfo['userid'] AND !$loggedin['badlocation'])
{
if (!isset($inforum["$loggedin[inforum]"]))
{
$inforum["$loggedin[inforum]"] = 0;
}
$inforum["$loggedin[inforum]"]++;
}

fetch_musername($loggedin);
$loggedin['comma'] = ',';

if (fetch_online_status($loggedin))
{
$numbervisible++;
$activeusers[$numbervisible] = $loggedin;
}
}

// Last element
if ($numbervisible)
{
$activeusers[$numbervisible]['comma'] = '';
}

And find:
'recordtime' => $recordtime,
Change to:
'recordtime' => $recordtime,
'activeusers'=> $activeusers,
I think that should work. I've gotta run but will check this thread later and add it to the first post.

doctorsexy
11-16-2011, 06:47 PM
Lynne..sorry not working..it just Disappears ..with the update applied to it..

goxy63
11-16-2011, 06:51 PM
Same here, but as "Lynne" said ...will be updated in first post soon :)

Lynne
11-16-2011, 08:40 PM
Did you guys make the changes that I posted above? I tried those on my test site and they work fine (don't forget to clear the cache after making the changes).

sgbmad
11-17-2011, 11:49 AM
After make the changes for 4.1.8:

Parse error: syntax error, unexpected '}' in /home/*****/public_html/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 149

:(

Could you upload the complete widget code for 4.1.8? it would be easier :)

doctorsexy
11-17-2011, 02:07 PM
(don't forget to clear the cache after making the changes)

Ever since the update to 4.1.8 the clear cms cache buttons not there....

doctorsexy
11-17-2011, 02:29 PM
Its moved to under Maintenance.....:rolleyes::D

YukseLL
11-17-2011, 02:45 PM
After make the changes for 4.1.8:

Parse error: syntax error, unexpected '}' in /home/*****/public_html/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 149

:(

Could you upload the complete widget code for 4.1.8? it would be easier :)

I agree
I'm getting the same error

Lynne
11-17-2011, 04:58 PM
You had an extra } in your php code which was causing the issue.

This is the code for 4.1.8:

vbcms_widget_execphp_activeusers
<vb:if condition="$show['loggedinusers']">
<div class="cms_widget category_widget">
<div class="block">
<div class="cms_widget_header">
<h3><img src="{vb:stylevar imgdir_misc}/users_online.png" alt="{vb:rawphrase currently_active_users}" />{vb:rawphrase currently_active_users}</h3>
</div>
<div class="cms_widget_content widget_content">
<div>
<p>{vb:rawphrase there_are_x_online, {vb:raw totalonline}} <span class="shade">{vb:rawphrase x_members_and_y_guests, {vb:raw numberregistered}, {vb:raw numberguest}}</span></p>
<p>{vb:rawphrase most_users_ever_online_was_x_y_at_z, {vb:raw recordusers}, {vb:raw recorddate}, {vb:raw recordtime}}</p>
<ol class="commalist" id="wgo_onlineusers_list">
<vb:each from="activeusers" value="loggedin">
<li>{vb:stylevar dirmark}<a class="username" href="{vb:link member, {vb:raw loggedin}}">{vb:raw loggedin.musername}</a>{vb:raw loggedin.invisiblemark}{vb:raw loggedin.buddymark}{vb:raw loggedin.comma}</li>
</vb:each>
</ol>
</div>
</div>
</div>
</div>
</vb:if>

widget code:
require_once(DIR . '/includes/functions_bigthree.php');

$activeusers = '';
if ((vB::$vbulletin->options['displayloggedin'] == 1 OR vB::$vbulletin->options['displayloggedin'] == 2 OR (vB::$vbulletin->options['displayloggedin'] > 2 AND vB::$vbulletin->userinfo['userid'])) AND !$show['search_engine'])
{
$datecut = TIMENOW - vB::$vbulletin->options['cookietimeout'];
$numbervisible = 0;
$numberregistered = 0;
$numberguest = 0;

$hook_query_fields = $hook_query_joins = $hook_query_where = '';
($hook = vBulletinHook::fetch_hook('forumhome_loggedinuser_ query')) ? eval($hook) : false;

$forumusers = vB::$db->query_read_slave("
SELECT
user.username, (user.options & " . vB::$vbulletin->bf_misc_useroptions['invisible'] . ") AS invisible, user.usergroupid, user.lastvisit,
session.userid, session.inforum, session.lastactivity, session.badlocation,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid, infractiongroupid
$hook_query_fields
FROM " . TABLE_PREFIX . "session AS session
LEFT JOIN " . TABLE_PREFIX . "user AS user ON(user.userid = session.userid)
$hook_query_joins
WHERE session.lastactivity > $datecut
$hook_query_where
" . iif(vB::$vbulletin->options['displayloggedin'] == 1 OR vB::$vbulletin->options['displayloggedin'] == 3, "ORDER BY username ASC") . "
");

if (vB::$vbulletin->userinfo['userid'])
{
// fakes the user being online for an initial page view of index.php
vB::$vbulletin->userinfo['joingroupid'] = iif(vB::$vbulletin->userinfo['displaygroupid'], vB::$vbulletin->userinfo['displaygroupid'], vB::$vbulletin->userinfo['usergroupid']);
$userinfos = array
(
vB::$vbulletin->userinfo['userid'] => array
(
'userid' =>& vB::$vbulletin->userinfo['userid'],
'username' =>& vB::$vbulletin->userinfo['username'],
'invisible' =>& vB::$vbulletin->userinfo['invisible'],
'inforum' => 0,
'lastactivity' => TIMENOW,
'lastvisit' =>& vB::$vbulletin->userinfo['lastvisit'],
'usergroupid' =>& vB::$vbulletin->userinfo['usergroupid'],
'displaygroupid' =>& vB::$vbulletin->userinfo['displaygroupid'],
'infractiongroupid' =>& vB::$vbulletin->userinfo['infractiongroupid'],
)
);
}
else
{
$userinfos = array();
}
$inforum = array();

while ($loggedin = vB::$db->fetch_array($forumusers))
{
$userid = $loggedin['userid'];
if (!$userid)
{ // Guest
$numberguest++;
if (!isset($inforum["$loggedin[inforum]"]))
{
$inforum["$loggedin[inforum]"] = 0;
}
if (!$loggedin['badlocation'])
{
$inforum["$loggedin[inforum]"]++;
}
}
else if (empty($userinfos["$userid"]) OR ($userinfos["$userid"]['lastactivity'] < $loggedin['lastactivity']))
{
$userinfos["$userid"] = $loggedin;
}
}

if (!vB::$vbulletin->userinfo['userid'] AND $numberguest == 0)
{
$numberguest++;
}

$activeusers = array();
foreach ($userinfos AS $userid => $loggedin)
{
$numberregistered++;
if ($userid != vB::$vbulletin->userinfo['userid'] AND !$loggedin['badlocation'])
{
if (!isset($inforum["$loggedin[inforum]"]))
{
$inforum["$loggedin[inforum]"] = 0;
}
$inforum["$loggedin[inforum]"]++;
}

fetch_musername($loggedin);
$loggedin['comma'] = ',';

if (fetch_online_status($loggedin))
{
$numbervisible++;
$activeusers[$numbervisible] = $loggedin;
}
}

// Last element
if ($numbervisible)
{
$activeusers[$numbervisible]['comma'] = '';
}

// memory saving
unset($userinfos, $loggedin);

vB::$db->free_result($forumusers);

$totalonline = $numberregistered + $numberguest;
$numberinvisible = $numberregistered - $numbervisible;

vB::$vbulletin->datastore->fetch(array('maxloggedin'));
if (vB::$vbulletin->maxloggedin === NULL)
{
vB::$vbulletin->maxloggedin = array();
}
if (intval(vB::$vbulletin->maxloggedin['maxonline']) <= $totalonline)
{
vB::$vbulletin->maxloggedin['maxonline'] = $totalonline;
vB::$vbulletin->maxloggedin['maxonlinedate'] = TIMENOW;
build_datastore('maxloggedin', serialize(vB::$vbulletin->maxloggedin), 1);
}

$recordusers = vb_number_format(vB::$vbulletin->maxloggedin['maxonline']);
$recorddate = vbdate(vB::$vbulletin->options['dateformat'], vB::$vbulletin->maxloggedin['maxonlinedate'], true);
$recordtime = vbdate(vB::$vbulletin->options['timeformat'], vB::$vbulletin->maxloggedin['maxonlinedate']);

$show['loggedinusers'] = true;

$statsarray = array('onlinestats' => $onlinestats,
'totalonline' => $totalonline,
'numberregistered' => $numberregistered,
'numberguest' => $numberguest,
'show' => $show,
'recordusers' => $recordusers,
'recorddate' => $recorddate,
'recordtime' => $recordtime,
'activeusers'=> $activeusers,
);

vB_Template::preRegister('vbcms_widget_execphp_act iveusers', $statsarray);
}

toxin
11-17-2011, 05:12 PM
The new widget code and tempate code is working for me on 4.1.8

- Thanks Lynne

(has the button for "clear cms cache" been removed from 4.1.8?)

- found it: Its moved to the Maintenance Section, and is called Clear System Cache.

sgbmad
11-17-2011, 05:24 PM
You had an extra } in your php code which was causing the issue.

This is the code for 4.1.8:

vbcms_widget_execphp_activeusers
<vb:if condition="$show['loggedinusers']">
<div class="cms_widget category_widget">
<div class="block">
<div class="cms_widget_header">
<h3><img src="{vb:stylevar imgdir_misc}/users_online.png" alt="{vb:rawphrase currently_active_users}" />{vb:rawphrase currently_active_users}</h3>
</div>
<div class="cms_widget_content widget_content">
<div>
<p>{vb:rawphrase there_are_x_online, {vb:raw totalonline}} <span class="shade">{vb:rawphrase x_members_and_y_guests, {vb:raw numberregistered}, {vb:raw numberguest}}</span></p>
<p>{vb:rawphrase most_users_ever_online_was_x_y_at_z, {vb:raw recordusers}, {vb:raw recorddate}, {vb:raw recordtime}}</p>
<ol class="commalist" id="wgo_onlineusers_list">
<vb:each from="activeusers" value="loggedin">
<li>{vb:stylevar dirmark}<a class="username" href="{vb:link member, {vb:raw loggedin}}">{vb:raw loggedin.musername}</a>{vb:raw loggedin.invisiblemark}{vb:raw loggedin.buddymark}{vb:raw loggedin.comma}</li>
</vb:each>
</ol>
</div>
</div>
</div>
</div>
</vb:if>

widget code:
require_once(DIR . '/includes/functions_bigthree.php');

$activeusers = '';
if ((vB::$vbulletin->options['displayloggedin'] == 1 OR vB::$vbulletin->options['displayloggedin'] == 2 OR (vB::$vbulletin->options['displayloggedin'] > 2 AND vB::$vbulletin->userinfo['userid'])) AND !$show['search_engine'])
{
$datecut = TIMENOW - vB::$vbulletin->options['cookietimeout'];
$numbervisible = 0;
$numberregistered = 0;
$numberguest = 0;

$hook_query_fields = $hook_query_joins = $hook_query_where = '';
($hook = vBulletinHook::fetch_hook('forumhome_loggedinuser_ query')) ? eval($hook) : false;

$forumusers = vB::$db->query_read_slave("
SELECT
user.username, (user.options & " . vB::$vbulletin->bf_misc_useroptions['invisible'] . ") AS invisible, user.usergroupid, user.lastvisit,
session.userid, session.inforum, session.lastactivity, session.badlocation,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid, infractiongroupid
$hook_query_fields
FROM " . TABLE_PREFIX . "session AS session
LEFT JOIN " . TABLE_PREFIX . "user AS user ON(user.userid = session.userid)
$hook_query_joins
WHERE session.lastactivity > $datecut
$hook_query_where
" . iif(vB::$vbulletin->options['displayloggedin'] == 1 OR vB::$vbulletin->options['displayloggedin'] == 3, "ORDER BY username ASC") . "
");

if (vB::$vbulletin->userinfo['userid'])
{
// fakes the user being online for an initial page view of index.php
vB::$vbulletin->userinfo['joingroupid'] = iif(vB::$vbulletin->userinfo['displaygroupid'], vB::$vbulletin->userinfo['displaygroupid'], vB::$vbulletin->userinfo['usergroupid']);
$userinfos = array
(
vB::$vbulletin->userinfo['userid'] => array
(
'userid' =>& vB::$vbulletin->userinfo['userid'],
'username' =>& vB::$vbulletin->userinfo['username'],
'invisible' =>& vB::$vbulletin->userinfo['invisible'],
'inforum' => 0,
'lastactivity' => TIMENOW,
'lastvisit' =>& vB::$vbulletin->userinfo['lastvisit'],
'usergroupid' =>& vB::$vbulletin->userinfo['usergroupid'],
'displaygroupid' =>& vB::$vbulletin->userinfo['displaygroupid'],
'infractiongroupid' =>& vB::$vbulletin->userinfo['infractiongroupid'],
)
);
}
else
{
$userinfos = array();
}
$inforum = array();

while ($loggedin = vB::$db->fetch_array($forumusers))
{
$userid = $loggedin['userid'];
if (!$userid)
{ // Guest
$numberguest++;
if (!isset($inforum["$loggedin[inforum]"]))
{
$inforum["$loggedin[inforum]"] = 0;
}
if (!$loggedin['badlocation'])
{
$inforum["$loggedin[inforum]"]++;
}
}
else if (empty($userinfos["$userid"]) OR ($userinfos["$userid"]['lastactivity'] < $loggedin['lastactivity']))
{
$userinfos["$userid"] = $loggedin;
}
}

if (!vB::$vbulletin->userinfo['userid'] AND $numberguest == 0)
{
$numberguest++;
}

$activeusers = array();
foreach ($userinfos AS $userid => $loggedin)
{
$numberregistered++;
if ($userid != vB::$vbulletin->userinfo['userid'] AND !$loggedin['badlocation'])
{
if (!isset($inforum["$loggedin[inforum]"]))
{
$inforum["$loggedin[inforum]"] = 0;
}
$inforum["$loggedin[inforum]"]++;
}

fetch_musername($loggedin);
$loggedin['comma'] = ',';

if (fetch_online_status($loggedin))
{
$numbervisible++;
$activeusers[$numbervisible] = $loggedin;
}
}

// Last element
if ($numbervisible)
{
$activeusers[$numbervisible]['comma'] = '';
}

// memory saving
unset($userinfos, $loggedin);

vB::$db->free_result($forumusers);

$totalonline = $numberregistered + $numberguest;
$numberinvisible = $numberregistered - $numbervisible;

vB::$vbulletin->datastore->fetch(array('maxloggedin'));
if (vB::$vbulletin->maxloggedin === NULL)
{
vB::$vbulletin->maxloggedin = array();
}
if (intval(vB::$vbulletin->maxloggedin['maxonline']) <= $totalonline)
{
vB::$vbulletin->maxloggedin['maxonline'] = $totalonline;
vB::$vbulletin->maxloggedin['maxonlinedate'] = TIMENOW;
build_datastore('maxloggedin', serialize(vB::$vbulletin->maxloggedin), 1);
}

$recordusers = vb_number_format(vB::$vbulletin->maxloggedin['maxonline']);
$recorddate = vbdate(vB::$vbulletin->options['dateformat'], vB::$vbulletin->maxloggedin['maxonlinedate'], true);
$recordtime = vbdate(vB::$vbulletin->options['timeformat'], vB::$vbulletin->maxloggedin['maxonlinedate']);

$show['loggedinusers'] = true;

$statsarray = array('onlinestats' => $onlinestats,
'totalonline' => $totalonline,
'numberregistered' => $numberregistered,
'numberguest' => $numberguest,
'show' => $show,
'recordusers' => $recordusers,
'recorddate' => $recorddate,
'recordtime' => $recordtime,
'activeusers'=> $activeusers,
);

vB_Template::preRegister('vbcms_widget_execphp_act iveusers', $statsarray);
}



I use the new code and clear cache but show "Array" word:

https://vborg.vbsupport.ru/

What's wrong?

doctorsexy
11-17-2011, 05:26 PM
Working on 4.1.8 + the 4.1.7 update as well ...thanks again Lynne

CoZmicShReddeR
11-17-2011, 11:45 PM
Thanks for thee update Lynne!;)

Robru
11-18-2011, 06:54 AM
Thank you, works great!! :)

sgbmad
11-18-2011, 07:35 AM
Rewrite the widget and template and finally works.

Thanks Lynne.

goxy63
11-18-2011, 01:44 PM
Dear "Lynne", if I may ask here...:

This mod which is originally yours is not working with latest version, so can you please post there what we should look into to make it work, or how to make it work
https://vborg.vbsupport.ru/showthread.php?p=2268918#post2268918

Thanks

ps
Guy who was taking care of this mod is not here since June or something like that so...

Lynne
11-18-2011, 05:04 PM
Dear "Lynne", if I may ask here...:

This mod which is originally yours is not working with latest version, so can you please post there what we should look into to make it work, or how to make it work
https://vborg.vbsupport.ru/showthread.php?p=2268918#post2268918

Thanks

ps
Guy who was taking care of this mod is not here since June or something like that so...
That is not my modification so I am not allowed to go make changes to it. He put me down on there as a supporter because I helped him to write the code originally.

Bergler
11-19-2011, 08:21 PM
I use the new code and clear cache but show "Array" word:

http://img51.imageshack.us/img51/5430/6fb45ac9ebeb4875986d2cb.png

What's wrong?

I have the same problem,

jack-d
11-19-2011, 11:41 PM
Checking in to say the same thing happens with me in 4.1.7. Reload the page, and the widget disappears. Clear the CMS cache, reload, and it reappears. Reload the page, and it vanishes again.



I had this problem on 417 and now the same thing on 418.

First it's there and then it's gone.

Any ideas as to why.

Thanks

Robru
11-20-2011, 09:44 AM
I had this problem on 417 and now the same thing on 418.

First it's there and then it's gone.

Any ideas as to why.

Thanks
The same problem here with 4.1.8 ;)

Droptop
11-21-2011, 03:26 AM
Hi Lynne, I am getting double commas after each username since the updated code. Any ideas? Thanks

Lynne
11-21-2011, 03:32 AM
Are you testing this on a default style? Commas used to be added by CSS, so if you haven't updated your CSS, it may be getting added twice.

Droptop
11-21-2011, 03:35 AM
Are you testing this on a default style? Commas used to be added by CSS, so if you haven't updated your CSS, it may be getting added twice.

No it is a custom style, I just checked on default style and no double commas.

Lynne
11-21-2011, 04:16 PM
No it is a custom style, I just checked on default style and no double commas.
Then you should check your CSS for your custom style since that is most likely the issue (just use firebug and you should find it).

Bergler
11-21-2011, 07:28 PM
Then you should check your CSS for your custom style since that is most likely the issue (just use firebug and you should find it).

I have only changed the colors of my style. It worked before the upgrade

jack-d
11-22-2011, 12:05 AM
I had this problem on 417 and now the same thing on 418.

First it's there and then it's gone.

Any ideas as to why.

Thanks

The same problem here with 4.1.8 ;)


Oh well seems a few have this problem and not one word as to why.

Great widget if it worked.

UNINSTALLED.

Lynne
11-22-2011, 02:02 AM
I have only changed the colors of my style. It worked before the upgrade
No changes at all to any of the .css templates you have.

Oh well seems a few have this problem and not one word as to why.

Great widget if it worked.

UNINSTALLED.
This has already been covered before. I see no reason to go through the thread and re-quote it all when you can do that also. I didn't release this to get install points, so it doesn't hurt me if you uninstall it. In fact, it is probably the best thing you can do if it doesn't work for you.

jack-d
11-22-2011, 02:59 AM
No changes at all to any of the .css templates you have.


This has already been covered before. I see no reason to go through the thread and re-quote it all when you can do that also. I didn't release this to get install points, so it doesn't hurt me if you uninstall it. In fact, it is probably the best thing you can do if it doesn't work for you.


I read through every post twice so if I missed it I apologize. The only thing I saw was the same question as I had with no answer.

That would be the ONLY reason I posted this question about it.

haincha
11-22-2011, 10:33 AM
Ignore... I found what I was looking for. Thanks!

urulela
11-23-2011, 05:51 PM
is again missing the phrase there_are_x_online??

goxy63
11-23-2011, 11:01 PM
is again missing the phrase there_are_x_online??

read page 24, you already did that before :)

Bergler
11-27-2011, 01:18 AM
No changes at all to any of the .css templates you have.


All I have done is adjust the stylevars and ad some mods.

urulela
11-27-2011, 11:33 AM
...

Helmut71
11-27-2011, 02:26 PM
Hi

I have replaced the code of the template and the widget as given here (https://vborg.vbsupport.ru/showpost.php?p=2268938&postcount=373) it did work, but the Link to "members online" is missing.

Did I miss something?
Any help appreciated ^^

Lynne
11-27-2011, 03:59 PM
Hi

I have replaced the dode of the template and the widget as given here (https://vborg.vbsupport.ru/showpost.php?p=2268938&postcount=373) it did work, but the Link to "members online" is missing.

Did I miss something?
Any help appreciated ^^
In the template, replace:
{vb:rawphrase there_are_x_online, {vb:raw totalonline}}with this:
{vb:rawphrase there_are_x_y_online_link, {vb:raw totalonline}, {vb:raw session.sessionurl_q}}

Sorry about that. I fixed it in the download instructions.

Helmut71
11-27-2011, 07:40 PM
thanks a lot Lynne - works perfect with 4.1.8

urulela
11-28-2011, 09:52 AM
In the template, replace:
{vb:rawphrase there_are_x_online, {vb:raw totalonline}}with this:
{vb:rawphrase there_are_x_y_online_link, {vb:raw totalonline}, {vb:raw session.sessionurl_q}}

Sorry about that. I fixed it in the download instructions.


When I click on the link for "online users", the page is incorrect
http://www.xxx.it/online.php [ARG: 2% 20UNDEFINED]:(

edit: no it's ok, thanks

dune3000
12-01-2011, 02:29 PM
Great work !!

Have question how I can remove from this widget following line:
Most users ever online was 3,315, 04-13-2008 at 12:37 PM.
I dont waht to have that information in this widget.

Thank you,

Lynne
12-01-2011, 04:47 PM
Just look for, and remove, the line that references the phrase "most_users_ever_online_was_x_y_at_z" in the template.

dune3000
12-01-2011, 06:03 PM
Thank you.. I removed <p>{vb:rawphrase most_users_ever_online_was_x_y_at_z, {vb:raw recordusers}, {vb:raw recorddate}, {vb:raw recordtime}}</p>

working fine :)

marinelife
12-06-2011, 02:29 AM
I am getting this after setting it up:
Parse error: syntax error, unexpected T_STRING in /home/jmarinel/public_html/saltgeeks.com/forums/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 154

Lynne
12-06-2011, 03:32 AM
Then you set it up incorrectly or another modification is conflicting with it.

marinelife
12-06-2011, 04:22 PM
hmm, I had it before and just changed the codes. Anything else need changed?

Lynne
12-06-2011, 04:40 PM
Just the widget code and template code where changed. Make sure you edited the widget code correctly.

Robru
12-06-2011, 05:02 PM
Work correctly with 4.1.8

marinelife
12-06-2011, 05:05 PM
Ok I removed and re-added everything, it works now but does not show names up users online.

Merjawy
12-28-2011, 11:13 PM
Ok I removed and re-added everything, it works now but does not show names up users online.


First thanks Lynne it fixed my issue like this one above..

I had the same issue and the template looked the same but when I deleted the template and redid it with the latest update from Lynne's code, it worked well and now it shows the names of online users.

I hope that helps

doctorsexy
01-03-2012, 05:11 PM
Lynne could this be made to show avatars aswell...thanks

Lynne
01-03-2012, 05:52 PM
Lynne could this be made to show avatars aswell...thanks
Of course, but you would need to add the code to create the avatars and then modify the template to display them.

skokarl
01-04-2012, 11:23 AM
many thanks, perfect with 4.1.9

zyiad
01-04-2012, 11:34 AM
thanks

K4GAP
01-07-2012, 02:25 AM
Installation instructions for 4.1.8 and pre-4.1.8 are included in the 1.3 download.


There is no 1.3

Lynne
01-07-2012, 04:56 AM
There is no 1.3
I released 1.4 a bit later and got rid of 1.3

Successfulsteps
01-07-2012, 05:08 AM
I tried installing this on 4.1.9 and it's not showing up. I followed everything twice in the instructions, but one thing. I don't know how to cache a template. Where is this at? I have searched for an answer on both vb forums to no avail. I had hoped since reading this thread and seeing some posts it would work without doing that, since knowing how seems to allude me. But no go.

Any help is great appreciated!

Lynne, I love your mods! I just wish I could get this one to show up. Not your fault though, it's my limited knowledge.

I messed up at first and thought that putting the text you had in the config, was the last info, so I put it all in, from that point on, putting in all your instructions for pre 4.1.8 too, lol. So I know it's in the layout right, as I got an error for doing that. I went back and corrected that. I know kind of dumb on my part. But I can't read coding anyway, so I didn't figure reading yours would be necessary. Sometimes it's easier for me when the code is in the instructions on the first post and I just copy and paste.

At any rate, if not caching the template is the problem, can someone tell me how to do that?

Fready
01-07-2012, 01:33 PM
Lynne,

Tested it on 4.1.9 and it shows on the Home page, but when I leave the Home page to go into the Forums then return back to the Home page it's gone!!!
Vanishes...
Any ideas?

cws
01-10-2012, 02:38 PM
Same problem :(

Seems to me it may be related to widget recreation time.
May it is related to new method of "CMS-Cache refresh"?

cws
01-10-2012, 06:08 PM
Same problem :(

Seems to me it may be related to widget recreation time.
May it is related to new method of "CMS-Cache refresh"?

When deactivating caches for contents completely everything is ok, but there is told you should do this only for testing.
Because of this I'm interested in a solution for normal use.

Lynne
01-10-2012, 07:26 PM
I cannot duplicate the problem at all on my test site, so I can't really can't fix something I can't duplicate in the first place.

I have my cache time set to 5.

Do you guys have active sites where there is always someone online?

Successfulsteps
01-10-2012, 10:48 PM
I cannot duplicate the problem at all on my test site, so I can't really can't fix something I can't duplicate in the first place.

I have my cache time set to 5.

Do you guys have active sites where there is always someone online?

Lynne, where do you set that at? And yes, my forum always has someone online!

Lynne
01-10-2012, 11:51 PM
Set what? The cache time? It's on the Configure page.

Successfulsteps
01-11-2012, 01:38 AM
Set what? The cache time? It's on the Configure page.

Thanks Lynne, I didn't see that below the template name. (old age on the eyes, I am sorry) It's working perfectly in 4.1.9 now!

cws
01-11-2012, 01:47 AM
Sorry for my bad english. I'm using a german version so it is difficult to discribe the english version of vB.
Sorry, I do not mean the cache time in the widget configuration but in the vB configuration.
This is in "Server Settings and Optimization Options"
If cachhing ist disabled the widget shows always else it does not.

I tried with or without the plug-in from former versions, with and without TMS activated.

MySaltyreef
01-11-2012, 02:34 PM
i also have an issue on 4.1.9 even after the update

you can view on my homepage at the top right

www.mysaltyreef.com

Lynne
01-11-2012, 08:46 PM
i also have an issue on 4.1.9 even after the update

you can view on my homepage at the top right

www.mysaltyreef.com (http://www.mysaltyreef.com)
I see nothing on your home page except the ads.

Katoona
01-13-2012, 02:42 PM
It worked fine with 4.1.8, but with 4.1.9 I could only load the page some times.

When upgrading to 4.1.10. the Home page won't load at all. There is something in the Widget that has to be changed.

Lynne
01-13-2012, 05:47 PM
It worked fine with 4.1.8, but with 4.1.9 I could only load the page some times.

When upgrading to 4.1.10. the Home page won't load at all. There is something in the Widget that has to be changed.
I'd suggest switching to a default style and seeing if you still have this issue. It works just fine on my default 4.1.10 site.

Katoona
01-13-2012, 09:32 PM
Its a default 4.1.10 site with no Styles changes and default style, and no mods that can interfer with this mod.

Lynne
01-13-2012, 10:46 PM
Try removing the widget from your layout and see if you can see the CMS. If so, try reinstalling the widget making sure you are using the latest version.

Merjawy
01-13-2012, 11:13 PM
I have no issue with 4.1.10

Katoona
01-14-2012, 12:01 AM
Try removing the widget from your layout and see if you can see the CMS. If so, try reinstalling the widget making sure you are using the latest version.

I am using the latest version of the mod, and I see the CMS/Home page as soon as I remove the widget from the layout manager. I have tried a lot of different things, but no go with 4.1.10.

Since others have the mod working with 4.1.10 there has to be something with my VB installation or styles, and I will have to continue trying to find a conflict or whatever causing this.

jaffaman
01-14-2012, 03:25 PM
I have updated it and have no issue with 4.1.10 :)

vortodox
01-16-2012, 07:19 PM
I have a problem. I can see how many members there are, but I don't see list of members online.
How can I solve this problem?

vortodox
01-19-2012, 07:52 AM
BUMP! Any idea how to handle my problem?
www.bg-anime.com

Merjawy
01-19-2012, 08:20 AM
I have a problem. I can see how many members there are, but I don't see list of members online.
How can I solve this problem?

https://vborg.vbsupport.ru/showpost.php?p=2281775&postcount=411

charlesr
01-19-2012, 01:38 PM
Installed in 4.1.8 Thanks!

Toorak Times
01-28-2012, 04:01 PM
Parse error: syntax error, unexpected T_STRING in /home/toorak/public_html/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 152

Everything was going along marvellously Lynne, till I hit this. Great mod I reckon I was hoping to find this

Cheers

Mick

Lynne
01-28-2012, 04:14 PM
Parse error: syntax error, unexpected T_STRING in /home/toorak/public_html/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 152

Everything was going along marvellously Lynne, till I hit this. Great mod I reckon I was hoping to find this

Cheers

Mick
I would suggest going through the install instructions again very carefully.

Toorak Times
01-28-2012, 05:14 PM
I would suggest going through the install instructions again very carefully.


Ok Lynne, I have had a bit of success adding some other cool mods, I'll keep trying till I get it right and report back eh Cheers

dsantana
02-03-2012, 01:47 AM
Thanks Lynne... Worked like a champ even for this VB rookie!!!

dsantana
02-03-2012, 02:37 AM
Hey Lynne...

Kinda weird thing going on...

Show it shows up on my page..

When you click on the link to see what the users are doing and then go back to the main page it's gone... POOF!!! :confused:

deverill2010
02-19-2012, 01:41 PM
Is there a way for this to only show users from users groups I select with the usergroup ID. I.e admins, mods etc

To only show staff?

Lynne
02-20-2012, 04:52 PM
Is there a way for this to only show users from users groups I select with the usergroup ID. I.e admins, mods etc

To only show staff?
Sure, if you modify the query. Just add something to it to only grab users in usergroupid x,y, and z.

deverill2010
02-20-2012, 06:16 PM
Haha if only I knew how lol.

DoubleGlasses
02-26-2012, 04:23 PM
I just installed it using your instructions - worked perfectly! Thanks so much!

muratmunich
02-26-2012, 05:08 PM
Installed on vbtube.com (http://www.vbtube.com)

Thanks !

rbc1225
02-29-2012, 12:37 AM
Thank you Lynne. Works great on 4.1.10

Gholsie
03-06-2012, 03:19 AM
Upgraded to vbb 4.1.11 and this widget no longer works. Any ideas how to fix?

Lynne
03-06-2012, 10:40 PM
Upgraded to vbb 4.1.11 and this widget no longer works. Any ideas how to fix?
It works just fine on my default 4.1.11 test site. I'd suggest you reinstall it if it isn't working for you.

yesfans
03-08-2012, 12:13 AM
I used the 4.1.8 install instructions, working fine in 4.1.11 fine for me.

Gholsie
03-08-2012, 01:18 AM
Thanks guys, it works now with 4.1.11. I think I deleted the custom templates when I installed the new version and that's why it stopped working. I appreciate the hints.. :)

tbroush
05-12-2012, 02:04 AM
Im on 4.1.12 and is not working. The widget shows up blank.

Lynne
05-12-2012, 02:31 PM
Im on 4.1.12 and is not working. The widget shows up blank.
I'd suggest going through the instructions again carefully because this works just fine on my default 4.1.12 site.

rcull
06-19-2012, 03:17 AM
I just upgraded to 4.20 and tried installing this widget, all looks good, but it doesn't show on the page. Should be in left column. http://www.carscene.ca/index_2.php

Lynne
06-19-2012, 02:55 PM
Make sure the template exists in the style you are using.

alhidaya
06-22-2012, 10:09 PM
Hello,

Is that it's good for version 4.2.0? Or should there an update?

Lynne
06-23-2012, 02:36 PM
Hello,

Is that it's good for version 4.2.0? Or should there an update?
It works fine on my default 4.2.0 site.

squidstir
06-23-2012, 08:01 PM
I too installed this on my 4.2 site and it's there and then it's gone, then it's there and then it's gone but the other widgets on the page are always viewable?

squidstir
06-23-2012, 08:39 PM
Just needed to change the Cache refresh time in the widget configuration.

illkeyone
07-07-2012, 08:34 PM
Lynne, is it working for the latest vB4 (which is 4.2.0 pl2 atm)?
And, so I will install the 1.4 one, right?
I hope you see the topic soon :) Thanks and kind regards.

PS: Looong time no see about vBulletin, and wow, it has changed a lot :/ I'm not familiar with things anymore... Widgets? Huh. What are they? :D lol. Hehe :p

illkeyone
07-07-2012, 09:06 PM
Well, I just tried it, installed it and it works for the 4.2.0 PL2 without any problems, so far.

I'll keep posting reports, if I experience any problems. Everything went smooth and I didn't even needed to wait one second.

Thanks for the mod :)
Have a nice day, sir.

ar15dcm
07-08-2012, 04:33 PM
How can I change the icon at the top of the widget? Right now it is the purple PHP elephant.

Thanks,

Lynne
07-08-2012, 05:02 PM
How can I change the icon at the top of the widget? Right now it is the purple PHP elephant.

Thanks,
You would change that in the template.

ar15dcm
07-08-2012, 06:09 PM
After testing a little, no one is showing up as online. I double checked my steps and deleted and recreated both the template and widget.

Lynne
07-08-2012, 06:28 PM
What version of vB are you using and what version of this mod? And how about a link to see the problem.

ar15dcm
07-08-2012, 07:33 PM
vbulletin 4.2, 1.4 of the mod and RifleCompetition.com

Lynne
07-08-2012, 11:22 PM
That is not using my custom template. Please make sure you added the correct template name into the widget.

ar15dcm
07-09-2012, 01:36 AM
Thanks I didn't catch that. It is working now.

pureturk
07-24-2012, 11:12 AM
You will need to Create a new Template (vbcms_widget_execphp_activeusers), Cache the template, Create a new Widget (Users Online), Configure the Widget, and then finally add the Widget to your Layout (I am not including instructions for that, you should know how to add Widgets to Layouts).

What if I am a beginner in CMS and dont know. Now what?

nuggsy
07-24-2012, 04:53 PM
It works for me but everytime i refresh the page it disappears, until i go in to 'configure' again and press save. Any ideas?

Elenna
08-24-2012, 01:38 AM
This doesn't appear to be working with vB 4.2 (version 1.4 of the mod).

It displays the following:

3 members and 5 guests
Most users ever online was 39, 08/20/2012 at 08:11 PM.
Array

helwoe
09-02-2012, 04:09 PM
It works for me but everytime i refresh the page it disappears, until i go in to 'configure' again and press save. Any ideas?

Same here. Uninstalling

edit: hold the phone.. in the widget, dont "add" the code replace the code with what is already there. Working in 4.2!

The Boss66
09-18-2012, 02:24 PM
Hello, the widget works 100% but after about 2 minutes if I refresh the page it gives me a 500 internal error.

After I get the error I have to navigate to the forum and back to the CMS in order for it to get rid of the white page (500 error). I have increased the php memory limit to 256MB and it still does this.

Any help would be appreciated, thanks!

EDIT: I am using vBulltin 4.2 PL2

Lynne
09-18-2012, 04:23 PM
An Internal Server error is just that - a server error. You would need to look at your server logs in order to figure out what is going on.

Jpolola
09-27-2012, 03:39 AM
Give up! I Installed and uninstalled it 2 times at 4.2 PL2 with the same problem. Display and Undisplay when refresh.

New Joe
09-27-2012, 05:21 AM
Yes, it doesn't work on 4.2.0, same problems,

da prez
11-10-2012, 09:29 PM
Works fine on 4.2

No issues whatsoever.

I would click install, but as it stands it says 666 ... I wouldn't want to mess that up ;)

Derwin
04-07-2013, 02:19 PM
I'm using vb 4.2, and it shows up in the vba portal when using Firefox, but it does not show up when using any other browser.

Does anybody know what the problem could be, and how to fix it?

Judith2
04-22-2013, 11:45 PM
It will not run on 4.2 pl3. Will there be a fix for this version, soon?

Lynne
04-23-2013, 01:16 AM
I am running an unmodified version of 4.2.1 on my test site and it shows up just fine for me.

Judith2
04-24-2013, 07:10 PM
It shows up in my 4.2 test forum like this

Lynne
04-24-2013, 07:33 PM
Are you using version 1.4?

Judith2
04-24-2013, 09:14 PM
Yes, I'm using version 1.4

Judith2
04-28-2013, 11:46 PM
I've made ​​everything new again and now it works, thanks

Is there the possibility that the user names which are currently online, are displayed in the widget?

Lynne
04-29-2013, 12:46 AM
It should show the list of users that are online underneath the "Most users ever online..." line (assuming you have the setting turned on in AdminCP > Settings > Options > Forum Home Options > Display Users Online)

Judith2
04-29-2013, 03:04 PM
Display Users Online is on!

Lynne
04-29-2013, 04:32 PM
Can you post a link to your site so we can see the issue?

Judith2
04-29-2013, 08:07 PM
here it is!
http://www.animalhelpeurope.de/vbforum/content.php

Lynne
04-29-2013, 08:28 PM
I don't see it at all. Do you only allow logged in users to view it? Do you have a test login account?

Judith2
04-29-2013, 09:43 PM
Ah yes, sorry! I send the test login account in a pm.

BGObsession
06-08-2013, 02:47 PM
Lynne,
I am running version 4.2.0. I've had the same issue where it shows up correctly then disappears on going to another page and returning. I tried removing the conditional as you suggested but as Gomojoe said that results in no data showing up. What am I missing? This is a great mod if the disappearing issue can be resolved. I have read every post in this thread and if there's a fix I I'm too dense to have found it. Thanks in advance!

BGObsession
06-08-2013, 02:59 PM
Nevermind - it seems that setting the widget cache to 0 resolved the issue for me. Great little mod Lynne.

BGObsession
06-08-2013, 03:26 PM
Lynne - I do have one question. I want to change the widget header from 'Currently Active Users' to something shorter. Can you give specific directions on how to edit that (I know I have to edit a template but can't seem to get it to work?

Lynne
06-08-2013, 03:37 PM
Lynne - I do have one question. I want to change the widget header from 'Currently Active Users' to something shorter. Can you give specific directions on how to edit that (I know I have to edit a template but can't seem to get it to work?
Either change the phrase currently_active_users to say what you want instead, or edit the template and replace this text with what you want:
{vb:rawphrase currently_active_users}

BGObsession
06-08-2013, 11:40 PM
That did it - thanks Lynne! You're the bomb.

amazing-wings
04-10-2014, 12:10 PM
Great Job!
Thank you!

Version 1.4 works with vb 4.2.2P1

Daniel
10-12-2014, 08:09 AM
Still works in 4.2.2!