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)

DarkReaper 12-10-2001 12:49 AM

So what exactly does this do? What's it add, and what does it do differently?

ethank 12-10-2001 12:53 AM

Quote:

Originally posted by DarkReaper
So what exactly does this do? What's it add, and what does it do differently?
Its explained in the first post, or you can register on http://www.murmurs.com and see for yourself:

Quote:

This hack replaces the bahavior of vBulletin's "Mark Forum Read" and "Mark All Forums Read" with a system that uses a database to track when forums are set read. By eliminating the use of cookies for this feature, a user can come onto your boards, read a bit, mark forums read as they go through and logout. The next time they come into the forums, the status of which forums they've read and which they haven't, as well as new posts since the last time they read is preserved.

This functions a lot like EZBoard and Chatspace's Webboard.

Included in this hack are three search routines: searing the entire forum for new messages, an individual forum and a section of the hierarchy (parent + children)

Also: Mark All Forums Read, Mark Individual Forum Read and Mark Hierarchy Section (Parent + Children) Read

Tommy Boy 12-10-2001 10:24 AM

Ethan's hack is the proper way to do it. I have no idea how anyone could manage with vB's built-in mark read feature (which was introduced only in 2.2.0 btw!).

ethank 12-10-2001 04:18 PM

Quote:

Originally posted by Tommy Boy
Ethan's hack is the proper way to do it. I have no idea how anyone could manage with vB's built-in mark read feature (which was introduced only in 2.2.0 btw!).
Well, there is the caveat that it does add a substantial amount of queries. If you use this and the sub-forums hack you'd better have a well tuned MySQL box!

Although I'm going to start using a cache engine for the sub-forums display as soon as I get the latest version of my site up and running.

Ethan

Gimp 12-11-2001 03:47 PM

this hack just wracked everything! :mad:

Meta 12-11-2001 04:16 PM

Quote:

this hack just wracked everything!
That isn't really good news.

I'm trying to install this hack on 2.2.1 ... but i have my problems with this in index.php:

PHP Code:

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

The mine looks different ... 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';
          }
        } 

Nevermind ... install it anyways? Or what would you say?

Meta 12-11-2001 05:09 PM

Same problem in forumdisplay.php.

I did it this way:

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'];
                    }
// ** CODE ADDED BY ETHANK TO SEE IF THE FORUM WAS MARKED READ SEPERATELY
        /* Select id from forum where parentlist like forumid
        cycle through, for each if lates thread is greater than mark read time or bbuserinfo, select lastpost, limit 1, if true flag
        */
        
$forum['onoff'] = 'off'

I hope, this will work.

(But i'm not finished with everything until now. Maybe in just an hour i will try to install this all.)

(The part in index.php is the same like in forumdisplay.php ... isn't it?)

Meta 12-11-2001 06:16 PM

So ... installed. Almost without problems ... but ...

i get an error:

Quote:

Missing argument 2 for getpostbit() in /home2/www/sphex/newzones/admin/functions.php on line 56
whenever i click a link.

Any ideas?

Meta 12-11-2001 06:43 PM

Hm ...

i turned the functions.php back in default status ... and now it seems to work.

I mean ... now it works ... without modifications in functions.php ... strange, isn't it?

But i am slightly afraid of i'm missing something ... this can not be, or what do you say, ethank?

Meta 12-12-2001 06:19 PM

Anybody at home? No?

Anyway ... it's still working fine, i think. Without the modifications in the functions.php ...

But i'm so curious ... i think there must be a reason why you wanted us to modify the functions.php ... or is it because of the difference to 2.2.1 ?

(And please excuse my poor english ... i do my best. If it's hard to understand me please feel free to ask me about it. And i will try better.)


All times are GMT. The time now is 07:01 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.02044 seconds
  • Memory Usage 1,765KB
  • 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
  • (3)bbcode_php_printable
  • (5)bbcode_quote_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