[/left] becoming [/center]

Discussion in 'Site Discussions & Suggestions' started by alidsl, Jul 4, 2010.

Jul 4, 2010

[/left] becoming [/center] by alidsl at 2:52 PM (1,443 Views / 0 Likes) 12 replies

  1. alidsl
    OP

    Member alidsl I am now a lurker

    Joined:
    May 27, 2009
    Messages:
    2,823
    Location:
    Kanto - Pallet Town
    Country:
    United Kingdom
    This has been a frequent problem when editing with quick edit on the Supercard plug-ins thread here

    I keep having to edit the post in the "a helpful word from Waffle" spoiler where [/left] becomes [/center]

    also at the end of the post the [/center] becomes

    can any of the admins find the problem and fix it please (It's a bit annoying)

    thanks in advance
     
  2. tj_cool

    Supervisor tj_cool Stuff

    Joined:
    Jan 7, 2009
    Messages:
    9,942
    Location:
    This planet
    Country:
    Belgium
    Why are you using [left] tags? Anything that's not in [center] or [right] tags will be aligned left by default...

    The problem seems to be that [/left], [/right], [/center] and [/spoiler] are all substituted by and the HTML parser can't handle it...
     
  3. alidsl
    OP

    Member alidsl I am now a lurker

    Joined:
    May 27, 2009
    Messages:
    2,823
    Location:
    Kanto - Pallet Town
    Country:
    United Kingdom
    It's so I can have the spoiler title in the middle and the content on the left
     
  4. juggernaut911

    Member juggernaut911 GBAtemp Slut!

    Joined:
    Jul 13, 2006
    Messages:
    4,153
    Country:
    United States
    Warning: Spoilers inside!

    edit: nvm. doing so breaks the spoiler
     
  5. ProtoKun7

    Global Moderator ProtoKun7 GBAtemp Time Lord Regenerations: 3

    Joined:
    Jan 3, 2009
    Messages:
    7,480
    Location:
    Gallifrey
    Country:
    United Kingdom
    TESTING...
     
  6. alidsl
    OP

    Member alidsl I am now a lurker

    Joined:
    May 27, 2009
    Messages:
    2,823
    Location:
    Kanto - Pallet Town
    Country:
    United Kingdom
    Yeah that's how I've been doing it
     
  7. tj_cool

    Supervisor tj_cool Stuff

    Joined:
    Jan 7, 2009
    Messages:
    9,942
    Location:
    This planet
    Country:
    Belgium
    Seeing as I have this problem myself with 1 post, and I've seen some other people with this as well, I thought I'd bring this back up.

    I might have a solution to this though:
    The problem lies in the unparsing of the BBcode. Like I said above, the closing tags all get replaced by , making it very hard for the parser to see what is what.

    For example:
    Code:
    [center]{TEXT1}[/center]
    [left]{TEXT2}[/left]
    gets replaced with:
    HTML{TEXT1}
    {TEXT2}
    As you can see, the first parts give no problem as those are different. The last parts are the same, so they could be unparsed to the wrong BBcode tag.

    My suggestion is that we do it the IPB way, by doing it like this:
    HTML{TEXT1}--centero-->--centerc-->
    {TEXT2}--lefto-->--leftc-->
    Basically, the comments will be used as identifiers for the elements, which should lead to correct unparsing.
    It's the same as with with Quote (quoteo & quotec), and it seems to work, so why wouldn't this work? [​IMG]

    So, if an Admin/Super could make it like that for the tags that have as end, that would be great. [​IMG]
    I don't know what the problem with the anchors was, but if it was wrong unparsing, this system can probably work for those as well.
     
  8. tk_saturn

    Member tk_saturn GBAtemp Psycho!

    Joined:
    Jan 26, 2010
    Messages:
    3,327
    Country:
    United Kingdom
  9. tk_saturn

    Member tk_saturn GBAtemp Psycho!

    Joined:
    Jan 26, 2010
    Messages:
    3,327
    Country:
    United Kingdom
    Double post:bugger, i'm sure I clicked 'edit' instead of adding a new reply.

    The Merge posts always works when you don't want it to, and never when you do want it to... I can't see why they don't expand it's use to to any double post posted within an hour of the first. Would cut down on the double/ triple posts.

    In fact it's been quite a while since i've seen any posts on here merged, is it broken?
     
  10. ProtoKun7

    Global Moderator ProtoKun7 GBAtemp Time Lord Regenerations: 3

    Joined:
    Jan 3, 2009
    Messages:
    7,480
    Location:
    Gallifrey
    Country:
    United Kingdom
    Nope, post merging works just fine.

    Don't think I'm familiar with the thumb tag error...
     
  11. tk_saturn

    Member tk_saturn GBAtemp Psycho!

    Joined:
    Jan 26, 2010
    Messages:
    3,327
    Country:
    United Kingdom
    Try quoting post #8...
     
  12. Inunah

    Banned Inunah The Female Mistaken for a Male.

    Joined:
    Sep 14, 2009
    Messages:
    2,679
    Location:
    USA
    Country:
    United States
    Amusing as hell! Don't fix this!
     
  13. ProtoKun7

    Global Moderator ProtoKun7 GBAtemp Time Lord Regenerations: 3

    Joined:
    Jan 3, 2009
    Messages:
    7,480
    Location:
    Gallifrey
    Country:
    United Kingdom
    Nice. [​IMG]
    I probably haven't tried exactly what the OP did with the alignment tags, because I don't think I've had the same trouble.

    I'm still slightly unfamiliar with it though tk, could you perhaps PM the code how you managed it?
     

Share This Page