vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Auto Mark Read (https://vborg.vbsupport.ru/showthread.php?t=104335)

Fizzban 01-02-2006 10:00 PM

Auto Mark Read
 
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.

nexialys 01-03-2006 02:48 PM

very interesting... may be very useful for forums with hundreds of subforums... and may be very db extensive the same way.. ;)

Fizzban 01-03-2006 03:17 PM

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.

Snake 01-03-2006 03:46 PM

How about a screeny? :\

Fizzban 01-03-2006 03:50 PM

A screenshot of what? Marked forums? :D

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.

Robru 01-13-2006 01:16 PM

What's the sql "Mark all forums" query for all the users in one time ?

Fizzban 01-15-2006 02:31 AM

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
                ");
        }



All times are GMT. The time now is 07:27 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.01112 seconds
  • Memory Usage 1,721KB
  • 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)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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