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 (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 11-13-2000 Last Update: Never Installs: 0
 
No support by the author.

I, personally, think that ezboards best feature is the Mark Forum Read hack.

I don't especially like how vbulletin has a cookie timeout instead. I have a particularly active forum, and it's almost impossible to read every topic. Thus, I think implementing an alternative to the cookie timeout would be great.

Is there anyway someone could create this useful hack? Here is a basic breakdown of how it works:

Inside of every individual forum, there is a Mark Forum Read link. It marks every post in that individual forum read. On the ForumHome page, there is a Mark All Forums Read link. This would (obviously) mark every forum read.

I would certainly prefer this over the cookie timeout. Let me know if it can be done.

Show Your Support

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

Comments
  #22  
Old 05-01-2001, 10:16 PM
conan
Guest
 
Posts: n/a
Default

I for one requested this feature or hack 1000's of times
According to Wluke the problem would be that the cookie must be less than 4k in size and this would increase the size of the cookie, especially on board with lots of forums
Reply With Quote
  #23  
Old 05-01-2001, 10:19 PM
ethank's Avatar
ethank ethank is offline
 
Join Date: Oct 2001
Location: Toluca Lake, CA
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Use a database then. Ezboard does it, Webboard did it, etc. Not too much overhead if you cache the results in the session possibly. I'm going to try my hand at doing it with a database in much the same way that Webboard did it.

Ethan
Reply With Quote
  #24  
Old 05-02-2001, 05:23 AM
ethank's Avatar
ethank ethank is offline
 
Join Date: Oct 2001
Location: Toluca Lake, CA
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I made the first step toward fixing the issue. I got it so that instead of relying on a cookie to do the "lastvisit," which is basically how it sets what is read and what isn't, I modified the code in sessions.php to use a database instead. Two columns.

Code:
+----------+------------------+
| Field    | Type             |
+----------+------------------+
| readtime | int(10) unsigned |
| userid   | int(10) unsigned |
+----------+------------------+
So all the code that uses $bbuserinfo[lastvisit] to set whether things are new or not now gets said date from the database instead. I also modified the code to "member.php" which contains the "mark all forums read" code.

Very simple, after I learned some PHP.

I should have the marking of individual forums as read done tommorow evening. It will use a seperate table. I could probably do them in one table (just using a null in the forumid field to indicate a global mark, or a 0), and I actually might now that I think about it.

To do the forum thing, I'll put a line in the global.php to check if the user is displaying anything within a forum (threads, forum listing) and if so, checks the forums mark-read timestamp, compares it against the master all forum mark read time, and if the one for the forum is more current, sets $bbuserinfo[lastvisit] to the forums instead.

The only thing that needs some tricky stuff is the "find new messages." I'm still not certain how I'm going to do it. What I think I'll do is have a "mark all read" clear the individual forum-marks when its clicked. So that way when a user checks for new messages, they could have a blanket "mark all read" and a few forum-specific timestamps. The search would look for anything newer than the mark-all-read timestamp for any forum, unless it has a timestamp that is newer than the all-forum one. In that case it looks at those forums individually for new messages....its an idea. Need to figure that one out a bit more.

Till tommorow!

I'll try to package this hack nicely. I'm really new to this whole vBulletin thing, so what is the best way for me to distribute this once its done?

EThan
Reply With Quote
  #25  
Old 05-02-2001, 06:26 AM
tubedogg's Avatar
tubedogg tubedogg is offline
 
Join Date: Oct 2001
Location: Medina, OH
Posts: 785
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

post it in the releases v2.x forum
Reply With Quote
  #26  
Old 05-02-2001, 09:18 AM
Onslo
Guest
 
Posts: n/a
Default

Wow!

Many Thanks Ethank

Looking forward to it

Kind Regards...

Onslo
Reply With Quote
  #27  
Old 05-02-2001, 08:13 PM
conan
Guest
 
Posts: n/a
Default

Awesome ethank, I'm looking forward to this hack!
Reply With Quote
  #28  
Old 05-03-2001, 05:18 AM
ethank's Avatar
ethank ethank is offline
 
Join Date: Oct 2001
Location: Toluca Lake, CA
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good news! I finsihed the Mark Forum Read hack pretty much, including the search for new messages functionality.

I need to go through and clean up code, also marking where I put modifications. What is the standard procedure for doing this in terms of making it easy for you all to put the code in? Should I do them as seperate files that you include in certain spots?

EThan
Reply With Quote
  #29  
Old 05-03-2001, 06:06 AM
tubedogg's Avatar
tubedogg tubedogg is offline
 
Join Date: Oct 2001
Location: Medina, OH
Posts: 785
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just mark down in a file like

"Find xxxx and below/above/replace it add/remove/with yyy"

Make it clear what file you're referring to. If you refer to a file in the admin directory, call it "admin/index.php" for example.

Zip up any files you need to give us (like markread.php for example) with the instructions and attach them to a new thread in the releases v2.x forum.
Reply With Quote
  #30  
Old 05-04-2001, 10:30 AM
Onslo
Guest
 
Posts: n/a
Default

Well Done Ethank,

Those who need this hack all appreciate your work very much

How long before we can get our grubby little mits on the code then?

Onslo
Reply With Quote
  #31  
Old 05-04-2001, 12:15 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 Onslo
Well Done Ethank,

Those who need this hack all appreciate your work very much

How long before we can get our grubby little mits on the code then?

Onslo
Hopefully today. I developed it on my dev workstation (win2k). I'm going to go through and clean up the code, and then do a test install on the production box before packaging it up for you all. If not today, this weekend.

EThan
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 12:27 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.04253 seconds
  • Memory Usage 2,298KB
  • Queries Executed 25 (?)
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_code
  • (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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (6)postbit_onlinestatus
  • (11)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
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete