Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Real "read/not read" threads and "new messages in forum" highlighting v1.2 Details »
Real "read/not read" threads and "new messages in forum" highlighting v1.2
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: 3.0.0 Rating: (1 vote - 5.00 average) Installs: 4
Released: 21 Mar 2004 Last Update: Never Downloads: 16
Not Supported  

Hello all!

It is just a vb3 version of old hack
http://www.vbulletin.org/forum/showthread.php?t=47101
And with same weak sides.

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 profile) 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 (if there are new posts since your last visit of that thread)
-one additional SELECT (of 2 fields only) for each subforum on forumdisplay.php
-one additional SELECT (of 2 fields only) for each forum on index.php
-one addditional UPDATE in newreply.php
-"mark forum read" works using one extra UPDATE
-and "mark all forums read" using 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 thread in each forum and if it found, display that there were no new posts in that forum.

Additionally read\unread marking can be time based (new field ) "marktime" in users custom fields. 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 profile settings.
And at last to mark forum (or all forums) read we just mark read last thread in that forum (or in all forums

History:
v.1.2
Fixed moved threads highlighting.
some changes in functions.php and functions_forumdisplay.php

v.1.1
Fixed SQL request. If you tried to install v 1.0 already, better drop view field
ALTER TABLE `thread` DROP `view`
and recreate it again
ALTER TABLE `thread` ADD `view` TEXT NOT NULL

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 1.1 JohnWoo vBulletin 2.x Full Releases 30 22 Mar 2004 00:10

Comments
  #2  
Old 21 Mar 2004, 21:19
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
An attachment would be great
Reply With Quote
  #3  
Old 21 Mar 2004, 21:21
JohnWoo's Avatar
JohnWoo JohnWoo is offline
 
Join Date: Jan 2002
sorry - absolutely forgot about attachment
Reply With Quote
  #4  
Old 22 Mar 2004, 00:31
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
I like this. I like it a lot.
__________________
AndroidETC.com :: Android, and other stuff.
Reply With Quote
  #5  
Old 23 Mar 2004, 18:47
MrNase's Avatar
MrNase MrNase is offline
 
Join Date: May 2003
Real name: Dominik
Doesn't work. Nothing is marked as read

I tested it with a fresh vB3 gold installation. Not even forumdisplay.php?do=markread works properly

I have to users, each made 2 threads. 2 threads (made by user 1) have '1 2' in the database and the other 2 (made by user 2) have 'null' in the database.

The first 2 threads are marked as read.

search.php?do=getnew doesn't find any threads but there are 2 marked as unread

Last edited by MrNase; 23 Mar 2004 at 19:05.
Reply With Quote
  #6  
Old 23 Mar 2004, 19:21
gmarik's Avatar
gmarik gmarik is offline
 
Join Date: May 2002
Real name: Marco
Nice. Any demo site?
Reply With Quote
  #7  
Old 23 Mar 2004, 19:45
codemonkey codemonkey is offline
 
Join Date: Jan 2004
Originally Posted by gmarik
Nice. Any demo site?
ohh I don't think that it's nice, if it does not work :ermm:
Reply With Quote
  #8  
Old 23 Mar 2004, 22:23
JohnWoo's Avatar
JohnWoo JohnWoo is offline
 
Join Date: Jan 2002
Sorry, but I just checked and rechecked everything 3 times on fresh forums and found nothing wrong except line numbers for search.php :)
So just now i can suggest only checking scripts changes again :)
Uploading fixed txt with correct line numbers ans visual framed HTML example of changes in two longest scripts (but that examples for this hack together with fulltext search hack - sorry :)
Is there somebody why saw it working after installing ?

Last edited by JohnWoo; 23 Mar 2004 at 22:25.
Reply With Quote
  #9  
Old 24 Mar 2004, 08:14
codemonkey codemonkey is offline
 
Join Date: Jan 2004
Why dont you include your hack in your yB so that we all can see the result? :tired:
Reply With Quote
  #10  
Old 24 Mar 2004, 10:48
jluerken's Avatar
jluerken jluerken is offline
 
Join Date: Aug 2003
Location: Germany
Originally Posted by codemonkey
Why dont you include your hack in your yB so that we all can see the result? :tired:
Yes, especially the 'new messages in forum" highlighting ' I would like to see in action.
This sounds to me like a feature I know from my old UBBT.
__________________
Ciao jluerken
Reply With Quote
  #11  
Old 24 Mar 2004, 10:54
JohnWoo's Avatar
JohnWoo JohnWoo is offline
 
Join Date: Jan 2002
Sorry, but I can't show, because I have no "my vB" outside http://localhost:80/ :) I worked long time ago in one company as vB administrator and since that time it is just a fun for me :)
But you may find screenshot image for that hack in old 2.2.x thread.
Reply With Quote
  #12  
Old 24 Mar 2004, 11:05
jluerken's Avatar
jluerken jluerken is offline
 
Join Date: Aug 2003
Location: Germany
Originally Posted by JohnWoo
Sorry, but I can't show, because I have no "my vB" outside http://localhost:80/ I worked long time ago in one company as vB administrator and since that time it is just a fun for me
But you may find screenshot image for that hack in old 2.2.x thread.
I don't see a screen there that really shows what this hack is doing.
__________________
Ciao jluerken
Reply With Quote
  #13  
Old 24 Mar 2004, 11:12
JohnWoo's Avatar
JohnWoo JohnWoo is offline
 
Join Date: Jan 2002
http://www.vbulletin.org/forum/attac...achmentid=9718
?
Reply With Quote
  #14  
Old 24 Mar 2004, 11:16
MrNase's Avatar
MrNase MrNase is offline
 
Join Date: May 2003
Real name: Dominik
This hack doesn't work and it's not just me. A friend of mine tested that hack before i did and he had the same problems as me.

Somebody else should test it, too.
Reply With Quote
  #15  
Old 24 Mar 2004, 11:49
JohnWoo's Avatar
JohnWoo JohnWoo is offline
 
Join Date: Jan 2002
Originally Posted by MrNase
This hack doesn't work and it's not just me. A friend of mine tested that hack before i did and he had the same problems as me.

Somebody else should test it, too.
I have nothing to say - sorry
But in last 2 days i tested it may be 12 or 15 times and now i am 99.9% sure that it works
PS Looks like we have different base scripts..
PPS Here is new one screen for vb3
Attached Images
File Type: gif screen.gif (39.3 KB, 274 views)
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 21:02.

Layout Options | Width: Wide Color: