Not signed in (Sign In)

Categories

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

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthorThommy
    • CommentTimeMar 22nd 2005
     # 1
    embeding audio


    embeding video


    embeding image
    Get Firefox!
    •  
      CommentAuthoroutbreak
    • CommentTimeMar 22nd 2005 edited
     # 2
    embedded audio
    •  
      CommentAuthoroutbreak
    • CommentTimeMar 22nd 2005
     # 3
    hmm, doesnt seem to work.
    • CommentAuthorThommy
    • CommentTimeMar 22nd 2005
     # 4
    Ok, so I guess the embed tag will not work. Maybe there is a FAQ page that I haven't seen that says what tags you can and can't use?
    •  
      CommentAuthoroutbreak
    • CommentTimeMar 22nd 2005
     # 5
    mark may have filtered the embed tag or forgotten to list it in the allowed tags.
    • CommentAuthorThommy
    • CommentTimeMar 22nd 2005
     # 6
    Is there a list anywhere of the tags you can and cannot use?
    •  
      CommentAuthorMark
    • CommentTimeMar 22nd 2005
     # 7
    Yeah, the embed tag is disallowed right now. I was doing some research online about javascript hacks, and I *think* I read that there is a hack you can do in a certain version of explorer with the embed tag whereby you can run javascript on a page, so I disallowed it.

    the allowed tags list(s) are customizable by admins. Right now they are:

    ALLOWABLE_TAGS: blink, h1, h2, h3, h4, p, table, tr, td, th, br, b, strong, i, strike, u, a, div, span, iframe, input, ul, ol, li, img, marquee, code, pre, em

    ALLOWABLE_PROPERTIES: direction, scrollamount, href, name, id, src, value, class, style, target, type, height, width, border, alt, title

    DISALLOWED_VALUES: javascript:
    •  
      CommentAuthoroutbreak
    • CommentTimeMar 22nd 2005
     # 8
    is there anyway you can incorporate an mp3 player like on yh, or some kind of media player then, so that embed tags arent necessary?
    •  
      CommentAuthorMark
    • CommentTimeMar 22nd 2005
     # 9
    That sounds like perfect plugin territory to me, so I'll let that one rest for now. But it's a good idea.
    •  
      CommentAuthoroutbreak
    • CommentTimeMar 22nd 2005
     # 10
    ah very nice. i like how you're standing strong with keeping this fairly bare bones. the plugins will be a nice touch.
    • CommentAuthorThommy
    • CommentTimeMar 22nd 2005
     # 11
    Thanks for the info Mark
    •  
      CommentAuthor3stripe
    • CommentTimeApr 24th 2005 edited
     # 12
    what about embedding flash?
    • CommentAuthorThommy
    • CommentTimeApr 26th 2005 edited
     # 13
    No can do 3stripe. To embed a .swf file you have to use the embed tag, which is not allowed. Mark has listed all the tags and properties that are allowed above. ^^^
    •  
      CommentAuthorcmacias
    • CommentTimeApr 30th 2005
     # 14
    Why not use BBCOde, and not embed tags ? for security...
    •  
      CommentAuthorMark
    • CommentTimeApr 30th 2005
     # 15
    First of all, I don't like bbcode tags - they're lame.
    Second of all, if people want to use bbcode tags, they can write a string manipulator to do it and create an extension to handle it. In the release, you won't get any of the formatting options you see here except plain text.
    •  
      CommentAuthoroutbreak
    • CommentTimeApr 30th 2005
     # 16
    wait, so there wont be the ability to use HTML in posts then?
    •  
      CommentAuthorMark
    • CommentTimeApr 30th 2005
     # 17
    Not unless an administrator enables that extension (I have written extensions for html and markdown formatting that will be included but turned off by default)
    •  
      CommentAuthoroutbreak
    • CommentTimeApr 30th 2005
     # 18
    ohhhhhhhh ok i gotcha. awesome.
    •  
      CommentAuthorcmacias
    • CommentTimeApr 30th 2005
     # 19
    but... it will be dangerous enabled that extensions ? or not...
    •  
      CommentAuthorunipus
    • CommentTimeJul 19th 2005
     # 20
    the allowed tags list(s) are customizable by admins.

    can someone tell me where? I don't mind digging in the source files but there's one or two I need to add.
    •  
      CommentAuthorlech
    • CommentTimeJul 19th 2005
     # 21
    Hmmm I could have sworn that was part of an html embed/clean extension, but I guess not.

    lech awaits the correct answer from mark.
    •  
      CommentAuthorunipus
    • CommentTimeJul 19th 2005
     # 22
    yeah I've been looking since a bit before I posted and can't find a list like that anywhere. ALLOWABLE_TAGS certainly doesn't exist.
    •  
      CommentAuthorunipus
    • CommentTimeJul 19th 2005
     # 23
    hmm, I can't even find any of the individual tags. For instance I have tested and confirmed that the blink tag works with normal Html (YES!!!), but searching the source reveals 0 instance of blink anywhere. curiousssss.
    •  
      CommentAuthorMark
    • CommentTimeJul 19th 2005
     # 24
    That's deprecated. Sorry.

    If you want to see how the text is formatted, open up the extensions for those formatters and have a look. There's not a lot of code and you can see pretty easily what is going on.
    •  
      CommentAuthorunipus
    • CommentTimeJul 20th 2005
     # 25
    Hmm, I went through the HtmlFormatting extension (not hard, there's almost nothing to it). I see a bit list of presumably forbidden tags/properties, but nothing else.

    So maybe I should reframe my question, having possibly found a bug: why is it that in Html, <style> tags do nothing, but they work just fine in Raw Html?
    •  
      CommentAuthorMark
    • CommentTimeJul 20th 2005
     # 26
    If I were to guess, I'd say it has something to do with the fact that the Html formatter (extensions/HtmlFormatter.php) performs a nl2br translation on any string passed through it. So, if you wrote:

    &lt;style&gt;
    .MyClass { color: red; }
    &lt;/style&gt;


    The HtmlFormatter would replace it with this when rendered to the page:

    &lt;style&gt;
    &lt;br /&gt;.MyClass { color: red; }
    &lt;br /&gt;&lt;/style&gt;


    The RawHtmlFormatter (extensions/RawHtmlFormatter.php), on the other hand, doesn't perform ANY special formatting on strings passed through it. So your code wouldn't have any nl2br transformations done on it.
    •  
      CommentAuthorunipus
    • CommentTimeJul 20th 2005
     # 27
    you are correct sir!

    I would really like to use the embed tag, but alas...
    •  
      CommentAuthorMark
    • CommentTimeJul 20th 2005
     # 28
    Well, the quick-fix for that little problem is to just put your style all in one line without any carriage returns:

    &lt;style&gt;.MyClass { color: red; }&lt;/style&gt;
    •  
      CommentAuthorunipus
    • CommentTimeJul 20th 2005
     # 29
    you are correct sir!
    •  
      CommentAuthorsubterrane
    • CommentTimeJul 20th 2005 edited
     # 30


    If you wanted to be really sneaky, I think you could use an iframe thusly:




    Then toss your embedded stuff in that page.

    • CommentAuthorjonezy
    • CommentTimeJul 20th 2005 edited
     # 31
    huh never thought of the iframes.
    •  
      CommentAuthor3stripe
    • CommentTimeJul 21st 2005
     # 32
    •  
      CommentAuthor3stripe
    • CommentTimeJul 21st 2005 edited
     # 33
    this post was deleted by me, to avoid pissing off who ever's css menu i borrowed...
    •  
      CommentAuthor3stripe
    • CommentTimeJul 21st 2005
     # 34
    Ok that is getting a bit sneaky.... sorry.
    • CommentAuthorjonezy
    • CommentTimeJul 21st 2005
     # 35
    hmmm you broke the thread?
    •  
      CommentAuthor3stripe
    • CommentTimeJul 21st 2005
     # 36
    jonezy, can you see a strange drop down menu floating on the right... sorry, just wanted to see if you could embed a new stylesheet using a div and html, seems to work on firefox here... though not very useful...
    • CommentAuthorjonezy
    • CommentTimeJul 21st 2005
     # 37
    yes i can see it... it's the backpackit menu?
    •  
      CommentAuthor3stripe
    • CommentTimeJul 21st 2005
     # 38
    i'm gonna replace it with a menu of my own, seeing as that one is borrowed from another geezer's site....
    •  
      CommentAuthor3stripe
    • CommentTimeJul 21st 2005 edited
     # 39
Add your comments
    Username Password
  • Format comments as