Lea Verou |
10-10-2005 12:38 AM |
If you have "who is viewing the thread" activated I made a template modification that will "split" the table that contains the users currently viewing the thread in half and make it display the users that have viewed the thread in the last X days in the second column. This way it looks neater I think as if you have those 2 enabled it looks quite terrible :p
TEMPLATE MODIFICATION (do this instead of the one that's written in the companion txt, not both)
In SHOWTHREAD find:
HTML Code:
<td class="tcat" colspan="2">
<phrase 1="$totalonline" 2="$numberregistered" 3="$numberguest">$vbphrase[users_viewing_this_thread_x_y_z]
</td>
</tr>
replace with:
HTML Code:
<td class="tcat" colspan="2">
<phrase 1="$totalonline" 2="$numberregistered" 3="$numberguest">$vbphrase[users_viewing_this_thread_x_y_z]</phrase>
</td>
<if condition="$vboptions[threadmarking] AND $bbuserinfo[userid]">
<td class="tcat" colspan="2" width="50%">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('thread_readers')"><img id="collapseimg_thread_readers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_thread_readers].gif" alt="" border="0" /></a>
$trtitle</td>
</if>
</tr>
<tbody id="collapseobj_thread_readers" style="$vbcollapse[collapseobj_thread_readers]">
Find:
HTML Code:
<tr>
<td class="alt1" colspan="2">
<span class="smallfont">$activeusers
</td></tr>
Replace that with:
HTML Code:
<tr>
<td class="alt1" colspan="2">
<span class="smallfont">$activeusers</span>
</td>
<if condition="$vboptions[threadmarking] AND $bbuserinfo[userid]">
<td class="alt1" colspan="2">
<span class="smallfont">$treaders</span>
</td>
</if>
</tr>
</tbody>
Please inform if this causes any bugs. I tested it in my site and it works well :)
I attach a screenshot too so that you can see what this is about :)
|