Previous Thread
Next Thread
Print Thread
Hop To
Joined: Apr 2006
Posts: 116
F
member
member
F Offline
Joined: Apr 2006
Posts: 116
Ok, so far it is working for me so try this out.

You need to edit ... wait for it ... wait for it ... logout.php! <img src="https://www.ubbcentral.com/boards/images/graemlins/wink.gif" alt="" />

Find

$_SESSION['forumvisit'] = array(); // *o_O*

and comment it out

// $_SESSION['forumvisit'] = array(); // *o_O*

That's it!

I have also modified ubbthreads.php but I don't think this one makes any difference at all. Anyway here is the mod:

original code

$laston = $user['U_LastOn'];

// -------------------------------------------------------------------
// If this is their first visit for this browser session, set a cookie
// and grab all entries to the w3t_Last table
if ((empty($user['U_LastOn']))) {
$user['U_LastOn'] = $html->get_date();
}


became


// -------------------------------------------------------------------
// If this is their first visit for this browser session, set a cookie
// and grab all entries to the w3t_Last table
if ((empty($user['U_LastOn']))) {
$user['U_LastOn'] = $html->get_date();
}

$laston = $user['U_LastOn'];

I just think it makes more sense, but as I said probably does nothing.

Joined: Dec 2003
Posts: 1,798
Likes: 2
Pooh-Bah
Pooh-Bah
Joined: Dec 2003
Posts: 1,798
Likes: 2
is it still working for you?


- Allen
- ThreadsDev | PraiseCafe
Joined: Apr 2006
Posts: 116
F
member
member
F Offline
Joined: Apr 2006
Posts: 116
yep, why?

Joined: Dec 2003
Posts: 1,798
Likes: 2
Pooh-Bah
Pooh-Bah
Joined: Dec 2003
Posts: 1,798
Likes: 2
Because I wanted to try it if your site didn't blow up <img src="https://www.ubbcentral.com/boards/images/graemlins/smile.gif" alt="" />


- Allen
- ThreadsDev | PraiseCafe
Joined: Apr 2006
Posts: 116
F
member
member
F Offline
Joined: Apr 2006
Posts: 116
Anybody tried it yet? Rick?

Joined: Apr 2006
Posts: 116
F
member
member
F Offline
Joined: Apr 2006
Posts: 116
Well, the fix is not perfect as I discovered that sometimes when you close the browser and log out this way instead of via "log out" link, you may still see some unread-read posts upon log in. But I don't care anymore, the fix is perfect enough for me <img src="https://www.ubbcentral.com/boards/images/graemlins/wink.gif" alt="" />


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Are any of these legitmate?
by Baldeagle - 09/06/2026 1:37 PM
After server reboot
by Morgan - 09/02/2026 8:27 AM
8.0.1 Patch Changelog Discussion
by isaac - 11/26/2025 1:34 PM
Who's Online Now
0 members (), 322 guests, and 186 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)