possible values and their meanings of the 'type'-variable

Started by MaLa, November 02, 2008, 11:52:31 AM

Previous topic - Next topic

MaLa

Hi, when creating new BBC-tags there is a type-variable. What possible values can this variable have?

I'm working on sgf-tag to embed a flashplayer for so sgf-files (that is a fileformat to display gogames)
There are no additional parameters required except the link to the sgf

so the required input should look like [sgf]hxxp:myurl.org/mysgf.sgf [nonactive][/sgf]
but at the moment it always requires some additional parameters even though it never uses them (so it does not matter what you actually insert) so it has to look like
[sgf=1]hxxp:myurl.org/mysgf.sgf [nonactive][/sgf]

How can i fix that problem?
Currently it is like this

array(
'tag' => 'sgf',
'type' => 'unparsed_content',
'content' => '$1',
'test' => '',
'validate' => create_function('&$tag, &$data, $disabled', '
if (!isset($disabled[\'sgf\']))
{
$url =  end(explode(\'/\', dirname("{$_SERVER[\'PHP_SELF\']}")));
$chopped = parse_url($url);
$board_dir = "http://". "{$_SERVER[\'HTTP_HOST\']}"."/".$chopped[\'path\'];
$theme_dir = "$board_dir/Themes/default";
$data[0] = "<p style=\"color: #000000;font-family: Arial, sans-serif;font-size: 11px;font-weight: normal;text-align: $5;text-decoration: none;\">
<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" width=\"640\" height=\"480\" id=\"goswf\" align=\"middle\">
<param name=\"allowScriptAccess\" value=\"sameDomain\" />
<param name=\"movie\" value=\"$board_dir/goswf.swf?c0=#83E9F3&c1=#DFDFDF&c2=#5F5F5F&url=$data\" />
<param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"FFFFFF\" />
<embed src=\"$board_dir/goswf.swf?c0=#83E9F3&c1=#DFDFDF&c2=#5F5F5F&url=$data\" quality=\"high\" bgcolor=\"FFFFFF\" width=\"640\" height=\"480\" name=\"goswf\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\">
</embed>
</object>
<br></p>";


I also tried to set it to unparsed_content and not setting it at all but nothing worked as i wished.

So who can help me about that? How to set it so it works properly? I guess i have also to change that the usage of the $data-var must be changed

Thanks in advance

MaLa


[SiNaN]

Former SMF Core Developer | My Mods | SimplePortal

Advertisement: