Who viewed this thread? Version: 1.0 vB-version: 3.0.0 Release Candidate 3 Developer: Gary W Install difficulty: Extremely Easy File edits: 1 Template edits: 1
Description of the Hack:
This hack shows who has viewed any thread. View the screenshot to see how it looks.
If you don't want to have invisible users in the list, then remove $showinvisible = 1;
View the screenshot to see the hack in action
Instructions
FILES
------
showthread.php
TEMPLATES
-------------
SHOWTHREAD
RUN QUERY: ALTER TABLE thread ADD whoviewed TEXT NOT NULL;
ADD PHRASE:
already_viewed_this_thread / Already viewed this thread:
OPEN FILE showthread.php AND FIND
PHP Code:
// *********************************************************************************
//set thread last view
set_bbarray_cookie('thread_lastview', $threadid, TIMENOW);
ABOVE ADD
PHP Code:
$showinvisible = 1;
// Get who has already viewed this thread
$currentthread = $DB_site->query_first("SELECT whoviewed FROM ".TABLE_PREFIX."thread WHERE threadid = $threadid");
$vieweduserids = explode(" ", $currentthread['whoviewed']);
Hi Gery W, I like very much this hack but I have a questions:
Is there the possibility that onlyAdmins see this "Who viewed this thread" Panel (if Yes, How?)
Hi, Gary! I just installed this hack, but I'm having three issues with it:
1. Invisible Users don't show up at all. I would have thought that this would work like vB's Currently Active Users, or even like your Who Was Online Today - where Invisible Users appear to those who have the rights to see them (and they are suffixed with a " * " character. But in this case, they are just not there.
2. The Title Bar doesn't actually reach all the way to the right side. If you collapse it, then it displays properly. But while expanded, it falls a quarter inch short.
3. On your Who Was Online Today hack, when you click on a Username, it brings up the profile in the same window. But on this one, it opens a new window. Is this easily fixable?
Now the only question is - did I do something wrong? Or are these three issues actually bugs?
Hi, Gary! I just installed this hack, but I'm having three issues with it:
1. Invisible Users don't show up at all. I would have thought that this would work like vB's Currently Active Users, or even like your Who Was Online Today - where Invisible Users appear to those who have the rights to see them (and they are suffixed with a " * " character. But in this case, they are just not there.
2. The Title Bar doesn't actually reach all the way to the right side. If you collapse it, then it displays properly. But while expanded, it falls a quarter inch short.
3. On your Who Was Online Today hack, when you click on a Username, it brings up the profile in the same window. But on this one, it opens a new window. Is this easily fixable?
Now the only question is - did I do something wrong? Or are these three issues actually bugs?
All 3 are fixed The invisible users part, it shows invisible users to all users to have less strain on the servers.
All 3 are fixed The invisible users part, it shows invisible users to all users to have less strain on the servers.
Great! I'll give it a shot tomorrow and see how it goes.
Incidentally, I only plan on certain users being able to access this feature - so I wouldn't think it would be that great a strain on the Server, for me at least.
What would I need to change, if I wanted Invisible Users handled the same way it is on the Forum Home? (i.e. Only shown to those with access to see Invisible Users, suffixed with the "*" character, etc...)