Results 1 to 9 of 9

Thread: vB 4.2.5: Latest Topics module no longer works

  1. #1
    Join Date
    Mar 2007
    Posts
    156

    Default vB 4.2.5: Latest Topics module no longer works

    I wonder if anyone can help me fix the Latest Topics module in CMPS 4.2.1.

    My vBulletin community uses the Latest Topics module (several copies of it -- and for about 10 years now) heavily and since the newest version of vBulletin (4.2.5) this module no longer works properly... it doesn't identify new posts in a thread right. Used to be the thread title would be bold and a Go to first new post link would be available if the thread contained new unread posts. That's no longer the case. The bold title and Go to link seem to be random now. The go to link still seems to work, going to the first unread post, but the indicators seem to be wonky.

    vBulletin told me that they removed the option to use cookies for thread marking in the latest update. That thread marking is now done exclusively by the database. Is this what's broken the Latest Topics module? Is the module looking for thread marking in cookies and that info isn't available any longer? (I don't even remember which option, cookie or database, I used before they took this option away.)

    The module in CMPS is so much better than what's built in to vBulletin.

    Any help at all, even just pointing me in the right direction, would be so much appreciated.

    Thanks.

    --Kirk

  2. #2
    Join Date
    Mar 2007
    Posts
    156

    Default

    I'm sorry, I guess it's Recent Threads I'm talking about and not Latest Topics. My bad.

  3. #3
    Join Date
    Apr 2005
    Posts
    10

    Default

    I have the same issue. Just upgraded my vb to 4.2.5 and CMPS no longer marks rear threads as read.

  4. #4
    Join Date
    Feb 2008
    Posts
    4

    Default

    how can we resolve this problem ?
    ı have the same problem ?

  5. #5
    Join Date
    Feb 2008
    Posts
    4

    Default

    can anybody help us?

  6. #6
    Join Date
    Mar 2018
    Posts
    2

    Default

    I'm also having the same problem

  7. #7
    Join Date
    Nov 2007
    Posts
    5

    Default

    Same here. It appears that updating vBulletin to 4.2.5 has changed the way how threads are marked as read and therefore the "Recent Threads" module doesn't work correctly. In my case, the titles remain bold, even if I open the thread. It works fine for the rest of the board, the problem just occurs in the vBadvanced's CMPS. Are there any workarounds or fixes out there? Help would really be appreciated.

    BTW: The recent thread module on this site is also affected. For me all of the recent threads are marked bold even if I read them.

  8. #8
    Join Date
    May 2018
    Posts
    2

    Default

    I have the same issue. I hope there will be a solution soon.

    My coding skills are not good and I didn't do anything with php etc. for almost 2 years.

    But I think the solution is not that hard to find. I think this is the section in "recentthreads.php":

    PHP Code:
    // Database read marking
    if ($vbulletin->options['threadmarking'] AND $vbulletin->userinfo['userid'])
            {
                
    $rthread_fields .= ', threadread.readtime AS threadread, forumread.readtime AS forumread';
                
    $rthread_join .= ' LEFT JOIN ' TABLE_PREFIX 'threadread AS threadread ON (threadread.threadid = thread.threadid AND threadread.userid = ' $vbulletin->userinfo['userid'] . ')
                    LEFT JOIN ' 
    TABLE_PREFIX 'forumread AS forumread ON (thread.forumid = forumread.forumid AND forumread.userid = ' $vbulletin->userinfo['userid'] . ')';
            }


    // Thread read marking
                
    if ($vbulletin->options['threadmarking'] AND $vbulletin->userinfo['userid'])
                {
                    if (
    $thread['threadread'] < $thread['forumread'])
                    {
                        
    $thread['threadread'] = $thread['forumread'];
                    }
                }
                
    // Check the cookie, but only if guest caching is not enabled
                
    else
                {
                    if (!
    $vb_read_cookies[$thread['forumid']] AND (!$vba_options['portal_guestcache'] OR $pages['name'] != 'home'))
                    {
                        
    $vb_read_cookies[$thread['forumid']] = fetch_bbarray_cookie('forum_view'$thread['forumid']);
                    }

                    
    $thread['threadread'] = ($vb_read_cookies[$thread['forumid']] > $vbulletin->userinfo['lastvisit']) ? $vb_read_cookies[$thread['forumid']] : $vbulletin->userinfo['lastvisit'];
                }

                
    $thread['threadtitle'] = $thread['title']; // set for multipage links

                
    $thread process_thread_array(
                    
    $thread,
                    
    $thread['threadread'],
                    
    $mod_options['portal_threads_showicon']
                );

                if (
    $show['gotonewpost'])
                {
                    
    $pageinfo_newpost = array('goto' => 'newpost');
                } 
    Btw depending on the cookie timeout set in the Admin CP of VB, the Posts get automatically set to read. But even the unread ones.
    Last edited by Alexduke; 05-28-2018 at 02:01 PM.

  9. #9
    Join Date
    May 2018
    Posts
    2

    Default

    Ok I have the solution

    In ../modules/recentthreads.php go to the following lines and delete something....change it from

    PHP Code:
    if ($vbulletin->options['threadmarking'] AND $vbulletin->userinfo['userid']) 
    into

    PHP Code:
    if ($vbulletin->userinfo['userid']) 
    Do it for Line 151 under // Database read marking and 293 under // Thread read marking

    That's all. read post/thread marking works again. yeahhh...

    P.s.: Line 151 does it already. Still I did the same for Line 293 as it seems outdated code.

Thread Information

Users Browsing this Thread

There are currently 3 users browsing this thread. (0 members and 3 guests)

Similar Threads

  1. vb 4.0.2 -VbAdvanced no longer works!
    By bouncer222 in forum Troubleshooting & Problems
    Replies: 3
    Last Post: 02-26-2010, 01:15 PM
  2. LATEST TOPICS module dont works with SELECTIVE FORUM FILTER
    By ov3rrun in forum Troubleshooting & Problems
    Replies: 1
    Last Post: 07-30-2009, 10:42 AM
  3. Latest Topics module not showing
    By rookiyong in forum Troubleshooting & Problems
    Replies: 9
    Last Post: 10-08-2006, 03:28 AM
  4. 2nd Latest Topics Module
    By MortysTW in forum Modifications (version 3.x & 2.x)
    Replies: 3
    Last Post: 02-12-2006, 01:12 AM
  5. Search module no longer works on CMPS
    By jojo77 in forum Troubleshooting & Problems
    Replies: 3
    Last Post: 11-27-2005, 05:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •