I just finished a full on round of as much penetration testing as possible. Tried throwing script, onchanges, onclicks, rogue characters, whatever I could think of. Did it in the class fields, in the ACP, in the announcement, in the usergroup fields, and anywhere else that I could possibly think of. Things that take numeric values even, things that aren't even the announcement.
It even sanitizes the username if a user's username is javascript. MyBB doesn't even allow this, but if they found a way to change their username to javascript characters and tried to run it past the {username} tag, BAM won't even let this one past.
It passed with flying colors. This thing has full support for HTML for everything except javascript and rogue stuff.
Just a heads up since I see you testing marquees:
1. Marquee is deprecated so support can end any day now. Probably won't anytime soon, but even though I hate JS, it might be your most stable/reliable solution.
2. The marquee is delayed to start and skips before it finishes because of text-align:center. Remove that/keep default alignment when using marquees and it'll look normal.
3. Marquees don't look great when the text kinda disappears into nowhere, but you can make it look a little cooler with box-shadows and border-left/border-right properties.
Hello everyone here. I am new here in the forum, sorry, my english is not very good but hope you can buy me.
I come from Austria and created a Mybb forum, it is about autistic children, because my 5 year old son is autistic.
But now a question about this great addon, BAM, I would like to use marquee, how can I use it thanks for your help lg Tc
Hello TC4M4. Welcome to the forums, and I’m glad you like the plugin!
We initially added a marquee, but it’s a deprecated feature in HTML and had a conflict with the slide down effect. It was removed before release due to compatibility issues. I’ll provide a post on how to add one later this afternoon when I’m off from work!
(March 18th, 2020 at 1:39 PM)Darth-Apple Wrote: Hello TC4M4. Welcome to the forums, and I’m glad you like the plugin!
We initially added a marquee, but it’s a deprecated feature in HTML and had a conflict with the slide down effect. It was removed before release due to compatibility issues. I’ll provide a post on how to add one later this afternoon when I’m off from work!
Regards,
-Darth Apple
Hy, super thanks! Would be happy if I can insert or try again. Thanks Regards, Tc
This can be done with MyCode without much trouble. I've tested it here and verified that it works! The only issue is that there is a conflict with the slide down effect when doing this. You’ll have to go to BAM’s settings and disable the “slidedown effect” or the marquee won’t work.
Go to ACP -> Configuration -> MyCode, and add a new MyCode.
Make sure that there are no blank lines after these in the text boxes. Once this is done, you can use:
Code:
[marquee]your marquee text[/marquee]
in your announcement to create the marquee.
I was going to include this in the final release, but the slidedown conflict caused some issues. As long as the slide down is disabled, this will work as expected! Let me know if you experience any issues.
March 19th, 2020 at 10:07 AM (This post was last modified: March 19th, 2020 at 11:02 AM by tc4me.)
(March 19th, 2020 at 5:01 AM)tc4m4 Wrote: Thank you, I'll put that in, you'll find a final solution that works both together :-) Greets Tc
Hello, as it said, with slidedown on, the marquee doesn't work.
Unfortunately I can NOT programming, but I have now changed something in the template bam_announcement, the disadvantage, slide down on or off does not matter, disadvantage, every announcement is in Marquee. I know it's a very old script, but maybe it will help you. Greeds Tc
first I tried that
replaced the content of the bam_announcement
Hmm... Interesting. I wasn't able to figure out why this particular method wasn't working, but there's another way that should work as well:
1. Enable HTML in BAM's settings (setting #2)
2. Leave slidedown off (as before)
Put the following into a new announcement:
Code:
<marquee behavior="scroll" direction="right" onmouseover="this.stop();" onmouseout="this.start();"> YOUR MARQUEE TEXT </marquee>
I put it at the top of this thread to test it. Does it work at the top of this page on your web browser? (Checking this because Marquees are deprecated and no longer supported, so they can act strangely on some browsers.)
Awesome, thanks for having it translated! We had a couple translations for the original version that got posted on various international MyBB support forums.
If you’d like, you’re more than welcome to bundle the translation with the plugin and post it on the German MyBB support forum! I’ll add it to the main site and give you a credit for the translation!