Back to vBulletin 3.5 Add-ons

Who viewed this thread?
Mod Version: 1.00, by Johannes de León

This modification is in the archives.
vB Version: 3.5.0 RC2 Rating: (3 votes - 3.67 average) Installs: 76
Released: 01 Jul 2005 Last Update: Never Downloads: 105
Not Supported DB Changes Uses Plugins Template Edits  

This is a port of: Who viewed this thread?
(ported with permission)

Who viewed this thread?
This hack shows who has viewed any thread. View the screenshot to see how it looks.

Details
1 Query
1 New Phrase
1 Template Edit
1 Plugin XML

Screenshots
Available , though now the box appears below the Current Active Users instead of above the post reply button, and it is not collapsible anymore.

Credits
Gary King, for allowing me to port his hack.

-----------

Instructions

Run query
SQL Query: (how to run queries)
ALTER TABLE thread ADD whoviewed TEXT NOT NULL;

Create new phrase
already_viewed_this_thread / Already viewed this thread:

Edit template
Open SHOWTHREAD and find:
HTML Code:
<!-- currently active users -->
<if condition="$show['activeusers']">
	<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
	<tr>
		<td class="tcat" colspan="2">
			<phrase 1="$totalonline" 2="$numberregistered" 3="$numberguest">$vbphrase[users_viewing_this_thread_x_y_z]</phrase>
		</td>
	</tr>
	<tr>
		<td class="alt1" colspan="2">
			<span class="smallfont">$activeusers</span>
		</td>
	</tr>
	</table>
</if>
<!-- currently active users -->
Below this add:
HTML Code:
<!-- who viewed this thread -->
	<br />
	<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
	<tr>
		<td class="tcat" colspan="2">
			$vbphrase[already_viewed_this_thread]
		</td>
	</tr>
	<tr>
		<td class="alt1" colspan="2">
			<span class="smallfont">$thread[viewers]</span>
		</td>
	</tr>
	</table>
<!-- who viewed this thread -->
Plugin
Just upload it, and it's all done.

Options
If you want to have invisible users in the list, go to the plugin manager, click edit to edit this plugin then add this to the beginning:
HTML Code:
$showinvisible = 1;

Download

This modification is archived and cannot be downloaded.


vblts.ru supports vBulletin®, 2022-2024