News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Message Boxes

Started by Diego Andrés, August 28, 2009, 04:04:35 AM

Previous topic - Next topic

Shades.

Quote from: jsx on December 19, 2022, 11:46:01 AMAfter installing this mod, I don't see these settings here. I understand, then I'm waiting for an update after the new year.
I've had this same problem due to other mods installed. The only workaround I found was to install it before you install any other mods and the settings will be there. Adjust your settings the way you want, and then install your other mods. But once you install other mods that have settings in "Miscellaneous" the Message Boxes settings will disappear for some reason. I have same issues with other mods that use this area that settings disappear as well if there are other mods that have their settings there. :o
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

jsx

Quote from: Steve on December 19, 2022, 09:07:34 PMIs this the area you're talking about? Admin -> Modification Settings -> Miscellaneous Tab

Yes.

Quote from: Shades. on December 20, 2022, 08:45:33 AMI've had this same problem due to other mods installed. The only workaround I found was to install it before you install any other mods and the settings will be there. Adjust your settings the way you want, and then install your other mods. But once you install other mods that have settings in "Miscellaneous" the Message Boxes settings will disappear for some reason. I have same issues with other mods that use this area that settings disappear as well if there are other mods that have their settings there. :o

Thank you for the tip. I'll wait for the mod update.

DeadMan...

Quote from: Shades. on December 20, 2022, 08:45:33 AM
Quote from: jsx on December 19, 2022, 11:46:01 AMAfter installing this mod, I don't see these settings here. I understand, then I'm waiting for an update after the new year.
I've had this same problem due to other mods installed. The only workaround I found was to install it before you install any other mods and the settings will be there. Adjust your settings the way you want, and then install your other mods. But once you install other mods that have settings in "Miscellaneous" the Message Boxes settings will disappear for some reason. I have same issues with other mods that use this area that settings disappear as well if there are other mods that have their settings there. :o

Is there going to be a fix for this issue?
Or at least finding out which mod removes the settings for this mod?
I tell it how I see it... Don't like it? Hit Alt+F4!

Diego Andrés

Wouldn't know, been a bit busy.
The setting issue is on multiple mods, it's likely an if checking if there are settings or similar.

SMF Tricks - Free & Premium Responsive Themes for SMF.

live627

$config_vars += [
['title', 'mboxes_settings'],
['permissions', 'mboxes_use', 'subtext' => $txt['permissionhelp_mboxes_use'] . $txt['permissionname_mboxes_use_desc']],
['select', 'mboxes_style', $txt['mboxes_types']],
];
the fix is super simple $config_vars = array_merge($config_vars, [
['title', 'mboxes_settings'],
['permissions', 'mboxes_use', 'subtext' => $txt['permissionhelp_mboxes_use'] . $txt['permissionname_mboxes_use_desc']],
['select', 'mboxes_style', $txt['mboxes_types']],
]);
a merge will reorder indexes while a union will not

DeadMan...

Quote from: live627 on March 25, 2023, 03:25:12 PM $config_vars += [
['title', 'mboxes_settings'],
['permissions', 'mboxes_use', 'subtext' => $txt['permissionhelp_mboxes_use'] . $txt['permissionname_mboxes_use_desc']],
['select', 'mboxes_style', $txt['mboxes_types']],
];
the fix is super simple $config_vars = array_merge($config_vars, [
['title', 'mboxes_settings'],
['permissions', 'mboxes_use', 'subtext' => $txt['permissionhelp_mboxes_use'] . $txt['permissionname_mboxes_use_desc']],
['select', 'mboxes_style', $txt['mboxes_types']],
]);
a merge will reorder indexes while a union will not

No idea which file and where to do the edit.
And your message below the code block is a mystery to me.
I tell it how I see it... Don't like it? Hit Alt+F4!

Shades.

Quote from: DeadMan... on March 25, 2023, 05:15:50 PMNo idea which file and where to do the edit.
And your message below the code block is a mystery to me.

Sources/BBC-MessageBoxes.php

Find:
$config_vars += [
['title', 'mboxes_settings'],
['permissions', 'mboxes_use', 'subtext' => $txt['permissionhelp_mboxes_use'] . $txt['permissionname_mboxes_use_desc']],
['select', 'mboxes_style', $txt['mboxes_types']],
];

Change to:
$config_vars = array_merge($config_vars, [
['title', 'mboxes_settings'],
['permissions', 'mboxes_use', 'subtext' => $txt['permissionhelp_mboxes_use'] . $txt['permissionname_mboxes_use_desc']],
['select', 'mboxes_style', $txt['mboxes_types']],
]);

Worked perfectly! Thanks @live627  8)
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

DeadMan...

I tell it how I see it... Don't like it? Hit Alt+F4!

Bugo

This mod does not load its own styles at profile posts/topics.
To fix it, just move loadCSSFile from bbc_buttons function into bbc_code function.

Diego Andrés

Due to recent activity and popular demand I've decided to update the mod and fix the issues.

3.1 - 26 March 2023
  • New Feature Permissions now prevent usage of the BBC.
  • Bug Fix Fixed issue with settings.
  • Bug Fix Fixed not loading CSS file.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Steve

How do I remove the message icons in each message box?
DO NOT pm me for support!

Diego Andrés

With CSS:
.error_bbc, .warning_bbc, .okay_bbc, .info_bbc { background-image: none; }

SMF Tricks - Free & Premium Responsive Themes for SMF.

Steve

Thanks Diego.  :)

Edit: sorry to be dense but in what file do I put that?
DO NOT pm me for support!

Diego Andrés

mboxes.css or any other main file, you can use !important to overwrite everything else.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Advertisement: