Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Auto Mark Read Details »»
Auto Mark Read
Version: 1.00, by Fizzban Fizzban is offline
Developer Last Online: Nov 2013 Show Printable Version Email this Page

Version: 3.5.3 Rating:
Released: 01-02-2006 Last Update: Never Installs: 9
DB Changes Uses Plugins Template Edits
 
No support by the author.

Adds a new option "Automatically mark forums read" to the User Control Panel.

If an user enable this option, only threads with new postings since his last visit will be marked as unread when he returns to the forums after being inactive for a certain amount of time (the value of the cookie timeout option). This is how all versions of vBulletin before 3.5 functioned.

This product mimics the "Inactivity/Cookie Based Thread/Forum Read Marking" behaviour but is actually completely database-based and does not use cookies at all.

It will only work if you use "Database (no automatic forum marking)" or "Database (automatic forum marking)" as Thread/Forum Read Marking Type. Of course, there is no need to use this plugin if you use "Inactivity/Cookie Based".

See the included readme for instructions how to install this product.

Show Your Support

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

Comments
  #2  
Old 01-03-2006, 02:48 PM
nexialys
Guest
 
Posts: n/a
Default

very interesting... may be very useful for forums with hundreds of subforums... and may be very db extensive the same way..
Reply With Quote
  #3  
Old 01-03-2006, 03:17 PM
Fizzban Fizzban is offline
 
Join Date: Dec 2005
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I wrote it because users complained about the new vBulletin behaviour and demanded the old vB 3.0. system back. This way, the users have a choice.

And there aren't a lot of additional database calls, only one "Mark all forums" query whenever an inactive user returns.
Reply With Quote
  #4  
Old 01-03-2006, 03:46 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How about a screeny? :\
Reply With Quote
  #5  
Old 01-03-2006, 03:50 PM
Fizzban Fizzban is offline
 
Join Date: Dec 2005
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A screenshot of what? Marked forums?

The only thing to see is the new option in the usercp and I don't think that it is very interesting.

Edit: I have added a screenshot of the new option.
Reply With Quote
  #6  
Old 01-13-2006, 01:16 PM
Robru Robru is offline
 
Join Date: Aug 2005
Location: Netherlands
Posts: 368
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What's the sql "Mark all forums" query for all the users in one time ?
Reply With Quote
  #7  
Old 01-15-2006, 02:31 AM
Fizzban Fizzban is offline
 
Join Date: Dec 2005
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The code used in the plugin is:

Code:
$query = '';
	foreach ($vbulletin->forumcache AS $fid => $finfo)
	{
		// mark the forum and all child forums read
		$query .= ", ($fid, " . $vbulletin->userinfo['userid'] . ", " . $vbulletin->userinfo['lastactivity'] . ")";
	}

	if ($query)
	{
		$query = substr($query, 2);
		$db->query_write("
			REPLACE INTO " . TABLE_PREFIX . "forumread
				(forumid, userid, readtime)
			VALUES
				$query
		");
	}
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:08 PM.


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.04301 seconds
  • Memory Usage 2,253KB
  • Queries Executed 20 (?)
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)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (7)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete