Welcome to Tesla Motors Club
Discuss Tesla's Model S, Model 3, Model X, Model Y, Cybertruck, Roadster and More.
Register

vBulletin display code munging technical code snippets

This site may earn commission on affiliate links.

FlasherZ

Sig Model S + Sig Model X + Model 3 Resv
Jun 21, 2012
7,030
1,032
Since I can't send pics via PM, I thought I'd post them here for you, doug.

vBulletin is doing something very strange in its page rendering / style code. Via Tapatalk, it looks just fine; but via any browser, it's cutting pieces out of lines that have greater-than signs...

Here's what I posted last night:

Screenshot_2015-12-15-14-40-23.png
Screenshot_2015-12-15-14-40-32.png


And yet, here's how it shows up in a browser:

browser.PNG


Compare the circled lines from Tapatalk to the browser.

Funny enough, after posting, it doesn't do it the first time -- it renders it correctly when you post it. When you click reload, if you watch carefully, you'll see it pop up on the screen correctly, then suddenly the text "jumps" and characters get erased.

It does this regardless of whether I use [noparse]
Code:
 or [noparse][/noparse] vB code, that's what leads me to believe it's in the rendering or style code.

Anyone else see this in my post?

[COLOR="silver"][SIZE=1]- - - Updated - - -[/SIZE][/COLOR]

I've narrowed it to a specific syntax...

Here is the simplest pattern that triggers it, from what I can see:

[noparse]aa[period]bb[quote]c[lt-or-gt][/noparse]

Example... the following has two 'a' chars, a period, then two 'b' chars, then a single-quote, then 'c', then a greater-than symbol...  Note the greater-than is cut off:

aa.bb'c>

"a" must be two alpha characters minimum
"b" must be two alphanum characters minimum
"c" must be one alphanum character minimum
Either single or double quote.
Either less than or greater than sign.

It doesn't matter whether it's in open text, a quote, or a code stanza.

It will chop out characters, too, for example, the following lines are:
[noparse]aa[dot]bb[quote]c[gt]2 test-one test-two test-three[/noparse]
[noparse]aa[dot]bb[quote]c[gt] test-one test-two test-three[/noparse]

aa.bb'c>2 test-one test-two test-three
aa.bb'c> test-one test-two test-three

That time it preserved the greater-than and instead chops off part of "test-one".

Anyway, it's probably a low-priority item for a car forum, but it does mangle computer code pretty badly and might cause more heartache.  It might just need to wait until the platform gets replaced.
 
Last edited: