Read the blogs!
Started by Dragooon, May 02, 2014, 01:07:58 PM
QuoteIs that a good thing to do, or am I only asking for trouble?
Quote from: br360 on August 26, 2016, 01:45:42 PMYou should be removing any bit of code left behind from the mod- but you should make sure you remove all of it from any files that were edited because of the mod.To make sure you are removing all code, go to the page where you would download it, and then look for "Manual Install Instructions for SMF" Find your version in the drop down list and then press the parse button. Then just reverse everything you see in the instructions (the parse shows how to manually install, and you are doing the opposite)Make sure to back up first just in case you accidentally remove more code than you should in any of the files
Quote from: Kindred on September 10, 2016, 07:59:27 PMIf you install a new theme after installing mods, then you need to manually update that theme with any mod edits
Quote from: ExSpirit on May 29, 2014, 09:13:49 AMWhen someone does the mention in topic every time someone opens that topis I get strange error in my error log files:QuoteUndefined index: onlineFile: /usr/home/public_html/Themes/default/languages/Mentions.english.php (main sub template - eval?)Line: 275 In my Display.template.php I am using $message['member']['online']['is_online'] to check is user is online or not and that works, but I don't know why this error is shown.
QuoteUndefined index: onlineFile: /usr/home/public_html/Themes/default/languages/Mentions.english.php (main sub template - eval?)Line: 275
Quote from: d3vcho on October 25, 2016, 02:32:06 PMThe solution might be to disable template evals (Admin > Configuration > Server Settings > General > Disable evaluation of templates) as its doesn't exactly tells you where the errors are.Regards
Quote from: James Gryphon on October 26, 2016, 05:27:48 PMAfter creating a new SMF 2.0.12 forum some time ago, I installed the mod and applied the hack I previously described here to get the Mentions button in the menu bar.I just noticed not too long ago, though, that the Mentions button doesn't light up when you're at that page; instead, the Profile button does. It seemed like I was able to fix this on a SMF 2.0.11 forum some time ago, but I don't remember what I did, or if anything's changed in .12 that would mess my fix up.I wondered if it had to do with "Mentions" being an 'area' that's listed under the Profile action, and if creating a new action would help, but I don't have the foggiest where to start doing that, if that is the trouble.I've burned a few hours at this and haven't gotten anywhere, so I figured that it was worth asking about it here. Thanks in advance for any help y'all can provide.
'general' => array($txt['mods_cat_modifications_misc']), 'mentions' => array($txt['mentions']),
'general' => 'ModifyGeneralModSettings', 'mentions' => 'ModifyMentionsSettings',
Quote from: James Gryphon on October 29, 2016, 05:17:27 AMI'm sorry to be a hassle, friend, but I checked those files and it looks like both of those files are already good. That being the case, I'm at a loss what could be off. It seems like this whole process is rather finicky.
if (isset($context['menu_buttons'][$context['current_action']])) $current_action = $context['current_action'];
if (!empty($_GET['action']) && !empty($_GET['area']) && $_GET['action'] == 'profile' && $_GET['area'] == 'mentions') $current_action = 'mentions'; elseif (isset($context['menu_buttons'][$context['current_action']])) $current_action = $context['current_action'];
$current_action = 'moderate'; $context['menu_buttons'][$current_action]['active_button'] = true;
$current_action = 'moderate'; if (!empty($_GET['action']) && !empty($_GET['area']) && $_GET['action'] == 'profile' && $_GET['area'] == 'mentions') $current_action = 'mentions'; $context['menu_buttons'][$current_action]['active_button'] = true;