The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
![]() |
|||||||||||||||||||||||||
Who Viewed This Thread - Enhanced Version v1.3.2
Version: 1.3.2 vB Version: 3.0.3 Developer: Ocean Install Difficulty: Moderately Easy The original hack this references was done by Gary King (https://vborg.vbsupport.ru/showthread.php?t=61222). I modified his hack in order to gain some additional functionality. This hack is meant to be installed instead of Gary's original version - not in addition to it (for sanity's sake, as far as managing the code is concerned). (This was submitted as a seperate hack with Gary's permission. If this belongs in a different group, I'm sure a Moderator will move it accordingly. ![]() Description: This hack will allow you to see which users have viewed any given Thread. In addition, there is a second section that is resettable. What this means, is that there are two sections that show a list of users who have viewed the Thread in question. The first section is a Master List - it shows all users who have viewed that thread at ANY point in time (since the hack was installed). The second section works like your car's Trip Meter. You can Reset that second section at any time and it will then show only the users that have viewed that thread FROM THAT POINT ON. In addition, this second section will show you the Date/Time of the last Reset, so that you know from what point that second list is showing. This is useful, for example, if you want to be able to see which users have viewed a thread after you have updated it, or after a particular post of interest has been made. You can choose which UserGroups can view the Who Viewed information, or even if you want all users to be able to see the first section - but only certain UserGroups to see the second. You can also choose whether you want the Who Viewed information to be displayed directly on the ShowThread page, or if you would prefer to only show a link that opens a Pop Up Window with the Who Viewed information there. Release Notes: v1.3.2 Fixed the problem where the Pop-Up Link was visible to users who didn't have permission to view that information. (They still wouldn't be shown the information - but the link shouldn't have been visible to them in the first place) v1.3.1 Minor modifications to the Aesthetics of the ShowThread page, as well as the Who Viewed Pop Up Window. No functional changes. If you are using v1.3.0, you do not need to upgrade, unless you wish to have the new aesthetics. v1.3.0 Added the ability to choose whether you want the Who Viewed information to be displayed directly on the ShowThread page (as it was for all prior versions of this hack), or if you would prefer to only show a link that opens a Pop Up Window with the Who Viewed information there. Also consolidated and cleaned up the code. v1.2.6 Fixed the problem with the "Who Viewed Since" table collapsing the wrong object v1.2.5 Minor changes to optimize code. No functional changes. If you have v1.2.4, you do not need to upgrade to v1.2.5. v1.2.4 Reworked the Security Sections so that they are exponentially easier to set. Now, other than choosing which UserGroups you want to have access to this hack, you only need to change ONE variable in order to choose which Security Layout you want to use. ![]() v1.2.3 Updated all of the Security Sections to allow for more flexibility in selecting which UserGroups may view the WhoViewed Information. v1.2.1 Upgrade Notes have been updated, and an Upgrade Script provided for those who have Gary's original version installed. If you have already successfully installed v1.2 of this hack, there is no need to do anything further. v1.2 The original hack allowed you to see which users had viewed any particular thread on your board. It was and is an excellent hack - however, I desired some additional functionality, and so I made the following changes: 1. The format of stored User IDs has changed to a comma delineated format. This was done to optimize the code by stripping out the need for an additional explode() and implode(). 2. An additional set of information is now being kept and maintained. However, unlike the first set (which will show you who has viewed a particular thread - ever), the second set is resettable at any time by Admins. This gives you a "tripmeter" of sorts, as you can now tell who has viewed a particular thread from the last time you reset that counter for that thread. 3. The date and time of the last reset for each thread is kept and displayed. Otherwise, it would be self-defeating, as you wouldn't remember when you last reset it. ![]() 4. This hack has been written so that all functions are for Admins only. Instructions are included for modifying this, if you wish. (Note: Even if you make ALL information viewable to ALL users, only Admins are allowed to Reset Counters. It is recommended that you do not change this) 5. I have the template additions being added at the bottom of the ShowThread page (right above the posting permissions). It seems to make more sense putting it there, as it doesn't get in the way, aesthetically speaking. Basically, if you want to check that section, it's there - if not, you'll never be bothered by it. If you prefer to have it somewhere else, feel free to insert the ShowThread Template portion of the code wherever you wish. UPGRADE NOTES: The instructions for this hack assume that you do NOT have any prior version installed. At the moment, if you already have Gary's original 1.0 version installed, you will either need to completely clear out the existing data, before installing this hack - or you can download the "WhoViewedUpgradeFormat.php" script in order to convert the data format over to the new style. Instructions are included for upgrading. Show Your Support
|
Comments |
#62
|
||||
|
||||
![]()
Alright, everyone - I have a question for you.
I'm looking at filling the requests that this hack show up as a link which opens a Pop Up Window with the requisite information. The question I'm posing to all of you is this: if I do this, does anyone still feel that it is beneficial to be able to optionally have the information display on the thread itself (the way it does currently)? Or would everyone unanimously prefer that it only display the information as a Pop Up? If everyone wants it as a Pop Up, I may not retain the current format. On the other hand, if there are those who like it as it is - I may make it an option, so that you can select which format you prefer. Let me know. ![]() |
#63
|
|||
|
|||
![]()
I would like to see it as an option...Mine is set to display on admin and staff...but if this where to be visable boaRd wide...then yes a popup would be nice
|
#64
|
||||
|
||||
![]()
Personally, I think the popup is what is prefered. You might not want to see who viewed ALL topics, just the ones you really want to monitor. Besides, this might open the door for my previous request
![]() |
#65
|
|||
|
|||
![]()
An option to do either would seem to make everyone happy.
![]() |
#66
|
||||
|
||||
![]() Quote:
Well, everyone - I'm working on the next version, which will have a user-selectable option to make the "Who Viewed" information available via a Pop Up Window (or, you could choose to see them on the ShowThread page, as it is now). ![]() I should have it released this week, if all goes well. ![]() |
#67
|
||||
|
||||
![]()
Alright everyone!
I have just released v1.3.0 of this hack, and I have given you what you asked for: the ability to have the Who Viewed information displayed in a Pop Up, instead of directly in the ShowThread page. ![]() I made it so that you can choose which Display Mode you prefer - to have the Who Viewed information show up directly on the ShowThread page (as it was for all prior versions), or to only show a Link on the ShowThread page that opens a Pop Up Window with the Who Viewed information there. I also consolidated and cleaned up the code - so now (among other changes) there is a distinct Configuration Section in the ShowThread.php code addition. For users upgrading from v1.2.6 (and these instructions ONLY apply to users coming from v1.2.6), download the v1.3.0 instructions and do the following: 1. Remove the code addition you previously had added to Misc.php. It is no longer needed. 2. Follow Steps 3-4 in the v1.3.0 Instructions file. 3. Replace the old (v1.2.6) code additions to ShowThread.php with the new version of code (Steps 5-6). 4. Replace the old (v1.2.6) code additions to the SHOWTHREAD Template with the new version of code (Steps 8-9). 5. Follow Steps 10-11 in the v1.3.0 Instructions file. 6. Test to make sure the hack works properly (do this BEFORE you change anything in the Configuration Section). 7. Optional: Edit the Configuration Section in the new Code you just added. That's it! Let me know what you think of the new Pop Up functionality! ![]() |
#68
|
|||
|
|||
![]() Quote:
I had just installed 1.2.6 this morning! ![]() Thanks! Will try out the upated mod this evening. ![]() |
#69
|
||||
|
||||
![]() Quote:
![]() I know how much I hate waiting weeks or months for other developers to make changes or improvements - so I try to not do the same thing. If it really bothers you, I could start waiting a month or two longer than necessary before releasing new versions... <grin> |
#70
|
|||
|
|||
![]() Quote:
![]() ![]() |
#71
|
||||
|
||||
![]() Quote:
There are no functional changes with v1.3.1 (versus v1.3.0) - I made some minor improvements to the aesthetics, that's all. I updated the screenshots on the first post in this thread - so you can take a look and decide if you want those changes now, or if you'd rather wait until the next functional release. ![]() For anyone upgrading from v1.3.0 to v1.3.1 - just replace the code inserted into the SHOWTHREAD Template, as well as the entire contents of the WhoViewedTemplate Template. That's it. You're not overwriting any configuration settings - so it's just two quick replacements and you're completely done. ![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|