vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Mini Mods - [AJAX] Who's Online (https://vborg.vbsupport.ru/showthread.php?t=205282)

mad@Max 02-12-2009 10:00 PM

[AJAX] Who's Online
 
1 Attachment(s)
Continue of this mod https://vborg.vbsupport.ru/showthread.php?t=105233

Modification allows to you refresh list of active users without reload main page.

Features:
  • button "refresh" for manual refresh (optional)
  • autorefresh (set in second), disable if set by "0"
  • permission user groups (excluding now) to use
  • compatible with legends and splitters of user groups
  • refresh string "Currently Active Users: ..."

Video on it (because it's ajax): http://www.youtube.com/watch?v=A3rsK8Th1ms

Spanish translate: https://vborg.vbsupport.ru/attachmen...2&d=1234675167
French translate (v1.3): https://vborg.vbsupport.ru/attachmen...9&d=1236427472

vbboarder 02-13-2009 08:32 PM

Does this work only on forumhome? If so, can you make it work also for forumdisplay (show users viewing a forum via ajax) and showthread (show users viewing a thread via ajax)?
Also, can you limit the ajax refresh time and usergroups able to use the ajax feature?

Lynne 02-13-2009 08:41 PM

If you look at the video, you'll see it doesn't rely on a refresh time. The user clicks a button to refresh the list.

mad@Max 02-13-2009 08:51 PM

Yes, this only forumhome.
Refresh occurs after you click on button "Refresh", permission of groups you can set in options.
Soon, I plan to add the autorefresh.

Hornstar 02-13-2009 10:32 PM

I think the button is enough because if you add autorefresh then it would be too heavy for many sites.

mad@Max 02-13-2009 11:07 PM

You will have a choice ;)

Daniel_HBK 02-14-2009 12:08 AM

very good Mod , Installed :)

Huy Ho?ng 02-14-2009 12:14 AM

Very good. Install :D

Loki12 02-14-2009 12:19 AM

It doesn't work. I just tested on my forum.

Gunshot 02-14-2009 12:23 AM

not compatible with this Hack
https://vborg.vbsupport.ru/showthrea...ight=usergroup

refresh results in the Legend disappearing

dothanhtrung 02-14-2009 01:13 AM

Hey mad@Max,

I think you can use Yahoo's java package will better
Code:

<script type="text/javascript">
<!-- // Hack by Sinister -->
vBulletin.events.systemInit.subscribe(function()
{
        online.req();
});

online = {
        req:function()
        {
                YAHOO.util.Connect.asyncRequest("POST", "index.php?do=whoisonl", {
                        success: this.show,
                        failure: vBulletin_AJAX_Error_Handler,
                        timeout: vB_Default_Timeout
                });
        },
        show:function(a)
        {
                fetch_object("whoisonl").innerHTML = a.responseText;
                setTimeout("online.req()", 180000);
        }
};
//Hack by Sinister -->
</script>


mad@Max 02-14-2009 01:24 AM

dothanhtrung, why do you think that this is better?

WildFire.ca 02-14-2009 01:52 AM

Nice Thx

Alfa1 02-14-2009 02:24 AM

Awesome! Please add auto-refresh with user group permission. This way busy boards can use it.

Arcade Fire 02-14-2009 04:29 AM

Set to 0 the counter of most users ever online :(

dothanhtrung 02-14-2009 05:54 AM

Quote:

Originally Posted by mad@Max (Post 1743388)
dothanhtrung, why do you think that this is better?

I tried to put it into product! But it can still not work on that package! So, i made necessary changes on other packages and it works very well with Autofresh! If you need,PM me and i will send this prodcut to you in order to you can reference it! :)

redlabour 02-14-2009 07:43 AM

Quote:

Originally Posted by Gunshot (Post 1743363)
not compatible with this Hack
https://vborg.vbsupport.ru/showthrea...ight=usergroup

refresh results in the Legend disappearing

