News:

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

Main Menu

Message Boxes

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

Previous topic - Next topic

Diego Andrés

Mod updated, now is using hooks.

SMF Tricks - Free & Premium Responsive Themes for SMF.

live627

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.

Diego Andrés

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

SMF Tricks - Free & Premium Responsive Themes for SMF.

live627

I found a bug with this mod; on uninstall, it uses $themesdir, which is undefined. That variable doesn't have an "s".

Diego André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  :)

SMF Tricks - Free & Premium Responsive Themes for SMF.

Diego Andrés

Mod updated
2.0.1 - 17 December 2018
Fixed undefined variable on uninstall.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Ramón Cutanda

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,

Diego Andrés

Yes, new version doesn't use gif extension anymore.

SMF Tricks - Free & Premium Responsive Themes for SMF.

gevv

#88
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?
ElkArte is a modern, powerful community building forum software. https://www.elkarte.net/

Diego Andrés

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.

SMF Tricks - Free & Premium Responsive Themes for SMF.

gevv

I guess it conflicts with another mod.  I will uninstal the mods and try   thanks.
ElkArte is a modern, powerful community building forum software. https://www.elkarte.net/

Diego Andrés

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
Fixed undefined errors.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Shades.

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

Diego Andrés

Doesn't have any for the 2.0.x version

SMF Tricks - Free & Premium Responsive Themes for SMF.

Shades.

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

@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?

jsx

@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',
];

Diego Andrés

In the modification settings area.
I'll try to update this mod early next year.

SMF Tricks - Free & Premium Responsive Themes for SMF.

jsx

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. :)

Steve

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
DO NOT pm me for support!

Advertisement: