vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   How do I add note like this? (https://vborg.vbsupport.ru/showthread.php?t=280368)

BrightStar 03-19-2012 09:11 PM

How do I add note like this?
 
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/entr...ticle#comments

Thanks

Adam H 03-19-2012 11:45 PM

Just throw some css in the additional.css template like this :

Code:

.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

HTML Code:

<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

Quote:

<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 [NOTE]This is a note.[/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).


All times are GMT. The time now is 03:23 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01133 seconds
  • Memory Usage 1,721KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete