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)

InvictuZ 09-25-2002 10:25 AM

Anyone get this going with 2.2.7? I really want too. The default Vb mark all read, and new post indicators are driving me to bits. I'm sick of looking at a new post indicator on my main page, then going into the thread to see nothing new. Or nothing is being mark'd read and the post indicators are off, when there is a new post... :devious:

SWFans.net 10-14-2002 10:07 PM

I still have the hack working (as it was in this release) in 2.2.8, but have one problem. The query count in forumdisplay is petrifying when a forum contains several forums with sub-forums. I’m thinking that the replacement code for forumdisplay.php needs to be optimized like index.php was. I've played with it a little trying to emulate what was done in index.php and it does knock the query count down, but new post indications don't appear for subforums when viewing forumdisplay.php. :\

SWFans.net 10-15-2002 03:16 AM

Nevermind my previous post. Using the same replacements for index.php in forumdisplay.php did work, I was just putting one piece in the wrong place, and it did fix the query counts as well. Down from over 300 to now only 18 :)

fury 12-10-2002 01:59 AM

Quote:

Originally posted by Cynthia Blue
Ok.. actually, it's not quite working right, either. I don't have child forums, I have different categories. When you click one forum in a category as read, it marks all the forums in that category as read.

This is my site: http://www.ilsikhaucil.com

This is the code that is in the template next to each individual forum... in the forumhome_forumbit_level2_post template:


help... thanks. :)

Mind telling us how you fixed it? I'm having the same problem...

Nevermind, fixed it by moving all forums out of a category (I was going to do that eventually anyway, the category being there was just a result of the conversion from phpBB to vBulletin)

I must say, this hack is farking genius :D

The more I use it, the more I become addicted to it... damn, now gotta add it to my other board! :D

Arshes Nei 03-28-2003 01:57 AM

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

I get this error as well. Does someone have a solution to this? I'm using 2.3.0 right now

Paul 04-04-2003 05:00 AM

I'm about to try and install this on 2.3.0... I'll post the results we get :)

Arshes Nei 04-21-2003 09:54 PM

Nevermind, I didn't realize that the version I was using was not the most recent hack.

I have one problem however, in 2.3.0 whenever one marks a post as read it marks the entire forum. Anyone know how to fix this?

sraposa 05-01-2003 04:21 PM

so, has anybody successfully installed this on a vb2.3.0 site? if so, is it a public site i can play with?

i'd like to have something better than the default read/unread functionality, but i'm concerned that this hack hasn't quite made it into 2.3.0 territory.

-s

InnerSelf 05-04-2003 04:41 PM

in some way it wont work here.

i installed the hack on a fresh new board to see where the problem was.

its the modification in index.php with me.

i have to replace this and then it goes wrong

PHP Code:

REPLACE:

// 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:
    
    
 
// do light bulb
        
if ($bbuserinfo['lastvisitdate']=='Never') {
          
$forum['onoff']='on';
        } else {
// ** 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';
// Need to find forum children
        
$children_array find_children($forum['forumid']);       
        for (
$i=0;$i<count($children_array);$i++)
        {
            
$childrenid $children_array[$i];            
            
$forum_array $forumsarray_markread[$childrenid];            
            
$readtime $forum_array['readtime'];            
            
$latest_thread $forum_array['lastpost'];
            
$forum['last_thread'] = $latest_thread;            
                
//Check to see if this thread's last read is < than the markread or base mark read
            
if ($readtime != '')
            {
                         if (
$readtime<$latest_thread)
                        {
                            
$forum['onoff']='on';                            
                        }                         
            }
            else
                {
                
$forum_info $forumsarray_list[$childrenid];
                
$latest_thread $forum_info['lastpost'];                
                 if (
$bbuserinfo['lastvisit']< intval($latest_thread))
                        {
                                
$forum['onoff'] = 'on';                                
                        }
                }            
        } 


anyone can see if there a sign missing or too much??

Christine 05-21-2003 01:34 AM

Hi Ethan!

Still going strong on this hack -- from 2.0.6 through 2.2.6!

I am working on upgrading straight to 2.3.0 and haven't stayed on top of the code changes. Does anyone know where bbarraycookie (forumdisplay.php line 34 and 294, member2.php line 450, showthread.php line 192, 311, etc..... ) came from? How does it relate to the vbsetcookie that it seems to be replacing in some of these locations?

If anyone can get this running in 2.3.0, post and let us know what you find!


All times are GMT. The time now is 10:35 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.01392 seconds
  • Memory Usage 1,769KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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