vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Change look of code, PHP and quote boxes - problems (https://vborg.vbsupport.ru/showthread.php?t=38261)

|-Last-Spirit-| 05-05-2002 08:30 AM

Change look of code, PHP and quote boxes - problems
 
I installed this hack and it works fine, but I have a few things I want to see changed...

All my Code boxes have a extra empty line and can't seem to get ir removed. (look at example below, this board has the same problem, don't see any reason for this :

Code:

Test
And my quote boxes have a different font then my code buttons, I tried changing (in the Admin CP Custom vB Codes) :

FONT-FAMILY: Verdana,Arial;
into
FONT-FAMILY: Courier, Courier New, sans-serif;

But it's still not the same font :(

Any help with any of these matters appreciated !!! :)

|-Last-Spirit-| 05-05-2002 11:33 AM

anyone ??? I searched for a <br> causing the extra line but can't seem to find it :(

Admin 05-05-2002 11:54 AM

Don't bump your post after merely 3 hours.

|-Last-Spirit-| 05-05-2002 12:21 PM

Quote:

Originally posted by FireFly
Don't bump your post after merely 3 hours.
Well I'm a rather inpatient person ;) But as you are quite good with code, and this bug actually is present on this board also, don't you know what causes it (even more as you actually written the hack in the first place)

Admin 05-05-2002 12:23 PM

Don't you think I'd fix it if I knew what the problem is?

|-Last-Spirit-| 05-05-2002 12:34 PM

Quote:

Originally posted by FireFly
Don't you think I'd fix it if I knew what the problem is?
hmmm you got a point, still I think it's strange that in the quote box it doesn't take the extra line but in the code box it does. I overlooked both codes but can't seem to find any difference that would cause it..... :(

Admin 05-05-2002 01:18 PM

It's the <pre> I believe.

|-Last-Spirit-| 05-06-2002 05:11 PM

Quote:

Originally posted by FireFly
It's the <pre> I believe.
I fixed it :D

I used this code :

Code:

// ###################### Start stripbrsfromcode #######################
function stripbrsfromcode($foundcode) {
  $foundcode = str_replace("\\\"","\"",$foundcode);
return "<table border=\"0\" align=\"center\" width=\"96%\" cellpadding=\"3\"><tr><td><smallfont><b>code:</b> (double-click to copy to clipboard)</smallfont></td></tr><tr><td style=\"BORDER: #4C657E 1px solid; FONT-SIZE: 11px; COLOR: {codefontcolor}; FONT-FAMILY: Verdana,Arial; BACKGROUND-COLOR: {codebackground};\"><pre>" . $foundcode . "<pre></td></tr></table>";
}

And the extra line is gone !!! (you might apply it for this board too :))

Admin 05-06-2002 05:48 PM

In other words, you didn't close the <pre>?

|-Last-Spirit-| 05-06-2002 06:58 PM

Quote:

Originally posted by FireFly
In other words, you didn't close the <pre>?
aye but the <pre> has to be there otherwise it screws up stuff. So I just added 2 <pre> instaed of closing and it works. Extra line gone and everything works fine.


All times are GMT. The time now is 12:08 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.01246 seconds
  • Memory Usage 1,736KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete