Version: 1.00, by Johannes de Le?n
Developer Last Online: Aug 2006
Version: 3.5.0 RC2
Rating:
Released: 06-29-2005
Last Update: Never
Installs: 76
DB Changes Uses Plugins Template Edits
No support by the author.
This is a port of: https://vborg.vbsupport.ru/showthread.php?t=61222
(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 here, 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]ALTER TABLE thread ADD whoviewed TEXT NOT NULL;[/sql]
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;
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Yeah, but unless you have updated your site, you are showing that you are using RC3. It's not working under GOLD--At least not for me. It gives me an error when I re-visit the post (the first time I visit the post, it's fine, but the 2nd time, it's not)
Yeah, but unless you have updated your site, you are showing that you are using RC3. It's not working under GOLD--At least not for me. It gives me an error when I re-visit the post (the first time I visit the post, it's fine, but the 2nd time, it's not)
Oh yeah, my profile is wrong. I'm using gold on my site.
I'm trying to use it on the final version, but it's not working. Is it just me that's having this problem? After visiting the page a 2nd time, I get an error message, and can't view the post. But when I remove the plug, I can visit the post.
Yes i have similar probl?me the error is:
Quote:
Fatal error: Cannot use object of type vB_Session as array in /showthread.php(1903) : eval()'d code on line 33
installed on Vb 3.5.0 Gold with no problems, but i still have VB3.0.9 on line...
the only change i would like to suggest is to includte the day and time of the last viewed (another hack for 3.0.X had it).
do you think is possible?