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-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 02:34 PM.

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.01118 seconds
  • Memory Usage 1,744KB
  • 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
  • (4)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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