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)

Playa82 02-15-2009 10:53 AM

1 Attachment(s)
nice hack, but now i see my whole site reflected in the users online list... See attachments...

mad@Max 02-15-2009 11:25 AM

Version 1.2
See on features in first post.
Playa82, update hack to v1.2

Alfa1 02-15-2009 02:31 PM

I installed it, but nothing happens with WOL.
I see that you have added a section in adminCP -> vbulletin option -> Who's online
Though not in the default section called Who's online, but you added a 2nd section with the same name. Not a big deal tough.

Most important thing is that nothing happens, no matter what options i turn on or off.

mad@Max 02-15-2009 02:56 PM

I forgot change the phrase in setting on:
Code:

Type ID groups that are denied to use this mod (separated by comma)

Alfa1 02-15-2009 04:05 PM

Why not you do it the other way around? If you deny member groups, then you exclude the use of additional member groups.

In any case, there is still nothing happening.

mad@Max 02-15-2009 04:19 PM

Opposite of this phrase Type ID groups that are denied to use this mod (separated by comma), enter excluding groups, like 1,2,8 (by default). Because that's easily :)

Playa82 02-15-2009 04:35 PM

Quote:

Originally Posted by mad@Max (Post 1744751)
Version 1.2
See on features in first post.
Playa82, update hack to v1.2

thanks, but still the same problem...

Alfa1 02-15-2009 04:46 PM

Quote:

Originally Posted by mad@Max (Post 1745018)
Opposite of this phrase Type ID groups that are denied to use this mod (separated by comma), enter excluding groups, like 1,2,8 (by default). Because that's easily :)

But then it doesn't work for additional groups.

For example:
If I want usergroup 21 to use this and all other groups are denied. And a member is in usergroup 14 and 21, then he can not use it, because group 14 is denied.

mad@Max 02-15-2009 04:53 PM

Alfa1, aaa, now i understand what about you are talking :)

DjEddie 02-15-2009 08:18 PM

Hi,

Upgraded to latest one...

How do you turn the auto refresh off... simply using 0 doesnt work on my site.. it still auto refreshes.. I only want to be able to do it manually...

Thank you :) ...

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

Version 1.2.1
Autorefresh fix.

DjEddie 02-16-2009 02:37 PM

Quote:

Originally Posted by mad@Max (Post 1745923)
Version 1.2.1
Autorefresh fix.

Thanks, all seems to be working.

I think in the text tho you need to state, set to 0 to disable auto refresh feature...

Just a thought, thanks for fixing quickly too :)

mad@Max 02-16-2009 03:49 PM

Hm, i don't understand, in version 1.2.1 if you set 0, autorefresh will be disabled.

DjEddie 02-16-2009 04:57 PM

Quote:

Originally Posted by mad@Max (Post 1745998)
Hm, i don't understand, in version 1.2.1 if you set 0, autorefresh will be disabled.

Yeah I know it does, what im saying is in this part of the text in the admincp Whos Online options for other people so they know...change it from:


Set the time (in seconds) after which the mod will automatically refresh block with active users.

To:

Set the time (in seconds) after which the mod will automatically refresh block with active users (If you set this value to 0 then auto refresh is disabled)

^^ Just for info thats all for people who wont know. :)

No Biggie :)

mad@Max 02-16-2009 05:41 PM

aaa, ok, will do:)

mad@Max 02-16-2009 05:48 PM

Product is reuploaded - updated one phrase:)

DjEddie 02-16-2009 06:06 PM

Quote:

Originally Posted by mad@Max (Post 1746116)
Product is reuploaded - updated one phrase:)

Nice one and thanks for quick turn around... all good from me now .. no probs :)

WildFire.ca 02-16-2009 08:13 PM

Hey Max, thanks for the update.

mad@Max 02-16-2009 09:23 PM

It's explainable. Hack keeps your presence at the forum until the browser is open. This is actually only when autorefresh enabled.
On this basis, the hack doesn't break your stats.

Loki12 02-17-2009 06:31 PM

Quote:

Originally Posted by mad@Max (Post 1746278)
It's explainable. Hack keeps your presence at the forum until the browser is open. This is actually only when autorefresh enabled.
On this basis, the hack doesn't break your stats.

