Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
3 registered (daudvegas, Dunny, Pilgrim), 41 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 02/09/07
Posts: 193
Top Posters (30 Days)
Ruben 49
Gizmo 24
DennyP 23
Dunny 18
SteveS 14
AllenAyres 12
dbremer 10
SD 9
drkknght00 9
capnbob 7
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Topic Options
#128915 - 05/13/06 10:20 AM Read posts shown as unread - FIX!
fatalpapercut Offline
member
Registered: 04/19/06
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!

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.
Top
#128916 - 05/13/06 04:04 PM Re: Read posts shown as unread - FIX!
AllenAyres Offline
Registered: 12/29/03
Posts: 1995
Loc: Texas
is it still working for you?
_________________________
- Allen
- ThreadsDev | PraiseCafe
Top
#128917 - 05/13/06 06:32 PM Re: Read posts shown as unread - FIX!
fatalpapercut Offline
member
Registered: 04/19/06
Posts: 116
yep, why?
Top
#128918 - 05/13/06 08:39 PM Re: Read posts shown as unread - FIX!
AllenAyres Offline
Registered: 12/29/03
Posts: 1995
Loc: Texas
Because I wanted to try it if your site didn't blow up
_________________________
- Allen
- ThreadsDev | PraiseCafe
Top
#128919 - 05/14/06 04:00 PM Re: Read posts shown as unread - FIX!
fatalpapercut Offline
member
Registered: 04/19/06
Posts: 116
Anybody tried it yet? Rick?
Top
#128920 - 05/15/06 07:15 AM Re: Read posts shown as unread - FIX!
fatalpapercut Offline
member
Registered: 04/19/06
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
Top



Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Island Permissions
by ThreadsUser
Yesterday at 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Custom forum permissions
by ntdoc
05/18/12 02:07 PM
Running ads
by Jeffdag
05/17/12 01:47 PM
Forum Stats
10484 Members
36 Forums
33834 Topics
181678 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image