vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   New code, PHP and quote boxes! (https://vborg.vbsupport.ru/showthread.php?t=35382)

Boofo 12-16-2002 01:33 AM

I just installed this on a fresh install of 2.2.9 and the quote and php boxes are fine but I get spaces between each line in the code boxes. Can anyone please tell me why this is happening and how to fix it?

TECK 12-16-2002 02:41 AM

Is the dowordwrap()... have fun. :)

Boofo 12-16-2002 02:41 AM

I solved the spacing problem. Chen, do you have any updated code for this that will stop some of the parsing of code like it does here? :)

Boofo 12-16-2002 02:43 AM

Quote:

Originally posted by TECK
Is the dowordwrap()... have fun. :)
dowordwrap()? I don't see that anywhere in the code I have.

TECK 12-16-2002 03:04 AM

Check the bbcodeparse2() function. That's where is pulled into, your info.

Boofo 12-16-2002 03:17 AM

I checked that but I don't undertsnad what that has to do with it. Here's what I did to fix it.

I replaced:

Code:

#ffffff; FONT-FAMILY: Courier, Courier New, sans-serif; BACKGROUND-COLOR: #273549;\"><pre>" . $foundcode .
with:

Code:

#ffffff; FONT-FAMILY: Courier, Courier New, sans-serif; BACKGROUND-COLOR: #273549;\"><pre>".str_replace("<br>","",str_replace("<br />","",$foundcode)).
and that seemed to take the extra spaces out of the code box.

Is there a better or easier way to do the same thing?

Intex 01-31-2003 02:53 PM

Sweet hack Firefly :cool:.

Works great (especially when I remove the : at the end of codebackground and codefontcolor :o ).

imageconstrux 02-24-2003 02:11 PM

I've got it running nicely on 2.2.9, except for one problem: The custom colors I define in the replacements don't appear. The box and quoted text are there, but the colors don't take effect.

There must be something simple I goofed on. Can someone help?

imageconstrux 02-24-2003 03:18 PM

I just hardcoded the background color...that seemed to work. Though I'd like to make it a call to a variable, if at all possible.

SiXXGuNNZ 03-08-2003 09:30 PM

vb 2.3.0

it parses the code for all three boxes like this in the html output

& #123;codefontcolor}

& #123;codebackground}

no space between & #

any fixes?

blah :D

https://vborg.vbsupport.ru/showthrea...threadid=35894


All times are GMT. The time now is 05:18 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.01189 seconds
  • Memory Usage 1,734KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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