Vice City: Multiplayer

VC:MP Discussion => General Discussion => Topic started by: EK.IceFlake on Mar 30, 2015, 09:54 AM

Title: [FORUM SUGGESTION] Fixing the indentation on code bbtag
Post by: EK.IceFlake on Mar 30, 2015, 09:54 AM
Hi guyz!
I have an idea to fix the indentation on the code bbtag. If you can access the source code of the forum, make it so that any code inside the code bbcode tags is contained within <pre> and </pre>. For example. in mixed html and bbcode, it will be (without the dollar symbol) [code]<pre>(the code...)</pre>[$/code]This will preserve the tab indentation.
Title: Re: [FORUM SUGGESTION] Fixing the indentation on code bbtag
Post by: . on Mar 30, 2015, 01:05 PM
I've tried the latest release of this forum script locally (the one from repository) and I haven't encountered this indentation issue. I remember opening a topic (http://forum.vc-mp.org/?topic=55.0) about this a while back.
Title: Re: [FORUM SUGGESTION] Fixing the indentation on code bbtag
Post by: Stormeus on Apr 02, 2015, 06:16 AM
Does it work now?
Title: Re: [FORUM SUGGESTION] Fixing the indentation on code bbtag
Post by: . on Apr 02, 2015, 06:20 AM
Quote from: stormeus on Apr 02, 2015, 06:16 AMDoes it work now?

I've tested this and it works. However the old scripts won't show it because the indentation was stripped completely.
Title: Re: [FORUM SUGGESTION] Fixing the indentation on code bbtag
Post by: Stormeus on Apr 02, 2015, 06:22 AM
Quote from: S.L.C on Apr 02, 2015, 06:20 AM
Quote from: stormeus on Apr 02, 2015, 06:16 AMDoes it work now?

I've tested this and it works. However the old scripts won't show it because the indentation was stripped completely.

Nothing that can be done about that unfortunately.
Title: Re: [FORUM SUGGESTION] Fixing the indentation on code bbtag
Post by: . on Apr 02, 2015, 06:26 AM
Quote from: stormeus on Apr 02, 2015, 06:22 AMNothing that can be done about that unfortunately.

Obviously :D Only if the OP still has the code and would like to edit their topics. I know I did that for my posts :D (at least some of them)
Title: Re: [FORUM SUGGESTION] Fixing the indentation on code bbtag
Post by: EK.IceFlake on Apr 02, 2015, 08:47 AM
(Test)
tabbed
x tabbed
yes tabbed
Doesnt work as it is supposed to... It should show the tab instead of space.
Title: Re: [FORUM SUGGESTION] Fixing the indentation on code bbtag
Post by: . on Apr 02, 2015, 08:57 AM
Apparently the indentation will be stripped if you make a post using the quick reply functionality. Therefore pressing preview 2 times before pressing the post button fixes the issue :D

function Shield(id)
{
if (GetNoob(id) == true) {
print("TryHarder");
} else {
print("YouTheMan");
}
}

EDIT: Nope, still no indentation after posting. But at least the indentation is not completely stripped. If you press modify it's still there. Which means that it can still be solved :D Try Quoting that post and copy the code from the post editing area. (as a temporary workaround)