![]() |
Who viewed this thread?
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 --> HTML Code:
<!-- 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; |
Thanks! Great hack, been waiting for this one a while. Will have a lot of happy users now.
Is there anyway to add the time read to this? Like it is in this one: https://vborg.vbsupport.ru/showthread.php?t=61225 |
Quote:
|
While this is a nice idea, I have to worry about the performance issues associated with this on a large board - Potentially every user could have viewed it, and with a large board which is active the likelyhood of causing performance issues is greatly increased :ermm:
Satan |
Excellent Johannes! I will install when I get home tonight ... :D
|
Quote:
Code:
<if condition="in_array($bbuserinfo['usergroupid'], array( 5, 6, 7))"> Installed, and thanks. :up: |
Quote:
|
Okay, replies like that, especially from a moderator, just irk the hell out of me. If you're going to slap down my solution you'd better have one handy that works, or at least tell me why mine won't. If a template condition doesn't render then no query is executed. If you prove me wrong I'll gladly apologize.
|
Simple, this is in general how things work (and don't see it as slapping down, just don't always have the time to give a more extended asnwer):
- PHP Script is run - Logic of the script is followed - Script will retrieve all needed information from the database and place the information in variables. - Once all info is available, the script will evaluate a template, in which the variables get replaced by their values. As you see a condition placed in a template, only effect what is displayed, not what is retrieved from the database. I can't give you an alternative solution, because i never even looked into this hack. But if you want to improve performance by excluding guests, you will have to edit the PHP-script to make that it will not query the database if a guest is viewing. |
just showing my appriciation for the hack, installed! thank you for making it.
|
Quote:
|
Then quit dragging it up. Marco, thanks for clarifying.
|
Hi just wondering if there was any resolution as to a way to get the time viewed next to the name?
|
Quote:
|
Could you tell me whats the point in having the time next to the members name?
|
I have moderators who are expected to respond to threads on their forum. If I see that one has read it hours ago but not replied I take note, if that happens repeatedly I talk with the moderator to see if the subject they host is over their head. I run a medical support site.
|
any way to make it count the # who've viewd it ?
|
Could you please add the text markup for a user name??? pretty please
|
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.
|
I'm having a problem with it on gold as well. Methinks it isn't compatible.
|
I'm using it on 3.5.0 Release Candidate 2 without any problems.
|
Quote:
|
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)
|
Quote:
|
installed
|
Quote:
Quote:
|
doesn't work for me on = vb 3.5 Gold
I've got blank page when click on showthread |
thanks!!
/me installs (vb 3.5.0 Gold) |
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? thanks |
Yes, I agree, the date and time would be great to have.
|
Is there any way that the names of those that have viewed the thread, can be placed at the top of the thread, rather than at the bottom please ;)
|
Quote:
I've noticed that this function does'nt work with the gold version. But the problem seem to be easy resolved. :) In the plugin php code, change this line (sessions): PHP Code:
to this line: PHP Code:
.. then it works again. :) |
Is this to allow the hack to work in gold, or does it add the time stamp?
Quote:
|
Like a charm and Clicked install!!
|
This is EXACTLY what I need guys! Quick question....
Will it work with 3.5 gold, and what code would I wrap around it to show it ONLY to a certain usergroup, and ONLY in a certain forum. Basically I only want this to show up for my advertisers, and only in the advertising forum so they can see who viewed their ads. Thanks a ton! |
Any idea? Using 3.5 gold:
parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /srv/www/xxx/xxx/vbulletin/showthread.php(1903) : eval()'d code on line 34 Thanks for your help! |
Installed fine on 3.5.1 - no problems quick install and works well, although doesn't show usergroup types (red = admin etc, but that doesn't matter!)
Thanks!! |
no problems in vb3.5 gold
|
I will try this one and I hope it works with me :)
|
Had to un-install, way too much load with 100+ users on line.
|
All times are GMT. The time now is 11:39 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|