Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Real "read/not read" threads and "new messages in forum" highlighting 1.1 Details »
Real "read/not read" threads and "new messages in forum" highlighting 1.1
Mod Version: 1.00, by JohnWoo (Member) JohnWoo is offline
Developer Last Online: Apr 2014 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 2.2.x Rating: (2 votes - 4.50 average) Installs: 6
Released: 29 Dec 2002 Last Update: Never Downloads: 0
Not Supported  

Hello !

Think that i finished testing and optimizing beta hack from
http://www.vbulletin.org/forum/showt...threadid=47035


Features:
- Thread on forumdisplay highlighted for user as read only if that user saw last post in that thread or if last post in that thread is older then user defined (from user CP options) amount of time (from 1 to 999 hours and infinity)
- Forums on index page and subforums on forumdisplay pages will be highlited as "have no new posts" only if user saw last post in that forum or subforum
- Highliting system is completly cookie-free
- System will require extra Database space (2-4% on large forums and 5-6% on small)
- Sytem will add some extra queries to scripts

-one addditional UPDATE is showthread.php
-one additional SELECT (of 2 fields only) for each subforum on forumdisplay.php
-one addditional UPDATE in newthread.php
-two addditional UPDATE in newreply.php
-"mark forum read" works using one extra SELECT and one extra UPDATE
-and "mark all forums read" using one extra SELECT and one extra UPDATE for each forum


Few words how it works
As you know vb "marking threads and posts read" system is time and cookie based. This hack is based on adding to "thread" table one extra field - "view" (suppose that it must work fine with TEXT type, but for really large forums we can make it LONGTEXT
Now when somebody open thread, his usedid will be added to that "view". After several users (who open that thread) string in that field may look like
37 298 16879 7287 29087 28 298
So it will be just a long string with userid-s separated by space
Now then user open forumdisplay.php script will check string in that view field of each thread for part of string
[space userid space]
and if is will be found thread will be marked as read. If you think that it will use too much database space, i can say that it will use some place of course, but not too much, because after each reply in thread (new last post in thread) all old data in "view" field of thread will be deleted.
On forum home page script looks for userid number in "view" field of last post in each forum and if it found, display that there were no new posts in that forum.
To make it work faster (with less database requests) was added new "view" field in thread table
Additionally read\unread marking can be time based (new field ) "marktime" in users table. And users are able to select number of hours (all posts older then that number of hours will be marked as read) in their CP options.
And at last to mark forum (or all forums) read we just mark read last thread in that forum (or in all forums
Sorry for my English and please ask questions if you don't understand something

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Real "read/not read" threads highlighting 1.0 JohnWoo vBulletin 2.x Beta Releases 13 02 Mar 2009 06:22
Real "read/not read" threads and "new messages in forum" highlighting v1.2 JohnWoo vBulletin 3.0 Full Releases 43 16 Sep 2006 03:54

Comments
  #2  
Old 29 Dec 2002, 17:08
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Real name: Chris Murphy, BSc
Nice

I'm gonna test this out

Satan
Reply With Quote
  #3  
Old 29 Dec 2002, 17:17
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Is there a live site with this installed? Seems very interesting. Also, is it server intensive?
Reply With Quote
  #4  
Old 29 Dec 2002, 17:23
JohnWoo's Avatar
JohnWoo JohnWoo is offline
 
Join Date: Jan 2002
There was site. But it is down last 3 weeks and board will be replaced by ibforums (because of expired vb license). And no it is not server intensive at all Admins say that nothing changed after installing.
Reply With Quote
  #5  
Old 29 Dec 2002, 17:35
Icheb's Avatar
Icheb Icheb is offline
 
Join Date: Oct 2002
So there are sites where it can be tested?
Reply With Quote
  #6  
Old 29 Dec 2002, 17:42
JohnWoo's Avatar
JohnWoo JohnWoo is offline
 
Join Date: Jan 2002
Actually only 1.0 was tested And it much more server intensive... 1.1 was tested only locally and i asked 2 my friends to install it, but their forums have about 2 posts\month, so it was not real testing - sorry
But from localhost (2.2.6) everything works
Reply With Quote
  #7  
Old 02 Jan 2003, 01:54
350Chevy's Avatar
350Chevy 350Chevy is offline
 
Join Date: Nov 2002
Originally posted by JohnWoo
.........(because of expired vb license).......
Um, I thought the license never expires. Your support just stops after a year. Then after that you just pay a few dollars($30) for another year of support and downloads.

Any screenshots avail? Or does the look of the board not really change?
Reply With Quote
  #8  
Old 02 Jan 2003, 04:18
Mystis's Avatar
Mystis Mystis is offline
 
Join Date: Jul 2002
Originally posted by 350Chevy
Um, I thought the license never expires. Your support just stops after a year. Then after that you just pay a few dollars($30) for another year of support and downloads.
Depends, if you buy the owned ($160) license then that is the case, however if you buy the leased license then, yes, he is correct.
Reply With Quote
  #9  
Old 02 Jan 2003, 06:32
350Chevy's Avatar
350Chevy 350Chevy is offline
 
Join Date: Nov 2002
Ahhh... gotcha..
Reply With Quote
  #10  
Old 02 Jan 2003, 08:11
JohnWoo's Avatar
JohnWoo JohnWoo is offline
 
Join Date: Jan 2002
Becides i have hazy idea about all that licensing things :)
I was just hired and administering vb was my job (for mor then year) And now, for some strange reason, i have to start from the beginning and go investigate ibforums... And i don't like it at all.

And here is screen shot :) part of showthread.php
Attached Images
File Type: gif screen.gif (10.4 KB, 306 views)

Last edited by JohnWoo; 02 Jan 2003 at 09:10.
Reply With Quote
  #11  
Old 04 Jan 2003, 11:24
Paul Paul is offline
 
Join Date: Jan 2002
I will be testing this myself. We've gotten a number of complaints from a few users that have been missing new threads and who have been asking for a better way to manage what they've read.

I will post the results here in the next few days.

Best wishes,
Paul
Reply With Quote
  #12  
Old 04 Jan 2003, 19:15
MacKenzie's Avatar
MacKenzie MacKenzie is offline
 
Join Date: Oct 2002
Just a question, perhaps it was in the hack description and I missed it...

But will this hack allow to un-read threads to be marked as new indefinately, or will they still eventually be marked as read?
Reply With Quote
  #13  
Old 04 Jan 2003, 19:47
JohnWoo's Avatar
JohnWoo JohnWoo is offline
 
Join Date: Jan 2002
Hello !

Not sure that i understand this question correctly - sorry :)
But to marked as read thread need:
- user opened showthread page after last post in that thread
- or last post in forum was in that thread when user desided to "mark read" that forum or all forums
- or last post in thread older then number of hours specified by user in his CP options and if that number of hours is not zero

under any other condition thread will be marked as unread :)
Reply With Quote
  #14  
Old 05 Jan 2003, 00:01
MacKenzie's Avatar
MacKenzie MacKenzie is offline
 
Join Date: Oct 2002
let me rephrase the question....

How long will unread posts stay unread when user does not read the thread, does not open the thread, and just reads other threads instead?
Reply With Quote
  #15  
Old 05 Jan 2003, 00:15
Icheb's Avatar
Icheb Icheb is offline
 
Join Date: Oct 2002
It will be marked unread until the user reads the thread, not a second earlier.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 10:59.

Layout Options | Width: Wide Color: