./Sources/Subs.php
ค้นหา
global $txt, $scripturl, $context, $modSettings, $user_info;
แทนที่ด้วย
global $txt, $scripturl, $context, $modSettings, $user_info, $settings;
ค้นหา
array(
'tag' => 'flash',
'type' => 'unparsed_commas_content',
'test' => '\d+,\d+\]',
'content' => ($context['browser']['is_ie'] && !$context['browser']['is_mac_ie'] ? '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="$2" height="$3"><param name="movie" value="$1" /><param name="play" value="true" /><param name="loop" value="true" /><param name="quality" value="high" /><param name="AllowScriptAccess" value="never" /><embed src="$1" width="$2" height="$3" play="true" loop="true" quality="high" AllowScriptAccess="never" /><noembed><a href="$1" target="_blank">$1</a></noembed></object>' : '<embed type="application/x-shockwave-flash" src="$1" width="$2" height="$3" play="true" loop="true" quality="high" AllowScriptAccess="never" /><noembed><a href="$1" target="_blank">$1</a></noembed>'),
'validate' => create_function('&$tag, &$data, $disabled', '
if (isset($disabled[\'url\']))
$tag[\'content\'] = \'$1\';
elseif (strpos($data[0], \'http://\') !== 0 && strpos($data[0], \'https://\') !== 0)
$data[0] = \'http://\' . $data[0];
'),
'disabled_content' => '<a href="$1" target="_blank">$1</a>',
),
เพิ่มไว้ก่อน
array(
'tag' => 'jwp',
'type' => 'unparsed_commas_content',
'content' => ($context['browser']['is_ie'] && !$context['browser']['is_mac_ie'] ? '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="$2" height="$3"><param name="movie" value="' . $settings['default_theme_url'] . '/player.swf" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="wmode" value="transparent" /><param name="flashvars" value="file=$1&image=$4" /><embed src="' . $settings['default_theme_url'] . '/player.swf" width="$2" height="$3" bgcolor="#000000" allowscriptaccess="always" allowfullscreen="true" flashvars="file=$1&image=$4" /><noembed><a href="$1" target="_blank" class="new_win">$1</a></noembed></object>' : '<embed src="' . $settings['default_theme_url'] . '/player.swf" width="$2" height="$3" bgcolor="#000000" allowscriptaccess="always" allowfullscreen="true" flashvars="file=$1&image=$4" /><noembed><a href="$1" target="_blank" class="new_win">$1</a></noembed>'),
'validate' => create_function('&$tag, &$data, $disabled', '
if (isset($disabled[\'url\']))
$tag[\'content\'] = \'$1\';
elseif (strpos($data[0], \'http://\') !== 0 && strpos($data[0], \'https://\') !== 0)
$data[0] = \'http://\' . $data[0];
'),
'disabled_content' => '<a href="$1" target="_blank" class="new_win">$1</a>',
),
/Themes/default/Post.template.php
ค้นหา
เพิ่มไว้ก่อน
'jwp' => array('code' => 'jwp', 'before' => '[jwp=425,344,image]', 'after' => '[/jwp]', 'description' => $txt['jwplayer']),
/Themes/default/languages/Modifications.english.php
ค้นหา
?>
เพิ่มไว้ก่อน
$txt['jwplayer'] = 'Insert flash video';
/Themes/default/languages/Modifications.thai-utf8.php
ค้นหา
?>
เพิ่มไว้ก่อน
$txt['jwplayer'] = 'Insert flash video';