Advertisement:

Author Topic: Message Boxes  (Read 36407 times)

Online Diego Andrés

  • Customizer
  • SMF Hero
  • *
  • Posts: 3,347
  • Gender: Male
    • DiegoSetroc on GitHub
    • @bihgetter on Twitter
    • SMF Tricks - Free & Premium Themes
Re: Message Boxes
« Reply #80 on: July 28, 2015, 09:54:50 PM »
Mod updated, now is using hooks.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Offline live627

  • Development Contributor
  • SMF Hero
  • *
  • Posts: 5,620
  • Gender: Male
    • live627 on Facebook
    • live627 on GitHub
    • live627 on LinkedIn
    • @live627 on Twitter
    • livemods
Re: Message Boxes
« Reply #81 on: July 29, 2015, 01:24:11 AM »
Diego, have you fixed this?

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.

Code: [Select]
// 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.
Try not to become a man of success, but rather try to become a man of value.
- Albert Einstein

Online Diego Andrés

  • Customizer
  • SMF Hero
  • *
  • Posts: 3,347
  • Gender: Male
    • DiegoSetroc on GitHub
    • @bihgetter on Twitter
    • SMF Tricks - Free & Premium Themes
Re: Message Boxes
« Reply #82 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

SMF Tricks - Free & Premium Responsive Themes for SMF.

Offline live627

  • Development Contributor
  • SMF Hero
  • *
  • Posts: 5,620
  • Gender: Male
    • live627 on Facebook
    • live627 on GitHub
    • live627 on LinkedIn
    • @live627 on Twitter
    • livemods
Re: Message Boxes
« Reply #83 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".
Try not to become a man of success, but rather try to become a man of value.
- Albert Einstein

Online Diego Andrés

  • Customizer
  • SMF Hero
  • *
  • Posts: 3,347
  • Gender: Male
    • DiegoSetroc on GitHub
    • @bihgetter on Twitter
    • SMF Tricks - Free & Premium Themes
Re: Message Boxes
« Reply #84 on: December 17, 2018, 07:07:59 PM »
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.

Online Diego Andrés

  • Customizer
  • SMF Hero
  • *
  • Posts: 3,347
  • Gender: Male
    • DiegoSetroc on GitHub
    • @bihgetter on Twitter
    • SMF Tricks - Free & Premium Themes
Re: Message Boxes
« Reply #85 on: December 17, 2018, 07:14:14 PM »
Mod updated
2.0.1 - 17 December 2018
Fixed undefined variable on uninstall.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Offline videoed

  • Jr. Member
  • **
  • Posts: 174
  • Gender: Male
  • Ramón Cutanda
    • videoedicion.org
Re: Message Boxes
« Reply #86 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:

  • .../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,

Online Diego Andrés

  • Customizer
  • SMF Hero
  • *
  • Posts: 3,347
  • Gender: Male
    • DiegoSetroc on GitHub
    • @bihgetter on Twitter
    • SMF Tricks - Free & Premium Themes
Re: Message Boxes
« Reply #87 on: April 01, 2019, 09:14:39 PM »
Yes, new version doesn't use gif extension anymore.

SMF Tricks - Free & Premium Responsive Themes for SMF.