vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Persistent Mark Forum Read (https://vborg.vbsupport.ru/showthread.php?t=32091)

dslteam 05-18-2002 03:46 PM

Question: What about an automatic Mark as Read?

The difference being, not only does it utilize database tracking instead of the default use of a cookie, but it doesn’t require a user to physically click the “Mark as Read” button.

This is similar to what would occur if a member reads a new thread. If they read the thread, they are not required to mark it as read in order to make it reset; it just occurs.

With an automatic mark as read for forums, they would not be required to mark the forum as read; it just resets itself as read once all new posts within the forum have been read.

pirotess 05-18-2002 05:44 PM

When I go to modify this portion of my index.php:

PHP Code:

        // do light bulb
        
if ($bbuserinfo['lastvisitdate']=='Never') {
          
$forum['onoff']='on';
        } else {
                    if (isset(
$bbforumview[$forum['forumid']]) and $bbforumview[$forum['forumid']]>$bbuserinfo['lastvisit']) {
                        
$userlastvisit=$bbforumview[$forum['forumid']];
                    } else {
                        
$userlastvisit=$bbuserinfo['lastvisit'];
                    }
          if (
$userlastvisit<$forum['lastpost']) {
            
$forum['onoff']='on';
          } else {
            
$forum['onoff']='off';
          }
        } 

with the appropriate code as posted in the install document my boards white screen when you load them and in my error logs I get a PHP parse error of:

unexpected $ in index.php on line 420

Any ideas? I'm running 2.2.5 and all the other updates for this hack in index.php seem to work fine.

Also I get an undefined function updatelocation{} in search.php when I add the 3rd search type into the file.

SWFans.net 05-19-2002 02:50 PM

I know how to fix the index.php error, but the other, saddly, no. Add another } after that code, so it looks like this:
PHP Code:

// do light bulb
        
if ($bbuserinfo['lastvisitdate']=='Never') {
          
$forum['onoff']='on';
        } else {
                    if (isset(
$bbforumview[$forum['forumid']]) and $bbforumview[$forum['forumid']]>$bbuserinfo['lastvisit']) {
                        
$userlastvisit=$bbforumview[$forum['forumid']];
                    } else {
                        
$userlastvisit=$bbuserinfo['lastvisit'];
                    }
          if (
$userlastvisit<$forum['lastpost']) {
            
$forum['onoff']='on';
          } else {
            
$forum['onoff']='off';
          }
        }
        } 


dslteam 05-19-2002 03:03 PM

You developed a such big hack but the most important feature that is not so hard - is not in it !?

I talk about this automatic Mark as Read. Is it hard to add this feature??

Please !!!

Thanks !

Erwin 05-20-2002 02:13 AM

The reason why Automatic Mark as Read was not included is because some of use go and preview a post, but don't actually read it, and don't want it to be marked as read. Better to click on the Mark All Read link once you feel you have read all posts.

dslteam 05-20-2002 05:30 AM

@Erwin - Thanks for your answer, but there are many users (https://vborg.vbsupport.ru/showthrea...threadid=38214) that need such automatic tool too.

All good other board has got this feature ?!

Because a new user simply visit a thread and want that the visited thread is marked as read.

Please ! Can anyone add this feature !?

Christine 06-27-2002 08:10 PM

Does anyone have this running as written on 2.2.6?

Erwin 06-27-2002 08:48 PM

Yup - it's running fine with my site on 2.2.6

And ethanks deliberately left out the automatic mark thread read - it's easy to put in though.

Christine 06-27-2002 08:55 PM

Sweet! I am going to load it now. It was a life saver on 2.0.3 all this time.

:)

Christine 06-27-2002 10:49 PM

Hmmm -- I am getting the same parse error in index.php.

unexpected $ in index.php on line 417 (the end of the file).

The brackets weren't the issue -- they are all in there.

Any ideas?


All times are GMT. The time now is 09:00 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.01174 seconds
  • Memory Usage 1,752KB
  • 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete