• Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership from 10$ a month today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Hướng dẫn fix lỗi array của online.php style mobile vbb 4.2.0

Admin

Well-Known Member
Staff member
Administrator
Demo là style mobile tuoitrevn
Hướng dẫn:
Admincp -> Style & Templates -> Style Manager -> Edit Template -> Who's Online Templates-> WHOSONLINE
Thay toàn bộ bằng code sau
PHP:
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd"><html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html"><br />
<head>
{vb:raw headinclude}
</head>
<body>
<div class="bodywrapping">
{vb:raw header}
{vb:raw navbar}
<div class="titlebg">
{vb:rawphrase whos_online}: {vb:rawphrase x_members_and_y_guests, {vb:raw numbermembers}, {vb:raw numberguests}}
</div>
<div class="blockhead">{vb:rawphrase most_users_ever_online_was_x_y_at_z, {vb:raw recordusers}, {vb:raw recorddate}, {vb:raw recordtime}}</div>
<vb:if condition="$threadinfo">
<p class="description">{vb:rawphrase viewing_thread_x, {vb:link thread, {vb:raw threadinfo}}, {vb:raw threadinfo.title}}</p>
</vb:if>
<div id="above_who_online" class="floatcontainer">
<vb:if condition="$pagenav">
<div id="pagination_top">
{vb:raw pagenav}
</div>
</vb:if>
</div>
<div class="block">
<vb:each from="onlinebits" key="count" value="userinfo">
<div class="stas"> <span> <vb:if condition="$userinfo['show']['loggedinuser']">
<a href="{vb:link member, {vb:raw userinfo}}">{vb:raw userinfo.musername}</a>{vb:raw userinfo.hidden}<vb:if condition="$userinfo['show']['buddy']">+</vb:if>
<vb:else />
<vb:if condition="$userinfo['show']['spider']">{vb:raw userinfo.spidertype}<vb:else />{vb:raw userinfo.musername}</vb:if>
</vb:if>
&nbsp;-&nbsp;</span>
<span>
{vb:raw userinfo.action}
<vb:if condition="$userinfo['show']['where']">
{vb:raw userinfo.where}
</vb:if>
</span>
</div>
</vb:each>
</div>
<vb:if condition="$show['ajax_resolve']">
<script type="text/javascript" src="clientscript/vbulletin_ajax_wolresolve.js?v={vb:raw vboptions.simpleversion}"></script>
<script type="text/javascript">
<!--
vB_AJAX_WolResolve_Init('woltable');
//-->
</script>
</vb:if>
<div class="floatcontainer blockfootpad">
<vb:if condition="$pagenav">
<div id="pagination_bottom">
{vb:raw pagenav}
</div>
</vb:if>
{vb:raw forumjump}
</div>
<div id="who_online_block_2">
<form id="who_online_options" action="online.php" method="get">
<h5 class="blockhead">{vb:rawphrase who_online_options}</h5>
<div class="blockbody formcontrols">
<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
<input type="hidden" name="sortfield" value="{vb:raw sortfield}" />
<input type="hidden" name="sortorder" value="{vb:raw sortorder}" />
<vb:if condition="$vboptions['WOLguests']">
<div class="blockrow">
<label for="who">{vb:rawphrase display}:</label>
<select class="full" name="who" id="who" tabindex="1">
<option value="all" {vb:raw whoselected.0}>{vb:rawphrase all}</option>
<option value="members" {vb:raw whoselected.1}>{vb:rawphrase members}</option>
<option value="guests" {vb:raw whoselected.2}>{vb:rawphrase guests}</option>
<vb:if condition="$vboptions['enablespiders']">
<option value="spiders" {vb:raw whoselected.3}>{vb:rawphrase search_bots}</option>
</vb:if>
</select>
</div>
</vb:if>
<div class="blockrow">
<label for="pp">{vb:rawphrase per_page}:</label>
<input type="text" class="numeric textbox" name="pp" id="pp" value="{vb:raw perpage}" size="5" tabindex="1" />
</div>
</div>
<div class="blockfoot actionbuttons">
<div class="group">
<input type="submit" class="button" value="{vb:rawphrase display}" accesskey="s" tabindex="1" />
</div>
</div>
</form>
</div>
{vb:raw footer}
</body>
</html>
Nguồn: BD
 

Facebook Comments

Similar threads

New posts New threads New resources

Back
Top