View Full Version : vBulletin CMS Widgets - Widget - Users Online
Lynne
12-17-2009, 10:00 PM
This is a widget for your CMS pages to show the Current Users Online.
https://vborg.vbsupport.ru/attachment.php?attachmentid=117785&stc=1&d=1275253720
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).
1.0 2009-12-17: initial release by Lynne at vbulletin.org (pre 4.0)
1.- 2010-01-07 - French translation included thanks to albibak (https://vborg.vbsupport.ru/member.php?u=29985) (version 1.0)
1.1 2010-05-30: Added in Most users ever online.
1.2 2010-10-22: Fixed template to use new classes and widget code to use new online users query/method. (4.0.8)
1.3 2011-11-17: Fixed template and widget code for use in 4.1.8.
1.4 2011-11-27: Quick fix in template to show link to online.php page. (4.1.8)
Installation instructions for 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 widget code and the template code are different depending on the version you are running. Read them carefully!!!
Charlie98902
12-17-2009, 11:31 PM
Thanks!
milsirhc
12-17-2009, 11:50 PM
Can this be used in the forum block too?
Lynne
12-17-2009, 11:56 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.
nightbloom
12-18-2009, 12:03 AM
WOW great idea!
yilmaz
12-18-2009, 01:49 AM
Cool idea! *Installed* - great mods you make
fourat
12-18-2009, 01:58 AM
Thank you Lynne
Nice work
blake247
12-18-2009, 02:34 AM
Prefect! Thank you!
shiqah
12-18-2009, 03:51 AM
thanks alot
Traiman
12-18-2009, 05:50 AM
thank you,nice
gator777
12-18-2009, 06:22 AM
Thanks Lynne, Great work! :D
ragtek
12-18-2009, 06:59 AM
hach, i thought you made "a real" widget, which just need to be uploaded and installed:( :P
bart6767
12-18-2009, 08:01 AM
Thanks
Good to see you got it done and thanks for all your hard work .
kevin2008
12-18-2009, 08:42 AM
thank, work perfectly in rc4
Vaupell
12-18-2009, 08:55 AM
sexy.. :D downloaded... installed..
Stromba
12-18-2009, 09:39 AM
mm i have try the steps and it dont works for me.
M3xital
12-18-2009, 09:47 AM
Thanks for sharing! :D
kisanjong
12-18-2009, 09:54 AM
Works Great in RC4 - Thanks
zbahadir
12-18-2009, 11:12 AM
Thanks Lynne :)
sebaldus
12-18-2009, 11:54 AM
THANKS LYNNE...:)
Sebaldus..
mondiuk
12-18-2009, 12:09 PM
Nice work than'x
Bitti
12-18-2009, 12:48 PM
uncached template forumhome_loggedinuser on cms
Lynne
12-18-2009, 01:45 PM
uncached template forumhome_loggedinuser on cms
I've added instructions to the first post on how to cache it.
hach, i thought you made "a real" widget, which just need to be uploaded and installed:( :P
As far as I know, there is no way to upload/download widgets - or at least not in my admin panel. That sure would be handy though. I suppose I could have just written the query to do it in the install instructions for a product - is that what you are suggesting?
Charlie98902
12-18-2009, 02:11 PM
Thanks Lynne painless as usual :D
Bitti
12-18-2009, 02:27 PM
Thanks
es-league.com
12-18-2009, 04:37 PM
great work again Lynne .. thank you :)
RadioErewan
12-18-2009, 09:59 PM
Just a stupid question. Is it possible to install widget from XML or it is not provided in vBulletin 4 engine? Have no problems with code modifications, but installing mods in vB was so easy compared to phpBB...
Vaupell
12-18-2009, 10:05 PM
Just a stupid question. Is it possible to install widget from XML or it is not provided in vBulletin 4 engine? Have no problems with code modifications, but installing mods in vB was so easy compared to phpBB...
its in the suggestion box allready over on vbulletin.com suggestions forums
to make it possible to install widgets via product system.
but currently it is not possible.
Go and keep the topic alive..
http://www.vbulletin.com/forum/showthread.php?331699-Import-export-widgets
Marka Ragnos
12-18-2009, 10:41 PM
Awesome! Works perfect thx.
Dr.osamA
12-19-2009, 08:41 AM
thank you,nice
installed
________
Anime lesbian (http://www.++++tube.com/categories/107/lesbian/videos/1)
Naxon
12-19-2009, 06:03 PM
It doesn't work for me... The widget is simply empty.
Charlie98902
12-19-2009, 06:06 PM
You didn't follow the directions then. I had this issue too till I redid it and followed the directions one by one.
Naxon
12-19-2009, 06:55 PM
You didn't follow the directions then. I had this issue too till I redid it and followed the directions one by one.
Ok, my bad, I forgot to change the template name for the widget...
Charlie98902
12-19-2009, 07:14 PM
LOL I did that too.
Jamieinnh
12-19-2009, 07:34 PM
Outstanding! Thanks for putting this together for us!
starman?
12-20-2009, 01:24 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.
I see your point Lynne but as a previous user of vBA it was great seeing the widget to the right without having to scroll to the bottom. If you disabled the Display Logged on Users? option from Forums Home Page Options in the AdminCP would this also disable your widget?
Lynne
12-20-2009, 04:36 PM
I see your point Lynne but as a previous user of vBA it was great seeing the widget to the right without having to scroll to the bottom. If you disabled the Display Logged on Users? option from Forums Home Page Options in the AdminCP would this also disable your widget?
Yes, it uses the same permissions that are used on the forum home page. If you have the user listing disabled for the forum home, then it won't show up on the cms either. You can simply change the plugin and template to not have that condition around them (or just set them at the top of the plugin to what you want them to be).
starman?
12-20-2009, 05:25 PM
Thanks very much.
syrus.xl
12-20-2009, 10:55 PM
Thanks Lynne - perfect and easy instructions! Nice one.. :)
Derekclarke
12-22-2009, 01:02 AM
Thanks.. I so wanted this
*Click's Install*
When I Input the Code for Wigit, I receive an Internal Server Error. This is on VB4.0.0 Gold
XXXT0
12-22-2009, 05:19 AM
Nice!! Thank You!
hendri
12-22-2009, 10:08 AM
thanks bro !
wacodep
12-22-2009, 11:50 AM
Nice. Should have been a standard widget.
Lynne
12-22-2009, 02:31 PM
Thanks.. I so wanted this
*Click's Install*
When I Input the Code for Wigit, I receive an Internal Server Error. This is on VB4.0.0 Gold
Double-check that you did everything correctly and only copy/pasted exactly what I have posted (no extra stuff got in).
iguano
12-22-2009, 04:41 PM
Installed
Thanks :)
bullet07
12-22-2009, 05:13 PM
Nice job installed.
Derekclarke
12-22-2009, 08:17 PM
I have found what i was Doing Wrong, and am no longer getting this Error.
However when i try to configure the Wigit, I Paste the 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;
$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++;
}
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));
}
}
// memory saving
unset($userinfos, $loggedin);
vB::$db->free_result($forumusers);
$totalonline = $numberregistered + $numberguest;
$numberinvisible = $numberregistered - $numbervisible;
$show['loggedinusers'] = true;
$statsarray = array('onlinestats' => $onlinestats,
'totalonline' => $totalonline,
'numberregistered' => $numberregistered,
'numberguest' => $numberguest,
'show' => $show,
);
vB_Template::preRegister('vbcms_widget_execphp_act iveusers', $statsarray);
}
Into the Top Section of the Popup Box, and change the template name to vbcms_widget_execphp_activeusers as Instructed and Save.
However it does NOT change the code in the main box, and all i get displayed it the Time.
Lynne
12-22-2009, 08:45 PM
What do you mean all you get displayed is the time? There is no time in this widget. Also, ask discussed previously, you must have this turned on for your forums page or you will not see it in your cms. You must also add it to your layout, as I stated in the instructions.
teamshultz
12-23-2009, 04:10 AM
Thanks so much for this great widget!
Is there a way to remove the comma after the last user? See attachment.
107976
Lynne
12-23-2009, 04:15 AM
Thanks so much for this great widget!
Is there a way to remove the comma after the last user? See attachment.
107976
You must have changed some css on your page because it doesn't do that using the default css.
Derekclarke
12-23-2009, 11:57 AM
The time is the Default code in the configure Box.
I am not sure why but it is Not Saving when i Click save. And it's not just this Mod. Found the same with another.
However if i clear the existing code and save it saves Blank.
So i am totally Confused
Forum Lover
12-23-2009, 01:27 PM
Installed
Thanks
Lynne
12-23-2009, 03:53 PM
The time is the Default code in the configure Box.
I am not sure why but it is Not Saving when i Click save. And it's not just this Mod. Found the same with another.
However if i clear the existing code and save it saves Blank.
So i am totally Confused
I would go post on vb.com for help. It sounds like an issue with your widgets. Perhaps you didn't upload all the files correctly? You can look in your error_logs (if you don't know where they are, ask your host) and see if anything shows up there.
Gleedo
12-23-2009, 03:58 PM
Very nice little widget - thanks very much :)
JamesGunner
12-24-2009, 08:15 AM
Im having abit trouble with this widget. I already re-did everything but it wont show on my front page. It shows fine on every other layout and page other than the front page. So if I add it to the News Layout it displays it but as soon as I add it to the main page layout it doesnt display on the main page.
I also checked the permissions like you messed on page 3. I have that enabled as well.
//edit:
The new CMS seems to be very tricky. I didnt notice that the front page was running on the vb4 default theme. Im using a custom theme that is set too default so I assumed that the CMS is automatically set to the default theme. I edited the Section to my custom theme and now its showing up.
kendo
12-25-2009, 02:17 AM
Is it possible to show the number of search spiders on as well as the number of guests and users? I'm sure I've seen this on a board somewhere, should have saved the link.
Lynne
12-25-2009, 03:10 AM
That is a modification. I'm not sure if the developer updated it for vB4. You may take the code and apply it to this mod, but I cannot go take the code to put it in this mod since it isn't code I wrote.
kendo
12-25-2009, 04:16 AM
OK, thanks!
Sophocles
12-25-2009, 09:52 AM
Thanks! Plugin worked perfectly and even those of us who are code/PhP challenged could understand it. I just finished my forum update and I learned a lot from this single experience.
works very well , Thanks
and merry x-mas
4thstar
12-26-2009, 09:43 AM
Hello everyone, i hope christmas went well.
I have a question please, is it possible to remove admin and mods from the active users list?
i.e. can we set it so unregistered members only see standard users?
and registered logged in members can see all but not the admin?
Kind Regards
Carl
Weetabix
12-26-2009, 10:47 AM
Damn, that's excellent. Clear instructions too :)
Thankyou.
ChronosX
12-26-2009, 11:23 AM
thx - nice work and intruction
ngcoders
12-26-2009, 05:58 PM
Works greats , thanks a lot.
Lynne
12-26-2009, 06:16 PM
Hello everyone, i hope christmas went well.
I have a question please, is it possible to remove admin and mods from the active users list?
i.e. can we set it so unregistered members only see standard users?
and registered logged in members can see all but not the admin?
Kind Regards
Carl
There is no option in this basic widget to do that - you'd have to modify the query to not show admins or mods. I don't know what you mean by only have unregistered users see 'standard' members - I have no idea what standard members are.
TheSupportForum
12-26-2009, 08:10 PM
fantastic mod - please can you request this to be implented into the next version of vBulletin Please
tazattitude
12-26-2009, 09:00 PM
Very Cool Lynne!
Thanks!
Voted and marked installed
Doctor Death
12-27-2009, 12:51 AM
I followed instructions (several times) exactly.... Am having an issue I hope you can identify.
When I get to step of configuring widget and pasting all that code in there... the widget will always contain "$output = date(vB::$vbulletin->options['dateformat']) . "<br />\n";
"
Even after I paste the correct code in and save it, if I go back it revers to the above almost as if it is read only. The widget (and any others that I create) only output the date!!! (Because they dont retain their code).
Any ideas why the widgets wouldnt retain the configuration that are assigned?
Thanks much
Lynne
12-27-2009, 02:04 AM
I followed instructions (several times) exactly.... Am having an issue I hope you can identify.
When I get to step of configuring widget and pasting all that code in there... the widget will always contain "$output = date(vB::$vbulletin->options['dateformat']) . "<br />\n";
"
Even after I paste the correct code in and save it, if I go back it revers to the above almost as if it is read only. The widget (and any others that I create) only output the date!!! (Because they dont retain their code).
Any ideas why the widgets wouldnt retain the configuration that are assigned?
Thanks much
If you can't save anything in your widgets configuration, then you should post for help over on vbulletin.com. First try a search over there and see if the issue has come up before.
bennzy
12-27-2009, 05:00 AM
Ok i added the widget to my site and it came up with no style and just a date inside, ive removed it all and tried it again yet still get the same thing.
Please tell me what i am doing wrong or is there something wrong with the coding?
im using vb 4.0 'gold'
Doctor Death
12-27-2009, 01:54 PM
If you can't save anything in your widgets configuration, then you should post for help over on vbulletin.com. First try a search over there and see if the issue has come up before.
Lynne;
Thanks for suggesstion, I did exactly that and have received no help.
To be quite honest, I saw you were the pro from dover on widgets and was hoping you would be able to identify this issue in Gold 4.0... Notice I am not the only one with this challenge.
Thanks much anyway... Any suggestions would be appreciated.
Lynne
12-27-2009, 02:25 PM
Ok i added the widget to my site and it came up with no style and just a date inside, ive removed it all and tried it again yet still get the same thing.
Please tell me what i am doing wrong or is there something wrong with the coding?
im using vb 4.0 'gold'
Did you click on the Configure link next to the widget and then add the code in there? Oh, and did you change the name of the template in the Configure panel? My widget won't output a date because it doesn't use $output for the output like a normal widget template does.
Lynne;
Thanks for suggesstion, I did exactly that and have received no help.
To be quite honest, I saw you were the pro from dover on widgets and was hoping you would be able to identify this issue in Gold 4.0... Notice I am not the only one with this challenge.
Thanks much anyway... Any suggestions would be appreciated.
The only time something like this happened to me, I had not uploaded all the files correctly. Once I reuploaded all the files, it worked fine. So, try that. Or, you may want to put in a Support Ticket cuz I really don't know what else to suggest. Also, as I mentioned above, did you change the name of the template in the Configure panel? My widget won't output a date because it doesn't use $output for the output like a normal widget template does.
UrGonnaDie
12-28-2009, 12:31 PM
great job works perfect.
steve1966
12-28-2009, 03:45 PM
thanks
Hasanudin
12-31-2009, 09:27 AM
running well..... thx u :)
Doctor Death
01-01-2010, 04:51 PM
I have found what i was Doing Wrong, and am no longer getting this Error.
However when i try to configure the Wigit, I Paste the 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;
$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++;
}
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));
}
}
// memory saving
unset($userinfos, $loggedin);
vB::$db->free_result($forumusers);
$totalonline = $numberregistered + $numberguest;
$numberinvisible = $numberregistered - $numbervisible;
$show['loggedinusers'] = true;
$statsarray = array('onlinestats' => $onlinestats,
'totalonline' => $totalonline,
'numberregistered' => $numberregistered,
'numberguest' => $numberguest,
'show' => $show,
);
vB_Template::preRegister('vbcms_widget_execphp_act iveusers', $statsarray);
}
Into the Top Section of the Popup Box, and change the template name to vbcms_widget_execphp_activeusers as Instructed and Save.
However it does NOT change the code in the main box, and all i get displayed it the Time.
I get this exact error that you are getting.
When originally configuring this widget it contains
$output = date(vB::$vbulletin->options['dateformat']) . "<br />\n";
I have implemented other widgets (Direct HTML exeuction), however when I edit this widet's configuration to put in the code, it never saves it.
When I try to put in the proper code and click SAVE, it always defaults back to this contents
$output = date(vB::$vbulletin->options['dateformat']) . "<br />\n";
Would be happy to let Lynne (or anyone else) examine it if she cares to. Message me if so.
THE__DRIFTER
01-02-2010, 02:04 AM
I did everything stated in this post but it will not show on the frontpage. Suggestions?
:confused:
Lynne
01-02-2010, 03:10 AM
I did everything stated in this post but it will not show on the frontpage. Suggestions?
:confused:
Did you add it to the layout you use on the front page?
gator777
01-02-2010, 06:49 AM
Lynne, the block displays empty when the user does not have access to the content. Can you make it so the block will not display if the user is not allowed to see the content?
jaffaman
01-02-2010, 07:40 AM
Installed working fine thanks :)
kefallon
01-02-2010, 08:22 AM
Works fine on my site :)
THE__DRIFTER
01-02-2010, 01:34 PM
Did you add it to the layout you use on the front page?
I thought so; went through it all again but still nothing. I think it is more the CMS not wanting to display it. Have tried various things but nothing widget wise will show other than the ones indigenous to vB.
Lynne
01-02-2010, 02:50 PM
Lynne, the block displays empty when the user does not have access to the content. Can you make it so the block will not display if the user is not allowed to see the content?
On my test site, if I set the option for Display Logged in Users to "Yes, alphabetical to members only" and then I view the page as a Guest, I don't see the block at all. And I shouldn't since the condition is wrapped around the entire template. Perhaps you are playing with the wrong option?
I thought so; went through it all again but still nothing. I think it is more the CMS not wanting to display it. Have tried various things but nothing widget wise will show other than the ones indigenous to vB.
It doesn't sound like you are going to Layout Manager and *finding the correct layout* and adding this widget to it. Maybe you are adding widgets to the wrong layouts and that is why they aren't showing up. If you really think it is the software and not user error, then you should put in a support ticket to have support see what is wrong.
CFodder
01-02-2010, 09:36 PM
Another great mod, thanks lynne :).
dangerin
01-03-2010, 07:41 AM
really nice job.
But i ask something about a modify if possibile :
It is possible to have more informations about users on line how for example from where they connect or how much in this day or the total of users etc ..
i've seen widget with these infromations in other cms and i ask if there is also in VB4.
i've actually installed the PL1 but as soon i think that release the 4.0.1 and after the 4.0.2
Lynne
01-03-2010, 02:56 PM
It is not an option to show that information in this widget. Paul wrote the code for how many in a day, so you could take his code and add it to this, but I'm not planning on changing this widget at all to add that.
dangerin
01-03-2010, 03:56 PM
thank you everywhere lynne.. i've thought this because i've seen more options in the widget for forum and so.. ..
ever great job .
thanks
arauf
01-04-2010, 07:46 AM
i Added this on my Forum, Working Fine ;)
LuckyNeo
01-04-2010, 10:13 AM
Good work! Thank you very much!
Good Job! A suggestion, Lynne:
Wouldn?t it look cleaner if u put each info in a seperate line ? Like that
Total Users Online: X.XXX
Members: XXX, Guests: X.XXX
User1, User2, User3, User4,
User5, User6,...
Any chance you could add this to ur widget ?
Lynne
01-04-2010, 04:45 PM
Good Job! A suggestion, Lynne:
Wouldn?t it look cleaner if u put each info in a seperate line ? Like that
Any chance you could add this to ur widget ?
That is nicer. I was just copying what the current style was on the index/forum page. You can just modify the template if you want it to be like what you posted. The template name is vbcms_widget_execphp_activeusers.
MustangLisa
01-06-2010, 04:12 PM
Great mod, thanks!
meissenation
01-06-2010, 04:35 PM
Thanks! One of the few vb4 mods that actually works right off the bat.
albibak
01-07-2010, 04:53 AM
Lynne,
Thanks for the widget
Please, find in attachment the french translation
You can find the french topic for this widget here: http://forum.vbulletin-fr.org/modifications/1092-Utilisateurs-actuellement-connects
Birute
01-08-2010, 11:13 PM
Lynne, the widget is not displaying but a error is showing on the top of the Home Page.
Parse error: syntax error, unexpected '}' in /hermes/bosweb/web111/b1116/sl.bannerearth/public_html/*****/packages/vbcms/widget/execphp.php(171) : eval()'d code on line 10
Do you have any suggestions on how I can fix this?
SemperFideles
01-09-2010, 01:22 AM
What, precisely got updated in the past few days? Should I be changing the template or the code on my site?
Charlie98902
01-09-2010, 02:58 AM
How to update or is that info in the .txt got the details on just how to update?
Lynne
01-09-2010, 04:01 AM
Do you have any suggestions on how I can fix this?
Double-check what you did. It looks like something extra got into the code somewhere.
As for the update.... For some reason, it sent out an update when all I did was add the french translation for the modification. So, no need to do anything unless you want the french translation for this.
Birute
01-09-2010, 11:26 AM
Lynne, in the code window in the first post there is a slide bar for the long statements of code but in the vbulleting window to paste the code into there is no slide bar, it is a very small window. It looks like the pasted code wraps the longer statements. Your very neat indented code does not look neat when it is pasted. Could this cause an error?
Charlie98902
01-09-2010, 11:42 AM
Okay thanks Lynne, no worries.
albibak
01-09-2010, 12:23 PM
Sorry :)
Birute
01-09-2010, 01:06 PM
I took the widget out of the layout and the error message went away. So you are correct the error is in my coding somehow.
But now the Front Page logo is vBulletin's logo and will not recognize my titleimage logo but it does on the forum page. Help please
Birute
01-09-2010, 01:46 PM
Lynne, sorry, disregard that previous post, I have corrected it.
Lynne
01-09-2010, 02:31 PM
Glad you figured it out, Birute. :)
aberg
01-09-2010, 07:36 PM
Don't work for me in v4.0 gold
rotor
01-09-2010, 09:31 PM
Working fine in vB4 PL1 .... thx much appreciated :D
Eq4bits
01-10-2010, 07:29 PM
sweet. works a charm on my test v4.0PL1
Sotonforum.co.u
01-11-2010, 08:28 PM
When creating the Widget, under Widget Type - PHP Direct Execution, I do not have the option 'PHP Direct Execution'...
Any help?
Lynne
01-11-2010, 09:46 PM
When creating the Widget, under Widget Type - PHP Direct Execution, I do not have the option 'PHP Direct Execution'...
Any help?
What version are you running? It is definitely in Gold. I think it was added right before the first RC.
Sotonforum.co.u
01-11-2010, 10:08 PM
What version are you running? It is definitely in Gold. I think it was added right before the first RC.
I'm running vbulletin 4.0.0 patch level 1.
Lynne
01-11-2010, 10:37 PM
I'm running vbulletin 4.0.0 patch level 1.
If it isn't there, then there is something wrong with your CMS. You should put in a support ticket since I have no idea how to fix your issue.
Juggernaut
01-11-2010, 11:56 PM
Great Widget, thank you so much :D
nikonphoto
01-12-2010, 02:26 AM
Thanks work perfect thank you
Ozymandyus
01-13-2010, 01:31 AM
Lynne, any reason to install the new version unless you want the French translation?
BTW, works fine in my updated 4.0.1 install.
Lynne
01-13-2010, 02:08 AM
Lynne, any reason to install the new version unless you want the French translation?
BTW, works fine in my updated 4.0.1 install.
No. The French translation is just another text file like the one I posted only the instructions are all in french.
nextslit
01-13-2010, 09:44 PM
Working fine , Thank you : )
RedHacker
01-14-2010, 09:34 AM
Install for 4.0.1 Version..!!! How to change position...?
cnutter
01-14-2010, 10:18 AM
Had to uninstall last night because I was getting an SQL error after the 4.0.1 upgrade. IT didn't happen right away but happened a few hours later. Any ideas? After disabling widget and the plug-in the SQL error did not happen again.
Invalid SQL:
REPLACE INTO cache
SET cacheid = 'widget.8c27fecae6a97eec9c54db10877fc6d3',
expires = 1263437898,
created = 1263437598,
locktime = 0,
data =
(to much to paste here)
MySQL Error : Got a packet bigger than 'max_allowed_packet' bytes
Error Number : 1153
Request Date : Wednesday, January 13th 2010 @ 08:53:18 PM
Error Date : Wednesday, January 13th 2010 @ 08:53:29 PM
Script : http://(removed).net/forums/
Referrer :
IP Address : ****** (Removed)
Username : ***** (Removed)
Classname : vB_Database
MySQL Version : 5.0.83
Lynne
01-14-2010, 02:14 PM
'max_allowed_packet' is a server issue. See this page - Common MySQL Error Messages (http://www.vbulletin.com/docs/html/troubleshoot_mysql_errors)
Lynne
01-14-2010, 02:15 PM
Install for 4.0.1 Version..!!! How to change position...?
You put it wherever you want in your layout. I have no control over where you put it.
cnutter
01-14-2010, 02:37 PM
'max_allowed_packet' is a server issue. See this page - Common MySQL Error Messages (http://www.vbulletin.com/docs/html/troubleshoot_mysql_errors)
Yeah upped it to 32MB
But the issue seems to be a vb4.0.1 issue not your add-on
Sorry for the miss understanding.
kevius
01-14-2010, 06:50 PM
Excellent !! tks a lot !
Primal-IRL
01-16-2010, 09:57 PM
Excellent works perfectly in 4.0.1. Thanks
LordNinja
01-17-2010, 10:34 PM
The best code
Thanks
Sophocles
01-18-2010, 04:51 PM
This was missing from VBCMS. Thanks!
angeljs
01-18-2010, 05:26 PM
Brilliant, thank you :cool:
COL NIL SATIS
01-18-2010, 08:34 PM
can this be added to sidebar??
Lynne
01-19-2010, 02:56 AM
can this be added to sidebar??
What do you mean? You create this widget and add it to any layout you want wherever you want.
forumsonsuz
01-19-2010, 06:34 AM
Thanks!
aberg
01-22-2010, 07:03 PM
I don't get it work.
I have copy- past the code
I have spend a lot of hours of this widget but without any results
I get a blanco field.
Any idea what can be wrong? tips or something?
Lynne
01-22-2010, 07:14 PM
I don't get it work.
I have copy- past the code
I have spend a lot of hours of this widget but without any results
I get a blanco field.
Any idea what can be wrong? tips or something?
If this is an issue with any php widget, then you might want to check the bug tracker because there is a bug with certain users using the php widget.
What do you mean? You create this widget and add it to any layout you want wherever you want.
Actually, I think the question is more geared towards making it a forum sidebar, not CMS widget.
I actually have the same question and is why I was checking this thread. I don't like the WOL on the bottom of the website and want it on the sidebar (as I used to have it with VBA).
Lynne
01-23-2010, 03:06 AM
Actually, I think the question is more geared towards making it a forum sidebar, not CMS widget.
I actually have the same question and is why I was checking this thread. I don't like the WOL on the bottom of the website and want it on the sidebar (as I used to have it with VBA).
If you throw this code into a php block, comment out the includes line at the top, and change the template to vbcms_widget_execphp_activeusers, then it should work just fine on the forum index page.
If you throw this code into a php block, comment out the includes line at the top, and change the template to vbcms_widget_execphp_activeusers, then it should work just fine on the forum index page.
Edit:
Ok, I have a better understanding of what you meant. Haven't gotten it working yet, but don't want to muddy up your thread for this mod. Thanks as always Lynne!
Edit #2:
All working now as a sidebar block! Had to do some editing as the sidebar blocks are displayed differently than the CMS ones, but I have it working and looking how I want it! Thank you again!
jimbos'ss
01-24-2010, 11:40 AM
awesome thanks!
abdulbasitsaeed
01-24-2010, 05:20 PM
Thank you for this, Lynne. :)
aberg
01-24-2010, 06:01 PM
If this is an issue with any php widget, then you might want to check the bug tracker because there is a bug with certain users using the php widget.
Sorry that I don't understand this, but where can I find the bug tracker?
I have check the widget, but this is the only PHP Direct Execution widget I have
Lynne
01-24-2010, 06:08 PM
Sorry that I don't understand this, but where can I find the bug tracker?
The bug tracker is here - http://www.vbulletin.com/forum/project.php?projectid=6
jimbo68
01-25-2010, 01:27 PM
Awesome! Works great - thanks!
Is there any reason I'm missing that guests can't view the widget? I have permissions set correctly (I think).
Lynne
01-25-2010, 02:38 PM
Awesome! Works great - thanks!
Is there any reason I'm missing that guests can't view the widget? I have permissions set correctly (I think).
If you don't allow guests to view who is logged in, then they won't be able to see this.
jimbo68
01-25-2010, 02:51 PM
If you don't allow guests to view who is logged in, then they won't be able to see this.
Hmmm.. I have unregistered/not logged in usergroup clicked "can view who's online" in permissions - but as a guest I don't see who's online in the "whats going on" box in the forum either. I must be missing something somewhere. Still, thanks for the great widget :)
Lynne
01-25-2010, 03:11 PM
Hmmm.. I have unregistered/not logged in usergroup clicked "can view who's online" in permissions - but as a guest I don't see who's online in the "whats going on" box in the forum either. I must be missing something somewhere. Still, thanks for the great widget :)
Who's Online has to do with the online.php page, not this list of Currently Active Users. That is set in vboptions > forum home page options > display logged in users
jimbo68
01-25-2010, 03:15 PM
Who's Online has to do with the online.php page, not this list of Currently Active Users. That is set in vboptions > forum home page options > display logged in users
DOH. That did it. Thanks Lynne!
aberg
01-27-2010, 05:32 PM
Found the problem
The old article mod from v3 was the problem.
Removed this old hack and it works.
Thanks for the support Lynne
Lynne
01-27-2010, 06:56 PM
Found the problem
The old article mod from v3 was the problem.
Removed this old hack and it works.
Thanks for the support Lynne
Interesting. Thanks for posting back about the problem.
buddyheiko
01-28-2010, 06:00 PM
Hello,
it works great.
Thanks for making this widget.
Heiko
Birute
01-30-2010, 01:52 PM
Installed and works nicely, thanks!!
project-Buckfas
01-31-2010, 01:20 PM
Love it. Thanks. Works great on 4.0.1
rizelim
01-31-2010, 04:11 PM
thanks
cnutter
02-01-2010, 12:22 PM
Question. Why would this show up in the default theme but not in the other themes on a site?
Well looks like I needed to create the new templete in each theme. Not just the default.
evilzombie
02-16-2010, 01:31 AM
Installed Thanks :)
Lynne
02-16-2010, 02:19 AM
Question. Why would this show up in the default theme but not in the other themes on a site?
Well looks like I needed to create the new templete in each theme. Not just the default.
I always go into debug mode and create it in the MASTER STYLE.
When creating the Widget, under Widget Type - PHP Direct Execution, I do not have the option 'PHP Direct Execution'...
Any help?
Interesting, I have the same problem so I can't get your Widget to work. Can anyone with 4.0.1 confirm that PHP Direct Execution is a choice on theirs? The attachment shows my choices.
Lynne
02-16-2010, 06:13 PM
Interesting, I have the same problem so I can't get your Widget to work. Can anyone with 4.0.1 confirm that PHP Direct Execution is a choice on theirs? The attachment shows my choices.
It should be after My Friends and before Poll. What version vB are you running?
pjaco
02-16-2010, 06:38 PM
Thanks,nice
It should be after My Friends and before Poll. What version vB are you running?
I'm running 4.0.1 .
Lynne
02-16-2010, 07:49 PM
I'm running 4.0.1 .
I do not know why you don't have that option then. You should put in a support ticket.
Paul M
02-16-2010, 08:00 PM
Try clearing the CMS cache.
zapiy
02-23-2010, 09:12 AM
I my widget there is always a space before the first name in the widget.. Any cure for this please?
Lynne
02-23-2010, 02:04 PM
I my widget there is always a space before the first name in the widget.. Any cure for this please?
Since it doesn't do that on my default install, I would guess either you modified the template slightly, or modified some CSS on your site that has affected this widget. Try using firebug to see what is going on with it.
shyguy82
02-23-2010, 02:10 PM
That's great Lynne,
INSTALLED
I have a very busy site with 100k+ registered users with 500+ concurrent users at all times. This is great to show advertisers how busy your site is.
Thank you
RetroDreams
02-23-2010, 04:05 PM
Since it doesn't do that on my default install, I would guess either you modified the template slightly, or modified some CSS on your site that has affected this widget. Try using firebug to see what is going on with it.
I'm getting the same thing. Just did a fresh install, no modifications. I'm also not having the trailing comma removed after the last name in the list.
RetroDreams
02-23-2010, 05:22 PM
This appears to be an issue with vB 4.0.2. If you go to the vB forums, you can see it does the same thing... extra spacing and trailing commas.
Lynne
02-23-2010, 08:18 PM
I don't get any extra commas in my list. I do see the extra space at the beginning - it looks like they added some new css. If you don't want it, then you could add to additional.css:
#wgo_onlineusers_list.commalist li:first-child {margin-left: 0;}
I don't know if that will work with IE since I don't recall if IE will do pseudo classes.
RetroDreams
02-24-2010, 12:23 AM
I don't get any extra commas in my list. I do see the extra space at the beginning - it looks like they added some new css. If you don't want it, then you could add to additional.css:
#wgo_onlineusers_list.commalist li:first-child {margin-left: 0;}
I don't know if that will work with IE since I don't recall if IE will do pseudo classes.
It's definitely an IE vs. Firefox issue. In Firefox, I don't get it the spacing or commas, but in IE I do.
arena
02-28-2010, 01:07 AM
thank you Lynne
Every time I try to install this widget, after placing it on my home page, I dont get any results. I cannot even see the widget border.
Is there any extra step, permission I should delegate to let me use this widget?
Thanks for your advices
Doctor Death
03-03-2010, 09:54 PM
I cannot edit any widget that is PHP Direct Execution.... dont ask me why, but it is a flaw with VB that has been registered as a bug.
Having said that, is there a way to make this any other type of widget like Static HTML or does it have to be PHP direct execution>
Lynne
03-04-2010, 03:31 AM
Every time I try to install this widget, after placing it on my home page, I dont get any results. I cannot even see the widget border.
Is there any extra step, permission I should delegate to let me use this widget?
Thanks for your advices
Make sure you followed all the steps especially the ones regarding the template.
I cannot edit any widget that is PHP Direct Execution.... dont ask me why, but it is a flaw with VB that has been registered as a bug.
Having said that, is there a way to make this any other type of widget like Static HTML or does it have to be PHP direct execution>
Sorry, but the code is php, so you must create a php widget.
rienits
03-05-2010, 12:33 PM
I do anything in the txt.file, but i get only an empty widget....There is nothing in it. I take the php-code widget for it...... VB4.0.2 PL1
OK now it works.....mysterius....
GamerPerfection
03-07-2010, 08:06 AM
Awesome thanks! :D
rodolo
03-13-2010, 02:51 AM
I got this up and running and that's great works good.
BUT
Is there a way to edit the colors in it?
I love my theme but I can read the info in this box very well..
Lynne
03-13-2010, 10:10 PM
I got this up and running and that's great works good.
BUT
Is there a way to edit the colors in it?
I love my theme but I can read the info in this box very well..
You are welcome to either edit the template or add css for the classes. If you are wondering if I am going to add some sort of options to edit the colors in the admin cp, then no, I have no plans to do that.
ashley53680
03-17-2010, 04:12 AM
Thank you for this wonderful Mod! I too had issues with the configure button doing nothing. I was able to reinstall the non-image files for the board in ASCII again and now it works perfectly! I am posting because that might help someone else finding themselves in a similar position.
alashram
03-19-2010, 06:33 PM
Thank you! :)
This is a very important widget
axix20xx
04-20-2010, 07:39 AM
many thanks i installed but onle the date is showed
identitas
04-27-2010, 07:18 PM
I miss the ability of most users online. Will it come?
zeezaaa
04-28-2010, 09:16 AM
thank you.
identitas
04-29-2010, 05:40 PM
I miss the ability of most users online. Will it come?
I have added
$recordusers = $vbulletin->maxloggedin['maxonline'];
$recorddate = vbdate($vbulletin->options['dateformat'], $vbulletin->maxloggedin['maxonlinedate'], true);
$recordtime = vbdate($vbulletin->options['timeformat'], $vbulletin->maxloggedin['maxonlinedate']);
To the php-code, and the variables in the array, added the varibles with vb raw in the template and included the functions_online. But its dont work, any ideas?
EDIT: I included the global.php, but now i get blank screen.
Hi there, for some reason the widget still doesn't show on my frontpage (registered or unregistered users)
I tried erasing this: "<vb:if condition="$show['loggedinusers']">" and the widget start showing but it does not include any member online (same result on registered or unregistered users)
116611
Thanks for any advice!
Lynne
05-03-2010, 03:46 AM
Make sure you have it turned on in vboptions > forum home page options > display logged in users.
Webbstre
05-03-2010, 11:35 AM
I can't get this to work either, on a fresh copy of 4.0.3 and I have checked the options. It just shows up blank.
Make sure you have it turned on in vboptions > forum home page options > display logged in users.
Thanks, your advice solved the problem!
ArminTECH
05-17-2010, 05:36 AM
tagged
texasteamplayer
05-25-2010, 02:40 AM
I'd like to have a forum block version of this as well. Then, we can remove the junk of users at the bottom of the forum, and better utilize the sides of the forum space (since there's already blocks there, it's not going to hurt to have another block, but having the user info at the bottom does make the page longer).
But, regardless, installed on the CMS. Thanks.
Rebecca217
05-25-2010, 01:12 PM
Works beautifully, thank you! :)
Najoh
06-03-2010, 01:57 AM
Someone know if we can use this or another related plugin on wordpress ?
texasteamplayer
06-08-2010, 01:02 PM
I'd like to have a forum block version of this as well. Then, we can remove the junk of users at the bottom of the forum, and better utilize the sides of the forum space (since there's already blocks there, it's not going to hurt to have another block, but having the user info at the bottom does make the page longer).
But, regardless, installed on the CMS. Thanks.
any chance this will be made as a forum sidebar block? be nice if this was a mod that installed a widget and a block, rather than having to create them by hand.
Lynne
06-08-2010, 01:33 PM
any chance this will be made as a forum sidebar block? be nice if this was a mod that installed a widget and a block, rather than having to create them by hand.
If you do a search, you'll see this has already been released as a block.
barcraft
06-23-2010, 03:59 AM
Hello,
First of all I congratulate you on the Widget excelete we have
delivered, I'm beginner in this and it works great.
If you need help to create the same thing you did
for online users, but to show the "Upcoming
Events "that appear at the foot of the Forum. I have tried many
ways and I could not find the settings.
Sorry for my English, I really do not speak or write
anything, all I have translated with google:)
Of course, thank you very much for your help.
Sincerely,
Miguel Quila Cozano
merk_aus
06-25-2010, 01:06 AM
Thanks Lynne always love your work and this is another quality release.
amagab
07-29-2010, 09:48 PM
Is it possible to change the title to "Users Online" instead of Currently Active Users? I don't mind if I have to change it on the forum page either. Thanks!
Lynne
07-29-2010, 10:10 PM
Is it possible to change the title to "Users Online" instead of Currently Active Users? I don't mind if I have to change it on the forum page either. Thanks!
Just replace the phrase in the template with what you want.
AnnLykke
07-30-2010, 07:55 AM
Awesome! And easy :) Works perfectly fine here!
Thanks a lot, Lynne
avitor
07-31-2010, 05:27 PM
is not show on my page
my page is vb 4.0.5
any help?
thanks
Lynne
07-31-2010, 11:57 PM
is not show on my page
my page is vb 4.0.5
any help?
thanks
Make sure you added the template to the style you are using on the page. Also, make sure you have your options set to show users online. And, make sure you are using the correct template name in the widget.
avitor
08-03-2010, 12:47 PM
hi
thank you Lynne
now all works
thank you
asus78
08-06-2010, 10:54 PM
Hi, gr8 widget. Will this work with the sidebar everywhere mod? If yes, how do i create the block?
thx
Lynne
08-07-2010, 02:46 AM
This is a CMS Widget, not a forum block.
asus78
08-12-2010, 11:39 AM
Hi, this seems not to work under 4.0.6? How do i have to change the config?
ragtek
08-15-2010, 06:17 PM
If you make a new version, pls remove the iif function call;)
It's deprecated!
You could also use the new vB Cache, for me it's working a little bit faster then calling the normal query. And because the "who's online" is never exactly (because of the user timeout) you will never see the real users;)
I'm using the cache for displaying the widget and the online users on forumhome
djbaxter
08-21-2010, 06:45 PM
Just tried to add this widget and I'm getting a path error: Fatal error: Class 'vBulletin' not found in /path/to/forum/packages/vbcms/widget/execphp.php.
I recently moved to a new dedicated server. What's showing in the error message is the correct path for my old server but incorrect for the new. It's odd because everything is working fine until I try to add the widget.
Where is this information stored or how do I change this?
Lynne
08-22-2010, 03:56 AM
My guess would be your forgot to change some path in your vbulletin options.
djbaxter
08-22-2010, 04:47 AM
Sorry... it wasn't the path at all. It was an error entering the code for the widget. Working.
bioload
09-05-2010, 01:43 AM
Hi Lynne,
I've installed on 4.0.6, and the widget will only appear if I clear the cache. Once I navigate away from the home screen it will disappear until I clear the cache again.. any thoughts?
Lynne
09-05-2010, 02:28 AM
Hi Lynne,
I've installed on 4.0.6, and the widget will only appear if I clear the cache. Once I navigate away from the home screen it will disappear until I clear the cache again.. any thoughts?
I'm not sure I understand. So you go to Home and it shows. Then you go to some other page and then come back to Home and it's gone? I honestly cannot reproduce this. Are there lots of users on your site? Are you sure you added the template to the correct style you are using? Do you have a url that I can see this happening?
bioload
09-05-2010, 10:34 PM
I'm not sure I understand. So you go to Home and it shows. Then you go to some other page and then come back to Home and it's gone? I honestly cannot reproduce this. Are there lots of users on your site? Are you sure you added the template to the correct style you are using? Do you have a url that I can see this happening?
That's right.....shows on the home page, but go to blog and come back home it's gone. Strange?...sent you pm link
Bankfodder
09-06-2010, 09:19 AM
Thank you. Is there any way to make it span the width of the screen - or designate what % or the screen it should occupy?
Mine is displayingthe centre part of the CMS. I would really lke it to display over the center and the right
Bankfodder
09-06-2010, 09:35 AM
Thank you. Is there any way to make it span the width of the screen - or designate what % or the screen it should occupy?
Mine is displayingthe centre part of the CMS. I would really lke it to display over the center and the right
Forget this. I'm only just starting the learn my way round the layouts and grids.
It's sorted.
Ta
Bankfodder
09-06-2010, 09:38 AM
... However, are you able to give me a quick tip as to how to reduce the text size because it seems to have different text attributes to the forum who's on line. Also the borders of the box surrounding the cms who's online mod.
Sorry for the trouble.
Bankfodder
09-06-2010, 09:47 AM
OK, sorted the border color. It's called content_background. - not very logical
Just the font size now
Bankfodder
09-06-2010, 10:35 AM
If anyone knows how to change the font size in this widget, I'd be very pleased to know about it.
Lynne
09-06-2010, 01:46 PM
If anyone knows how to change the font size in this widget, I'd be very pleased to know about it.
The font size in there is just set by the body tag which is set by the stylevar "font"
Bankfodder
09-06-2010, 01:57 PM
The font size in there is just set by the body tag which is set by the stylevar "font"
It is very kind of you to come back on this so quickly. However (sorry for being thick) - where do I find that please.
Lynne
09-06-2010, 02:01 PM
It is very kind of you to come back on this so quickly. However (sorry for being thick) - where do I find that please.
Style Manager > find your style in the list > StyleVars > type "font" in the top box > select Font in list > Edit stylevar > Save
Bankfodder
09-06-2010, 03:05 PM
Thanks again for this. However, there is quite a list of different sylevars all with the word font in them. I can't seem to find the relevant one. Are you able to help again?
Lynne
09-06-2010, 05:36 PM
Thanks again for this. However, there is quite a list of different sylevars all with the word font in them. I can't seem to find the relevant one. Are you able to help again?
It is just called "font".
Bankfodder
09-06-2010, 06:37 PM
I found it. Thanks. However, I changed the font size from 13 tp 10 but it doesn't affect your CMS mod.
Affected a lot of other things on the main board but not on the CMS
Lynne
09-06-2010, 06:55 PM
I found it. Thanks. However, I changed the font size from 13 tp 10 but it doesn't affect your CMS mod.
Affected a lot of other things on the main board but not on the CMS
I tried it on my totally default 4.0.6 test board and it did affect this widget (and the other widgets). I'm not sure why it isn't on your board. You may need to play with firebug and figure out what class is overriding the body tag for it.
Bankfodder
09-06-2010, 07:48 PM
Thanks.
Anyway, it works very well. I'm pleased with it and the font problem has nothing to do with the mod.
SVTOA
09-06-2010, 08:19 PM
Thanks Lynne! Works great on 4.06
SeToY
09-19-2010, 12:34 PM
It just gives me:
Most users ever online was , at .
:(
Lynne
09-19-2010, 02:09 PM
It just gives me:
Most users ever online was , at .
:(
Try going through the install instructions again in the first post because I just installed this fresh on a new 4.0.7 test site of mine and it works just fine.
Gomojoe
09-25-2010, 05:18 PM
I've added this to the left side of my homepage. Once I completed it I saw it where I wanted and it displayed correctly. Then I refreshed the page and it disappeared. Now it only appears sporatically. Did I do something wrong?
Lynne
09-25-2010, 05:43 PM
I've added this to the left side of my homepage. Once I completed it I saw it where I wanted and it displayed correctly. Then I refreshed the page and it disappeared. Now it only appears sporatically. Did I do something wrong?
Are you the only person on your forum? If so, I have heard it can be sporatic sometimes and so the best thing to do is remove the condition around the template.
Gomojoe
09-25-2010, 09:53 PM
No, we've got a bunch of people on there! What does removing the condition do? Also, how would I do that?
Lynne
09-25-2010, 10:16 PM
No, we've got a bunch of people on there! What does removing the condition do? Also, how would I do that?
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.
Gomojoe
09-26-2010, 03:27 PM
If I delete the condition code then it just displays the box, but without any values. Just says this in the box "There are currently users online. members and guests
Most users ever online was , at" Could it have something to do with being cached every 5 mins? That seems to be how long it takes it to show up again!
Lynne
09-26-2010, 05:01 PM
If I delete the condition code then it just displays the box, but without any values. Just says this in the box "There are currently users online. members and guests
Most users ever online was , at" Could it have something to do with being cached every 5 mins? That seems to be how long it takes it to show up again!
I set the cache to 0. However, you also have to apply the bug fix for that that is over in the bug tracker at vb.com
Gomojoe
09-26-2010, 05:16 PM
It does seem to be related to the cache as I lowered it to a minute and it now shows up more frequenlty. As far as the bug fix, anyway you could point me there? I put that in the search over there and didn't get any results that were anywhere near that.
Lynne
09-26-2010, 06:27 PM
As far as the bug fix, anyway you could point me there? I put that in the search over there and didn't get any results that were anywhere near that.
http://tracker.vbulletin.com/browse/VBIV-8082
top dogs 360
10-02-2010, 03:31 PM
Thank you Lynne (This should be standard IMO for the Vbul software, because when people visit the url it takes them to the homepage (CMS page) not the forum page.)
Again Thank you Lynne.
Top Dogs
www.xboxhounds.com
Lynne
10-02-2010, 05:26 PM
This should be standard IMO for the Vbul software, because when people visit the url it takes them to the homepage (CMS page) not the forum page.
Actually, that is up to you to set up. Open the index.php file and just comment out the line that directs you to content.php and uncomment that line to direct you to the forum.php page.
top dogs 360
10-02-2010, 07:15 PM
Actually, that is up to you to set up. Open the index.php file and just comment out the line that directs you to content.php and uncomment that line to direct you to the forum.php page.
Oh I didn't know that thank you. Sort of along the same lines maybe you can help with this. When members sign in it takes them to the forum page instead of the home page. Is there a way to change that?
Thanks,
TD
Lynne
10-02-2010, 08:00 PM
Oh I didn't know that thank you. Sort of along the same lines maybe you can help with this. When members sign in it takes them to the forum page instead of the home page. Is there a way to change that?
Thanks,
TD
Probably one of the "print_standard_redirect" lines in the register.php page. I've never looked in to changing the default action, so I couldn't tell you exactly which one.
marinelife
10-03-2010, 04:45 PM
Can anyone post their execphp.php, The fix does not seem to work for me and I want to make sure I have mine right.
IainMustardGas
10-05-2010, 01:04 PM
Works perfectly on vB Suite 4.0.7 :D
Thank you very much for this great widget :up:
albanah
10-14-2010, 05:42 PM
I have so many users on line.
the widget is very looong.
is there a way to set maximum height of the widget ?
Lynne
10-14-2010, 05:59 PM
You could probably set a height in this part of the template:
<div class="cms_widget_content" style="height: 100px;">
You may have to set the overflow property to hidden also.
albanah
10-15-2010, 05:48 AM
You could probably set a height in this part of the template:
<div class="cms_widget_content" style="height: 100px;">
You may have to set the overflow property to hidden also.
Many thanks Lynne.
It is working vey well .
gokhansancar
10-15-2010, 11:20 PM
thanks, i really like that widget
thephoneclub
10-19-2010, 11:16 PM
doens't work in 4.0.7
marinelife
10-19-2010, 11:24 PM
works in 4.0.7 for me
caciocode
10-19-2010, 11:54 PM
I have just tagged this. Might come useful later. Thanks.
Lynne
10-22-2010, 07:35 PM
I updated the template to use the new classes. I also updated the widget configure code to use the new query/method which will not show users from usergroup 3 or 4 which has been in place for the last couple of versions.
Juggernaut
10-23-2010, 02:44 AM
Installed the update, thank you Lynne :D
Vaupell
10-23-2010, 11:52 AM
sorted, tx lynne!
goshalim
10-30-2010, 04:21 AM
Hi Lynee
Please explain me this
When i creat the new template, where do i go and put the php code.
Sorry i am not an expert and i need some help
Thanks
Lynne
10-30-2010, 02:10 PM
Hi Lynee
Please explain me this
When i creat the new template, where do i go and put the php code.
Sorry i am not an expert and i need some help
Thanks
The php code is for the widget. You need to create a widget, as the instructions say, and then configure it.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.