The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Who viewed this thread? Details »» | |||||||||||||||||||||||||
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 --> 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 --> 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
|
Comments |
#52
|
|||
|
|||
Quote:
Just a thought... wonder if it'd be possible to use the database info that's already there for each user for new post searches, etc. to retroactively add viewed data to existing threads... |
#53
|
|||
|
|||
I have 3.5.4. I followed the steps with no errors, but I also can't see who viewed the thread. Any ideas?
|
#54
|
|||
|
|||
Wait, I think I see it now. I was expecting it to be under the "views" where it shows how many viewed the post. But I see it's now on the bottom of a thread once you open it.
|
#55
|
|||
|
|||
Just wanted to add: great job! I clicked *Install* and gave the thread a 5 Star rating :nervous:
|
#56
|
||||
|
||||
Quote:
Cannot view threads, as the following error is displayed, and that is all. Quote:
Does anyone have any idea how to resolve this? |
#57
|
|||
|
|||
Installed, and working just fine, thank you.
I do have a question on the following script enhancement. Welo included the following: Quote:
Where do I add this code? Pretty much the same thing Bashy asked, but wasn't answered. Good to know I'm not the only one with this question... some what of a disclaimer Thank You in advance, WR |
#58
|
||||
|
||||
Quote:
visible in forums 2, 3, 4: <if condition="in_array($forumid, array(2, 3, 4))"> <!-- Code of this Hack --> </if> |
#59
|
||||
|
||||
is this out for 3.6.1 ?
and is ther a way to make this an option for certin threads to knock the load down on big sites? |
#60
|
|||
|
|||
After upgrading to mySQL 5 I get this error with the plugin:-
Fatal error: Cannot use object of type vB_Session as array in /home/siteupload/public_html/forums/showthread.php(1953) : eval()'d code on line 33 |
#61
|
|||
|
|||
Quote:
This is exactly what I was looking for! I only wanted this to show in our bug reporting forums so I can keep tabs on our QA team and to let our customers know if the QA team has read the bug report. I'm off to try and install this on 3.6.7PL1. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|