News:

Join the Facebook Fan Page.

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.

Diego Andrés

3.1.1 - 13 December 2023
  • Bug Fix Fixed issue with permissions.
  • Bug Fix Fixed missing help texts and descriptions.
  • Improvement Minor code improvements.
Full list of changes: v3.1...v3.1.1

SMF Tricks - Free & Premium Responsive Themes for SMF.

Lucarella

Hi Diego, I installed this mod, it works but I get a lot of errors like this:
/home/ddcrewne/public_html/forum/Sources/Load.php (Linea 2876)
2: filemtime(): stat failed for /home/ddcrewne/public_html/forum/Themes/Halloween/css/mbox.css

Tipo di errore
Cron
Messaggio di errore
2: filemtime(): stat failed for /home/ddcrewne/public_html/forum/Themes/Halloween/css/mbox.css
File
/home/ddcrewne/public_html/forum/Sources/Load.php
Linea
2876
URL della pagina che ha causato l'errore
https://dd-crew.net/forum/index.phphttps://dd-crew.net/forum/cron.php
Informazioni di backtrace
#0: smf_error_handler_cron()
Chiamata da sconosciuto nella linea -1
#1: filemtime()
Chiamata da /home/ddcrewne/public_html/forum/Sources/Load.php nella linea 2876
#2: loadCSSFile()
Chiamata da /home/ddcrewne/public_html/forum/Sources/Class-MessageBoxes.php nella linea 48
#3: bbc_codes()
Chiamata da /home/ddcrewne/public_html/forum/Sources/Subs.php nella linea 5787
#4: call_integration_hook()
Chiamata da /home/ddcrewne/public_html/forum/Sources/Subs.php nella linea 2480
#5: parse_bbc()
Chiamata da /home/ddcrewne/public_html/forum/Sources/tasks/CreatePost-Notify.php nella linea 561
#6: handleWatchedNotifications()
Chiamata da /home/ddcrewne/public_html/forum/Sources/tasks/CreatePost-Notify.php nella linea 270
#7: execute()
Chiamata da /home/ddcrewne/public_html/forum/cron.php nella linea 249
#8: perform_task()
Chiamata da /home/ddcrewne/public_html/forum/cron.php nella linea 131

How can I solve it?

Thank you

Diego Andrés

I didn't encounter such issues during my testing.
I installed Halloween theme too, no issues on PHP 8.1 or PHP 8.0

Perhaps you have a different issue in your config? Also this MOD is not supposed to add the css file to other themes, it will always load it from the default theme.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Arantor

Something is trying to load it as if... very strange.
Holder of controversial views, all of which my own.


Lucarella

I believe that the error is not strictly related to the mod, since I have the same error with the hide content mod, as I described here
https://www.simplemachines.org/community/index.php?msg=4169645
For now I tried to uninstall the hide content mod and first I get the phrase "cannot load the hidecontent template and it creates many errors in the registry.
Then I uninstalled the Message Boxes mod and everything was fine.

Until I find a solution I'll leave it like this...

Thank you

Advertisement: