1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

online users page

Discussion in 'XenForo Questions and Support' started by Saburov, Apr 13, 2011.

  1. Saburov

    Saburov Active Member

  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    That page doesn't refresh. You have to manually reload the page if you want the latest listing.
  3. Saburov

    Saburov Active Member

    I think it should be. Is there any mode for this issue?
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    You can implement an auto refresh on that page by editing this template:

    Admin CP -> Appearance -> Templates -> PAGE_CONTAINER

    Add this code to the head:

    	<xen:if is="{$contentTemplate} == 'online_list'">
    		<meta http-equiv="refresh" content="30" />
    like so:

    <!DOCTYPE html>
    <html id="XenForo" lang="{$visitorLanguage.language_code}" class="Public {xen:if {$visitor.user_id}, 'LoggedIn', 'LoggedOut'}" xmlns:fb="http://www.facebook.com/2008/fbml">
    <xen:hook name="page_container_head">
    	<meta charset="utf-8" />
    	<xen:if is="{$requestPaths.fullBasePath}"><base href="{$requestPaths.fullBasePath}" /></xen:if>
    	<title><xen:if is="{$title}">{xen:raw $title} | {$xenOptions.boardTitle}<xen:else />{$xenOptions.boardTitle}</xen:if></title>
    	<noscript><style type="text/css">.JsOnly { display: none !important; }</style></noscript>
    	<link rel="stylesheet" type="text/css" href="css.php?css=xenforo,form,public&amp;style={xen:urlencode $_styleId}&amp;d={$visitorStyle.last_modified_date}" />
    	<xen:include template="google_analytics" />
    	<xen:include template="page_container_js_head" />
    	<xen:if is="{$pageDescription.content} AND !{$pageDescription.skipmeta} AND !{$head.description}"><meta name="description" content="{xen:string wordTrim, {xen:helper stripHtml, {xen:raw $pageDescription.content}}, 200}" /></xen:if>
    	<xen:if is="{$head}"><xen:foreach loop="$head" value="$headElement">{xen:raw $headElement}</xen:foreach></xen:if>
    	<xen:if is="{$contentTemplate} == 'online_list'">
    		<meta http-equiv="refresh" content="30" />
    Change the number 30 to whatever you want. That means it will refresh every 30 seconds.
    RockyR and Saburov like this.
  5. Saburov

    Saburov Active Member

    Thanks Jake. it will be good. :)
  6. Saburov

    Saburov Active Member

    Jake, may i ask another question. In online page of some vbulletin forum indicates search bots like "google bot, bing spider etc. How can i provide that the visitor is a bot or a real person?
  7. Onimua

    Onimua Well-Known Member

    That will be in 1.1.
    Saburov likes this.
  8. Saburov

    Saburov Active Member

    thanks onimua
  9. RockyR

    RockyR New Member

    Thanks. Was looking for this :)

Share This Page