online users page

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:

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

like so:

Code:
<!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">
<head>
<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}" />
	<!--XenForo_Require:CSS-->

	<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" />
	</xen:if>
</xen:hook>
</head>

Change the number 30 to whatever you want. That means it will refresh every 30 seconds.
 
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?
 
Back
Top Bottom