Marquee / news ticker

AI-generated summary

The fokx theme component adds a customizable marquee (news ticker) above or below the header bar in Discourse, supporting HTML and configurable options like speed, visibility, and placement. It’s inspired by @carson’s www-theme. Users Aaron_Walsh and Heliosurge praised its effectiveness and requested placement flexibility, which fokx promptly implemented. Aaron_Walsh confirmed HTML hyperlink support works via <a href="https://xxx/">XXX</a>. Other users like Zup suggested auto-populating the marquee with tagged topics, and Gabriel_Devries shared a script that pulls headlines via API. Andrew_Rowe lauded the component but noted potential distraction, proposing a feature to limit visibility to specific pages or hide it after first scroll, returning only on next visit. satonotdead suggested adding a toggle or close button to improve user experience. Overall, the component is well-received for its utility and flexibility, with users offering constructive feedback for further enhancement.

:information_source: Summary add a marquee (news ticker) above title bar
:eyeglasses: Preview TBD
:hammer_and_wrench: Repository https://github.com/fokx/discourse-marquee
:question: Install Guide How to install a theme or theme component
:open_book: New to Discourse Themes? Beginner’s guide to using Discourse Themes

Install this theme component

This theme component will add a marquee (news ticker) above header bar. Can be used as an alternative to pinning topic as banner.

This is adapted from @carson’s awesome www-theme.

Options configurable:

  • visibility to non-logged-in users
  • marquee text speed
  • marquee list(support html)
  • below/above header bar
15 Likes

Thank you immensely for this theme component! It is far superior to a mere standalone message, and will undoubtedly capture the attention of individuals on the forum through its messages!

2 Likes

I was wondering if you could add an option to have it either above or below site header? This is quite cool

2 Likes

OK, this is a commit to add this feature:
https://github.com/fokx/discourse-marquee/commit/554f68b575789ba7dd46abfa973f6d17473e9de5

1 Like

You assert that this is supported; I presume a hyperlink must be created for this purpose, correct?

Yes, I think you can use sth like:

<a href="https://xxx/">XXX</a> 
3 Likes

Thank you. That was very speedy.

2 Likes

Outstanding performance; I can affirm that this has indeed achieved the desired effect!

2 Likes

Fun TC!

Auto populate marquee list by tags would be a super great feature to add.

Thanks for this!

2 Likes

Ultimately the work around I got for this was a script running via API that pulled headlines from topics and inserted them into the marquee list along with a link to the post. But via tag would be awesome still.

https://github.com/thecynicalcanuck/discourse-marque-api-updater-script

1 Like

This is an amazing component, thanks so much!!!
Can’t believe I missed this until now

1 Like

I’m on the fence as to whether this marquee / news ticker is obnoxious on my site or not. :laughing: (absolutely no offense to the component author, again thanks this is a really cool and easy to use component)
Part of me thinks it makes the page more dynamic. Another part of me feels it’s really distracting in an environment where I’m trying to encourage people to stop and read.
So I guest this is a feature request or maybe I can figure out something myself.
It would be cool if this could only be shown on select pages. Like maybe by category or just on a landing page.
I like how it scrolls out of view when the page is scrolled. I feel like a good option would be once it scrolls out of view the first time, it goes away until a user’s next visit.

2 Likes

Hey, that’s really cool! Thanks for sharing.

A switch and close button should be great for being honest. It will improve the experience without stressing part of the crowd.