Log in

View Full Version : How do I change order of "whats going on"


JustinBr
11-01-2006, 08:47 PM
Current order is:

Currently Active Users
Total members that have visited the forum in the last 24 hours
Members currently using Flashchat
ROIC :: Rule One Investment Community Message Boards Statistics

I want it to be in this order:

Currently Active Users
ROIC :: Rule One Investment Community Message Boards Statistics
Members currently using Flashchat
Total members that have visited the forum in the last 24 hours


Thanks!

G0F0RBR0KE
11-02-2006, 12:27 AM
Please post the "Who's Online Template"

I'll see if I can adjust it ;)

JustinBr
11-02-2006, 01:32 AM
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
$metarefresh
<title>$vboptions[bbtitle] - $vbphrase[whos_online]</title>
</head>
<body>
$header
$navbar

<if condition="$pagenav">
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
<tr valign="bottom">
<td align="$stylevar[right]">$pagenav</td>
</tr>
</table>
</if>

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" id="woltable">
<tr>
<td class="tcat" colspan="$colspan"><div class="smallfont">
<span style="float:$stylevar[right]">
<a href="$reloadurl"><strong>$vbphrase[reload_this_page]</strong></a>
</span>
<strong><phrase 1="$numbervisible" 2="$numberguests">$vbphrase[x_members_and_y_guests]</phrase></strong><br /><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase>
</div></td>
</tr>
<tr>
<td class="thead" >
<span style="float:$stylevar[right]">
<a href="$sorturl&amp;order=desc&amp;sort=time&amp;pp=$perpage&amp;page=$pa genumber">$vbphrase[last_activity]</a> $sortarrow[time]
</span>
<a href="$sorturl&amp;order=asc&amp;sort=username&amp;pp=$perpage&amp;page= $pagenumber">$vbphrase[username]</a> $sortarrow[username]
</td>
<td class="thead"><a href="$sorturl&amp;order=asc&amp;sort=location&amp;pp=$perpage&amp;page= $pagenumber">$vbphrase[location_temp]</a> $sortarrow[location]</td>
<if condition="$show['ip']"><td class="thead">$vbphrase[ip_address]</td></if>
<if condition="$vboptions['showimicons']"><td class="thead" align="center">$vbphrase[instant_messaging]</td></if>
</tr>
$onlinebits
</table>

<if condition="$show['ajax_resolve']">
<script type="text/javascript" src="clientscript/vbulletin_ajax_wolresolve.js?v=$vboptions[simpleversion]"></script>
<script type="text/javascript">
<!--
vB_AJAX_WolResolve_Init('woltable');
//-->
</script>
</if>

<br />

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" align="center">

<form action="online.php" method="post">
<input type="hidden" name="pp" value="$perpage" />
<input type="hidden" name="sortfield" value="$sortfield" />
<input type="hidden" name="sortorder" value="$sortorder" />
<div class="fieldset" style="margin:0px">

<if condition="$vboptions['WOLguests']">
$vbphrase[display]:
<select name="who">
<option value="all" $whoselected[0]>$vbphrase[all]</option>
<option value="members" $whoselected[1]>$vbphrase[members]</option>
<option value="guests" $whoselected[2]>$vbphrase[guests]</option>
<if condition="$vboptions['enablespiders']">
<option value="spiders" $whoselected[3]>$vbphrase[search_bots]</option>
</if>
</select>
&nbsp; &nbsp;
</if>

<if condition="$show['ip']">
$vbphrase[user_agent]:
<select name="ua">
<option value="1" $uaselected[1]>$vbphrase[yes]</option>
<option value="0" $uaselected[0]>$vbphrase[no]</option>
</select>
&nbsp; &nbsp;
</if>

$vbphrase[per_page]:
<input type="text" class="bginput" style="font-size:11px" name="pp" value="$perpage" size="2" />
&nbsp; &nbsp;

<input type="submit" class="button" value="$vbphrase[display]" accesskey="s" />

</div>
</form>

</td>
</tr>
</table>

<if condition="$pagenav">
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-top:3px">
<tr valign="top">
<td align="$stylevar[right]">$pagenav</td>
</tr>
</table>
</if>

<br />

<!-- icons and forum jump -->
<table cellpadding="0" cellspacing="2" border="0" width="100%">
<tr valign="bottom">
<td width="100%">
<table cellpadding="2" cellspacing="0" border="0">
<col align="center"></col>
<tr>
<td><strong>+</strong></td>
<td class="smallfont">&nbsp; $vbphrase[user_is_on_your_buddy_list]</td>
</tr>
<if condition="$show['hidden']">
<tr>
<td><strong>*</strong></td>
<td class="smallfont">&nbsp; $vbphrase[user_is_invisible_to_others]</td>
</tr>
</if>
<if condition="$show['badlocation']">
<tr>
<td><img src="$stylevar[imgdir_statusicon]/wol_lockedout.gif" alt="$vbphrase[viewing_forum_closed]" /></td>
<td class="smallfont">&nbsp; $vbphrase[viewing_forum_closed]</td>
</tr>
<tr>
<td><img src="$stylevar[imgdir_statusicon]/wol_nopermission.gif" alt="$vbphrase[viewing_no_permission_message]" /></td>
<td class="smallfont">&nbsp; $vbphrase[viewing_no_permission_message]</td>
</tr>
<tr>
<td><img src="$stylevar[imgdir_statusicon]/wol_error.gif" alt="$vbphrase[viewing_error_message]" /></td>
<td class="smallfont">&nbsp; $vbphrase[viewing_error_message]</td>
</tr>
</if>
</table>
</td>
<td>
$forumjump
</td>
</tr>
</table>
<!-- / icons and forum jump -->

$footer

</body>
</html>

