vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   User Posts- Read/Unread (https://vborg.vbsupport.ru/showthread.php?t=69163)

DanKD 09-06-2004 11:04 PM

User Posts- Read/Unread
 
By default when a user posts in a thread and then visits the forum, it shows that thread as unread. How do I change it so that if it's the user that posts, the thread is marked as read?

Help is appreciated.

DanKD 09-08-2004 04:36 PM

Wow, no one with any ideas? I've seen a few vbulletin sites that did this.

CarCdr 09-08-2004 04:44 PM

You are not worried that while you are entering a post, someone else is as well? If your post hits the database after any others since you last visited the thread, you will not know there are unseen/new posts in the thread.

Of course, you could make the hack you require more complicated by including a check for this case.

If you just want any reply to mark the thread as viewed (not new), then try this:

In version 3.0.3, showthread.php, CHANGE line 1373 from:

if (!$posted AND $displayed_dateline AND $displayed_dateline > fetch_bbarray_cookie('thread_lastview', $threadid))

to:

if (/* !$posted AND */ $displayed_dateline AND $displayed_dateline > fetch_bbarray_cookie('thread_lastview', $threadid))

DanKD 09-09-2004 09:50 PM

Thanks! In our field, the two other company sites that use vbulletin both use this method, so it's what our customers are used to.


All times are GMT. The time now is 11:46 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.01103 seconds
  • Memory Usage 1,708KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete