How to get all online stats to the right hand column of the homepage!
Demo
Open the template manager and in titles search: FORUMHOME and replace with this code (TAKE A BACKUP OF OLD CODE: ctrl+a ctrl+c open note pad ctrl+v)
PHP Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<!-- no cache headers -->
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="Cache-Control" content="no-cache" />
<!-- end no cache headers -->
$headinclude
<title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase></title>
</head>
<body>
$header
$navbar
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="250" valign="top" style="padding-right: 15px;">
<table cellpadding="8" cellspacing="0" border="0" width="100%" align="center" style="border: 1px solid #000000;">
<thead>
<tr>
<td class="tcat" colspan="2"><if condition="$show['guest']">Login<else />Control Panel</if></td>
</tr>
</thead>
</table>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-top: 0px;">
<tr>
<td class="alt1">
<if condition="$show['member']">
<div class="smallfont">
<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
<if condition="$show['pmwarning']"><br /><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></if>
</div>
<else />
<!-- login form -->
<form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
<script type="text/javascript" src="clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" align="center">
<tr>
<td class="smallfont" nowrap="nowrap"><label for="navbar_username">$vbphrase[username]:</label></td>
<td><input type="text" name="vb_login_username" id="navbar_username" size="20" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" class="textfield" /></td>
</tr>
<tr>
<td class="smallfont" nowrap="nowrap"><label for="navbar_password">$vbphrase[password]:</label></td>
<td><input type="password" name="vb_login_password" id="navbar_password" size="20" tabindex="102" class="textfield" /></td>
</tr>
<tr>
<td colspan="2" class="smallfont" align="center"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label> <input type="submit" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" class="textfield" /></td>
<tr>
</table>
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form>
<!-- / login form -->
</if>
</td>
</tr>
</table>
<br />
<table cellpadding="8" cellspacing="0" border="0" width="100%" align="center" style="border: 1px solid #000000;">
<thead>
<tr>
<td class="tcat" colspan="2">Forum Statistics</td>
</tr>
</thead>
</table>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-top: 0px;">
<tr>
<td class="alt1">
<div class="smallfont">
<strong>Forum Members:</strong> $numbermembers<br />
<strong>Total Threads:</strong> $totalthreads<br />
<strong>Total Posts:</strong> $totalposts<br />
<strong>Online:</strong> $totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>)<br />
<strong>Members Online Now:</strong> $activeusers
<br />
<strong>Most Members Online:</strong> <phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase><br />
<strong>Members Visited Today:</strong> $whotoday<br />
</div>
</td>
</tr>
</table>
</td>
<td valign="top">
<!-- main -->
<!-- guest welcome message -->
<if condition="$show['guest']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><phrase 1="$vboptions[bbtitle]">$vbphrase[welcome_to_the_x]</phrase></td>
</tr>
<tr>
<td class="alt1" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><phrase 1="faq.php?$session[sessionurl]" 2="register.php?$session[sessionurl]">$vbphrase[first_visit_message]</phrase></td>
</tr>
</table>
<br />
</if>
<!-- / guest welcome message -->
$forumbits
<!-- /main -->
<!-- what's going on box -->
<table cellpadding="8" cellspacing="0" border="0" width="100%" align="center" style="border: 1px solid #000000;">
<thead>
<tr>
<td class="tcat" colspan="2">$vbphrase[whats_going_on]</td>
</tr>
</thead>
</table>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-top: 0px;">
<!-- today's birthdays -->
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_birthdays')"><img id="collapseimg_forumhome_birthdays" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_birthdays].gif" alt="" border="0" /></a>
$vbphrase[todays_birthdays]
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_birthdays" style="$vbcollapse[collapseobj_forumhome_birthdays]">
<tr>
<td class="alt2"><a href="calendar.php?$session[sessionurl]do=getday&day=$today&sb=1"><img src="$stylevar[imgdir_misc]/birthday.gif" alt="$vbphrase[view_birthdays]" border="0" /></a></td>
<td class="alt1" width="100%"><div class="smallfont">$birthdays</div></td>
</tr>
</tbody>
<!-- end today's birthdays -->
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_events')"><img id="collapseimg_forumhome_events" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_events].gif" alt="" border="0" /></a>
<if condition="$show['todaysevents']">$vbphrase[todays_events]<else /><phrase 1="$vboptions[showevents]">$vbphrase[upcoming_events_for_the_next_x_days]</phrase></if>
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_events" style="$vbcollapse[collapseobj_forumhome_events]">
<tr>
<td class="alt2"><a href="calendar.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/calendar.gif" alt="$vbphrase[calendar]" border="0" /></a></td>
<td class="alt1" width="100%"><div class="smallfont">$upcomingevents</div></td>
</tr>
</tbody>
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_key')"><img id="collapseimg_forumhome_key" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_key].gif" alt="" border="0" /></a>
Forum Key
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_key" style="$vbcollapse[collapseobj_forumhome_key]">
<tr>
<td colspan="2" class="alt2">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="33%" align="center"><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[contains_new_posts]" border="0" /><br /><div class="smallfont">$vbphrase[forum_contains_new_posts]</div></td>
<td width="34%" align="center"><img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]" border="0" /><br /><div class="smallfont">$vbphrase[forum_contains_no_new_posts]</div></td>
<td width="33%" align="center"><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]" border="0" /><br /><div class="smallfont">$vbphrase[forum_is_closed_for_posting]</div></td>
</tr>
</table>
</td>
</tr>
</tbody>
<tr>
<td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>">
<div class="smallfont"><strong>
<a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a>
<a href="showgroups.php?$session[sessionurl]">$vbphrase[view_forum_leaders]</a>
</strong></div>
</td>
</tr>
</tbody>
</table>
<!-- end what's going on box -->
</td>
</tr>
</table>
$footer
</body>
</html>
This needs to ahve the mod, Visitors today. in Blaze, find the visitors today file by searching for
and replacing all contents of that file with nothing. Don't delete it, just empty it
P.S It may look better if you remove 'Most users ever online was ' from that most users online phrase, but it may not look as good on other themes, so trial and error is the way to go!
I hope you like my minor mod for this skin, i suck at PHP!
This skin rocks.
EDIT: Oh and i did try to add members who posted today aswell, but it made it look realy bad as it repeated alot of names, it also looked fake.