embedding youtube/etc? (25)

1 Name: dirtypants : 2008-05-21 22:06 ID:xtBUBKh9 [Del]

I found this bit of code from back in 2006, and it makes sense to me:

use constant ALLOWED_HTML => (

'a'=>{args=>{'href'=>'url'}},
'b'=>{},'i'=>{},'u'=>{},'sub'=>{},'sup'=>{},
'em'=>{},'strong'=>{},
'ul'=>{},'ol'=>{},'li'=>{},'dl'=>{},'dt'=>{},'dd'=>{},
'p'=>{},'br'=>{empty=>1},'blockquote'=>{},

)

But putting it in there causes a server error.

How can I parse allowed HTML so that people can embed stuff like this?

Thanks!

2 Name: dirtypants : 2008-05-22 09:39 ID:xtBUBKh9 [Del]

I'm finding all of these old bits from pre-2007

Edit config.pl for enabling youtube embed code to be pasted in Formatting:HTML mode

use constant ALLOWED_HTML => (

'a'=>{args=>{'href'=>'url'},forced=>{'rel'=>'nofollow'}},
'object'=>{forced=>{'width'=>'425','height'=>'350'}},
'param'=>{args=>{'value'=>'url'},forced=>{'name'=>'movie'}},
'embed'=>{args=>{'src'=>'url'},forced=>{'type'=>'application/x-shockwave-flash','wmode'=>'transparent','width'=>'425','height'=>'350'}},
'b'=>{},'i'=>{},'u'=>{},'sub'=>{},'sup'=>{},
'em'=>{},'strong'=>{},
'ul'=>{},'ol'=>{},'li'=>{},'dl'=>{},'dt'=>{},'dd'=>{},
'p'=>{},'br'=>{empty=>1},'blockquote'=>{},

);

But there is no reference to ALLOWED_HTML in the new builds. Can someone with a history tell me where that had been referenced?

Thanks!

3 Name: Anonymous : 2008-05-31 20:30 ID:grZxATmf [Del]

Bump

4 Name: !WAHa.06x36 : 2008-06-01 05:16 ID:Heaven [Del]

>>3

Don't bump a thread without adding anything useful.

5 Name: Anonymous : 2008-06-01 16:32 ID:Heaven [Del]

> But there is no reference to ALLOWED_HTML in the new builds.

what.

> Can someone with a history tell me where that had been referenced?

http://www.google.com/codesearch?hl=en&q=+file:config.pl+package:http://wakaba.c3.cx/releases/kareha_3.1.3.zip+ALLOWED_HTML&sa=N&filter=0

6 Name: Anonymous : 2008-12-22 22:23 ID:eSpaAEqh [Del]

this still produces a snytax error when i remove the # symbol

syntax error at config.pl line 173, near "1;"

7 Name: LiteralKa!!UIR4DE3n : 2008-12-24 10:38 ID:xU1dlwKh [Del]

>>6
Well then, fix the 'snytax' error, it practically gives you the answer!

8 Name: Anonymous : 2009-03-10 11:57 ID:ZvUErNZp [Del]

>>2
How does this work?

1) I just copy this to my config.pl
2) and then copy a link from youtube and paste it into the post area? and it should embed it?

9 Post deleted by moderator.

10 Name: Anonymous : 2009-03-11 18:44 ID:Heaven [Del]

>>9
welcome to spam.txt

Name: Link:
Leave these fields empty (spam trap):
More options...
Verification: