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 BoxesDeveloped 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)
IntroductionBBC Message Boxes mod will allow you to use four different message boxes (error, warning, okay and info).Features- Select the type of the icons (classic, modern, modern octagone)
- Set permissions to see and use the BBC's
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)
Awesome! Can't wait to try it out
good mod Thanks...
intersting
This looks very nice mate :)
Does this have group permissions, or will it in future releases?
Cheers
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'] :)
very nice mod!!! big thx! ;)
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.
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 ;)
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
Thenk you wery mach :D
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] :(
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
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
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.
It doesn't show in Firefox IE ok.
It appears normal message on firefox.
its a possibility to use image background?
What files do I need to copy to use on Deep Red, Deep Terracotta, Misty Blue 2.0 themes?
Thanks!
An Error Has Occurred!
Sorry, but this modification does not appear to be compatible with the selected version.
I selected 2.0 RC2..
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.
Hope it will be fixed real soon.
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.
And, it can't be updated for 2 months, so you should wait a little.
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!
Thank you, Inter, for your help. I appreciate your version very much :)
QuoteHiçbir kurulum ve kaldırma eylemi tanımlanmadı!
Please update. Güncelemeni dört gözle bekliyorum. :)
have someone this for smf 1.1.11?
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.
What a great mod - i love it, thanks a lot ! :)
This MOD is really GREAT ! Thank you very much .......... Maybe a WYSIWYG one day :P ?
Quote from: Surfez Couvert on January 07, 2010, 10:17:51 AM
Maybe a WYSIWYG one day :P ?
Oh sorry. This is very difficult. : )
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;
}
I really like this mod, thanks grafitus...
and also C4G-TK for the info2 stuff.
:)
Can't i take over this mod ?
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)?
If you want a mod to be taken over, both parties should send a PM to "SMF Customization Team" (user 1) on this forum.
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
This modification will be developed by SAFAD (http://www.simplemachines.org/community/index.php?action=profile;u=197994).
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';
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?
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
It took a minute to update the mod :)
well thank you brother
but you bothered your self
i was already fixing it
Best Regards
Update DONE !
10/10 ;)
thank you
safad
ce truc ne marche pas :
[error]
test
[/error]
êtes vous sure ?
parce que il marche bien dans ma part !
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]
اين المشكل ؟
Is there an option, only Mods and Admins can use this mod?
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
does this work on RC 4?
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 :)
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.
smf2 rc4 8)
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.
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çõ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ções';]]></add>
</operation>
</file>
A useful modification, thank you
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)
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 }
Try this,
.error_bbc ul, .warning_bbc ul, .okay_bbc ul, .info_bbc ul {
list-style: none;
margin-left: -10px;
padding-left: -10px;
}
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
}
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? :)
I have google chrome.......and it looks great........THANKS!!!!
FIXED :D
Attached to the package is also compatible with version 2.0.
I leave the small balls u.u solutions?
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..
Anyone still using this mod lol?
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çõ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çõ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çõ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ções';]]></add>
</operation>
</file>
I'm reporting that even on the latest point release (2.0.2), this mod installs and works without error without emulation.
So just curious, is anyone still using this mod?
And if so has anyone figured out how to add a list inside the box?
yes and yes
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..
Shockingly easy. Just make the tags block.
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.
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!
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
Wow... Excelent!!! MOD, Works Fine in SMF 2.0.7... theme default, Thanks.... ;)
THANKS & REGARDS 8)
Mod updated, now is using hooks.
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.
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
I found a bug with this mod; on uninstall, it uses $themesdir, which is undefined. That variable doesn't have an "s".
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 :)
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.
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:
- .../images/bbc/error.png
- .../images/bbc/info.png
- .../images/bbc/okay.png
- .../images/bbc/warning.png
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,
Yes, new version doesn't use gif extension anymore.
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?
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.
I guess it conflicts with another mod. I will uninstal the mods and try thanks.
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.
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.
Doesn't have any for the 2.0.x version
@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?
@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',
];
In the modification settings area.
I'll try to update this mod early next year.
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. :)
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
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
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.
Quote from: Shades. on December 20, 2022, 08:45:33 AMQuote 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?
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.
$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
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.
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)
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.
Due to recent activity and popular demand I've decided to update the mod and fix the issues.
3.1 - 26 March 2023
- (https://camo.githubusercontent.com/dabbb7cab40c66b82cb563365d644a1f098f665bf28cef0616f69a1a0f25084e/68747470733a2f2f736d66747269636b732e636f6d2f6173736574732f6368616e67656c6f672f7461672d2d706c75732e706e67) (https://camo.githubusercontent.com/dabbb7cab40c66b82cb563365d644a1f098f665bf28cef0616f69a1a0f25084e/68747470733a2f2f736d66747269636b732e636f6d2f6173736574732f6368616e67656c6f672f7461672d2d706c75732e706e67) Permissions now prevent usage of the BBC.
- (https://camo.githubusercontent.com/5ba14cc5b307fd7683ab0b95737b5548d492d0029f2ce6f42c7cda8cc1c90fb9/68747470733a2f2f736d66747269636b732e636f6d2f6173736574732f6368616e67656c6f672f6275672d2d6d696e75732e706e67) (https://camo.githubusercontent.com/5ba14cc5b307fd7683ab0b95737b5548d492d0029f2ce6f42c7cda8cc1c90fb9/68747470733a2f2f736d66747269636b732e636f6d2f6173736574732f6368616e67656c6f672f6275672d2d6d696e75732e706e67) Fixed issue with settings.
- (https://camo.githubusercontent.com/5ba14cc5b307fd7683ab0b95737b5548d492d0029f2ce6f42c7cda8cc1c90fb9/68747470733a2f2f736d66747269636b732e636f6d2f6173736574732f6368616e67656c6f672f6275672d2d6d696e75732e706e67) (https://camo.githubusercontent.com/5ba14cc5b307fd7683ab0b95737b5548d492d0029f2ce6f42c7cda8cc1c90fb9/68747470733a2f2f736d66747269636b732e636f6d2f6173736574732f6368616e67656c6f672f6275672d2d6d696e75732e706e67) Fixed not loading CSS file.
How do I remove the message icons in each message box?
With CSS:
.error_bbc, .warning_bbc, .okay_bbc, .info_bbc { background-image: none; }
Thanks Diego. :)
Edit: sorry to be dense but in what file do I put that?
mboxes.css or any other main file, you can use !important to overwrite everything else.
3.1.1 - 13 December 2023
- (https://camo.githubusercontent.com/5ba14cc5b307fd7683ab0b95737b5548d492d0029f2ce6f42c7cda8cc1c90fb9/68747470733a2f2f736d66747269636b732e636f6d2f6173736574732f6368616e67656c6f672f6275672d2d6d696e75732e706e67) (https://camo.githubusercontent.com/5ba14cc5b307fd7683ab0b95737b5548d492d0029f2ce6f42c7cda8cc1c90fb9/68747470733a2f2f736d66747269636b732e636f6d2f6173736574732f6368616e67656c6f672f6275672d2d6d696e75732e706e67) Fixed issue with permissions.
- (https://camo.githubusercontent.com/5ba14cc5b307fd7683ab0b95737b5548d492d0029f2ce6f42c7cda8cc1c90fb9/68747470733a2f2f736d66747269636b732e636f6d2f6173736574732f6368616e67656c6f672f6275672d2d6d696e75732e706e67) (https://camo.githubusercontent.com/5ba14cc5b307fd7683ab0b95737b5548d492d0029f2ce6f42c7cda8cc1c90fb9/68747470733a2f2f736d66747269636b732e636f6d2f6173736574732f6368616e67656c6f672f6275672d2d6d696e75732e706e67) Fixed missing help texts and descriptions.
- (https://camo.githubusercontent.com/2b4ab97b0305c84fe3d563f95de3f5eaa7019a88172cd590e0d0ffbb681f2cf1/68747470733a2f2f736d66747269636b732e636f6d2f6173736574732f6368616e67656c6f672f7461672d2d70656e63696c2e706e67) (https://camo.githubusercontent.com/2b4ab97b0305c84fe3d563f95de3f5eaa7019a88172cd590e0d0ffbb681f2cf1/68747470733a2f2f736d66747269636b732e636f6d2f6173736574732f6368616e67656c6f672f7461672d2d70656e63696c2e706e67) Minor code improvements.
Full list of changes: v3.1...v3.1.1 (https://github.com/SMFTricks/BBC-Message-Boxes/compare/v3.1...v3.1.1)
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
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.
Something is trying to load it as if... very strange.
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