G0F0RBR0KE
11-02-2006, 09:32 AM
Wrong one....Try the ForumHome Template located inside the "Forum Display Templates"

JustinBr
11-02-2006, 09:17 PM
I found ForumHome located inside the ForumHome Templates. not forum display. don't know if that matters or not. anyway,

$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>ROIC Message Board :: Phil Town Warren Buffett Benjamin Graham Value Investing</title>
</head>
<body>
$header
$navbar

<!-- main -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr align="center">
<td class="thead">&nbsp;</td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
</thead>
$forumbits
<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" rel="nofollow">$vbphrase[mark_forums_read]</a>
<if condition="$vboptions['forumleaders']">&nbsp; &nbsp;
<a href="showgroups.php$session[sessionurl_q]" rel="nofollow">$vbphrase[view_forum_leaders]</a></if>
</strong></div></td>
</tr>
</tbody>
</table>
$forumhome_markread_script
<!-- /main -->

<br />
<br />

<!-- what's going on box -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" colspan="2">$vbphrase[whats_going_on]</td>
</tr>
</thead>
<if condition="$show['loggedinusers']">
<!-- logged-in users -->
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_activeusers')"><img id="collapseimg_forumhome_activeusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a>
<a href="online.php$session[sessionurl_q]" rel="nofollow">$vbphrase[currently_active_users]</a>: $totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>)
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]">
<tr>
<td class="alt2"><a href="online.php$session[sessionurl_q]" rel="nofollow"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="$vbphrase[view_whos_online]" border="0" /></a></td>
<td class="alt1" width="100%">
<div class="smallfont">
<div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div>
<div>$activeusers</div>
</div>
</td>
</tr>
</tbody>
<!-- end logged-in users -->
</if>
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_stats')"><img id="collapseimg_forumhome_stats" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_stats].gif" alt="" border="0" /></a>
<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_stats" style="$vbcollapse[collapseobj_forumhome_stats]">
<tr>
<td class="alt2"><img src="$stylevar[imgdir_misc]/stats.gif" alt="<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>" border="0" /></td>
<td class="alt1" width="100%">
<div class="smallfont">
<div>
$vbphrase[threads]: $totalthreads,
$vbphrase[posts]: $totalposts,
$vbphrase[members]: $numbermembers<if condition="$show['activemembers']">,
<span title="<phrase 1="$vboptions[activememberdays]">$vbphrase[within_the_last_x_days]</phrase>">$vbphrase[active_members]: $activemembers</span>
</if>
</div>
<div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>
</div>
</td>
</tr>
</tbody>
<if condition="$show['birthdays']">
<!-- 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&amp;day=$today&amp;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 -->
</if>
<if condition="$show['upcomingevents']">
<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>
</if>
</table>
<br />
<!-- end what's going on box -->

<!-- icons and login code -->
<table cellpadding="0" cellspacing="2" border="0" width="100%">
<tr valign="bottom">
<td>
<table cellpadding="2" cellspacing="0" border="0">
<tr>
<td><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[contains_new_posts]" border="0" /></td>
<td class="smallfont">&nbsp; $vbphrase[forum_contains_new_posts]</td>
</tr>
<tr>
<td><img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]" border="0" /></td>
<td class="smallfont">&nbsp; $vbphrase[forum_contains_no_new_posts]</td>
</tr>
<tr>
<td><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]" border="0" /></td>
<td class="smallfont">&nbsp; $vbphrase[forum_is_closed_for_posting]</td>
</tr>
</table>
</td>
<if condition="!$show['guest']">
<!-- member logout -->
<td align="$stylevar[right]"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out()"><phrase 1="$bbuserinfo[username]">$vbphrase[log_out_x]</phrase></a></td>
<!-- end member logout -->
</if>
</tr>
</table>
<!-- / icons and login code -->

$footer
</body>
</html>

G0F0RBR0KE
11-03-2006, 12:38 PM
Odd, I can't find the code that talks about the ROIC Message Board.

If you can, set me up an admin account that allows me to just do the template. If not, than i'll see what i can do with this code.

Since you're running 3.6.x, it's going to take a while before I find the string. Unless the ROIC is listed somewhere else other than inside the "forumhome" template.

The one you gave me only shows me this.

$vbphrase[currently_active_users]: $totalonline ($vbphrase[x_members_and_y_guests])



$vbphrase[most_users_ever_online_was_x_y_at_z]

$activeusers






Which is Currenty Member Online
Total Online
Most Online Users

Paul M
11-03-2006, 12:46 PM
Visitors Today and Members in Flashchat do not edit the template, they use direct injection at runtime. You can adjust the order they appear by changing the plugin execution order values.

JustinBr
11-03-2006, 05:58 PM
Akuma>> Thanks for your efforts if it comes to that I will discuss it with my partner.

Paul>> Can you elaborate or give me any links that would further illustrate what you are talking about?

Thanks

Paul M
11-03-2006, 06:27 PM
If you edit a plugin via the Plugin Manager, one of the fields is "Execution Order" - by default, every plugin has the value 5 in this field. By changing that value you can change the order that plugins on a particular hook are run.

The Members in Flashchat, Members who have Visited (and Members who have Posted) mods all use the forumhome_start hook, so to control what order they run (and hence appear) you need to set a different value for each one.

JustinBr
11-03-2006, 07:41 PM
Ok that makes sense, however I wasn't able to find a forumhome_start anywhere in my vb. I checked the templates manually, then searched the templates, then as a last resort checked the plugin manager. Obviously it isnt any any of those places, so where should I be looking for that file?

Paul M
11-04-2006, 12:05 AM
It's not a file - in the Plugin Manager screen, there is a column called "Hook Location" for each plugin. You are looking for the plugins whose location is 'forumhome_start'.