Message Boxes

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

Previous topic - Next topic

Diego Andrés

Link to the mod




BBC Message Boxes
Developed by Diego Andrés
Original author: Berat "grafitus" Dogan




Introduction
BBC 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
English
Spanish


Changelog
GitHub

SMF Tricks - Free & Premium Responsive Themes for SMF.

ოկtђ

Awesome! Can't wait to try it out

Tattoocu_Cartel


edi67

CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see


Sabre™

This looks very nice mate :)
Does this have group permissions, or will it in future releases?

Cheers
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


grafitus

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'] :)

Gmans

Можно по-русски! :Р
"Not so big the universe, as its source code ..." ^^

Lamarck

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.

piotrek_st

This mod is super :D

But don't use it together mod InfoBox

last bbc tag is the same :(

Sory for my english ;)

C4G-TK

#10
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

-img removed-


piotrek_st

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] :(

sheryltoo

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

C4G-TK

#14
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


-img removed-

C4G-TK

#15
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.


-img removed-

akbora

It doesn't show in Firefox IE ok.
It appears normal message on firefox.
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

minos

its a possibility to use image background?

KensonPlays

What files do I need to copy to use on Deep Red, Deep Terracotta, Misty Blue 2.0 themes?

Thanks!

Owner of Mesozoic Haven

7s-1k

An Error Has Occurred!
Sorry, but this modification does not appear to be compatible with the selected version.

I selected 2.0 RC2..
One Day, Two Many

Advertisement: