ForumCrafts — plugins, themes, extensions, add-ons & tools for real boards — tools for real boardsDownloads & licences →

Notice Bar Add-on for XenForo

XENFORO ADDON free
Not rated yet Be the first

A dismissible announcement bar at the top of every page.

One line of text, right at the top of the board, that a member can dismiss once and never see again on that device.

What it gives you:

- A slim dark bar above the page body, in the same gold-on-navy family as the rest of the collection.
- A close button that remembers the choice in the visitor's own browser with localStorage - no cookie to explain, no database write, no session touched.
- The message is plain text in the template modification, so nothing a member can type ever ends up in it.

Change the message by editing the one line in Appearance > Template modifications; that is the whole configuration.

What's included

  • Slim announcement bar across the top of every public page
  • Close button, remembered per browser through localStorage
  • No cookie, no database write, no session change for the dismissal
  • Plain text message - no member input ever reaches it
  • Removing the add-on removes the bar completely
  • No external scripts, fonts or requests

At a glance

PlatformXenForo add-on
Latest versionv1.0.0
Download size14.9 KB
Released25 Oct 2026
Downloads0
AccessFree — sign in to download
PlatformXenForo 2.2 or newer (built to 2.2/2.3 conventions)
Add-on IDDataForums/NoticeBar
Version1.0.0
PHP7.4 or newer
Template modifiedPAGE_CONTAINER (one str_replace on <div class="p-body">)
Database changesnone
Storage for the dismissallocalStorage in the visitor's browser
LicenceGPL-3.0-or-later

Requirements

  • XenForo 2.2.0 or newer
  • PHP 7.4 or newer (the Setup class is syntax-checked on PHP 8.4)
  • The stock PAGE_CONTAINER template, so the p-body anchor is present
  • A browser with localStorage - every current browser has it

Checksum

Verify your download before you upload it to your board.

61a7975e2a349d5b2078a523f3a4d0f978c085bb8146078b80aaa9422cdc7bd1

Install it

1. Admin CP > Add-ons > Install from archive, choose df-xenforo-notice-bar-1.0.0.zip, then Install.
2. Edit Appearance > Template modifications > DF Notice Bar > dfxf_noticebar_bar and replace the sample sentence with your own.
3. Save, then reload any page - the bar is at the top, above the page body.
4. To remove it: Uninstall the add-on. The modification goes with it and nothing was ever stored on the server.

Questions people ask

How does a member turn the bar off?

They press the close button. The choice is stored in that browser, so the bar stays gone on that device and comes back on a new one. Is it a cookie? No. It is a localStorage key, so it is never sent to the server and there is nothing to disclose in a cookie notice. Can I show it only to guests? Yes - wrap the bar in <xf:if is="!$xf.visitor.user_id"> ... </xf:if> inside the template modification.

All releases

VersionReleasedSizeDownloadsChangelog
v1.0.0 latest 25 Oct 2026 14.9 KB 0 1.0.0 - first ForumCrafts release of this XenForo add-on. Built to the XenForo 2.2/2.3 add-on conventions: addon.json, a standard Setup class and one template modification. Verified before release: addon.json parses, Setup.php passes php -l, the data XML is well-formed, and the injected markup and JavaScript were exercised in a real browser (the pill appears and returns to the top, the bar dismisses and stays dismissed, the links resolve, the clocks tick, the progress bar fills, the reading-time chip counts the words).

Ratings & reviews

No ratings yet — the first one will be real, not seeded

More XenForo add-ons

All XenForo add-ons