And what about if autorefresh is disabled? Does it break your stats then? I want to reinstall but still cautious. It ruined my old stats. :(

mad@Max 02-17-2009 07:07 PM

Only if all will not be constantly clicking on the Refresh button :D

Loki12 02-17-2009 09:58 PM

Ahh I see ... it works by refreshing the names. However, the amount of users shown (i.e. Currently Active Users: 32 (13 members and 16 guests) does not change. This is a pity. Is there any possibility that this could also be refreshed with the mod???

mad@Max 02-17-2009 10:04 PM

I think about it.

Alfa1 02-17-2009 11:23 PM

Great!

rapidphim 02-18-2009 05:46 AM

awesome hack. just what I am needed. thanks much!

Playa82 02-18-2009 07:45 AM

still shows me the reflection of my whole forum...

mad@Max 02-18-2009 09:49 AM

You are edited the template of hack? You are using vbadvanced?

Playa82 02-18-2009 11:56 AM

Quote:

Originally Posted by mad@Max (Post 1747712)
You are edited the template of hack? You are using vbadvanced?

i use vbadvanced (on my forumroot)

i edited nothing

rapidphim 02-18-2009 02:17 PM

<span style="text-decoration: line-through">Max... do you happened to know how to move the Who's online section on top of forum/below navbar?</span>

Edit: I found out how to do this.

mad@Max 02-18-2009 07:24 PM

Playa82, Please show me your template awio_js. If you use vbadvanced and it placed in root folder then you was changed index.php on some like forum.php.

Playa82 02-19-2009 04:29 AM

Quote:

Originally Posted by mad@Max (Post 1748352)
Playa82, Please show me your template awio_js. If you use vbadvanced and it placed in root folder then you was changed index.php on some like forum.php.

yes, it's forum.php now. my index.php is from vbadvanced

Playa82 02-19-2009 04:32 AM

Quote:

Originally Posted by mad@Max (Post 1748352)
Playa82, Please show me your template awio_js

here it is:

Code:

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

online = {
        req:function()
        {
                fetch_object('whoisonline').innerHTML = '<img src="images/misc/progress.gif" />';
                YAHOO.util.Connect.asyncRequest("POST", "$vboptions[forumhome].php?do=rqawio", {
                        success: this.show,
                        failure: vBulletin_AJAX_Error_Handler,
                        timeout: vB_Default_Timeout
                });
        },
        show:function(a)
        {
                fetch_object("whoisonline").innerHTML = a.responseText;
        }
};
<if condition="$vboptions[awio_timeout] > 0">
cautoref=setInterval("online.req()", 1000*$vboptions[awio_timeout]);
</if>
// -->
</script>

Maybe you should add a fix for that. because some more people like me did this kind of installation of vbadvanced...

mad@Max 02-19-2009 06:32 AM

I wanted to look at this line $vboptions[forumhome].php?do=rqawio, but it is normal.

Playa82 02-19-2009 12:56 PM

Quote:

Originally Posted by mad@Max (Post 1748767)
I wanted to look at this line $vboptions[forumhome].php?do=rqawio, but it is normal.

i got the error.

in awio_js find this:

Code:

$vboptions[forumhome].php?do=rqawio
and change it to:

Code:

forum.php?do=rqawio
now it works.

This only works if vbadvanced is installed on Forumhome !!!

mad@Max 02-19-2009 01:27 PM

So, $vboptions[forumhome] it's variable name of your forum index file. For you it $vboptions[forumhome] = forum. I do not know why for you it not working.

Playa82 02-19-2009 01:54 PM

Quote:

Originally Posted by mad@Max (Post 1748988)
So, $vboptions[forumhome] it's variable name of your forum index file. For you it $vboptions[forumhome] = forum. I do not know why for you it not working.

my template looks like this now:

Code:

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

online = {
        req:function()
        {
                fetch_object('whoisonline').innerHTML = '<img src="images/misc/progress.gif" />';
                YAHOO.util.Connect.asyncRequest("POST", "forum.php?do=rqawio", {
                        success: this.show,
                        failure: vBulletin_AJAX_Error_Handler,
                        timeout: vB_Default_Timeout
                });
        },
        show:function(a)
        {
                fetch_object("whoisonline").innerHTML = a.responseText;
        }
};
<if condition="$vboptions[awio_timeout] > 0">
cautoref=setInterval("online.req()", 1000*$vboptions[awio_timeout]);
</if>
// -->
</script>

and it works fine...

inciarco 02-22-2009 12:29 AM

Works Fine on vB373. :up:

Thank You Very Much For Sharing It. :up:

My Best Regards. ;)

:)

-=Leb=- 03-05-2009 11:52 AM

Hi mad@max, is it possible for you to add the refresh button inside Currently Active Users too ? Its also very useful to track our members what they are viewing/doing without need to refresh our website
Anyway Its Great Hack and i wanna thank you for it.

mad@Max 03-05-2009 12:55 PM

I don't no, probably:)

inciarco 03-05-2009 01:57 PM

Great Mod mad@Max. :up:

Idea For Future Update: It'd be Nice that when Clicking the Button to Ajax Refresh the Members it'd also Refresh the Number of Members/Guests/Bots Browsing the Board, so they Both Get Refreshed Simultaneously. ;)



My Best Regards.

:)


All times are GMT. The time now is 08:25 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.01281 seconds
  • Memory Usage 1,817KB
  • 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
  • (5)bbcode_code_printable
  • (11)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