PDA

View Full Version : How do I add note like this?


BrightStar
03-19-2012, 09:11 PM
Does anyone know how do I add a note in a box like this?

https://vborg.vbsupport.ru/external/2012/03/19.jpg


It's from this blog post
https://www.vbulletin.com/forum/entry.php/2504-vBulletin-4-1-11-Promote-post-as-article#comments

Thanks

Adam H
03-19-2012, 11:45 PM
Just throw some css in the additional.css template like this :

.incontentnotice {
border: 1px solid #0B1986;color:#000;background-color:#F5FFFF;padding:5px;
}

Then When you want to make a notice in the post wrap it in

<div class="incontentnotice">YOUR NOTICE HERE</div>

Obviously you have to have HTML switched on in your posts to be able to insert html into it.

Iain M
03-20-2012, 12:11 AM
Or create a Custom BBCode using the code Adam posted above, and use {param} instead of YOUR NOTICE HERE.

BrightStar
03-20-2012, 12:36 PM
Thanks a lot Adam and Iain for the code.

Sorry to sound dumb where do I place which code in custom BBcode? I have placed the following code in Replacement box

<div class="incontentnotice">{param}</div>

What should I add in example box as it wont be save without putting an example. Also would it automatically add a note in the box (B/G colour to be as per style).

cheers

Iain M
03-20-2012, 01:13 PM
If you've called your Note tag NOTE, then in example you should put This is a note.


The background should change per style if you add the code to each additional.css, changing the background color property as you like.

BrightStar
03-20-2012, 07:10 PM
Thanks Iain.

When I goto styles and additional css (Via Main.css window) it states the this file is for reference only and is obsolete .

kh99
03-20-2012, 07:13 PM
It should go in the template named additional.css (under the "CSS Templates" group).