The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
[VB3 RC3] Who viewed this thread? Details »» | |||||||||||||||||||||||||
I know there is already one version of this by Gary W but I already made (and documented) my own so I thought I would post it.
Advantages of my hack: My hack adds only 1 query to showthread, and it only queries the user table, so it is less server intensive. That is important to any busy board or anyone that wants to save some resources. It integrates with the "thread views" system to update the people that have seen the thread. Disadvantages: Well.. with mine even if you browse the forum as "invisible" you would end up showing in the "who read" list. Info for hackers: You may modify, improve, upgrade, redistribute this hack, include it in another hack or yours or translate it provided you do it free of charge and you distribute it in www.vbulletin.org at least, there is no need to pm me asking for permission Some portions of the code are (c) Jelsoft Enterprises Ltd. Show Your Support
|
Comments |
#42
|
||||
|
||||
Quote:
Quote:
Quote:
Quote:
<if condition="$+++++ad"> use <if condition="$+++++ad and $threadinfo[postuserid]==$bbuserinfo[userid]"> |
#43
|
||||
|
||||
You can now find in the first post a second version of this hack, the who viewed thread (with time) will show the last date a user viewed the thread, and also that version adds a link to the memberinfo.
If you were using the first version and you want the new features please uninstall the last version, you will need the following queries (please keep in mind you will loose the "who viewed" list for your threads): ALTER TABLE thread DROP w h o r e a d; ALTER TABLE threadviews DROP w h o r e a d i d; ALTER TABLE threadviews DROP w h o r e a d n a m e; Undo the file changes of the first version and install the second version of the hack. If you are installing this version for the first time you should go straight for the most recent version. (who viewed thread with time) |
#44
|
||||
|
||||
How would I go about making it so when you mouseover the name it shows the date and time instead of having it behind the name? If you get enough people viewing the thread, this list would get very long with the date and time behind each name.
|
#45
|
||||
|
||||
Quote:
Quote:
Quote:
|
#46
|
||||
|
||||
Thank you, sir.
|
#47
|
||||
|
||||
Thank you for your answer, Kentaurus.
|
#48
|
||||
|
||||
Wow really a good hack and a fantastic support
I have installed it and I wait the version that show the last time by the mousover the name Install for me |
#49
|
||||
|
||||
Ehm I have another question , the hack signals me the time of the server that is different from mine (I have + 3 hours from the time of the server), Is there the possibility to modify the code of the hack to add for example + 10800 seconds?
Tnx in advance Regards |
#50
|
||||
|
||||
Ok i Have modified the code, and now it works but I hope that someone tell me if this change is good or if I have compromised something in VB funtionality
Before Code:
// update views counter if ($vboptions['threadviewslive']) { if ($bbuserinfo['userid']) { $+++++adarray[$bbuserinfo['userid']] = time() ; $add+++++ad = ",+++++ad='".addslashes(serialize($+++++adarray))."'"; } Code:
// update views counter if ($vboptions['threadviewslive']) { if ($bbuserinfo['userid']) { $+++++adarray[$bbuserinfo['userid']] = time() + 10800; $add+++++ad = ",+++++ad='".addslashes(serialize($+++++adarray))."'"; } Regards |
#51
|
|||
|
|||
Anyone know why (December 31st, 1969 07:00 PM) is showing up as the date/time I read the thread?
ETA: Okay now it has the proper date/time. Odd.... |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|