I used an old Mod (Fixed Menu on Top) developed by ahrasis. I've been getting a lot of errors generating out of this Mod. I posted in the Mod's thread for help, but ahrasis has not been around for quite some time. I would appreciate if someone else could take the time out to help with this;
http://www.simplemachines.org/community/index.php?topic=525950.msg3918857#msg3918857
someone did post in the support thread in response...
Yes, but not with a solution.
Is there a font setting for that mod?
1- that doesn't change the rules about posting mod support in the support thread...
2- Ahrasis was online earlier this month... its not like he has been gone for months or years
If the mod is working, there's a fudge to fix that type of error, but don't remember offhand what it is. Something to do with adding something like this before the line that causes the error -
if (isset($modSettings['dmot_hover_font']))
$modSettings['dmot_hover_font'] = $modSettings['dmot_hover_font'];
The code does nothing, but iirc, the isset defines the variable and eliminates the error.
Thanks you Sir Osis. I tried inserting it but the errors continue.
Attaching the concerned file in the hope that this can be solved.
Quote from: skb
Attaching the concerned file in the hope that this can be solved.
That file isn't part of the issued SMF. You should [re]post in the mod's support topic ;)
Unable to replicate the problem on 2.0.13 test install. Are you using the latest hook version 1.4.1?
Quote from: Sir Osis of Liver on April 02, 2017, 04:52:52 PM
Unable to replicate the problem on 2.0.13 test install. Are you using the latest hook version 1.4.1?
Yes. Could be a conflict with some other Mod ? Curve Centered Menu Perhaps ?
Don't think so. The $modSettings array is loaded in Load.php, and it apparently is not finding a dmot_hover_font setting. Can you post a screen shot of your mod settings for DMOT?
Sure
Put something in the bottom box. That is what the mod is complaining about.
I ran this mod with all color options blank, no errors. (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.thekrashsite.com%2Fpics%2Fidk.gif&hash=9ac7acf13f4cfaa1b58390444a38dea11e5473d2)
Yes but the OP isn't; he's running it with one option filled and an option that only shows up if *that* option is filled, and it doesn't account for one being present and the other not.
Will reinstall the mod and try that soon as I have time. Wouldn't $modSettings['dmot_hover_font'] be loaded with null value and defined?
Why would it be? If a value is empty, it doesn't get saved into $modSettings normally, you have to go out of your way to put it there.
Understood, thanks.
Quote from: Arantor on April 04, 2017, 04:30:10 PM
If a value is empty, it doesn't get saved into $modSettings normally, you have to go out of your way to put it there.
So just as a matter of interest (or not), here's a fudge that werks gud -
// Add DMOT CSS
if (!isset($modSettings['dmot_hover_font']))
$modSettings['dmot_hover_font'] = null;
if (!empty($modSettings['dmot_enable']) && !empty($modSettings['altmenu_replace_with_icon'])) {
Not quite as I remember it, but it defines the variable and eliminates the errors. Best way, of course, is just to add the required color option.
Quote from: Arantor on April 04, 2017, 04:11:39 AM
Put something in the bottom box. That is what the mod is complaining about.
Thanks Arantor. That solved the problem.
Thanks Sir Osis, for your time and attention.
Greatly appreciated. Solved.