The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Last Viewed Date
How much of an extra server hit would it be to mark a thread with a last viewed date when somebody reads it?
I would love to be able to maintain this information, and then prune based on removing threads that have not been viewed in xx number of days. Amy |
#2
|
||||
|
||||
You can add this information to the query that is already there, that updates the thread views.
Add a lastview field to the thread table, set it up like dateline field, and then in showthread.php replace this: PHP Code:
PHP Code:
|
#3
|
||||
|
||||
and what about the server?
|
#4
|
||||
|
||||
What about it?
|
#5
|
||||
|
||||
Thank you, Chen.
This means I just need to hack the prune routines a bit, and I should be good to go. Amy |
#6
|
||||
|
||||
Quote:
|
#7
|
||||
|
||||
Here is the rest of what I conceived. I am not supporting this as a released hack because I am not set up to test it thorougly. Use at YOUR OWN RISK.
Find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
Amy |
#8
|
||||
|
||||
One other thing. I am going to set all my lastview amounts to yesterday's date with a single one-time query in phpmyadmin and then start counting from yesterday for prune purposes.
Amy |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|