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,796
Pooh-Bah
Pooh-Bah
Joined: Dec 2003
Posts: 1,796
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,796
Pooh-Bah
Pooh-Bah
Joined: Dec 2003
Posts: 1,796
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
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
2 members (2 invisible), 721 guests, and 156 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240501)