Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Diego Andrés on August 28, 2009, 04:04:35 AM

Title: Message Boxes
Post by: Diego Andrés on August 28, 2009, 04:04:35 AM
Link to the mod (https://custom.simplemachines.org/index.php?mod=2078)

(https://smftricks.com/logos/logo.png) (https://smftricks.com/)

(https://img.shields.io/badge/License-MPL%202.0-248049) (https://img.shields.io/badge/Hooks%20Only-Yes-6041a3) (https://img.shields.io/badge/SMF-2.1-3f73a0)

BBC Message Boxes
Developed by Diego Andrés (https://smftricks.com/index.php?action=profile;u=1)
Original author: Berat "grafitus" Dogan (https://www.simplemachines.org/community/index.php?action=profile;u=113776)




Introduction
BBC Message Boxes mod will allow you to use four different message boxes (error, warning, okay and info).

Features

Localization
(https://www.simplemachines.org/site_images/lang/english.gif) English
(https://www.simplemachines.org/site_images/lang/spanish.gif) Spanish


Changelog (https://github.com/SMFTricks/BBC-Message-Boxes/blob/master/CHANGELOG.md)
GitHub (https://github.com/SMFTricks/BBC-Message-Boxes)
Title: Re: CSS Message Boxes
Post by: ოկtђ on August 28, 2009, 05:00:35 AM
Awesome! Can't wait to try it out
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: Tattoocu_Cartel on August 28, 2009, 06:29:10 AM
good mod Thanks...
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: edi67 on August 29, 2009, 11:39:32 AM
intersting
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: grafitus on August 30, 2009, 11:14:50 AM
Quote from: Mythcomeback | Burak on August 28, 2009, 05:00:35 AM
Awesome! Can't wait to try it out

Thanks for awesome of messages :)

Quote from: Tattoocu_Cartel on August 28, 2009, 06:29:10 AM
good mod Thanks...

It does not matter. When you want :D

Quote from: edi67 on August 29, 2009, 11:39:32 AM
intersting

Thanks.
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: Sabre™ on August 31, 2009, 05:51:44 PM
This looks very nice mate :)
Does this have group permissions, or will it in future releases?

Cheers
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: grafitus on August 31, 2009, 07:10:16 PM
Quote from: Sabre™ on August 31, 2009, 05:51:44 PM
This looks very nice mate :)

Thanks.

Quote from: Sabre™ on August 31, 2009, 05:51:44 PM
Does this have group permissions, or will it in future releases?

One BBC modification for permissions, it shall removed from the BBC category. This request for a modification of the current actually: http://mods.simplemachines.org/index.php?mod=449

- $grafitus['user'] :)
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: Gmans on September 01, 2009, 07:56:35 AM
very nice mod!!!  big thx!  ;)
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: Lamarck on September 01, 2009, 09:37:46 AM
I need a permissions system too for this,that would be so useful.

For example,like this mod--->http://custom.simplemachines.org/mods/index.php?mod=2104   

Thanks anyway,great mod.
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: piotrek_st on September 02, 2009, 07:15:06 AM
This mod is super :D

But don't use it together mod InfoBox  (http://custom.simplemachines.org/mods/index.php?mod=1905)

last bbc tag is the same :(

Sory for my english ;)
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: C4G-TK on September 05, 2009, 05:55:13 PM
This is just an FYI....

If you have also installed another mod, Info Box mod, you will find that the BBC for the fourth tag (info) will not work.  You will have to go back and edit that code in order to use both the BBC code from this mod and the other mod as well.  I'll leave it to you guys to figure out which one you want to change.


Great mod though!

For those of you who have the other mod already installed, you can do the following in order to use both mods:

Modifications.english.php
$txt['error_bbc'] = 'Add Error Box';
$txt['warning_bbc'] = 'Add Warning Box';
$txt['okay_bbc'] = 'Add Okay Box';
$txt['info2_bbc'] = 'Add Info2 Box';



Subs-Editor.php
'error' => array('code' => 'error', 'before' => '[error]', 'after' => '[/error]', 'description' => $txt['error_bbc']),
'warning' => array('code' => 'warning', 'before' => '[warning]', 'after' => '[/warning]', 'description' => $txt['warning_bbc']),
'okay' => array('code' => 'okay', 'before' => '[okay]', 'after' => '[/okay]', 'description' => $txt['okay_bbc']),
'info2' => array('code' => 'info2', 'before' => '[info2]', 'after' => '[/info2]', 'description' => $txt['info2_bbc']),
array(),



Subs.php
// CSS Message Boxes - grafitus
array(
'tag' => 'error',
'before' => '<div class="error_bbc">',
'after' => '</div>',
),
array(
'tag' => 'warning',
'before' => '<div class="warning_bbc">',
'after' => '</div>',
),
array(
'tag' => 'okay',
'before' => '<div class="okay_bbc">',
'after' => '</div>',
),
array(
'tag' => 'info2',
'before' => '<div class="info2_bbc">',
'after' => '</div>',
),



style.css
/* -----------------------------------------------
   C S S   M E S S A G E   B O X E S   v1.0
 
   Thanks for eBurhan
   http://www.eburhan.com/

   Thanks for famfamfam icons
   http://www.famfamfam.com/
-------------------------------------------------- */

.error_bbc, .warning_bbc, .okay_bbc, .info2_bbc {
    margin-bottom: 1.5em;
    padding: 1em 1.5em 1em 5.5em;
    border-bottom: 2px solid #fff;
    border-top: 2px solid #fff;
    color: #444
}

.error_bbc    {background: #fbe3e4 url(images/mBox/error.png) 2.2em center no-repeat; border-color: #e0011b}
.error_bbc a  {color: #d12f19}

.warning_bbc    {background: #fff6bf url(images/mBox/warning.png) 2.2em center no-repeat; border-color: #ffd324}
.warning_bbc a  {color: #817134}

.okay_bbc   {background: #e9ffdd url(images/mBox/okay.png) 2.2em center no-repeat; border-color: #72c868}
.okay_bbc a {color: #529214}

.info2_bbc   {background: #e2ecee url(images/mBox/info2.png) 2.2em center no-repeat; border-color: #9ddae6}
.info2_bbc a {color: #2d7ba2}


/* Lists */
.error_bbc ul, .warning_bbc ul, .okay_bbc ul, .info2_bbc ul {
    list-style: none;
    margin: 1.3em 1.5em
}
.error_bbc ul li, .warning_bbc ul li, .okay_bbc ul li, .info2_bbc ul li {
    padding-left: 1.3em
}
.error_bbc ul li  { background: url(images/mBox/error-bullet.png)  0 0.55em no-repeat }
.warning_bbc ul li  { background: url(images/mBox/warning-bullet.png)  0 0.55em no-repeat }
.okay_bbc ul li { background: url(images/mBox/okay-bullet.png) 0 0.55em no-repeat }
.info2_bbc ul li { background: url(images/mBox/info2-bullet.png) 0 0.55em no-repeat }



Also,

in the mbox directory of images, change the name of the image to:  info2.png and info2-bullet.png

in the bbc directory of images, change the name of the image to :  info2.gif
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: piotrek_st on September 13, 2009, 08:56:57 AM
Thenk you wery mach :D
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: piotrek_st on September 24, 2009, 04:46:12 AM
Hi

I have new problem :(

This mod is super and very like me but I don't make:

[warning]
text_1
[list]
[li]text_2[/li]
[li]text_3[/li]
[/list]
[/warning]


then tag [werning] is on "text_1",
text_2 and text_3 are without [warning] :(
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: sheryltoo on October 03, 2009, 04:44:14 PM
I installed this but it's not showing up. I put a check in the box next to Turn on the Custom Field On Posting mod
but there's no box next to the bottom section.
Is that why it's not showing up?
Sheryl
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: C4G-TK on October 06, 2009, 11:31:42 AM
I'm getting an error in my log.


Subs-Editor.php
Quote1236:     'error' => array('code' => 'error', 'before' => '[error]', 'after' => '[/error]', 'description' => $txt['error_bbc']),

I'm on SMF2.0 RC1.2 on default theme

Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: C4G-TK on October 06, 2009, 12:06:13 PM
It looks like the error is being pulled when someone is replying to a post and someone else replies to the same post in the meantime.  I'm not sure though, but here is the rest of the error in the log.

Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: akbora on October 07, 2009, 03:10:53 AM
It doesn't show in Firefox IE ok.
It appears normal message on firefox.
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: minos on October 10, 2009, 04:07:49 AM
its a possibility to use image background?
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: KensonPlays on October 10, 2009, 11:15:08 PM
What files do I need to copy to use on Deep Red, Deep Terracotta, Misty Blue 2.0 themes?

Thanks!
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: 7s-1k on November 10, 2009, 02:08:21 PM
An Error Has Occurred!
Sorry, but this modification does not appear to be compatible with the selected version.

I selected 2.0 RC2..
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: Moif on November 11, 2009, 06:37:30 AM
Quote from: 7s-1k on November 10, 2009, 02:08:21 PM
An Error Has Occurred!
Sorry, but this modification does not appear to be compatible with the selected version.

I selected 2.0 RC2..

Same here.
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: 7s-1k on November 11, 2009, 11:21:53 AM
Hope it will be fixed real soon.
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: Arantor on November 13, 2009, 11:30:44 AM
It won't work on RC2 because the author has just ticked it as compatible without testing installation of it on 2.0 RC2. Even if the instructions listed RC2 as a suitable version (which they don't), this mod wouldn't work anyway without other changes, editing the changes to Subs-Editor.php.
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: Yağız... on November 13, 2009, 11:38:03 AM
And, it can't be updated for 2 months, so you should wait a little.
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: inter on November 21, 2009, 12:10:31 PM
Greetings children excuse for my English
I have made this module for correct work with SMF2 RC2
I wish to notice that I have corrected many errors connected with CSS
To Mr. ▌grafitus ▐ thanks for this remarkable module!
Also to Mr.: ▌grafitus ▐ I recommend to do more carefully next time modules and to close classes in CSS!
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: mgrmgr on November 27, 2009, 02:22:08 PM
Thank you, Inter, for your help. I appreciate your version very much :)
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: herace on December 30, 2009, 06:46:10 PM
QuoteHiçbir kurulum ve kaldırma eylemi tanımlanmadı!

Please update. Güncelemeni dört gözle bekliyorum. :)
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: zolee on January 04, 2010, 05:21:26 AM
have someone this for smf 1.1.11?
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: Arantor on January 04, 2010, 05:22:21 AM
Quote from: zolee on January 04, 2010, 05:21:26 AM
have someone this for smf 1.1.11?

Not without at least some changes, but it's probably possible.
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: Tanks on January 07, 2010, 04:01:12 AM
What a great mod - i love it, thanks a lot ! :)
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: Surfez Couvert on January 07, 2010, 10:17:51 AM
This MOD is really GREAT ! Thank you very much .......... Maybe a WYSIWYG one day  :P ?
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: grafitus on January 09, 2010, 03:22:49 AM
Quote from: Surfez Couvert on January 07, 2010, 10:17:51 AM
Maybe a WYSIWYG one day  :P ?
Oh sorry. This is very difficult. : )
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: exorcist on January 14, 2010, 12:24:45 PM
index.css is not true

Add in forum.css

/* -----------------------------------------------
   C S S   M E S S A G E   B O X E S   v1.0

   Thanks for eBurhan
   http://www.eburhan.com/

   Thanks for famfamfam icons
   http://www.famfamfam.com/
-------------------------------------------------- */

.error_bbc, .warning_bbc, .okay_bbc, .info_bbc
{
    margin-bottom: 1.5em;
    padding: 1em 1.5em 1em 5.5em;
    border-bottom: 2px solid #fff;
    border-top: 2px solid #fff;
    color: #444;
}

.error_bbc
{
background: #fbe3e4 url(../images/mBox/error.png) 2.2em center no-repeat;
border-color: #e0011b;
}
.error_bbc a
{
color: #d12f19;
}

.warning_bbc
{background: #fff6bf url(../images/mBox/warning.png) 2.2em center no-repeat;
border-color: #ffd324;
}
.warning_bbc a
{
color: #817134;
}

.okay_bbc   
{
background: #e9ffdd url(../images/mBox/okay.png) 2.2em center no-repeat;
border-color: #72c868;
}
.okay_bbc a
{
color: #529214;
}

.info_bbc
{
background: #e2ecee url(../images/mBox/info.png) 2.2em center no-repeat;
border-color: #9ddae6;
}
.info_bbc a
{
color: #2d7ba2;
}


/* Lists */
.error_bbc ul, .warning_bbc ul, .okay_bbc ul, .info_bbc ul
{
    list-style: none;
    margin: 1.3em 1.5em;
}
.error_bbc ul li, .warning_bbc ul li, .okay_bbc ul li, .info_bbc ul li
{
    padding-left: 1.3em;
}
.error_bbc ul li
{
background: url(../images/mBox/error-bullet.png)  0 0.55em no-repeat;
}
.warning_bbc ul li
{
background: url(../images/mBox/warning-bullet.png)  0 0.55em no-repeat;
}
.okay_bbc ul li
{
background: url(../images/mBox/okay-bullet.png) 0 0.55em no-repeat;
}
.info_bbc ul li
{
background: url(../images/mBox/info-bullet.png) 0 0.55em no-repeat;
}
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: Groundhog on January 14, 2010, 06:37:00 PM
I really like this mod, thanks grafitus...

and also C4G-TK for the info2 stuff.

:)
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: SAFAD on March 20, 2010, 11:14:13 AM
Can't i take over this mod ?
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: grafitus on March 20, 2010, 12:31:28 PM
Quote from: SAFAD on March 20, 2010, 11:14:13 AM
Can't i take over this mod ?
Yes, this is really good. What should we do (Please write to PM)?
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: Arantor on March 20, 2010, 06:12:17 PM
If you want a mod to be taken over, both parties should send a PM to "SMF Customization Team" (user 1) on this forum.
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: grafitus on March 20, 2010, 06:48:01 PM
Quote from: Arantor on March 20, 2010, 06:12:17 PM
If you want a mod to be taken over, both parties should send a PM to "SMF Customization Team" (user 1) on this forum.
OK. Thank you.

/me say Arantor is not spammer. :D
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: grafitus on March 27, 2010, 08:23:13 AM
This modification will be developed by SAFAD (http://www.simplemachines.org/community/index.php?action=profile;u=197994).
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: Eclipse16V on March 30, 2010, 03:45:31 AM
Nice Mod

Run on my 2.0RC3

Here the German Lang
$txt['error_bbc'] = 'Fehler Box erstellen';
$txt['warning_bbc'] = 'Warnung Box erstellen';
$txt['okay_bbc'] = 'Okay Box erstellen';
$txt['info_bbc'] = 'Info Box erstellen';
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: Bugo on May 28, 2010, 10:49:45 AM
Quote from: grafitus on March 27, 2010, 08:23:13 AM
This modification will be developed by SAFAD (http://www.simplemachines.org/community/index.php?action=profile;u=197994).
When?
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: SAFAD on May 30, 2010, 06:26:22 AM
ok i took over this MOD
but school is killing me so i can't Update now to RC3
I'll work on this as soon as i get some free time
Best Regards
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: Bugo on May 30, 2010, 09:21:49 AM
It took a minute to update the mod :)
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: SAFAD on May 30, 2010, 12:35:32 PM
well thank you brother
but you bothered your self
i was already fixing it
Best Regards
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: SAFAD on May 30, 2010, 12:44:53 PM
Update DONE !
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: Kurakama on June 01, 2010, 02:55:55 PM
10/10  ;)
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: SAFAD on June 03, 2010, 10:39:47 AM
thank you
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: Am' on June 30, 2010, 06:08:53 AM
safad

ce truc ne marche pas :

[error]
test
[/error]
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: SAFAD on July 03, 2010, 07:11:44 AM
êtes vous sure ?
parce que il marche bien dans ma part !
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: Am' on July 23, 2010, 05:30:40 AM
salut,

voila ce que j'ai mis :

[okay]
dddd
[list]
[li]d[/li]
[li]dd[/li]
[/list][/okay]


le code html généré :

<div class="okay_bbc">
<br>dddd
<br>
</div>
<ul class="bbc_list">
<li>d</li>
<li>dd</li>
</ul>
[/okay]



اين المشكل ؟
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: Rain Forest on August 07, 2010, 04:29:17 AM
Is there an option, only Mods and Admins can use this mod?
Title: CSS Messages box restrictions
Post by: Gregerz3n on September 18, 2010, 11:33:37 AM
Hello there,
I am a member of a community called Argonath - We'd like to use the modification for our forums, BUT..
We cannot seem to find any kind of restrictions on it.

What we'd like to do is so the functions could only be used by Board moderators and higher.. Is it already there? Or could you guys possibly create restrictions?
Greetz,
Gregersen
BTW; This is for 2.0 Rc3!

Link to the mod: http://custom.simplemachines.org/mods/index.php?mod=2078
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: SN on November 23, 2010, 11:36:47 AM
does this work on RC 4?
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: NanoSector on November 23, 2010, 11:45:10 AM
Quote from: 7s-1k on November 10, 2009, 02:08:21 PM
An Error Has Occurred!
Sorry, but this modification does not appear to be compatible with the selected version.

I selected 2.0 RC2..
2.0 RC1.2 is the only compatible version :)
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: KensonPlays on December 15, 2010, 01:30:58 PM
I tried installing. Works except the BBcode images don't show, they show as broken images. I clicked on one and the BBc appears. I even extracted mod package and copy-pasted BBC images. Still no luck.
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: inter on December 20, 2010, 08:06:43 AM
smf2 rc4  8)
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: NanoSector on December 20, 2010, 11:21:19 AM
Quote from: Inter on December 20, 2010, 08:06:43 AM
smf2 rc4  8)
The mod already works on RC4 if you use the version emulator.
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: Apllicmz on January 09, 2011, 08:52:01 AM
good work when update dont forget portuguese_pt

<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[$txt['error_bbc'] = 'Adicionar caixa de erro';
$txt['warning_bbc'] = 'Adicionar Caixa de Aviso';
$txt['okay_bbc'] = 'Adicionar Caixa Ok';
$txt['info_bbc'] = 'Adicionar Caixa de Informa&ccedil;&otilde;es';]]></add>
        </operation>
    </file>
    <file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[$txt['error_bbc'] = 'Adicionar caixa de erro';
$txt['warning_bbc'] = 'Adicionar Caixa de Aviso';
$txt['okay_bbc'] = 'Adicionar Caixa Ok';
$txt['info_bbc'] = 'Adicionar Caixa de Informa&ccedil;&otilde;es';]]></add>
        </operation>
    </file>
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: impreza on January 09, 2011, 03:16:28 PM
A useful modification, thank you
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: chinaren on February 02, 2011, 11:03:50 PM
Quote from: Inter on December 20, 2010, 08:06:43 AM
smf2 rc4  8)


Cool!  Works like a charm!  Thanks!
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: ACAMS on April 30, 2011, 12:54:16 PM
THANKS for this mod, it is great!


I have SMF 2.0 RC2 and would like to change it a little where the images don't show and the box is the same on both ends, and the text padding is reduced


here is as far as I could get it


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fgametechmods.com%2FPics%2FCSS%2520Box.jpg&hash=5eaccbcdfbf23ee26375f755087bba09b0902d82)




I changed the index.css to this




.error_bbc, .warning_bbc, .okay_bbc, .info_bbc {
    margin-bottom: 1.5em;
    padding: .2em 1.5em 1em 5.5em;
    border-bottom: 2px solid #fff;
    border-top: 2px solid #fff;
    color: #444
}


.error_bbc    {background: #fbe3e4; border-color: #e0011b}
.error_bbc a  {color: #d12f19}


.warning_bbc    {background: #fff6bf; border-color: #ffd324}
.warning_bbc a  {color: #817134}


.okay_bbc   {background: #e9ffdd; border-color: #72c868}
.okay_bbc a {color: #529214}


.info_bbc   {background: #e2ecee; border-color: #9ddae6}
.info_bbc a {color: #2d7ba2}



And renamed the mBox folder to mBox0, but it still has too much left padding, and the text padding is way too much.


How do I edit that?


THANKS for any help




EDIT:  I would like it to look something like this


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fgametechmods.com%2FPics%2FCSS%2520Box1.jpg&hash=1f468d42e1122b098bf41e395acd3af294ae294c)
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: ACAMS on April 30, 2011, 03:39:31 PM
OK, this is weird......


This is my index.css now




.error_bbc, .warning_bbc, .okay_bbc, .info_bbc {
    margin-bottom: 1.5em;
    padding: 1em 1.5em 1em .1em;
    border-bottom: 2px solid #fff;
    border-top: 2px solid #fff;
    color: #444
}


.error_bbc    {background: #fbe3e4; border-color: #e0011b}
.error_bbc a  {color: #d12f19}


.warning_bbc    {background: #fff6bf; border-color: #ffd324}
.warning_bbc a  {color: #817134}


.okay_bbc   {background: #e9ffdd; border-color: #72c868}
.okay_bbc a {color: #529214}


.info_bbc   {background: #e2ecee; border-color: #9ddae6}
.info_bbc a {color: #2d7ba2}


/* Lists */
.error_bbc ul, .warning_bbc ul, .okay_bbc ul, .info_bbc ul {
    list-style: none;
    margin: 1.3em 1.5em
}
.error_bbc ul li, .warning_bbc ul li, .okay_bbc ul li, .info_bbc ul li {
    padding-left: .1em
}



This SHOULD have changed SOMETHING, but did not, not even after I cleared the cache and refreshed the page.




Here is what it was before I made the edits




.error_bbc, .warning_bbc, .okay_bbc, .info_bbc {
    margin-bottom: 1.5em;
    padding: 1em 1.5em 1em 5.5em;
    border-bottom: 2px solid #fff;
    border-top: 2px solid #fff;
    color: #444
}


.error_bbc    {background: #fbe3e4 url(../images/mBox/error.png) 2.2em center no-repeat; border-color: #e0011b}
.error_bbc a  {color: #d12f19}


.warning_bbc    {background: #fff6bf url(../images/mBox/warning.png) 2.2em center no-repeat; border-color: #ffd324}
.warning_bbc a  {color: #817134}


.okay_bbc   {background: #e9ffdd url(../images/mBox/okay.png) 2.2em center no-repeat; border-color: #72c868}
.okay_bbc a {color: #529214}


.info_bbc   {background: #e2ecee url(../images/mBox/info.png) 2.2em center no-repeat; border-color: #9ddae6}
.info_bbc a {color: #2d7ba2}




/* Lists */
.error_bbc ul, .warning_bbc ul, .okay_bbc ul, .info_bbc ul {
    list-style: none;
    margin: 1.3em 1.5em
}
.error_bbc ul li, .warning_bbc ul li, .okay_bbc ul li, .info_bbc ul li {
    padding-left: 1.3em
}
.error_bbc ul li  { background: url(../images/mBox/error-bullet.png)  0 0.55em no-repeat }
.warning_bbc ul li  { background: url(../images/mBox/warning-bullet.png)  0 0.55em no-repeat }
.okay_bbc ul li { background: url(../images/mBox/okay-bullet.png) 0 0.55em no-repeat }
.info_bbc ul li { background: url(../images/mBox/info-bullet.png) 0 0.55em no-repeat }
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: ascaland on April 30, 2011, 04:07:13 PM
Try this,
    .error_bbc ul, .warning_bbc ul, .okay_bbc ul, .info_bbc ul {
list-style: none;
margin-left: -10px;
padding-left: -10px;   
    }
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: ACAMS on April 30, 2011, 08:55:41 PM
That didn't work either, I cleared my cache and refreshed the page and experimented all the way up to -90 with very little change


here is my code now




.error_bbc, .warning_bbc, .okay_bbc, .info_bbc {
    margin-bottom: 1.5em;
    padding: 1em 1.5em 1em .1em;
    border-bottom: 2px solid #fff;
    border-top: 2px solid #fff;
    color: #444
}


.error_bbc    {background: #fbe3e4; border-color: #e0011b}
.error_bbc a  {color: #d12f19}


.warning_bbc    {background: #fff6bf; border-color: #ffd324}
.warning_bbc a  {color: #817134}


.okay_bbc   {background: #e9ffdd; border-color: #72c868}
.okay_bbc a {color: #529214}


.info_bbc   {background: #e2ecee; border-color: #9ddae6}
.info_bbc a {color: #2d7ba2}


/* Lists */
.error_bbc ul, .warning_bbc ul, .okay_bbc ul, .info_bbc ul {
list-style: none;
margin-left: -90px;
padding-left: -90px;   
    }
}
.error_bbc ul li, .warning_bbc ul li, .okay_bbc ul li, .info_bbc ul li {
    padding-left: .1em
}
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: ascaland on April 30, 2011, 09:27:40 PM
This is how I have it if your interested,
    .error_bbc, .warning_bbc, .okay_bbc, .info_bbc {
    margin-bottom: 1.5em;
    padding: .2em 1.5em 1em 1em;
    border-bottom: 2px solid #fff;   
    border-top: 2px solid #fff;   
    color: #444;
    }
   
    .error_bbc ul li, .warning_bbc ul li, .okay_bbc ul li, .info_bbc ul li {
list-style: none;
margin-left: -50px;
padding-left: -50px;
    }
   
    .error_bbc {
    background: #fbe3e4; border-color: #e0011b
    }
   
    .error_bbc a {
    color: #d12f19
    }
   
    .warning_bbc {
    background: #fff6bf; border-color: #ffd324
    }
   
    .warning_bbc a {
    color: #817134
    }
   
    .okay_bbc {
    background: #e9ffdd; border-color: #72c868
    }
   
    .okay_bbc a {
    color: #529214
    }
   
    .info_bbc {
    background: #e2ecee; border-color: #9ddae6
    }
   
    .info_bbc a {
    color: #2d7ba2
    }


I made some slight modifications and tried it on IE8 and FF4, and it looks ok. Care to try? :)
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: ACAMS on April 30, 2011, 10:37:29 PM
I have google chrome.......and it looks great........THANKS!!!!


FIXED    :D
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: WasdMan on June 13, 2011, 12:55:05 PM
Attached to the package is also compatible with version 2.0.
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: Daygo on August 31, 2011, 09:22:41 PM
I leave the small balls u.u solutions?
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: Iomega0318 on November 01, 2011, 12:34:37 AM
Quote from: piotrek_st on September 24, 2009, 04:46:12 AM
Hi

I have new problem :(

This mod is super and very like me but I don't make:

[warning]
text_1
[list]
[li]text_2[/li]
[li]text_3[/li]
[/list]
[/warning]


then tag [werning] is on "text_1",
text_2 and text_3 are without [warning] :(
Just wondering how to show list within the box code, my list breaks and shows outside the box as well..
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: Iomega0318 on November 08, 2011, 12:30:43 PM
Anyone still using this mod lol?
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: Apllicmz on December 26, 2011, 04:13:08 PM
Portuguese Update

<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[$txt['error_bbc'] = 'Adicionar Caixa de erro';
$txt['warning_bbc'] = 'Adicionar caixa de aviso';
$txt['okay_bbc'] = 'Adicionar Caixa Ok';
$txt['info_bbc'] = 'Adicionar Caixa de Informa&ccedil;&otilde;es';]]></add>
        </operation>
    </file>
    <file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[$txt['error_bbc'] = 'Adicionar Caixa de erro';
$txt['warning_bbc'] = 'Adicionar caixa de aviso';
$txt['okay_bbc'] = 'Adicionar Caixa Ok';
$txt['info_bbc'] = 'Adicionar Caixa de Informa&ccedil;&otilde;es';]]></add>
        </operation>
    </file>
    <file name="$languagedir/Modifications.portuguese_brazilian.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[$txt['error_bbc'] = 'Adicionar Caixa de erro';
$txt['warning_bbc'] = 'Adicionar caixa de aviso';
$txt['okay_bbc'] = 'Adicionar Caixa Ok';
$txt['info_bbc'] = 'Adicionar Caixa de Informa&ccedil;&otilde;es';]]></add>
        </operation>
    </file>
    <file name="$languagedir/Modifications.portuguese_brazilian-utf8.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[$txt['error_bbc'] = 'Adicionar Caixa de erro';
$txt['warning_bbc'] = 'Adicionar caixa de aviso';
$txt['okay_bbc'] = 'Adicionar Caixa Ok';
$txt['info_bbc'] = 'Adicionar Caixa de Informa&ccedil;&otilde;es';]]></add>
        </operation>
    </file>

Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: live627 on December 31, 2011, 06:35:33 PM
I'm reporting that even on the latest point release (2.0.2), this mod installs and works without error without emulation.
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: Iomega0318 on April 09, 2012, 10:15:36 PM
So just curious, is anyone still using this mod?
And if so has anyone figured out how to add a list inside the box?
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: live627 on April 10, 2012, 03:05:11 AM
yes and yes
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: Iomega0318 on April 10, 2012, 03:36:47 AM
Quote from: live627 on April 10, 2012, 03:05:11 AM
yes and yes
Can you share then? because I can't figure out how to get a list to show inside the box..
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: live627 on April 10, 2012, 04:02:49 AM
Shockingly easy. Just make the tags block.
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: live627 on April 10, 2012, 04:06:54 AM
Ok, took a minute and got the code from my Subs.php.

// CSS Message Boxes - grafitus
array(
'tag' => 'error',
'before' => '<div class="error_bbc">',
'after' => '</div>',
'block_level' => true,
),
array(
'tag' => 'warning',
'before' => '<div class="warning_bbc">',
'after' => '</div>',
'block_level' => true,
),
array(
'tag' => 'okay',
'before' => '<div class="okay_bbc">',
'after' => '</div>',
'block_level' => true,
),
array(
'tag' => 'info',
'before' => '<div class="info_bbc">',
'after' => '</div>',
'block_level' => true,
),


Basically, add 'block_level' => true, to the tag arrays.
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: Iomega0318 on April 10, 2012, 05:36:30 AM
Very nice, thank you! It's been driving me crazy forever lol..
and didn't notice until now that two of the bullet images never uploaded right and didn't show up on my lists, so after reuploading those it all works great!
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: Jessica. on April 10, 2012, 03:21:20 PM
installed, made a test topic, the CSS Boxes aren't showing? o_O

gonna try to find out why -_-

EDIT: fixed, had to do a refresh
Title: Re: CSS Message Boxes for SMF 2.0 RC1.2
Post by: Impsat-1 on April 27, 2014, 09:18:06 PM
Wow... Excelent!!! MOD, Works Fine in SMF 2.0.7... theme default, Thanks.... ;)


THANKS & REGARDS 8)
Title: Re: Message Boxes
Post by: Diego Andrés on July 28, 2015, 09:54:50 PM
Mod updated, now is using hooks.
Title: Re: Message Boxes
Post by: live627 on July 29, 2015, 01:24:11 AM
Diego, have you fixed this?

Quote from: Iomega0318 on April 10, 2012, 03:36:47 AM
Quote from: live627 on April 10, 2012, 03:05:11 AM
yes and yes
Can you share then? because I can't figure out how to get a list to show inside the box..

Quote from: live627 on April 10, 2012, 04:02:49 AM
Shockingly easy. Just make the tags block.

Quote from: live627 on April 10, 2012, 04:06:54 AM
Ok, took a minute and got the code from my Subs.php.

// CSS Message Boxes - grafitus
array(
'tag' => 'error',
'before' => '<div class="error_bbc">',
'after' => '</div>',
'block_level' => true,
),
array(
'tag' => 'warning',
'before' => '<div class="warning_bbc">',
'after' => '</div>',
'block_level' => true,
),
array(
'tag' => 'okay',
'before' => '<div class="okay_bbc">',
'after' => '</div>',
'block_level' => true,
),
array(
'tag' => 'info',
'before' => '<div class="info_bbc">',
'after' => '</div>',
'block_level' => true,
),


Basically, add 'block_level' => true, to the tag arrays.
Title: Re: Message Boxes
Post by: Diego Andrés on July 29, 2015, 01:49:46 AM
Yes thank you!
Indeed, when I was uploading the mod I saw the screenshot with the list and decided to test that. And minutes later I found that it was actually an issue, eventually reading also your post :P
Title: Re: Message Boxes
Post by: live627 on November 29, 2018, 12:15:36 AM
I found a bug with this mod; on uninstall, it uses $themesdir, which is undefined. That variable doesn't have an "s".
Title: Re: Message Boxes
Post by: Diego Andrés on December 17, 2018, 07:07:59 PM
Quote from: live627 on November 29, 2018, 12:15:36 AM
I found a bug with this mod; on uninstall, it uses $themesdir, which is undefined. That variable doesn't have an "s".

Thanks, I'll update the mod  :)
Title: Re: Message Boxes
Post by: Diego Andrés on December 17, 2018, 07:14:14 PM
Mod updated
2.0.1 - 17 December 2018
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fsmftricks.com%2FThemes%2FSMFTricks%2Fimages%2Fchangelog%2Fbug--minus.png&hash=193021b52e1a966929e8e36330ff0bcc4df04d41) Fixed undefined variable on uninstall.
Title: Re: Message Boxes
Post by: Ramón Cutanda on March 29, 2019, 01:12:31 PM
I was testing MessageBoxes_2.0.1 with SMF 2.1 RC1 and I found out that the BCC buttons were "empty", the reason being that the script tries to load these files:

Those files are not present in the .../images/bbc/, but a gif version instead (that is the reason why the buttons are "empty")

I solved the problem by simply copying the .png files from the mBox folder to the bbc folder.

Thanks,
Title: Re: Message Boxes
Post by: Diego Andrés on April 01, 2019, 09:14:39 PM
Yes, new version doesn't use gif extension anymore.
Title: Re: Message Boxes
Post by: gevv on February 06, 2021, 03:16:23 PM
Errors appear on the Manage Permissions page  smf 2.1 rc3  php 7.4.11

Notice
: Undefined index: permissiongroup_mboxes in
//public_html/Sources/ManagePermissions.php
on line
1672


Notice
: Undefined index: permissionname_mboxes_use in
//public_html/Sources/ManagePermissions.php
on line
1681


Notice
: Undefined index: permissionname_mboxes_use_own in
//public_html/Sources/ManagePermissions.php
on line
1687


Notice
: Undefined index: permissionname_mboxes_use_any in
//public_html/Sources/ManagePermissions.php
on line
1691

+ Can't find the Message Boxes settings page?
Title: Re: Message Boxes
Post by: Diego Andrés on February 06, 2021, 03:37:31 PM
I just installed it and can't reproduce those errors.
Settings are in admin > Configuration > Modification Settings.

I can see the error now I will fix it soon.
Title: Re: Message Boxes
Post by: gevv on February 06, 2021, 03:45:18 PM
I guess it conflicts with another mod.  I will uninstal the mods and try   thanks.
Title: Re: Message Boxes
Post by: Diego Andrés on February 09, 2021, 02:18:36 PM
Quote from: gevv on February 06, 2021, 03:16:23 PM
Errors appear on the Manage Permissions page  smf 2.1 rc3  php 7.4.11

3.0.1 - 09 February 2021
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fsmftricks.com%2FThemes%2FSMFTricks%2Fimages%2Fchangelog%2Fbug--minus.png&hash=193021b52e1a966929e8e36330ff0bcc4df04d41) Fixed undefined errors.
Title: Re: Message Boxes
Post by: Shades. on June 10, 2021, 11:50:09 AM
I don't see the setting in 2.0.1 mod install for SMF2.0.18. I looked under Admin>Configuration>Modification Settings>Miscellaneous like in the 2.1RC3 3.0.1 version but its not there and I had no errors during install. It appears to be working fine I just don't have permission settings for it in admin.
Title: Re: Message Boxes
Post by: Diego Andrés on June 10, 2021, 12:10:59 PM
Doesn't have any for the 2.0.x version
Title: Re: Message Boxes
Post by: Shades. on June 10, 2021, 12:18:45 PM
Quote from: Diego Andrés on June 10, 2021, 12:10:59 PM
Doesn't have any for the 2.0.x version
Ok thanks!
Title: Re: Message Boxes
Post by: jsx on November 10, 2021, 02:53:43 PM
@Diego Andrés

I think it would be nice if could be set permission to use this bbc only for the admin.

What do you think about this?
Title: Re: Message Boxes
Post by: jsx on December 18, 2022, 03:56:30 PM
@Diego Andrés

Where are the settings for this mod for SMF 2.1?

I mean these settings:

// Settings
$txt['mboxes_settings'] = 'Message Boxes settings';
$txt['permissiongroup_mboxes'] = 'Message Boxes permissions';
$txt['permissionname_mboxes_use'] = 'Select Message Boxes on the editor';
$txt['permissionname_mboxes_use_desc'] = 'This will not prevent users from manually typing the BBC.';
$txt['groups_mboxes_use'] = 'Select Message Boxes on the editor';
$txt['permissionhelp_mboxes_use'] = 'If the user can select the Message Boxes.';
$txt['permissionhelp_groups_mboxes_use'] = 'If the user can select the Message Boxes.';
$txt['cannot_mboxes_use'] = 'You\'re not allowed to select the Message Boxes.';
$txt['mboxes_style'] = 'Boxes icons';
$txt['mboxes_types']  = [
'classic'   => 'Classic',
'modern'     => 'Modern',
'octagon'       => 'Modern Octagon',
];
Title: Re: Message Boxes
Post by: Diego Andrés on December 18, 2022, 07:29:08 PM
In the modification settings area.
I'll try to update this mod early next year.
Title: Re: Message Boxes
Post by: jsx on December 19, 2022, 11:46:01 AM
After installing this mod, I don't see these settings here. I understand, then I'm waiting for an update after the new year.

Diego, can you take a look at this post of mine and rjen's posts?

https://www.simplemachines.org/community/index.php?topic=27642.msg4141600#msg4141600

If you'll be updating the mod then I think you should take a look at this. :)
Title: Re: Message Boxes
Post by: Steve on December 19, 2022, 09:07:34 PM
Quote from: jsx on December 19, 2022, 11:46:01 AMAfter installing this mod, I don't see these settings here.
Is this the area you're talking about? Admin -> Modification Settings -> Miscellaneous Tab
Title: Re: Message Boxes
Post by: 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
Title: Re: Message Boxes
Post by: jsx on December 22, 2022, 11:49:55 AM
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.
Title: Re: Message Boxes
Post by: DeadMan... on March 23, 2023, 10:07:28 PM
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?
Title: Re: Message Boxes
Post by: Diego Andrés on March 23, 2023, 10:18:07 PM
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.
Title: Re: Message Boxes
Post by: 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
Title: Re: Message Boxes
Post by: DeadMan... on March 25, 2023, 05:15:50 PM
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.
Title: Re: Message Boxes
Post by: Shades. on March 25, 2023, 06:01:19 PM
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)
Title: Re: Message Boxes
Post by: DeadMan... on March 25, 2023, 06:09:26 PM
Quote from: Shades. on March 25, 2023, 06:01:19 PMWorked perfectly! Thanks @live627 (https://www.simplemachines.org/community/index.php?action=profile;u=154736)  8)

Excellent!
Title: Re: Message Boxes
Post by: Bugo on March 26, 2023, 09:54:14 AM
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.
Title: Re: Message Boxes
Post by: Diego Andrés on March 26, 2023, 10:19:12 PM
Due to recent activity and popular demand I've decided to update the mod and fix the issues.

3.1 - 26 March 2023
Title: Re: Message Boxes
Post by: Steve on June 12, 2023, 06:48:58 PM
How do I remove the message icons in each message box?
Title: Re: Message Boxes
Post by: Diego Andrés on June 12, 2023, 08:28:55 PM
With CSS:
.error_bbc, .warning_bbc, .okay_bbc, .info_bbc { background-image: none; }
Title: Re: Message Boxes
Post by: Steve on June 13, 2023, 09:01:17 AM
Thanks Diego.  :)

Edit: sorry to be dense but in what file do I put that?
Title: Re: Message Boxes
Post by: Diego Andrés on June 13, 2023, 10:11:14 AM
mboxes.css or any other main file, you can use !important to overwrite everything else.
Title: Re: Message Boxes
Post by: Diego Andrés on December 13, 2023, 09:02:56 PM
3.1.1 - 13 December 2023
Full list of changes: v3.1...v3.1.1 (https://github.com/SMFTricks/BBC-Message-Boxes/compare/v3.1...v3.1.1)
Title: Re: Message Boxes
Post by: Lucarella on February 12, 2024, 04:49:59 PM
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
Title: Re: Message Boxes
Post by: Diego Andrés on February 12, 2024, 05:52:46 PM
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.
Title: Re: Message Boxes
Post by: Arantor on February 12, 2024, 06:01:02 PM
Something is trying to load it as if... very strange.
Title: Re: Message Boxes
Post by: Lucarella on February 13, 2024, 01:12:44 PM
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