Not signed in (Sign In)

Choose a language

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorMohjive
    • CommentTimeMay 30th 2007 edited
     # 1
    <blockquote><cite>Posted By: molfar</cite>I would also like to ban BBCode-usage in this forum</blockquote>
    Why? Users are used to that bbcode works on most forums and I see nothing bad about it.

    <blockquote><cite>Posted By: molfar</cite>And it might be reasonable to set it to 1 to prevent those pyramids from happening</blockquote>
    I'm of a different opinion. Pyramids can be useful, but only to certain extent. Perhaps set the level to 3 or something.

    Edit: and it seems like the quoting markup doesn't work that well.
    •  
      CommentAuthorvazub
    • CommentTimeMay 30th 2007
     # 2
    Posted By: MohjiveWhy? Users are used to that bbcode works on most forums and I see nothing bad about it.

    Most of the time it breaks html formatting thus can provide difficulties for page rendering.
    Personally, I don't like another abstraction layers and I prefer anything that produces clean xhtml tags - I don't know exactly if tinymce does that - but if it does - we could benefit from it.

    Posted By: MohjiveI'm of a different opinion. Pyramids can be useful, but only to certain extent. Perhaps set the level to 3 or something.

    I concur for now. We should see how it turns out to feel later)
    •  
      CommentAuthorvazub
    • CommentTimeMay 30th 2007
     # 3
    as you can see - quoting works, at least for me. might it be the reason that you are expected to choose "html" radio button below?
    • CommentAuthorMohjive
    • CommentTimeMay 30th 2007
     # 4
    Posted By: molfarMost of the time it breaks html formatting thus can provide difficulties for page rendering.

    How can it break html formatting? The forum does the conversion between bbcode and (x)html, thus the user never see it (besides when editing the comments). Of course you shouldn't mix and match bbcode and (x)html in the same comment unless you know what you're doing.

    Posted By: molfarI prefer anything that produces clean xhtml tags

    Surely the bbcode parser can be configured to produce xhtml.

    Posted By: molfaras you can see - quoting works, at least for me. might it be the reason that you are expected to choose "html" radio button below?

    That is not logical to me. If something, an option in this case, is needed for a function I just used to work properly, that needed option should automatically be enabled. So here's a downside with html-only, as it is implemented today, you have to actively check 'Html' if you want the quotes to work. That should be done automatically (if needed, as it is with html quoting)
    •  
      CommentAuthorvazub
    • CommentTimeMay 30th 2007 edited
     # 5
    Posted By: MohjiveSurely the bbcode parser can be configured to produce xhtml

    It can. But any level of abstraction in general is prone to future misbehavior. Anyway, why bother? It doesn't matter for the user if he has some kind of toolbar to modify relevant text. What he sees is only buttons - he shouldn't care what kind of markup they actually provide. But it matters for site as a whole, because without adding anything new in particular, the BBCcode can in some cases may corrupt the forum. Thus I see no good reason for its use.

    Posted By: MohjiveThat is not logical to me.

    It wasn't for me either in the beginning. But now I can appreciate this function, because it allows to enter any html code for demonstration purposes without actually doing any formatting. It may be useful later when you have any discussions on topics like HTML, Javascript, XML etc.

    Edit: Consider this feature as "plain text" vs "html formatting" in mailing.
    • CommentAuthorMohjive
    • CommentTimeMay 30th 2007
     # 6
    Posted By: molfarit allows to enter any html code for demonstration purposes without actually doing any formatting. It may be useful later when you have any discussions on topics like HTML, Javascript, XML etc.

    But then you can't use quoting in the case you don't want to format your comment, like in the examples you gave. And that's bad imo.
    • CommentAuthorMohjive
    • CommentTimeMay 31st 2007
     # 7
    Another reason to use bbcode instead of (x)html is that one can limit the amount of markup allowed in comments. If html is allowed, users can use hideous tags like <blink> and <marquee>, but even simpler tags like <font> can be misused. And with bbcode only one can make the parser put out text only alternative, e.g. using asterisks and underscore instead of <b> and <ul> respectively.
    •  
      CommentAuthorvazub
    • CommentTimeMay 31st 2007 edited
     # 8
    may be a valid point. it seems that current html parser allows for such a misuse.
    however, It is quite possible, that with a special toolbar - there won't be a need for another HTML formatter like we have now. thus, the users will still be allowed to use only specific tags, as admin decides. that's why I recommend to test it.
    if that fails - well, your point would be more than valid and I will concur for moving to BBCcodes.

    edit: btw, some evil tags may be disabled in this formatter we have now as well. at least there should be such a feature.
    • CommentAuthorMohjive
    • CommentTimeMay 31st 2007
     # 9
    Posted By: molfarthere should be such a feature.

    Are you saying that there exists such feature or that there has to be one but you don't know?
    I can't really see how the formatter would disable evil tags, unless it has a list (with regexes) and removes the tags when the comments are submitted. Such implementation might be fragile as it's hard to predict every type of tag. But it might also work, but I'm not sure I'm willing to take that risk if there exist a working solution.
    • CommentAuthorMichael
    • CommentTimeMay 31st 2007
     # 10
    A toolbar wouldn't do anything to stop people using whatever they liked. The HTML parser can strip out tags; at the moment, it disallows:
    $Html_DisallowedTags = array('link', 'iframe', 'frame', 'frameset', 'object',
    'param', 'embed', 'style', 'applet', 'meta', 'layer', 'import', 'xml', 'script', 'body',
    'html', 'head', 'title', 'ilayer', 'blink', 'marquee', 'font');

    It also bans inline styles. You can only make links to https?/ftp/news/nntp/mailto URLs, so no script injections. There's no guarantee that it's perfect at doing all of that, of course, so it might still be something to think about.

    Other than that, I guess we have to rely on people not using code stupidly. If they do, we can (and I will) edit their posts to take it out, and it's possible to take the ability to use HTML away from specific users if it becomes necessary too.

    On Jonas' point, I will in the next couple of days add a formatter that does exactly that in the plaintext, which could well be acceptable. I am adapting the code to a formatting system I have deployed elsewhere that was designed with the aim of being unnoticeable when viewed as plain text.
    •  
      CommentAuthorvazub
    • CommentTimeMay 31st 2007
     # 11
    i didn't put it clearly, sorry. I think there has to be such a feature in current formatter.
    I mean - there could be a list of allowed only tags, instead of prohibited.
    •  
      CommentAuthorMike
    • CommentTimeJun 20th 2007 edited
     # 12
    Posted By: vazub But any level of abstraction in general is prone to future misbehavior.

    You must live a strange life. Avoiding abstractions and all. But seriously that's not really true. Get a really inexperience programmer to program a pong clone one in c and one in python and see which one is screwed up more.
    • CommentAuthorMohjive
    • CommentTimeJul 14th 2007 edited
     # 13
    I'd like to raise this discussion again, as I think we need to move to bbcode. The issue, as I see it, is that one can't combine some code and quoting. Look at the MakeRecipe arguments when m@cCo quotes me in the "Recipes Suggestions" thread ( http://forum.gobolinux.org/discussion/42/recipe-suggestions/#Item_5 ).
    •  
      CommentAuthorvazub
    • CommentTimeJul 14th 2007
     # 14
    As much as I don't like BBCode, now I tend to concur. We can try at least. There should be relevant addons on the main Vanilla site.
    • CommentAuthorm@cCo
    • CommentTimeJul 15th 2007
     # 15
    Mmm...odd :D
    So it's time for some bbcode?
    • CommentAuthorMohjive
    • CommentTimeNov 29th 2007
     # 16
    Ok, bumping this *again* as we now have a bug with html quoting, see http://forum.gobolinux.org/?CommentID=691. Another issue is that one can't combine URLs and quoting, because for URLs to be detected one has to post as "text", which obviously doesn't work with html quoting.
    • CommentAuthorm@cCo
    • CommentTimeNov 30th 2007
     # 17
    Posted By: MohjiveOk, bumping this *again* as we now have a bug with html quoting, seehttp://forum.gobolinux.org/?CommentID=691.Another issue is that one can't combine URLs and quoting, because for URLs to be detected one has to post as "text", which obviously doesn't work with html quoting.
    So the first phrase being in italic is due to some bug? Or there's something I can't see?
    Btw no matter what the choice will be, given it'll work just as expected.
    • CommentAuthorMohjive
    • CommentTimeNov 30th 2007
     # 18
    Yes, if you look at the html code you can see that an extra <cite> tag is inserted at the beginning of your comment, but it's not visible in the edit field.
    • CommentAuthorm@cCo
    • CommentTimeNov 30th 2007
     # 19
    I see. Indeed I've searched through the post code to find out what was wrong, but didn't succeed :D
    • CommentAuthorMichael
    • CommentTimeNov 30th 2007
     # 20
    It's on my to-do list. The BBCode extension claims not to work with recent Vanilla versions, but that's probably fixable if there is a problem. I will hopefully get on that tomorrow. The "quote" links probably won't work with it, though.
    • CommentAuthorMichael
    • CommentTimeDec 2nd 2007
     # 21
    The "quote" links probably won't work with it, though.
    Indeed, the quote links don't work, but BBCode does.
    • CommentAuthorm@cCo
    • CommentTimeDec 2nd 2007
     # 22
    Just seen that, very good indeed. Btw, how can you put a name in the quote tag?
    • CommentAuthorMichael
    • CommentTimeDec 3rd 2007
     # 23
    Posted by m@cCoJust seen that, very good indeed. Btw, how can you put a name in the quote tag?
    Like this.
    • CommentAuthorm@cCo
    • CommentTimeDec 4th 2007
     # 24
    Ehm...I know how to put it with html, but I'd like to know if there's a way with bbcode too :D
    • CommentAuthorMohjive
    • CommentTimeDec 4th 2007
     # 25
    same as with html, but you use [ and ] instead of < and >
    • CommentAuthorm@cCo
    • CommentTimeDec 4th 2007
     # 26
    Posted By: Mohjivesame as with html, but you use [ and ] instead of < and >
    Thank you very much :P
    • CommentAuthorgiddie
    • CommentTimeDec 4th 2007
     # 27
    And you use "quote" instead of "blockquote", by the looks of it:
    [quote][cite]Posted By: Mohjive[/cite] same as with html, but you use [ and ] instead of < and >[/quote]
    • CommentAuthorm@cCo
    • CommentTimeDec 4th 2007 edited
     # 28
    Posted By: giddieAnd you use "quote" instead of "blockquote", by the looks of it:
    [quote][cite]Posted By: Mohjive[/cite] same as with html, but you use [ and ] instead of < and >[/quote]
    The quote part was known to me, as I frequent some other forums, but I was used to the common [quote=somebody] style.

    P.S.: There could be a way to use bbcode and html *at the same time*? It'd be the best.
    • CommentAuthorMichael
    • CommentTimeDec 4th 2007
     # 29
    I was figuring on your just editing my post to look at the source, but it seems Vanilla doesn't let you do that if you're not a moderator, unlike some other forums. Sorry that wasn't very helpful.

    Also, I have changed the quote link's Javascript to insert BBCode, since it seems that's the way we're going.

    Posted By: m@cCoP.S.: There could be a way to use bbcode and html *at the same time*? It'd be the best.
    I don't think so. The BBCode parser is pretty wired towards stripping HTML out completely; taking that part out would risk code injection.
    • CommentAuthorm@cCo
    • CommentTimeDec 4th 2007 edited
     # 30
    Btw I noticed the default quote button still uses html. This sounds weird, I'd find more appropriate for it to use the default user's choice, to prevent errors in the posting.

    EDIT: just read your message :D