Staredit Network > Forums > Staredit Network > Topic: BBCode bug squishing
BBCode bug squishing
Mar 31 2008, 5:55 am
By: Forsaken Archer  

Mar 31 2008, 5:55 am Forsaken Archer Post #1



http://www.staredit.net/?p=hacks
Paste your bbcode in a codebox
Code
[codebox]your code[/codebox]

Also tell me what browser you are using. And what skin you are using.
Screenshots are nice but not necessarily required.



None.

Mar 31 2008, 5:13 pm Forsaken Archer Post #2



so it runs perfectly? :)



None.

Apr 1 2008, 2:21 am Laser Dude Post #3



This list gets completely destroyed by the parser.

Code
[list][*]1[*]2[list][*]2.1[*]2.2[/list][*]3[list][*]3.1[*]3.2[list][*]3.2.1[*]3.2.2[/list][*]3.3[/list][*]4[/list]


Opera 9.25 for Linux. I dunno what the skin is called, but it's the default.



None.

Apr 1 2008, 3:40 am Laser Dude Post #4



Using extreme amounts of quotes stretches the page, rather than having a reasonable limit.

Also, if you're going to alternate colour for the first four, you should do it for all the quote boxes (think loops!)

Code
[quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote][quote]lol[/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote]


Also, it's still possible to deform the page using really long words with no spaces.



None.

Apr 1 2008, 3:44 am Forsaken Archer Post #5



That quote thing is trippy ;o However, that is unreasonable use, and if used, would just get the post deleted. I'm not trying to prevent stupidity.
Loops won't work. It's css. There's probably some good css2 for it but my css2 is rusty because of lack of use (because IE doesn't support it).

I could get lists to work better if list items had an open and close tag, but so far I'm trying to keep it like the original code. I think I'll actually switch it.



None.

Apr 3 2008, 4:34 am Falkoner Post #6



If you do enough quotes it breaks it :P



None.

Apr 3 2008, 6:27 am Forsaken Archer Post #7



As per syphon's code? Would me response be just as fitting?

Notes to self :):
*clear extra line breaks around quotes
*textarea does funny things with cursor



None.

Apr 10 2008, 10:28 pm poiuy_qwert Post #8

PyMS and ProTRG developer

Nested lists are a bit bugged:
Code
[list]
[*]Testing:
[list]
[*]Test1
[*]Test2
[/list]
[/list]

Gives:
  • Testing:
    • Test1
    • Test2

But add another entry in the first list, just after the second like so:
Code
[list]
[*]Testing:
[list]
[*]Test1
[*]Test2
[/list]
[*]Test3
[/list]

and you get:
  • Testing:
    • Test1
    • Test2
  • Test3





Apr 13 2008, 3:47 pm Forsaken Archer Post #9



fixed hopefully

1:
  • Testing:
    • Test1
    • Test2

2:
  • Testing:
    • Test1
    • Test2
  • Test3




None.

Apr 13 2008, 6:16 pm poiuy_qwert Post #10

PyMS and ProTRG developer

Is there a limit to the [table] bbcode on the wiki? I've remade this page so its in a table, but the table only displays if only like the first 20 or something columns are put up, too many columns and it just doesn't work (and im sure the bbcode is correct). Here is what i used.

Edit: Also yeah the list thing looks like its fixed. The thing is the wiki article that i saw the problem on had to be edited for the update to show up. I think i remember you saying you store them pre-parsed so i guess thats whats should happen, just saying in case im wrong.




Apr 13 2008, 6:30 pm Forsaken Archer Post #11



table should be fixed.
yeah, it's cached... atm i don't have code to mark posts/articles as need to be updated



None.

Apr 13 2008, 6:54 pm poiuy_qwert Post #12

PyMS and ProTRG developer

There seems to be some problems with [size] and [align]. The html generated by [size] has backslashes before the quotes:
Code
<span style=\"font-size:18px\">


And when I use [align] inside a table (works by itself, not sure about in other places), it does it to:
Code
<div style=\"margin:0px auto;padding:0px;;text-align:center\">


I didn't do much testing so maybe other bbcodes dont work in tables?

Also, you can set the class of the entire table with [table=class:something], but you cant do it with individual [tr] or [td]'s? And do you have any classes to use that will make the table actually pretty? The only class I know is the outline class which is ugly for a table.




Apr 13 2008, 7:04 pm Forsaken Archer Post #13



the class has to exist, and outline is pretty much the only class so far, besides centered
what did you have in mind?
classes for tds is something that will be added later


also... bbcode inside tables should be fixed now



None.

Apr 13 2008, 7:17 pm poiuy_qwert Post #14

PyMS and ProTRG developer

Hmm, it looks like the [size] bbcode only does the backslash thing in previews (its still there).

For the class's, im not sure. Until there is class support for [td]'s theres not much you can do to pretify it. What I was thinking of though was being able to make them look somewhat like posts (so the top row looks like the part where it says "isolatedpurity ........ 7 minutes ago ........... Post #13" and so on).

Edit: Also, its kinda annoying that every [td] must have a width specifier. Its not really necessary, but it would be a lot nicer. For example these don't work, but would be valid if done in html:
Code
[table]
[tr]
[td=width:50%]test[/td]
[td]This shouldn't need a width, it just takes up whatever space is left[/td]
[/tr]
[/table]

Code
[table]
[tr]
[td=width:20%]test[/td]
[td=width:80%]test2[/td]
[/tr][tr]
[td]These should just conform to the columns above[/td]
[td]Like regular html[/td]
[/tr]
[/table]


Also you should be able to specify colspan and rowspan.

Post has been edited 1 time(s), last time on Apr 13 2008, 7:30 pm by poiuy_qwert.




Apr 13 2008, 7:28 pm Doodle77 Post #15



Quote from name:isolatedpurity
the class has to exist, and outline is pretty much the only class so far, besides centered
what did you have in mind?
classes for tds is something that will be added later


also... bbcode inside tables should be fixed now
There should be a class that has border-collapse: collapse;

Code
[table=width:100%|class:outline|cell-padding:4]
[tr]
[td=width:50%]needs moar[/td]
[td=width:50%]needs less[/td]
[/tr][tr]
[td=width:50%]needz epicz[/td]
[td=width:50%]needz mudkipz :P
[table=width:100%|class:outline|cell-padding:4]
[tr][td=width:50%]epicz[/td][td=width:50%]epicz[/td][/tr]
[tr][td=width:50%]moar[/td][td=width:50%]moar[/td][/tr]
[/table]
[/td]
[/tr][/table]

Inner table doesn't have outline.

Post has been edited 2 time(s), last time on Apr 13 2008, 7:35 pm by Doodle77.



None.

Apr 13 2008, 7:40 pm Forsaken Archer Post #16



Code
[table=width:60%|class:outline centered|cell-padding:4]
[tr]
[td=width:30%|class:bg_column]1[/td]
[td=width:30%|class:bg_primary centered]1[/td]
[td]
1
[/td]
[/tr][tr]
[td]2[/td]
[td]2[/td]
[td=width:30%]2[/td]
[/tr]

[tr]
[td=colspan:2]colspan[/td]
[td=rowspan:2]rowspan[/td]
[/tr]

[tr]
[td]4[/td]
[td]4[/td]
[/tr]


[/table]

try that in hacks

inner tables with outline are done like that on purpose...
in mai css:
.outline td table td { border: 0px }



None.

Apr 13 2008, 7:44 pm Forsaken Archer Post #17



And:

Quote
Edit: Also, its kinda annoying that every [td] must have a width specifier. Its not really necessary, but it would be a lot nicer.
I fixed that as well. I was actually going to tell you you really don't need to put width in every TD until I tried it and found it was broken otherwise ;o



None.

Apr 14 2008, 4:15 am poiuy_qwert Post #18

PyMS and ProTRG developer

Oooh sexy table! Great, now i'll go pretify my tables. Hopefully I won't have any more things to post here :P




Apr 14 2008, 5:07 am A_of-s_t Post #19

aka idmontie

Really long quotes start having black lines running through them... here's where I saw it:

http://www.staredit.net/topic/2507/unread/#special



Personal GitHub
Starcraft GitHub Organization - Feel free to request member status!
TwitchTV

Apr 14 2008, 5:11 am poiuy_qwert Post #20

PyMS and ProTRG developer

I don't see any black lines :/ It could possibly be your computer or browser. I find sometimes when i scroll lines can appear (only happens when my laptop is really laggy).




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[09:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
[07:56 pm]
Ultraviolet -- NudeRaider
NudeRaider shouted: "War nie wirklich weg" 🎵
sing it brother
[06:24 pm]
NudeRaider -- "War nie wirklich weg" 🎵
[2024-4-27. : 3:33 pm]
O)FaRTy1billion[MM] -- o sen is back
[2024-4-27. : 1:53 am]
Ultraviolet -- :lol:
[2024-4-26. : 6:51 pm]
Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
[2024-4-26. : 6:50 pm]
NudeRaider -- Vrael
Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
sounds like moisture control is often a pressing concern in your city
[2024-4-26. : 6:50 pm]
Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
[2024-4-26. : 6:49 pm]
Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
[2024-4-26. : 6:48 pm]
Vrael -- On this Topic, I could definitely use some Introductions.
Please log in to shout.


Members Online: Dem0n, C(a)HeK, Ubisoftlover