Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

embed youtube

2»

Comments

  • sirnot, you realize that single quoted strings are string literals in php, right? they are not interpreted by php.
  • (of course it could be somehow different with preg_replace and i've just never noticed)
  • wonderin why it doesn't work for me :( boo hoo. I'm off to open my red wine.
  • It would be a great idea for an extension maybe using some kindof Ajaxy thing so the video wouldn't take up much space.
  • FCKeditor, tinymce and dojo editor all are using kses, now how do I allow youtube in kses. Any idea
  • NickENickE New
    edited October 2006
    >sirnot, you realize that single quoted strings are string literals in php, right? they are not interpreted by php.

    I am fully aware of that. The $1 is not meant to be replaced by PHP; heck, I don't think variables can even begin with a number. From php.net/preg_replace:
    Replacement may contain references of the form \\n or (since PHP 4.0.4) $n, with the latter form being the preferred one. Every such reference will be replaced by the text captured by the n'th parenthesized pattern. n can be from 0 to 99, and \\0 or $0 refers to the text matched by the whole pattern. Opening parentheses are counted from left to right (starting from 1) to obtain the number of the capturing subpattern.
    @strawberries: I'm not in a position to test anything at the moment, but the extended text formatter may be what's causing this. Try disabling it and see if anything changes. I'll be more helpful when I get home. EDIT: nope, nevermind...
  • i know all about regexes and capturing, i just didn't think it could be done inside string literals. but now i know. thank you for enlightening me.
  • edited October 2006
    SirNot, thanks for trying......I tried the suggestion of disabling the Extended Text Formatter. But the change made no difference :( On a wider perspective, we really do need a YouTube Extension. Every non-vanilla forum I am in these days has youtube videos posted.
  • And you think that's a reason to add it to vanilla?

    *makes the sign of the cross
  • "every myspace profile i am in these days has glittery star graphics and bright green text"
  • LOL I know we vanilla folks are different from the others.....but the ability to post a youtube video would be nice, mini. eg at the minute, i am trying to describe how beautiful a location is in New Zealand to Merikan friends on my board, when it is so much easier if i can post a few youtube videos on the area and let them see for themselves.
  • On a slightly sideways note...

    I'm able to post YouTube videos on my Vanilla setup, (I have allowed iFrames).

    My question is; being that the video file is hosted on YouTube, does the bandwidth used get registered against my server in any way?

    That is, does it go directly from YouTube to the viewer's browser or is it routed via my server?
  • Your users don't use your bandwidth...
    But allowing them to use iframes is a bad idea since anything can be loaded on your pages.
  • Thanks Dinoboff, but my users have problems loading the forum on my pages let alone a malicious attack via an iFrame! :-)
This discussion has been closed.