vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Editing bbcode_code (https://vborg.vbsupport.ru/showthread.php?t=288379)

thedvs 09-27-2012 11:28 AM

Editing bbcode_code
 
I would like to get the code box, dotted lined and a certain box background color, but it seems vb4 has changed the coding.

Below is my current code, I managed to remove code: but the rest I don't understand.

Code:

<div class="bbcode_container">
        <pre class="bbcode_code"<vb:if condition="$vboptions['codemaxlines']">style="height:<vb:if condition="$blockheight<$vboptions['codemaxlines']">{vb:math {vb:raw blockheight}*{vb:stylevar mid_fontSize}+{vb:stylevar mid_fontSize}*2}<vb:else />{vb:math {vb:raw blockheight}*{vb:stylevar mid_fontSize}+{vb:stylevar mid_fontSize}}</vb:if>;"</vb:if>>{vb:raw code}</pre>
</div>


kh99 09-27-2012 11:38 AM

It looks like vb4 moved a lot of things to the bbcode.css template. What you could probably do is add a section to additional.css like this:

Code:

.bbcode_container {
// your CSS here
}


And override the existing CSS with whatever you want. You might also be able to copy the vb3 bbcode_code template to vb4, but you would have to update the variable references to vb4 template syntax (assuming those style variables still exist in vb4).

nerbert 09-27-2012 02:40 PM

You can change the background color in Stylevars > bbcode > vbbcode_background_color. If you want to change the border you must edit the <pre> tag. to put in additional inline styling go all the way to the end and find the ";"

</vb:if>;"</vb:if>>{vb:raw code}</pre>

You can put additional styling between the ";" and the quote mark that follows. Alternatively you could edit whatever css template contains the bbcode_code class

thedvs 09-28-2012 08:00 AM

thanks guys, seems easier now you have explained some things, appreciated


All times are GMT. The time now is 05:17 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.03603 seconds
  • Memory Usage 1,708KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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