Author: Corey
Description: The Important Notices BBCode allows you to post eye catching notices to denote important messages to your users.
Attached file: Download, unzip and upload the entire notices folder to your themes images folder.
Instructions:
Open styles/prosilver/theme/colours.css
At the bottom add:
Code: Select all
span.attention, span.notice, span.alert, span.download, span.approved, span.media, span.note, span.cart, span.camera, span.doc {display: block;padding: 8px 10px 8px 36px;margin: 15px 0;}
span.attention {color: #B79000;border: 1px solid #E7BD72;background: #FFF3A3 url("{T_THEME_PATH}/images/notices/attention.png") 10px 50% no-repeat;}
span.notice {color: #648434;border: 1px solid #9BCC54;background: #CDEFA6 url("{T_THEME_PATH}/images/notices/notice.png") 10px 50% no-repeat;}
span.alert {color: #CF3738;border: 1px solid #FFACAD;background: #FFD5D5 url("{T_THEME_PATH}/images/notices/alert.png") 10px 50% no-repeat;}
span.download {color: #1C6B8B;border: 1px solid #6ABCE2;background: #A8CDE3 url("{T_THEME_PATH}/images/notices/download.png") 10px 50% no-repeat;}
span.approved {color: #666;border: 1px solid #a8a8a8;background: #ccc url("{T_THEME_PATH}/images/notices/approved.png") 10px 50% no-repeat;}
span.media {color: #C76E34;border: 1px solid #FFBB65;background: #FFE0B6 url("{T_THEME_PATH}/images/notices/media.png") 10px 50% no-repeat;}
span.note {color: #B79000;border: 1px solid #E7BD72;background: #FFF3A3 url("{T_THEME_PATH}/images/notices/note.png") 10px 50% no-repeat;}
span.cart {color: #666;border: 1px solid #C5C5C5;background: #E6E6E6 url("{T_THEME_PATH}/images/notices/cart.png") 10px 50% no-repeat;}
span.camera {color: #666;border: 1px solid #C5C5C5;background: #E6E6E6 url("{T_THEME_PATH}/images/notices/camera.png") 10px 50% no-repeat;}
span.doc {color: #C76E34;border: 1px solid #FFBB65;background: #FFE0B6 url("{T_THEME_PATH}/images/notices/doc.png") 10px 50% no-repeat;}
At the bottom add:
Code: Select all
span.attention, span.notice, span.alert, span.download, span.approved, span.media, span.note, span.cart, span.camera, span.doc {display: block;padding: 8px 10px 8px 36px;margin: 15px 0;}
span.attention {color: #B79000;border: 1px solid #E7BD72;background: #FFF3A3 url('./images/notices/attention.png') 10px 50% no-repeat;}
span.notice {color: #648434;border: 1px solid #9BCC54;background: #CDEFA6 url('./images/notices/notice.png') 10px 50% no-repeat;}
span.alert {color: #CF3738;border: 1px solid #FFACAD;background: #FFD5D5 url('./images/notices/alert.png') 10px 50% no-repeat;}
span.download {color: #1C6B8B;border: 1px solid #6ABCE2;background: #A8CDE3 url('./images/notices/download.png') 10px 50% no-repeat;}
span.approved {color: #666;border: 1px solid #a8a8a8;background: #ccc url('./images/notices/approved.png') 10px 50% no-repeat;}
span.media {color: #C76E34;border: 1px solid #FFBB65;background: #FFE0B6 url('./images/notices/media.png') 10px 50% no-repeat;}
span.note {color: #B79000;border: 1px solid #E7BD72;background: #FFF3A3 url('./images/notices/note.png') 10px 50% no-repeat;}
span.cart {color: #666;border: 1px solid #C5C5C5;background: #E6E6E6 url('./images/notices/cart.png') 10px 50% no-repeat;}
span.camera {color: #666;border: 1px solid #C5C5C5;background: #E6E6E6 url('./images/notices/camera.png') 10px 50% no-repeat;}
span.doc {color: #C76E34;border: 1px solid #FFBB65;background: #FFE0B6 url('./images/notices/doc.png') 10px 50% no-repeat;}
BBCode:
Code: Select all
[notice={IDENTIFIER}]{TEXT}[/notice]
Code: Select all
<span class="{IDENTIFIER}">{TEXT}</span>
Code: Select all
Notice: [notice=class]Text[/notice]
Code: Select all
[notice=alert]Lorem ipsum dolor sit amet, consectetur adipiscing elit.[/notice]
[notice=approved]Lorem ipsum dolor sit amet, consectetur adipiscing elit.[/notice]
[notice=attention]Lorem ipsum dolor sit amet, consectetur adipiscing elit.[/notice]
[notice=camera]Lorem ipsum dolor sit amet, consectetur adipiscing elit.[/notice]
[notice=cart]Lorem ipsum dolor sit amet, consectetur adipiscing elit.[/notice]
[notice=doc]Lorem ipsum dolor sit amet, consectetur adipiscing elit.[/notice]
[notice=download]Lorem ipsum dolor sit amet, consectetur adipiscing elit.[/notice]
[notice=media]Lorem ipsum dolor sit amet, consectetur adipiscing elit.[/notice]
[notice=note]Lorem ipsum dolor sit amet, consectetur adipiscing elit.[/notice]
[notice=notice]Lorem ipsum dolor sit amet, consectetur adipiscing elit.[/notice]
[spoiler][notice=alert]Lorem ipsum dolor sit amet, consectetur adipiscing elit.[/notice]
[notice=approved]Lorem ipsum dolor sit amet, consectetur adipiscing elit.[/notice]
[notice=attention]Lorem ipsum dolor sit amet, consectetur adipiscing elit.[/notice]
[notice=camera]Lorem ipsum dolor sit amet, consectetur adipiscing elit.[/notice]
[notice=cart]Lorem ipsum dolor sit amet, consectetur adipiscing elit.[/notice]
[notice=doc]Lorem ipsum dolor sit amet, consectetur adipiscing elit.[/notice]
[notice=download]Lorem ipsum dolor sit amet, consectetur adipiscing elit.[/notice]
[notice=media]Lorem ipsum dolor sit amet, consectetur adipiscing elit.[/notice]
[notice=note]Lorem ipsum dolor sit amet, consectetur adipiscing elit.[/notice]
[notice=notice]Lorem ipsum dolor sit amet, consectetur adipiscing elit.[/notice][/spoiler]
Instead of using one BBCode as we have done here, you can create a bbcode for each notice:
[spoiler]BBCode usage:
Code: Select all
[alert]{TEXT}[/alert]
Code: Select all
<span class="alert">{TEXT}</span>
Code: Select all
alert: [alert]...some text...[/alert]
Code: Select all
[alert]...some text...[/alert]
Code: Select all
[approved]{TEXT}[/approved]
Code: Select all
<span class="approved">{TEXT}</span>
Code: Select all
approved: [approved]...some text...[/approved]
Code: Select all
[approved]...some text...[/approved]
Code: Select all
[attention]{TEXT}[/attention]
Code: Select all
<span class="attention">{TEXT}</span>
Code: Select all
attention: [attention]...some text...[/attention]
Code: Select all
[attention]...some text...[/attention]
Code: Select all
[camera]{TEXT}[/camera]
Code: Select all
<span class="camera">{TEXT}</span>
Code: Select all
camera: [camera]...some text...[/camera]
Code: Select all
[camera]...some text...[/camera]
Code: Select all
[cart]{TEXT}[/cart]
Code: Select all
<span class="cart">{TEXT}</span>
Code: Select all
cart: [cart]...some text...[/cart]
Code: Select all
[cart]...some text...[/cart]
Code: Select all
[doc]{TEXT}[/doc]
Code: Select all
<span class="doc">{TEXT}</span>
Code: Select all
doc: [doc]...some text...[/doc]
Code: Select all
[doc]...some text...[/doc]
Code: Select all
[download]{TEXT}[/download]
Code: Select all
<span class="download">{TEXT}</span>
Code: Select all
download: [download]...some text...[/download]
Code: Select all
[download]...some text...[/download]
Code: Select all
[media]{TEXT}[/media]
Code: Select all
<span class="media">{TEXT}</span>
Code: Select all
media: [media]...some text...[/media]
Code: Select all
[media]...some text...[/media]
Code: Select all
[note]{TEXT}[/note]
Code: Select all
<span class="note">{TEXT}</span>
Code: Select all
note: [note]...some text...[/note]
Code: Select all
[note]...some text...[/note]
Code: Select all
[notice]{TEXT}[/notice]
Code: Select all
<span class="notice">{TEXT}</span>
Code: Select all
notice: [notice]...some text...[/notice]
Code: Select all
[notice]...some text...[/notice]