This community thread discusses the feature or improvement: Add a Notice to post.
Feature Details
If you'd like to add a "notice" like this in your post, please create 2 PGDCodes as specified below:The PGDCode #1Pattern:\[notice\]Replace With:<div clas...
How APG vNext Handles Feature Requests
Feature requests and suggestions are tracked through the community forum. The development team reviews popular requests and incorporates the most-requested improvements into upcoming releases.
- Vote for features by upvoting the original post in the forum thread
- Add details about your use case to help prioritize the request
- Check the release blog for updates on upcoming features
See the full feature set on the Features page or browse all community discussions.
Adding a Moderator Notice to Posts in APG vNext
A "notice" on a post is a highlighted banner added by a moderator or administrator that appears above or below the post content, without editing the post itself. This is useful for flagging outdated information ("This solution applies to APG vNext 4.x only — see the updated guide for 5.x"), correcting misinformation without deleting the post, or adding a moderation note that is visible to all readers.
How Notices Work in APG vNext
Notices are stored separately from the post content in the apg_PostNotices table. They are rendered by the thread view as a distinct styled element — typically a coloured callout box — and include the notice text, the moderator who added it, and the date it was added. Members cannot add notices; this action is restricted to moderators and administrators.
Adding a Notice via the Admin/Moderator Interface
- Navigate to the thread containing the target post
- Click the moderator menu (three-dot icon or "Mod" button) on the specific post
- Select Add Notice
- Enter the notice text in the text area (HTML is supported for formatted notices)
- Select notice type: Info (blue), Warning (amber), or Deprecated (grey)
- Click Save — the notice appears immediately without requiring a page refresh
Customising Notice Appearance in APG vNext Skin
Notices render using CSS classes applied to a div wrapper around the notice text. Override these in your skin's custom CSS file:
/* APG vNext — custom notice styling */
.apg-post-notice {
border-left: 4px solid #3b82f6;
background: #eff6ff;
padding: .75rem 1rem;
margin: .5rem 0 1rem;
font-size: .875rem;
border-radius: 0 6px 6px 0;
}
.apg-post-notice.notice-warning { border-color: #f59e0b; background: #fffbeb; }
.apg-post-notice.notice-deprecated { border-color: #94a3b8; background: #f8fafc; }
.apg-post-notice-meta {
font-size: .75rem;
color: #64748b;
margin-top: .5rem;
}
Adding Notices Programmatically via SQL
For bulk notice operations (e.g., flagging all posts in a forum section as "archived"), insert directly into the notices table:
INSERT INTO apg_PostNotices
(PostID, NoticeText, NoticeType, AddedBy, AddedAt)
SELECT
PostID,
'This thread is archived. For current support, see the Knowledge Base.',
'deprecated',
1, -- AdminUserID
GETDATE()
FROM apg_Posts
WHERE ForumID = @ArchivedForumID
AND PostID NOT IN (SELECT PostID FROM apg_PostNotices);
Creating Custom Notice Types with PGD Codes
APG vNext uses a BBCode-like extension system called PGD Codes to define custom formatting shortcuts in post content. If your moderators frequently add specific notice types (e.g., a "Solution" notice, a "See also" notice, or an "Archived" warning), you can create custom PGD Codes that insert the styled notice HTML with minimal typing effort.
Creating a "Notice" PGD Code
-- In Admin Panel → Customisation → PGD Codes → Add New
-- PGD Code Pattern 1 (opening tag):
[notice]
-- Replace With:
<div class="apg-post-notice notice-info" role="note">
-- PGD Code Pattern 2 (closing tag):
[/notice]
-- Replace With:
</div>
After saving both codes, moderators can type [notice]This is a notice.[/notice] in any post and it renders as the styled notice div. The PGD Code substitution happens server-side before storage, so the HTML is clean in the database.
Adding Icon Support to Notices
To include a visual icon in the notice (info ℹ, warning ⚠, deprecated 🚫), extend the CSS with a ::before pseudo-element:
.apg-post-notice.notice-info::before {
content: 'ℹ️ ';
font-style: normal;
}
.apg-post-notice.notice-warning::before {
content: '⚠️ ';
}
.apg-post-notice.notice-deprecated::before {
content: '🚫 ';
}
Notice Visibility and Permissions
Who Can See Notices
By default, notices added via the moderator interface are visible to all members — including guests. This is intentional: notices are designed to correct or contextualise public content. If you need notices visible only to logged-in members (e.g., internal moderation notes), use a different mechanism such as a post flag or a locked "Moderator Note" reply thread.
Removing a Notice
To remove a notice from a post, click the moderator menu on the post and select "Remove Notice". The notice is deleted from apg_PostNotices and the rendered page updates immediately. There is no bin or soft-delete for notices — removal is permanent.
-- SQL: Remove all notices from a forum (bulk archive cleanup):
DELETE FROM apg_PostNotices
WHERE PostID IN (
SELECT PostID FROM apg_Posts WHERE ForumID = @TargetForumID
);
Related Resources
Looking for more help? Browse the support forum or check the Knowledge Base.