原来是和你之前安装另一作者的表情插件冲突,把以下的代码从 /components/shared/function_common.php 里删除:
- // Smiley Replace Function
- function replace_smiley($string)
- {
- $smileyarr = array(
- ":)" => "smile",
- ":(" => "sad",
- ":D" => "biggrin",
- ":'(" => "cry",
- ":@" => "huffy",
- ":o" => "shocked",
- ":P" => "tongue",
- ":$" => "shy",
- ";P" => "titter",
- ":L" => "sweat",
- ":Q" => "mad",
- ":lol" => "lol",
- ":hug:" => "hug",
- ":victory:" => "victory",
- ":time:" => "time",
- ":kiss:" => "kiss",
- ":handshake" => "handshake",
- ":call:" => "call",
- ":loveliness:" => "loveliness",
- ":funk:" => "funk"
- );
- foreach($smileyarr as $key => $value){
- $string = str_replace($key, "<img src='components/smiley/$value.gif'>", $string);
- }
- return $string;
- }
复制代码 再打开 /template/default/com_gift_free.htm, 把下面那行改成那个作者的插件吧:- <script src="components/smiley/command.js" type="text/javascript"></script>
复制代码 |