PDA

View Full Version : cmps who was on line....


chet
12-13-2004, 12:48 PM
Have post over at vbadvanced to and hoping somone will pick it up at one of the sites

If you take a look at my vbindex portal (http://www.chetnet.co.uk/portal) you will see at the bottom in the centre block "what's going on", some one over here modified my template to incorporate it from the forums home page, I was wondering if someone could look at the template and extract the "what's going on" and turn it into a module for cmps, may come in handy for others too

Thanks

Chet

$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 -->
<title>$vboptions[bbtitle] - $vbphrase[powered_by_vbindex]</title>
$headinclude
</head>
<body>
$home[header]
$home[navbar]

<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="$stylevar[tablewidth]">
<tr>
<if condition="($vbindex['options'] & VBI_LEFT_COL) OR ($vbindex['options'] & VBI_BOTH_COLS)">
$home[leftside]
</if>
<!-- start main col -->
<td style="vertical-align:top">
<!-- welcome box -->
<table cellpadding="0" cellspacing="0" border="0" class="tborder" width="100%" style="text-align: center">
<tr>
<td>
<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
<tr>
<td class="tcat" colspan="6" style="text-align: center; vertical-align: middle">
<strong>$vbphrase[vbi_welcome]</strong>
</td>
</tr>
<tr>
<td class="alt2" style="text-align: center; vertical-align: middle" width="100">
<if condition="$showavatar">
<img src="$avatarurl" alt="$vbphrase[your_avatar]" title="$vbphrase[your_avatar]" border="0" />
</if>
</td>
<td class="alt1" style="text-align: center">
<div class="smallfont">
<if condition="$showmemberwelcome">
$vbphrase[welcome_back] $bbuserinfo[musername]!<br />
<if condition="$vbindex['options'] & VBI_SHOWNEWPOSTS">
<br />$vbphrase[new_and_updated_threads]: <strong>$home[newthreads]</strong> | $vbphrase[new_posts]: <strong>$home[newposts]</strong>
<if condition="$vbindex['options'] & VBI_SUBNEWPOSTS">
<br />$vbphrase[updated_subscribed_threads]: <strong>$home[subscribedthreads]</strong>
</if>
</if>
<br />
<if condition="$permissions['forumpermissions'] & CANSEARCH">
<a href="$vboptions[bburl]/search$ext?$session[sessionurl]do=getnew"><strong>$vbphrase[view_new_posts]</strong></a> | <a href="$vboptions[bburl]/search$ext?$session[sessionurl]do=getdaily"><strong>$vbphrase[todays_posts]</strong></a>
</if>
<else />
$vbphrase[vbi_welcome] <strong>$vbphrase[guest]</strong>!<br />$home[welcomemessage]
</if>
</div>
</td>
<td class="alt2" style="text-align: center; vertical-align: middle" width="100">
<div class="smallfont">$vbphrase[members]: <strong>$home[numbermembers]</strong><br /><!--<br />Threads: <strong>$home[totalthreads]</strong><br />Posts: <strong>$home[totalposts]</strong><br />--><br /><a href="$vboptions[bburl]/showgroups$ext?$session[sessionurl]"><strong>$vbphrase[forum_leaders]</strong></a></div></td>
</tr>
</table>
</td>
</tr>
</table>
<br />
<!-- /welcome box -->
$home[news]
<if condition="($vbindex['options'] & VBI_SHOWCENTERTHREADS) AND !empty($centerthreadbits)">
<table cellpadding="0" cellspacing="0" border="0" class="tborder" width="100%">
<tr>
<td>
<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
<thead>
<tr>
<td class="tcat" colspan="5">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('vbindex_cthreads')"><img id="collapseimg_vbindex_cthreads" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_vbindex_cthreads].gif" alt="" border="0" /></a>
<strong>$vbphrase[latest_threads]</strong>
</td>
</tr>
</thead>
<tbody id="collapseobj_vbindex_cthreads" style="$vbcollapse[collapseobj_vbindex_cthreads]">
<tr>
<td class="thead" style="text-align: center; vertical-align: middle" width="20">
&nbsp;
</td>
<td class="thead" style="text-align: center; vertical-align: middle">
$vbphrase[thread] / $vbphrase[thread_starter]
</td>
<td class="thead" style="text-align: center; vertical-align: middle">
$vbphrase[last_post]
</td>
<td class="thead" style="text-align: center; vertical-align: middle">
$vbphrase[replies]
</td>
<td class="thead" style="text-align: center; vertical-align: middle">
$vbphrase[views]
</td>
</tr>
$centerthreadbits
</tbody>
</table>
</td>
</tr>
</table>
<br />
</if>
<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>
<!-- 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]">$vbphrase[currently_active_users]</a>: <strong>$home[onlinemembertotal]</strong> $vbphrase[members] | <b>$home[onlineguesttotal]</b> $vbphrase[guests]
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]">
<tr>
<td class="alt2" rowspan="2" valign="middle"><a href="online.php?$session[sessionurl]"><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">
$home[onlineusers]
</div>
</td>
</tr>
<if condition="$show['last24']">
<tr>
<td class="alt2">
<div class="smallfont">
<phrase 1="$home[last24count]">$vbphrase[users_online_today]</phrase>
</div>
<if condition="$show['last24user']">
<div class="smallfont">
$home[last24]
</div>
</if>
</td>
</tr>
</if>
</tbody>
<!-- / logged-in users -->
</table>
</td>
<!-- end main col -->
<if condition="($vbindex['options'] & VBI_RIGHT_COL) OR ($vbindex['options'] & VBI_BOTH_COLS)">
$home[rightside]
</if>
</tr>
</table>
$home[footer]
</body>
</html>