Facebook 

SMFHacks.com - Celebrating 20 Years!

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4342
Latest: eva
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 44312
Total Topics: 7676
Most Online Today: 513
Most Online Ever: 27044
(May 30, 2026, 09:10:16 pm)
Users Online
Members: 0
Guests: 348
Total: 348

Author Topic: [Mod]Ultimate Shoutbox & Chatroom  (Read 134047 times)

0 Members and 1 Guest are viewing this topic.

Re: [Mod]Ultimate Shoutbox & Chatroom
« Reply #30 on: »
Hmm what theme are you using. I tried a different theme it worked ok for me.
Is this file be included? The css file try putting it in your custom themes folder too in case.
Themes/default/css/shoutbox.css

Yes, uploading the shoutbox.css file to the NameX css directory fixed it.

What does this shoutbox actually look like?

After installing it on my forum, the shoutbox looks like this. Why is it a different color?


https://imgur.com/a/6HTHEwb

On the mod page, you posted a screenshot showing that it looks like this:

« Last Edit: March 25, 2026, 01:36:12 pm by js »

Re: [Mod]Ultimate Shoutbox & Chatroom
« Reply #31 on: »
Its probably picking up your themes colors.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Re: [Mod]Ultimate Shoutbox & Chatroom
« Reply #32 on: »
I found the cause.

The shoutbox switches to dark mode through the CSS media query prefers-color-scheme: dark

My forum itself is set to light mode, but when the browser/system reports dark mode, the shoutbox automatically loads its dark color variables. I confirmed this in DevTools by emulating prefers-color-scheme: light, and the shoutbox immediately switches back to the light style.

Additionally, I tested this on the default SMF 2.1 theme (Curve2), which is a light theme, and the shoutbox is still displayed in dark colors. So it does not seem to be related to the forum theme itself, but rather to the automatic dark mode detection in the shoutbox CSS.

It might be worth adding an option to disable this behavior or to respect the forum theme instead of the system color scheme.

Re: [Mod]Ultimate Shoutbox & Chatroom
« Reply #33 on: »
As a temporary workaround, I added explicit light color variable overrides at the end of shoutbox.css, and the shoutbox immediately displays correctly in light mode again.

Code: [Select]
.shoutbox-widget,
.shoutbox-chatroom {
--shoutbox-bg: #f5f5f5 !important;
--shoutbox-header-bg: #569550 !important;
--shoutbox-header-text: #fff !important;
--shoutbox-border: #ccc !important;
--shoutbox-msg-bg: #fff !important;
--shoutbox-msg-hover: #f0f4f8 !important;
--shoutbox-input-bg: #fff !important;
--shoutbox-input-border: #ccc !important;
--shoutbox-text: #333 !important;
--shoutbox-text-muted: #888 !important;
--shoutbox-whisper-bg: #fff8e1 !important;
--shoutbox-whisper-border: #f0c36d !important;
--shoutbox-bg-alt: #eee !important;
}

Re: [Mod]Ultimate Shoutbox & Chatroom
« Reply #34 on: »
VB, When did you do the last update for this, and what version was it please? I'm asking because I noticed in the download topic it says 'Posted by: SMFHacks March 25, 2026, 03:52:41 am' which was yesterday, unless that's to do with the topic, but the topic has been written to since then

Re: [Mod]Ultimate Shoutbox & Chatroom
« Reply #35 on: »
3/24 late at night. version 1.3.3
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Re: [Mod]Ultimate Shoutbox & Chatroom
« Reply #36 on: »
3/24 late at night. version 1.3.3

Thanks VB

Re: [Mod]Ultimate Shoutbox & Chatroom
« Reply #37 on: »
@vbgamer45 Are you planning to do something about it someday?

I found the cause.

The shoutbox switches to dark mode through the CSS media query prefers-color-scheme: dark

My forum itself is set to light mode, but when the browser/system reports dark mode, the shoutbox automatically loads its dark color variables. I confirmed this in DevTools by emulating prefers-color-scheme: light, and the shoutbox immediately switches back to the light style.

Additionally, I tested this on the default SMF 2.1 theme (Curve2), which is a light theme, and the shoutbox is still displayed in dark colors. So it does not seem to be related to the forum theme itself, but rather to the automatic dark mode detection in the shoutbox CSS.

It might be worth adding an option to disable this behavior or to respect the forum theme instead of the system color scheme.

As a temporary workaround, I added explicit light color variable overrides at the end of shoutbox.css, and the shoutbox immediately displays correctly in light mode again.

Code: [Select]
.shoutbox-widget,
.shoutbox-chatroom {
 --shoutbox-bg: #f5f5f5 !important;
 --shoutbox-header-bg: #569550 !important;
 --shoutbox-header-text: #fff !important;
 --shoutbox-border: #ccc !important;
 --shoutbox-msg-bg: #fff !important;
 --shoutbox-msg-hover: #f0f4f8 !important;
 --shoutbox-input-bg: #fff !important;
 --shoutbox-input-border: #ccc !important;
 --shoutbox-text: #333 !important;
 --shoutbox-text-muted: #888 !important;
 --shoutbox-whisper-bg: #fff8e1 !important;
 --shoutbox-whisper-border: #f0c36d !important;
 --shoutbox-bg-alt: #eee !important;
}

Re: [Mod]Ultimate Shoutbox & Chatroom
« Reply #38 on: »
Not sure yet have to see. what theme are you using?
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Re: [Mod]Ultimate Shoutbox & Chatroom
« Reply #39 on: »
NameX - theme version: 1.3.2 - I plan to update this theme to the latest version 1.4.4

https://custom.simplemachines.org/index.php?theme=3003

However, in the default SMF 2.1 theme, which is light, the shoutbox displays in black. It's possible I've messed something up in my CSS files. Can you test how the shoutbox works in the NameX theme on your test forum?

Re: [Mod]Ultimate Shoutbox & Chatroom
« Reply #40 on: »
Here you go JS. I just happened to have NameX 1.44 on my test site. The background of the shoutbox does not change for any of the colours, the only thing that changes is the border colour.

See attached

[ Guests cannot view attachments ]

[ Guests cannot view attachments ]

I have not seen anything that changes the background/ colours of the shoutbox to black in any tests I've done and for what it's worth I don't get any errors at all with the mod.

Re: [Mod]Ultimate Shoutbox & Chatroom
« Reply #41 on: »
JS I think I know what your issue is. If you're using Firefox, type in the address bar 'about:preferences' and change the 'Website Appearance' to 'Light' If it's on Dark that's when the background of the shoutbox is dark also

Re: [Mod]Ultimate Shoutbox & Chatroom
« Reply #42 on: »
@davejo thanks for the information.

Quote
JS I think I know what your issue is. If you're using Firefox, type in the address bar 'about:preferences' and change the 'Website Appearance' to 'Light' If it's on Dark that's when the background of the shoutbox is dark also

Yes, that's correct, but in my case I'm using Edge or Opera and I have the browser set to dark mode in Settings > Appearance. I don't need to change any advanced or experimental settings for this to happen.

@vbgamer45

I found the exact cause.

The shoutbox changes between light and dark depending on the browser/system color scheme. For example, if Edge or Opera is set to dark mode, the shoutbox becomes dark, and if Edge/Opera is set to light mode, the shoutbox becomes light.

The shoutbox currently follows `prefers-color-scheme`, so its appearance depends on the browser/system setting rather than the SMF theme.

In my opinion, the shoutbox should follow the forum theme instead of the browser/system color scheme, or there should be an option to control this behavior.
« Last Edit: March 28, 2026, 03:04:15 pm by js »

Re: [Mod]Ultimate Shoutbox & Chatroom
« Reply #43 on: »
Good find!
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Re: [Mod]Ultimate Shoutbox & Chatroom
« Reply #44 on: »
I’ve encountered a UI/layout issue with shoutbox-generated alerts. The alert text is being split into multiple lines incorrectly (e.g. mentioned you in the and shoutbox are separated), which breaks the visual consistency with native SMF alerts.

It looks like the issue may be related to how the alert content is constructed or rendered (possibly missing proper spacing or CSS wrapping rules).

Could you please review and adjust the formatting so the alert message displays correctly?


https://imgur.com/a/YwOzmCH

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
4606 Views
Last post February 10, 2009, 08:33:34 pm
by bluedevil
6 Replies
9932 Views
Last post May 12, 2012, 05:37:44 pm
by mariodieck
5 Replies
50009 Views
Last post March 17, 2026, 08:34:58 pm
by SMFHacks
11 Replies
75353 Views
Last post March 28, 2026, 05:41:45 am
by js
12 Replies
88983 Views
Last post September 02, 2026, 01:35:09 am
by davejo

+- Recent Topics

Registration - anti bot pattern matching by SMFHacks
November 01, 2026, 07:20:17 pm

EZPortal 8 by davejo
October 21, 2026, 01:01:54 pm

Downloads Pro 7.0 Released by SMFHacks
October 07, 2026, 07:35:30 pm

[Mod]ActivityPub Federation for SMF 2.1 by SMFHacks
October 01, 2026, 05:03:45 pm

Newsletter Pro 4.0 Released by SMFHacks
September 23, 2026, 08:08:24 pm

Can't remove or restore any item from the recycle bin by SMFHacks
September 22, 2026, 11:01:51 am

MCP Server for SMF 2.1 - let Claude, ChatGPT or Cursor run your admin chores by SMFHacks
September 12, 2026, 02:50:45 pm

Suggestions for improvements to Ultimate Shoutbox & Chatroom by davejo
September 02, 2026, 01:35:09 am

Automatic Sorting of Categories by Kiwi
August 31, 2026, 12:36:09 am

' appears as ' in Most Viewed (and Recent Items ?) by SMFHacks
August 22, 2026, 11:01:56 pm

Powered by EzPortal