Click to See Complete Forum and Search --> : Leading Space in PHP Code Blocks


laserlight
07-16-2005, 04:47 AM
It appears that there is a non-breaking space at the start of every PHP code block formed by the [php] forum bbcode.
This does not happen for code blocks created by the [code] forum bbcode.

An inspection of clientside source code seems to place the PHP code block after a comment, "<!-- php buffer start -->". <code> is used, followed by nested <font>s. Immediately after the second <font> lies a nbsp; that should not be there.

The clientside source for the normal code blocks use <pre> and <div> - but I dont think that the use of <code> and <font> is the problem, the problem is just the space.

BuzzLY
07-18-2005, 05:35 PM
I second that.

devinemke
07-22-2005, 03:41 PM
i've seen this on other vBulletin sites too, not specific to phpbuilder. notice how the space is not there when the code starts with an opening PHP tag:

this line has a space
this line does not

as oppose to:

<?php
this line does not have a space
neither does this one
?>

JPnyc
07-22-2005, 06:11 PM
I'll look into it ASAP

JPnyc
07-22-2005, 06:14 PM
Doesn't seem to be a way to edit the included board bbcodes, only those you add custom

BuzzLY
07-22-2005, 08:08 PM
Really? Is it not open source? Seems like you should be able to find the bug somewhere and fix it... :confused:

laserlight
07-23-2005, 12:40 AM
Yeah, vbulletin isnt open source... maybe this is better submitted as a bug to the vbulletin people instead. hmm....

notice how the space is not there when the code starts with an opening PHP tag:
Yep, there's no non-breaking space mysteriously inserted before the less than symbol. vbulletin's php tag code has an attitude problem :D