dopetalk

Technology => SMF Forum Code Modifications => Topic started by: Chip on April 06, 2021, 11:06:12 AM

Title: SMF Update 2.0.18 sequence
Post by: Chip on April 06, 2021, 11:06:12 AM
1. Need to permanently uninstall Automatic Attachment Rotation 3.8 as it won't go back on after 2.0.18 as the Post and PM Inline Attachments mod is too difficult to remove now. The mod also resizes now but there is a separate mod for that installed anyway and I don't really need the mod anyway.

2. Changes to ./Sources/Subs.php:

find:
Code: [Select]
        $context['menu_buttons'][$current_action]['active_button'] = true;
        if (!empty($user_info['mod_cache']) && $user_info['mod_cache']['bq'] != '0=1' && $context['open_mod_reports'] > 0)
                $context['menu_buttons']['moderate']['title'] .= ' [<strong>' .$context['open_mod_reports'] . '</strong>]';


        if (!$user_info['is_guest'] && $context['user']['unread_messages'] > 0 && isset($context['menu_buttons']['pm']))
        {
                $context['menu_buttons']['pm']['alttitle'] = $context['menu_buttons']['pm']['title'] . ' [' . $context['user']['unread_messages'] . ']';
                $context['menu_buttons']['pm']['title'] .= ' [<strong>' . $context['user']['unread_messages'] . '</strong>]';
        }

replace:
Code: [Select]
        $context['menu_buttons'][$current_action]['active_button'] = true;

        if (!$user_info['is_guest'] && $context['user']['unread_messages'] > 0 && isset($context['menu_buttons']['pm']))
        {
                $context['menu_buttons']['pm']['alttitle'] = $context['menu_buttons']['pm']['title'] . ' [' . $context['user']['unread_messages'] . ']';
                $context['menu_buttons']['pm']['title'] .= ' [<strong>' . $context['user']['unread_messages'] . '</strong>]';
        }

        if (!empty($user_info['mod_cache']) && $user_info['mod_cache']['bq'] != '0=1' && $context['open_mod_reports'] > 0)
                $context['menu_buttons']['moderate']['title'] .= ' [<strong>' .$context['open_mod_reports'] . '</strong>]';

3. Run the 2.0.18 update
Title: Re: SMF Update 2.0.18 sequence
Post by: Chip on May 11, 2021, 06:59:23 AM
forum now updated to 2.0.18
SimplePortal 2.3.6 © 2008-2014, SimplePortal