News:

Wondering if this will always be free?  See why free is better.

Main Menu

Custom BBCode

Started by Luis-, February 29, 2012, 08:44:14 PM

Previous topic - Next topic

Luis-

Hi, i've tryed making a custom bbcode for my forum;

array(
'tag' => 'vid',
'type' => 'unparsed_equals',
'before' => '<iframe width="420" height="345" src="$1">',
'after' => '</iframe>',
),

but it wont show the video I enter into "[vid=link here][/vid]" code. I can't understand it :S. Is there anything wrong with it?

Illori

what exactly are you trying to do with that code? embed a video? how about looking at the mod site at one of the many video embedding mods?

Luis-

Yeah, i'm trying to embed videos which a user links. I'll take a look now.

Matthew K.

Well first of all, I would use embed rather than an iframe personally. But there are mods written that accomplish this.

NanoSector

Also, users can enter ANY link in that tag and it shows up.

Per example, if I do this with your tag:
[vid]http://google.com/[/vid]
it would happily show the Google home page.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Advertisement: