Shadow tag not working

Started by RomanyX, January 11, 2006, 11:24:24 AM

Previous topic - Next topic

RomanyX

Can anyone see the shadow on this line of text?

I can't get the shadow tag to work at my test forum (running 1.1 RC2) or here either. :'(

[Yes, I'm using IE; yes, it works at other kinds of boards--so it's unlikely to be a browser problem.]

I'm pretty much code-illiterate, so does anyone see anything wrong with these?

From Subs.php:
	
	
	
array(
	
	
	
	
'tag' => 'shadow',
	
	
	
	
'type' => 'unparsed_commas',
	
	
	
	
'test' => '[#0-9a-z\-]{3,12},(left|right|top|bottom|[0123]\d{0,2})\]',
	
	
	
	
'before' => $context['browser']['is_ie'] ? '<span style="filter: Shadow(color=$1, direction=$2); height: 1.2em;\">' '<span style="text-shadow: $1 $2">',
	
	
	
	
'after' => '</span>',
	
	
	
	
'validate' => $context['browser']['is_ie'] ? create_function('&$tag, &$data, $disabled''
	
	
	
	
	
if ($data[1] == \'left\')
	
	
	
	
	
	
$data[1] = 270;
	
	
	
	
	
elseif ($data[1] == \'right\')
	
	
	
	
	
	
$data[1] = 90;
	
	
	
	
	
elseif ($data[1] == \'top\')
	
	
	
	
	
	
$data[1] = 0;
	
	
	
	
	
elseif ($data[1] == \'bottom\')
	
	
	
	
	
	
$data[1] = 180;
	
	
	
	
	
else
	
	
	
	
	
	
$data[1] = (int) $data[1];'
) : create_function('&$tag, &$data, $disabled''
	
	
	
	
	
if ($data[1] == \'top\' || (is_numeric($data[1]) && $data[1] < 50))
	
	
	
	
	
	
return \'0 -2px\';
	
	
	
	
	
elseif ($data[1] == \'right\' || (is_numeric($data[1]) && $data[1] < 100))
	
	
	
	
	
	
return \'2px 0\';
	
	
	
	
	
elseif ($data[1] == \'bottom\' || (is_numeric($data[1]) && $data[1] < 190))
	
	
	
	
	
	
return \'0 2px\';
	
	
	
	
	
elseif ($data[1] == \'left\' || (is_numeric($data[1]) && $data[1] < 280))
	
	
	
	
	
	
return \'-2px 0\';
	
	
	
	
	
else
	
	
	
	
	
	
return \'0 0\';'
),
	
	
	
),


From Themes/default/Post.template.php:
	
	
	
'shadow' => array('code' => 'shadow''before' => '[shadow=red,left]''after' => '[/shadow]''description' => $txt[443]),



asdboard

Same problem for me.....suggestions, anyone?

Advertisement: