[vB 3.7] How to Make Notices Stand-out More…

Find the latest vBulletin information about [vB 3.7] How to Make Notices Stand-out More… relating to vBulletin Tips at The Staff Lounge. This was a vBulletin news entry posted 5 months ago. [vB 3.7] How to Make Notices Stand-out More….




vBulletin Tips
Instead of your users seeing nothing more than a boring old box, with maybe a few coloured words in it, you have the option of livening-up your Notices box by simply alterning one template and making your notices in a specific way.

1. Modify a template:
Admin CP -> Styles & Templates -> Style Manager -> <STYLE NAME> -> Template Options -> Edit Templates
Once you're at the templates list, expand:
Code:

Navigation/Breadcrumb Templates
and find the navbar template.

Look for the part of the template containing:
HTML Code:

<if condition="$show['notices']">
 <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
 <tr>
  <td class="thead">$vbphrase[notices]</td>
 </tr>
 <tr>
  <td class="alt1">$notices</td>
 </tr>
 </table>
 <br />
</if>

...and where it says:
HTML Code:

<td class="alt1">$notices</td>
...replace it with:
HTML Code:

<td class="alt1" style="background-color:#FFFFCC;">$notices</td>
You can replace the hex colour code #FFFFCC with a colour of your choice, although a subtle colour is recommended.

Save the template.

2. Create a Notice:
Admin CP -> Notices -> Add New Notice
For a short and basic informative notice, for something like an event you wish to make people aware of, the following will be appropriate:

Start the Notice HTML with:
HTML Code:

<table border=0><tr><td><img src="http://www.somewebsite.com/forum/images/icons/silk/information.png" /></td><td>
After this, you can add whatever you wish, and once done, you need to close with:
HTML Code:

</td></tr></table>
So, your Notice HTML should look something like:
HTML Code:

<table border=0><tr><td><img src="http://www.somewebsite.com/forum/images/icons/silk/information.png" /></td><td>The An event has occured! <a href="http://www.sgc-clan.com/forum/showthread.php?t=604">Click here for details...</a></td></tr></table>
The end result should look something like...


Attached are some common icons you can use for your notices bar. They came from the FamFam/Silk Icons pack.

Information: Attachment 27129

Notice: Attachment 27130

Warning: Attachment 27131

Attached Images
png information.png‎ (778 Bytes)
png error.png‎ (666 Bytes)
png exclamation.png‎ (701 Bytes)
jpg noticebar.jpg‎ (8.2 KB)
Tags: , , , , ,

No Responses to “[vB 3.7] How to Make Notices Stand-out More…”  

  1. No Comments

Leave a Reply



About This Entry

About This Entry
  • You’re currently reading “[vB 3.7] How to Make Notices Stand-out More…,” an entry on The Staff Lounge

  • Published at 8.8.08 / 12am

Powered By

Living Off

Forums Powered By vBulletin Blog Powered By Wordpress Skin Designed By Binary Bonsai