Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by conan (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 03-28-2001 Last Update: Never Installs: 0
 
No support by the author.

I need help with this, I would like to be able to mark a specific forum as read, instead of the whole board.
Anyone have any idea on how to do this?

Show Your Support

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

Comments
  #2  
Old 03-28-2001, 07:09 PM
Guest
 
Posts: n/a
Default

I don't think you can do this, since to mark forums read all they are doing I think is updating the cookie.

Vbulletin doesn't actually track what you have viewed.
Reply With Quote
  #3  
Old 03-28-2001, 07:34 PM
Guest
 
Posts: n/a
Default

I think it does, cause when you click on a thread, that threads folder will be marked off right away
Reply With Quote
  #4  
Old 03-28-2001, 07:52 PM
Guest
 
Posts: n/a
Default

Here is how vBulletin tracks your session....

1. It has a cookie timeout. When this timeout expires, it marks all forums as read.

2. When you visit, it compares the timestamp in your cookie and profile with the posts and forums. Any that are newer are marked as New.

3. As you view each individual thread, vBulletin updates a second cookie which is only valid as long as you actively visit the site. What it does is add each thread that you have read into this cookie. If a thread is listed here, it overrides the timeout cookie and is marked as read.

vBulletin does not track what forums you view or what threads you view internally. To track threads would create an infinite number of records and kill all but the mightiest server when new threads are updatate.

example:
You have 15,000 threads and 5,000 members (a Medium sized board). When the 15,001st thread is made, instead of writing 1 record, vBulletin would have to write 5,001. One for each member and one for each thread. When the 5,001st member signs up, vBulletin would have to write 15,002 records. One for the user profile and 15,001 to track each existing thread. Of course you can simplify this with default values and other SQL optimizations but your tracking table would still have (members ^ threads) number of records. Or in the example above: 5000 to the power of 15,000.

Again you can simplify this a little but the problem still remains on how to flag each thread. This doesn't even account for resetting the flags every time a new post is made in a thread.

Forums would be a little easier to do but the complexity is again exponential. Imagine a site with 100 or more forums and 18,000 members.
Reply With Quote
  #5  
Old 04-02-2001, 10:08 PM
Guest
 
Posts: n/a
Default

I see what you are saying wluke.
There must be a way though of changing how vbulletin handles cookies.
I would be nice to mark a forum/thread as read right after you read it.
I guess it would be a mojor modification, and it's probably not worth it

Thanks for the great explanation.
Reply With Quote
  #6  
Old 04-04-2001, 02:51 PM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In reference to wluke's #3 above... I think there is a bug with that feature. I have seen it in action, seen it work, but I have also seen something else. If I go into a forum and read things there, the folders get marked as "read", which is how it's supposed to be...and if I go into some other forums and read things there, everything is fine...but if I eventually come back to the first forum, the threads that I read will be marked once again as "unread". Now this doesn't happen if I leave the forum and come right back; it seems to require some time to go by first. But not necessarily inactive time; in other words, the cookie hasn't timed out...the threads are still "unread" (if it had timed out, they would be marked as "read"). And it is not due to new replies, either.

In reference to the general idea of this hack, depsite all that wluke has said, it doesn't seem that it should be that hard to do. wluke's description of how it would need to be done seems like taking the hard way. Why not just throw in a little routine into the vB code that checks the "threads read" cookie that wluke was talking about, and if it sees that all new threads in a forum are listed as read, it marks the forum as read, too.
Reply With Quote
  #7  
Old 04-04-2001, 02:59 PM
Mike Sullivan Mike Sullivan is offline
 
Join Date: Feb 2002
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[QUOTE]Originally posted by JJR512
If I go into a forum and read things there, the folders get marked as "read", which is how it's supposed to be...and if I go into some other forums and read things there, everything is fine...but if I eventually come back to the first forum, the threads that I read will be marked once again as "unread."
Reply With Quote
  #8  
Old 04-04-2001, 03:08 PM
Wayne Luke's Avatar
Wayne Luke Wayne Luke is offline
Senior Member
 
Join Date: Jan 2002
Location: Southern California
Posts: 1,694
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No domain is allowed to have over 4K of cookies, ever.
Reply With Quote
  #9  
Old 04-04-2001, 04:08 PM
conan
Guest
 
Posts: n/a
Default

Could this be done with session variables only instead or using cookies at all?
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 09:05 PM.


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.04406 seconds
  • Memory Usage 2,263KB
  • 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)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (3)postbit_onlinestatus
  • (9)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
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete