PDA

View Full Version : Custom BBCode - VBulletin inserting blank spaces


FeverGyorn
10-30-2016, 07:20 PM
Hey together,

I would like to include a new custom BBCode in our forum that allows us to embed OneDrive documents, such as Excel Online sheets.

The thing is, Vbulletin seeems to insert blank spaces into the (considerably) long src parameter.

Somehow a input like this

cid=9089E10943B15FEB&resid=9089E10943B15FEB%21390&authkey=AF4O_GY9CmodpjQ&em=2&A llowTyping=True&ActiveCell='Summary'!M2&wdHideGridlines=True

gets

cid=9089E10943B15FEB&resid=9089E10943B15FEB%21390&authkey=AF4O_GY9CmodpjQ&em=2&AllowTyping=True&ActiveCell='Summary'!M2&wdHideGridlines=True

When I'm removing the spaces from the compiled URL, it seemingly works.

Ofc the embedded view doesn't work this way.
Is there a way to circumvent that behavior?

The replacement looks like this:
<iframe width="1000" height={option} frameborder="0" scrolling="no" src="https://onedrive.live.com/embed?{param}"></iframe>

EDIT: Uhm, even here the forum inserts a blank space at some point, look above?

MarkFL
10-30-2016, 07:31 PM
vBulletin by default inserts a blank space after every 50 characters of unbroken text. To change this, follow:

AdminCP ► Settings ► Options ► Thread Display Options(showthread) ► Number of Characters Before Wrapping Text

Set this to 0 to disable it. :)