Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools
Details »»

Version: , by ethank ethank is offline
Developer Last Online: Jun 2010 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 11-02-2001 Last Update: Never Installs: 25
 
No support by the author.

Hack: Persistent Mark Forum Read
Version of VB: 2.2.5
Current version: 1.3
Description: This hack replaces the bahavior of vBulletin's "Mark Forum Read" and "Mark All Forums Read" with a system that uses a database to track when forums are set read. By eliminating the use of cookies for this feature, a user can come onto your boards, read a bit, mark forums read as they go through and logout. The next time they come into the forums, the status of which forums they've read and which they haven't, as well as new posts since the last time they read is preserved.

This functions a lot like EZBoard and Chatspace's Webboard.

Included in this hack are three search routines: searing the entire forum for new messages, an individual forum and a section of the hierarchy (parent + children)

Also: Mark All Forums Read, Mark Individual Forum Read and Mark Hierarchy Section (Parent + Children) Read

Note: The install is not all pretty yet and requires a degree of knowledge of MySQL (to add a table) and PHP (as it requires heavy modifications to core files). It is recommended that you backup everything before using this.

After installation, behavior might be a bit odd until a default "markread" record is created for users. This is created when they first login if one does not exist.

This hack has been tweaked to now not add more than two queries to your index page. It will add load on sub-forum pages currently if you have a lot of nested forums. This will be fixed in the next release.

Instructions:

Follow the instructions in the included text file TO THE LETTER. If you run into problems, post here so we can work through them and improve the instructions. Look for a better install utility soon.

I recommend doing the text editing using a DIFF utility to see where you made changes, it honestly helps.

Place the images in your vbulletin image folder. I included PSD files for them if you want to change colors.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #17  
Old 11-15-2001, 12:07 PM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I didn't use the pictures, I just made the links into text links using the alt tags from the images. However, because I removed the moderator column, where the links normally would go, and moved the moderator list to under the forum description, the text links create a somewhat cluttered look (although it would be even more cluttered if they were in the moderator column). I'm still working on finding a better way to set up the links, because I think I would rather have the text links.
Reply With Quote
  #18  
Old 11-15-2001, 03:08 PM
LuBi LuBi is offline
 
Join Date: Oct 2001
Posts: 416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
I dont know if anyone else notices this. I found that when I go to the site, the little J's are mostly grey even though new posts are in the forum.
http://forums.jjr512.com/showthread.php?threadid=27808

I hope that doesn't have to do with this hack! I don't see those links anywhere, do I need to register on your board?
Reply With Quote
  #19  
Old 11-15-2001, 03:26 PM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The gray Js (actually, I think of them as silver) indicate there are new posts. The dark blue Js indicate no new posts. I'm sure there's a legend there somewhere, I'll have to point it out to that member.

...Yeah, there actually is a legend on the main forums page, that says this:
New Posts
No New Posts

I think if you saw the colors of my forums (same colors as here, actually), you would agree the silver J icon stands out more, and thus is a better choice for ON than the blue icon, which blends in.

If you want to see those links, try looking at a category (like Computer Stuff of General), or at a forum with subforums (like Hardware or Mindless Blabbering).
Reply With Quote
  #20  
Old 11-15-2001, 11:38 PM
ethank's Avatar
ethank ethank is offline
 
Join Date: Oct 2001
Location: Toluca Lake, CA
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry I wasn't available to answer questions, I've been travelling for the past 8 days.

The icon implementation seems to work OK, as I haven't found a better way of doing it.

As for the instructions, I went off of a DIFF with my code to the release code, so all the little anomolies from yours to mine came from the 2.2 original. Odd.

Anyhow, has anyone else been installing it?

Ethan
Reply With Quote
  #21  
Old 11-16-2001, 02:22 AM
FWC's Avatar
FWC FWC is offline
 
Join Date: Oct 2001
Location: Ontario, CA
Posts: 821
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by ethank
Anyhow, has anyone else been installing it?
I'm going to do the 2.2.1 upgrade this weekend and then I'm going to go for this one.
Reply With Quote
  #22  
Old 11-16-2001, 04:42 PM
edward edward is offline
 
Join Date: Nov 2001
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by ethank

Anyhow, has anyone else been installing it?

Ethan
I installed in on a test board, and it appears to work as advertised.

My concern is with the hand editing of the files. Is it allowable under the vbulletin license for you to offer diffs from the original source? If so, that would speed up installation and eliminate the typo element that can make troubleshooting something like this very difficult.

diff -u old new > file.diff

then you can use 'patch < file.diff' to update the file, and avoid problems caused by copy/paste.
Reply With Quote
  #23  
Old 11-16-2001, 06:41 PM
ethank's Avatar
ethank ethank is offline
 
Join Date: Oct 2001
Location: Toluca Lake, CA
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by edward


I installed in on a test board, and it appears to work as advertised.

My concern is with the hand editing of the files. Is it allowable under the vbulletin license for you to offer diffs from the original source? If so, that would speed up installation and eliminate the typo element that can make troubleshooting something like this very difficult.

diff -u old new > file.diff

then you can use 'patch < file.diff' to update the file, and avoid problems caused by copy/paste.
If its OK with Jelsoft, then I'll do that. The only issue is my files are hacked with other enhancements as well, so the DIFF might not be accurate.

Ethan
Reply With Quote
  #24  
Old 11-17-2001, 07:08 PM
LDT LDT is offline
 
Join Date: Nov 2001
Location: Austria, Vienna
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just installed this on vBB 2.2.1 and it works fine. Hack instructions aren't accurate for that version, but I found my way through it.
Reply With Quote
  #25  
Old 11-17-2001, 07:17 PM
ethank's Avatar
ethank ethank is offline
 
Join Date: Oct 2001
Location: Toluca Lake, CA
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by LDT
Just installed this on vBB 2.2.1 and it works fine. Hack instructions aren't accurate for that version, but I found my way through it.
Yeah, I need to update the instructions.
Reply With Quote
  #26  
Old 12-09-2001, 09:10 PM
Tommy Boy Tommy Boy is offline
 
Join Date: Nov 2001
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I noticed that when I call search.php?action=getallnew, posts which were moved while leaving a redirect would show twice: once correctly, and the other one (probably the redirect), is shown as a poll, and is clickable. When you click on it, you get an empty thread.

I first want to confirm the problem is on your hack, before I complain in the vBulletin forum, and if it is, can you please fix it?

Thanks! I said it once, and I'll say it again: without your hack, I wouldn't have bought vB
Reply With Quote
  #27  
Old 12-09-2001, 09:24 PM
ethank's Avatar
ethank ethank is offline
 
Join Date: Oct 2001
Location: Toluca Lake, CA
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Tommy Boy
I noticed that when I call search.php?action=getallnew, posts which were moved while leaving a redirect would show twice: once correctly, and the other one (probably the redirect), is shown as a poll, and is clickable. When you click on it, you get an empty thread.

I first want to confirm the problem is on your hack, before I complain in the vBulletin forum, and if it is, can you please fix it?

Thanks! I said it once, and I'll say it again: without your hack, I wouldn't have bought vB
Not sure where the problem lies yet. Probably in my hack I'll look into it later, but I'm swamped right now.

EThan
Reply With Quote
  #28  
Old 12-10-2001, 12:01 AM
DarkReaper DarkReaper is offline
 
Join Date: Oct 2001
Posts: 429
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Um...doesn't vB track read/unread posts through the DB anyway?
Reply With Quote
  #29  
Old 12-10-2001, 12:05 AM
ethank's Avatar
ethank ethank is offline
 
Join Date: Oct 2001
Location: Toluca Lake, CA
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by DarkReaper
Um...doesn't vB track read/unread posts through the DB anyway?
Nope, it uses cookies.

Ethan
Reply With Quote
  #30  
Old 12-10-2001, 12:08 AM
DarkReaper DarkReaper is offline
 
Join Date: Oct 2001
Posts: 429
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It uses cookies to login, yes, but it does the checking for unread/read posts by comparing your last visit time(in the DB) with the lastpost times in the posts(in the DB)...
Reply With Quote
  #31  
Old 12-10-2001, 12:10 AM
ethank's Avatar
ethank ethank is offline
 
Join Date: Oct 2001
Location: Toluca Lake, CA
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by DarkReaper
It uses cookies to login, yes, but it does the checking for unread/read posts by comparing your last visit time(in the DB) with the lastpost times in the posts(in the DB)...
No, the time you marked read is not set in the database, it just uses last visit, which is set based on cookies.

So for instance, if you were idle for more than 900 seconds, it'd mark everything read. Its not persistent, hence "Persistent Mark Forum Read"

Ethan
Reply With Quote
 


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

Forum Jump


All times are GMT. The time now is 10:09 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04863 seconds
  • Memory Usage 2,358KB
  • Queries Executed 30 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (8)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (16)post_thanks_box
  • (16)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (16)post_thanks_postbit_info
  • (15)postbit
  • (16)postbit_onlinestatus
  • (16)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete