Quote:
Originally Posted by Raven_FCF
yep. i want usernames current;y inside chat to appear in left block on front page. will the one you gave me work?
|
Yes, that part of the code will collect the user names inside vBChat for you. In order to see them though, you have to edit your ForumHome template, to include something like:
HTML Code:
<!-- Start vBChat Users -->
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_chatusers')"><img id="collapseimg_forumhome_chatusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_chatusers].gif" alt="" border="0" /></a>
<a href='vBChat.php?$session[sessionurl]'>Users Currently Inside vBChat</a>
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_chatusers" style="$vbcollapse[collapseobj_forumhome_chatusers]">
<tr>
<td class="alt2"><a href="vBChat.php?$session[sessionurl]"><img src="$stylevar[imgdir_statusicon]/forum_link.gif" alt="vBChat" border="0" /></a></td>
<td class="alt1" width="100%">
<div class="smallfont">
{$invBChat}
</div>
</td>
</tr>
</tbody>
<!-- End vBChat Users -->
Put the above, right after the part which looks like:
HTML Code:
<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 -->
rgds