Same problem for me. :(

Mark.B 02-14-2009 08:12 AM

Quote:

Originally Posted by redlabour (Post 1743643)
Same problem for me. :(

Yes, you'll find things like that because the modified code isn't included in the AJAX. I've got the spiders hack for Who's Online, and they disappear on refresh too, that's the only reason I cannot use this.

Unfortunately there are so many hacks for Who's Online that I don't think the author could possibly support all of them in this. But for an unaltered who's online, it works great.

mad@Max 02-14-2009 08:22 AM

Yes, many hacks using variable $activeusers from index.php...

Rottimom 02-14-2009 10:08 AM

Quote:

Originally Posted by Arcade Fire (Post 1743520)
Set to 0 the counter of most users ever online :(

Yes, and "Most members were have this one written contributions on a day" and "Most guests online within 24 hours were" and "Most members online within 24 hour were", all started to 0 :(

After Refresh don?t show spider to "Currently Active Users" :(

Therefore uninstalled.

Paul M 02-14-2009 01:36 PM

Warning:

This will break the standard "Most Ever ..." count (and a few modification ME counts) as calls to ajax.php do not load the appropriate values from the datastore.

Gunshot 02-14-2009 03:34 PM

good idea.....just has some issues

mad@Max 02-14-2009 04:14 PM

dothanhtrung, you was right, this script is batter, thanks;)
Soon i'll update mod.

cykelmyggen 02-14-2009 04:19 PM

Damn, broke my Most Users online legend....:( Uninstalled

Lynne 02-14-2009 04:36 PM

mad@Max, you might want to put Paul's warning in your first post so users know it will reset those numbers.

Alfa1 02-14-2009 04:53 PM

Quote:

Originally Posted by cykelmyggen (Post 1743987)
Damn, broke my Most Users online legend....:( Uninstalled

Same here. Back from 22.000 to 2.000.:(
Please fix this.

mad@Max 02-14-2009 04:56 PM

Hack is updated to 1.1 version.
Added autorefresh option, rewritten code.
Now mod work with legends and splitters:)

redlabour 02-14-2009 05:11 PM

Does this Mod make any sense?

It only brings a Refresh-Button - that?s it? :confused:

Alfa1 02-14-2009 05:21 PM

It makes sense to get an actual or live overview of members online, instead of the cached version. Your members will be able to see other members come online in real time.
However, this does mean IMHO that it should not display members that are no longer online. Otherwise it still is old information.

The new version, posted right before you posted has an autorefresh, so probably no refresh button anymore. I haven't checked yet, because I am waiting for a version that does not break 'most users online'.

mad@Max 02-14-2009 05:33 PM

Alfa1, version 1.1 does not this. (i hope:))

mad@Max 02-14-2009 06:02 PM

Version 1.1.1
Little fix for those who use vbadvanced (like me:)), who change name of index script.

DjEddie 02-15-2009 12:26 AM

Hi,

Ive added the updated one, but the Refresh Button isn't in English now...

The split works with it too ... nice one... just the member count now :) .. will keep checkin .. cheers mad@max :)

Alfa1 02-15-2009 01:56 AM

Quote:

Originally Posted by mad@Max (Post 1744053)
Alfa1, version 1.1 does not this. (i hope:))

Haha. OK I will try.

Alfa1 02-15-2009 02:03 AM

EDIT: It seems to leave most users online intact. However; the refresh button is no longer in English.
Please add a vbulletin options section where we can fill in
- the usergroups that can see this.
- the number of seconds/minutes for autorefresh
- the number of minutes that a member is visible on WOL, after his last activity.
- turn off the refresh button. (I dont want it)

relaxiha 02-15-2009 03:15 AM

hello
plz repair button to english!
this is RUS!!!i don't read label

dvbusuario 02-15-2009 03:19 AM

1 Attachment(s)
Version 1.1.1

Translate in Spanish!

Thank you!

Install.:)

mad@Max 02-15-2009 07:24 AM

dvbusuario, add link in first post.
Alfa1, thanks, will do.

medusa1 02-15-2009 09:55 AM

1 Attachment(s)
I get strange special chars on the refresh button can you help me with this ?

See attachement

mad@Max 02-15-2009 10:32 AM

I forgot translate this part:) Reuploaded.

medusa1 02-15-2009 10:39 AM

is working now thanks for the quick help


All times are GMT. The time now is 10:32 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01373 seconds
  • Memory Usage 1,791KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete