MyBB Community Forums

Full Version: [AJAX] Inferno Shoutbox for MyBB
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
(2014-09-05, 11:01 PM)jpninside Wrote: [ -> ]I really hope a 0.4 version comes out totally compatible with MyBB 1.8!

I'm not sure if the plugin author will release such a version, but I am working on one right now. It's still a bit buggy, but you can PM me if you want to help test it out.
There Formatting Can I ???

NB*
MyBB 1.8

[Image: Screenshot_9.png]
That code is not working for me,
Okay, so I'm a big fan of this plugin and use it on my own site, but as many of you know, it doesn't work on Mybb 1.8. I took this opportunity to share my changes and implemented bugfixes for the plugin (it is open source after all).

Instructions;

1. Grab a copy of https://github.com/frostschutz/MyBB-PluginLibrary (it must be from here since this includes an important fix) or use PluginLibrary version 13 or later (which isn't released as of writing this)
2. Change the compatibility of the PluginLibrary line from 16* to 18*, then upload it to your site.

3. Uninstall your old copy of Inferno Shoutbox, if you had it installed
4. Upload my copy from: https://github.com/TechyZeldaNerd/The-In...box-of-Din and install it. (Direct download)
5. Enjoy and please report any bugs that you find.

Here's a short list of what I fixed,

--Fixed Bugs--
Collapsing issue
The shoutbox can now be used anywhere with custom templates (thanks to the Mybb team for adding a global_intermediate hook)
Fix for the new thread shout being wrong when a poll was posted (thanks Destroy666)
Fix so that the shoutbox will use the display group instead of the primary for styling usernames (again, thanks Destroy666)
Fix for the time being off set by an hour with daylight savings time (I don't recall who this was, but thanks)

--Thanks to all who reported bugs and especially to those who helped with solutions.


--Known issues--
Since I set it to strip slashes, it will strip any "\" from the shouts. This was done to fix an issue with thread titles that include quotes. If anyone knows of a proper way to fix this, I would appreciate some help.
Because I changed the way CSS and settings are handled, a clean install is necessary to reap all the benefits of the update. I'm not sure if there's a way to do this otherwise, but again, I wouldn't mind some help if there is.

--New features--
CSS is now handled by the Mybb theme manager, so each theme has its own inferno.css
There is now an option to post a shout when someone posts in a thread.
The shoutbox now works on Mybb 1.8 (and only Mybb 1.8)

Disclaimer: I have minimal knowledge of PHP and Javascript, most of which have come from tinkering with this plugin, so I very well may have mad some mistakes, but to the best of my knowledge, the plugin works fine.
@Clank

How do i change the shoutbox text color?
It's dark grey and my members and i, can't see the text properly?

Is there a way to change text color please?
- Adz
(2014-09-07, 07:46 AM)Adzdon Wrote: [ -> ]@Clank

How do i change the shoutbox text color?
It's dark grey and my members and i, can't see the text properly?

Is there a way to change text color please?
- Adz

All the CSS is under each Mybb theme. Go to the mybb theme that you want (templates and style, click on the theme you want to change) then there should be an inferno.CSS in that list of files. Click on that, then drop down the box to I inferno_content, then change the color to whatever you want.

If you need more help, just let me know (I'm on a tablet though, so that's why it's short)
(2014-09-07, 07:52 AM)Clank Wrote: [ -> ]
(2014-09-07, 07:46 AM)Adzdon Wrote: [ -> ]@Clank

How do i change the shoutbox text color?
It's dark grey and my members and i, can't see the text properly?

Is there a way to change text color please?
- Adz

All the CSS is under each Mybb theme. Go to the mybb theme that you want (templates and style, click on the theme you want to change) then there should be an inferno.CSS in that list of files. Click on that, then drop down the box to I inferno_content, then change the color to whatever you want.

If you need more help, just let me know (I'm on a tablet though, so that's why it's short)

Thanks for the fast reply,

Okay I'm on 'inferno_content'  I see this

Quote:<div class="inferno_content" id="inferno_content" style="height:{inferno_css_height}px;">Loading...</div>

Kinda confused on how to change it  Rolleyes

- Adz
I think you are on the templates, not the themes (css).

On the top ribbon click on "Templates & Style", then on the left side click on "Themes", then on the right (middle) click on the name of the theme you are using, that should bring up a list of files click on "inferno.css", that should bring up a page that looks like this. http://i.imgur.com/V6ZgdK2.png

On that page, drop the box that says ".inferno_alert" down and change it to ".inferno_content" That should load a new page where you can change the color value (by default, it should be "#3e3e3e"). Change that to whatever you want and hit "Save Changes".

Let me know if that worked.
@Clank

Nope this never worked either. I've done exactly what you trying to tell me. I do not see .inferno_alert on Simple mode. I've looking on Advance mode but i don't see it?
Btw I'm using MyBB 1.6x not 1.8

- Adz
(2014-09-07, 08:24 AM)Adzdon Wrote: [ -> ]@Clank

Nope this never worked either. I've done exactly what you trying to tell me. I do not see .inferno_alert on Simple mode. I've looking on Advance mode but i don't see it?
Btw I'm using MyBB 1.6x not 1.8

- Adz

Ohh, nevermind. I actually had changed the way a lot of stuff, including styles, worked in my update for 1.8.

For 1.6, that value is actually in a file, you have to change "/inc/plugins/inferno/inferno_style.css" file.

This should be in the file, just change the "#3e3e3e" to whatever color you want.
.inferno_content { 

    padding-left: 5px; 
    word-wrap:break-word; 
    margin-right:10px; 
    margin-bottom:20px; 
    margin-top:5px; 
    color: #3e3e3e; 
    overflow: auto; 
}

Sorry about that misunderstanding, I should have asked you which version you were using.