![]() |
Change Cookie timestamp?
To compensate for the madness of cookies in vBulletin (I love EVERY ASPECT of vB except this!), I'd like to write a hack to allow users to manually enter their last visit time if the forum decides to take a dump.
For instance, I last visited my forum 24 hours ago. I went to visit the Admin CP this morning and check on a few things. I did not know that this would mark my cookie on the forum as "viewed EVERYTHING". So I went to the forum about 20 min later and View New Posts is EMPTY. I tried to change the timestamp in the cookie, but it just keeps rejecting it and giving me the Unregistered page. {EDIT: So I dug around for anywhere that used bblastvisit. Changing anything in sessions.php to look at $HTTP_GET_VARS was fruitless, but this worked!...} To add a "roll the clock back" function to your vBulletin (tested with vB2.3.0): 1. Open /forums/member.php 2. Find PHP Code:
PHP Code:
To roll back the clock, visit your forum with a valid unix timestamp on the end: http://www.yourforum.com/forums/memb...t&bblastvisit=[unixtimestamp] To generate a unix time stamp, try this: http://www.4webhelp.net/us/timestamp.php Eventually, I will create a template that lets people select the time they want to go back to. |
This can be moved to General Discussion. Eventually, it will be a genuine hack.
|
We've been considering a similar solution ourselves, however we were focusing on storing the timestamp in the database.
There is a hack on here somewhere that suggests that it might do this already. Persistent mark read I think? We started to look at it but had to put it aside for the 2.3.0 upgrade and associated bug fixing. I'll keep you posted with any solutions we might look into. Paul |
All times are GMT. The time now is 06:22 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:
|