Resource icon

Adding a warning message to the report dialog

Admin

Administrator
Staff member
Joined
Sep 28, 2017
Messages
1,529
Reactions
110
Points
63
Admin submitted a new resource:

Adding a warning message to the report dialog - Adding a warning message to the report dialog

End result:




Step 1: Add some CSS to your EXTRA.css template

To ensure the alert looks nice on the report dialog (which has a darker background than most parts of the XenForo interface), we'll add a few lines of CSS. Find and edit your EXTRA.css template and add the following to the bottom:

Code:
form.xenForm > ul.reportNotices > li.warningNotice {
background: linear-gradient(rgb(240,...
Read more about this resource...