vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Second Alt and [code] tags (https://vborg.vbsupport.ru/showthread.php?t=222403)

douffle 09-03-2009 07:28 PM

Second Alt and [code] tags
 
On one of my sites I need the second alternating color to be dark blue however, when posting a code snippet in a message using the [CODE] tags it also makes the background of the code window dark blue which makes the code difficult to read. Is there a way to have the second alt color dark blue but change the [CODE] background to white? Some place where this could be coded in perhaps?

Thanks

Lynne 09-03-2009 09:09 PM

Just change the code template. To find the template that the code is posted in, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code.

douffle 09-03-2009 09:37 PM

Quote:

Originally Posted by Lynne (Post 1879227)
Just change the code template. To find the template that the code is posted in, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code.

I did that and I think it is in the BBcode_code template so I added the following to my .css file.

Code:

/* Third alternating background color */
.alt3
{
        color: #402020;
        background: #ffffff;
}

Then I changed the template where it says:

<pre class="alt2" dir="ltr" style="

to read:

<pre class="alt3" dir="ltr" style="

but it doesn't change the background color of the code window. Would there be a different template somewhere for the background of the [code] window?

Thanks

Lynne 09-04-2009 01:29 AM

When I change it from alt2 to alt1 on my site (I don't feel like defining an alt3), it changes it just fine. Try that first and see. Otherwise, look to see if the template has already been modified and maybe someone added the color directly into the style.

douffle 09-04-2009 05:16 AM

OK, Thanks Lynne,

I found a "work around" and it works now.
Thank you very much for your help.

Much appreciated!


All times are GMT. The time now is 07:09 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.00964 seconds
  • Memory Usage 1,719KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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