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

Reply
 
Thread Tools
[HTL] & [Normal] Persistant Mark Forum Read Details »»
[HTL] & [Normal] Persistant Mark Forum Read
Version: 1.00, by edschaum edschaum is offline
Developer Last Online: Feb 2010 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 07-13-2004 Last Update: Never Installs: 4
Is in Beta Stage  
No support by the author.

Here's the core of a Persistant Mark Forum Read routine.

What it does and How it works:
Clicking the Mark Forum Read link in a forum now adds a record to the database and marks that forum read as of the moment you click the link. New messages posted after you mark a forum read will remain "new" until you click Mark Forum Read again in that forum.

To view ONLY new messages, click on the lightbulb instead of on the forum name. You'll only see threads that have been active since you marked the forum read.

The mod requires 2 new tables. Displaying new messages simply hijacks the $ daysprune function by plugging in the time that the forum was last marked read.

The standard Active Topics (View New Posts) function is unaffected, except that the lightbulb is no longer connected to that routine(optional). The lightbulb now indicates if the forum has been marked read with this routine.

There's also a QuickScan feature which shows the unread topics in all forums (similar to the regular View New Posts routine, but the threads remain on display until you mark each forum (or all forums) read.

Quickscan can be turned on and off for each forum separately.

Don't install this in a production environment, try it on a test system first.

Feedback and help appreciated.

Ed

July 14, 2004: Updated package to v0.3. This version includes a new file that will Mark ALL Forums Read.

July 22, 2004: Updated package to v0.4. This version includes QuickScan.

July 25, 2004: The basic package is now complete with the addition of individual forum on/off control in the quickscan.

Aug 7, 2004: Added text to make navigation easier. Added additional support for subforums

Aug 9, 2004: Added HTL installer

Show Your Support

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

Comments
  #42  
Old 08-07-2004, 01:37 AM
weaver weaver is offline
 
Join Date: Mar 2004
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The only thing with subforums that I've noticed is that I can't click on the icon to enter the subforum so marking the forum read doesn't work. It redirects back to the parent forum list and still shows the subforum as having new posts.
Reply With Quote
  #43  
Old 08-07-2004, 12:39 PM
edschaum's Avatar
edschaum edschaum is offline
 
Join Date: Jul 2004
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by snobbymom
Here's something else I'd like to see. When you click on Mark Forum Read on the results screen it directs you back to the main forum page. I'd like to see it redirect back to the results. Can that be made an option? Or can you help me make that change for my board?

Open the file markforumread.php

At the bottom, locate this line:
exec_header_redirect("$vboptions[forumhome].php");

Change it to:
//exec_header_redirect("$vboptions[forumhome].php");
$ref = getenv('HTTP_REFERER');
exec_header_redirect("$ref");

That should bring you back to the same page where you clicked "mark this forum read"
Reply With Quote
  #44  
Old 08-07-2004, 04:25 PM
weaver weaver is offline
 
Join Date: Mar 2004
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks
Reply With Quote
  #45  
Old 08-09-2004, 11:26 PM
edschaum's Avatar
edschaum edschaum is offline
 
Join Date: Jul 2004
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've added an HTL installer, I hope it works, please let me know if any problems.... I didn't really know what I was doing, it's the first time I used it :nervous:
Reply With Quote
  #46  
Old 01-31-2005, 12:36 AM
Berethorn Berethorn is offline
 
Join Date: Jun 2004
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just wanted to tell you I've been using this on my board since July, and I haven't had any problems with it! Thank you!
Reply With Quote
  #47  
Old 03-05-2005, 12:26 AM
trulylowcarb's Avatar
trulylowcarb trulylowcarb is offline
 
Join Date: Apr 2004
Location: Colorado
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for posting that, Berethorn. I'd like to try this, the cookie-based mark read feature in vb causes more questions and complaints than anything for me!
But I am always hesitant to try anything when the last post is so old. And especially when the last post from the hacker themself is "I've added an HTL installer, I hope it works, please let me know if any problems.... I didn't really know what I was doing, it's the first time I used it." Scary, LOL

Berethorn, did you use the installer, or was that before- has anyone used it successfully - recently, with a current version of VB, like 3.06 or 3.07?

Thanks,
Reply With Quote
  #48  
Old 03-09-2005, 06:02 PM
Greebo Greebo is offline
 
Join Date: Dec 2004
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Some feedback from a recent installer:

The hack and code changes work great!!! MUCH better than the existing arbitrary timeout behavior.

The choice of locations for some of the menus, and the terminology used, left something to be desired, however, for my user population of largely non-technical people. (My site is for pilots and other people interested in aviation).

I found that my user community responded much better to these terms:
"New Posts" - now referring to the Quick Scan function instead of the old legacy behavior.
"Recent Activity" - instead of "Active Topics".

I also moved the QuickScan link off of FORUMHOME and into the NavBar immediately to the left of the old New Posts (now Recent Activity), and reordered the links in the Quick Topics popup.

These are, however, only cosmetic issues - easily customizable by anyone. I can't thank you ENOUGH for providing this hack! This lets my users feel much more comfortable as they are mostly coming from a site where THEY got to say when posts were read, vs. the forum deciding for them arbitrarily.

Outstanding!
Reply With Quote
Reply


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 01:50 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08688 seconds
  • Memory Usage 2,275KB
  • Queries Executed 24 (?)
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
  • (1)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
  • (2)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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_postinfo_query
  • fetch_postinfo
  • 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