vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   [code] Layout change... (https://vborg.vbsupport.ru/showthread.php?t=120296)

thedvs 07-04-2006 09:04 AM

[code] Layout change...
 
I was told to post here, maybe some guru can quickly help me...

See the question here...

http://www.vbulletin.com/forum/showthread.php?t=190484

Thanks in advance.

Iain M 07-04-2006 12:31 PM

Admin CP -> Styles & Templates -> Style Manager -> Edit Templates -> BB Code Layout Templates -> bbcode_code

REPLACE the contents of bbcode_code with:
Code:

<div style="margin:20px; margin-top:5px">
        <div class="smallfont" style="margin-bottom:2px"><strong>$vbphrase[code]:</strong></div>
        <pre class="alt2" style="background-color: #FFFFFF; margin:0px; padding:$stylevar[cellpadding]px; border:1px dashed #000000; width:$stylevar[codeblockwidth]; height:{$blockheight}px; overflow:auto"><div dir="ltr" style="text-align:left;">$code</div></pre>
</div>

:)

thedvs 07-04-2006 01:34 PM

thank you CP1 you are a star. much appreciated, however im not getting the dashed line and still the scroll bar :(

Iain M 07-04-2006 09:31 PM

hmmm.... u should have the dashed line, what do you mean about the scrollbar?

i have tried it, in IE and FireFox and it works fine for me in both browsers... http://xs103.xs.to/xs103/06273/vb-dashed-code-box.PNG

what browser are you using?

thedvs 07-06-2006 11:24 AM

Ie 6, I dont want scrollers on it at all. it ruins the dashed effect.
see your pic, i dont want that scroll on the right nor on the bottom (happens when text is wide)

Iain M 07-06-2006 12:00 PM

ok, this works for me on IE6 and FireFox
Code:

<div style="margin:20px; margin-top:5px">
        <div class="smallfont" style="margin-bottom:2px"><strong>$vbphrase[code]:</strong></div>
        <pre class="alt2" style="background-color: #FFFFFF; margin:0px; padding:$stylevar[cellpadding]px; border:1px dashed #000000; overflow:none"><div dir="ltr" style="text-align:left;">$code</div></pre>
</div>

but it breaks the page i.e. http://xs303.xs.to/xs303/06274/vb-co...page-broke.png

the scrollbar is on the page, not the code box...

algert 04-23-2009 03:35 PM

Quote:

Originally Posted by Iain M (Post 1023456)
ok, this works for me on IE6 and FireFox
Code:

<div style="margin:20px; margin-top:5px">
        <div class="smallfont" style="margin-bottom:2px"><strong>$vbphrase[code]:</strong></div>
        <pre class="alt2" style="background-color: #FFFFFF; margin:0px; padding:$stylevar[cellpadding]px; border:1px dashed #000000; overflow:none"><div dir="ltr" style="text-align:left;">$code</div></pre>
</div>

but it breaks the page i.e. http://xs303.xs.to/xs303/06274/vb-co...page-broke.png

the scrollbar is on the page, not the code box...

How to get the fonts coded changed?

And also, can I have this code for bbcode_quote, thanks!


All times are GMT. The time now is 02:28 PM.

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.00976 seconds
  • Memory Usage 1,727KB
  • 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
  • (3)bbcode_code_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