缩略图导航 [!--smalldh--] N行N列的问题

0 条评论

点击小图打开一个新网址,让大图显示出来/e/class/t_functions.php文件
搜索




$sdh.=$nbsp."<a href='#ecms' onclick='GotoPhPage(".$j.");' title='".$picname."'><img src='".$smallpic."' alt='".$picname."' border=0".$gs."></a>";






替换成:




$sdh.="<li><a href='/e/ViewImg/?url=".$bigpic."' target='_blank' title='".$picname."'><img src='".$smallpic."' alt='".$picname."' border=0".$gs."></a><a href='/e/ViewImg/?url=".$bigpic."' target='_blank' title='".$picname."'>".$picname."</a></li>";





再到css里面添加

li {float:left;}

显示效果见http://www.2dcast.com/goods/images/1.shtml

2009-05-24 / 帝国ecms / none 阅读全文

如何更改文章内容关键字体

0 条评论

修改e/class/functions.php,搜索“function ReplaceKey(”

 


搜索到了
//替换关键字
function ReplaceKey($newstext){
        global $empire,$dbtbpre;
        if(empty($newstext))
        {return $newstext;}
        $sql=$empire->query("select keyname,keyurl from {$dbtbpre}enewskey");
        while($r=$empire->fetch($sql))
        {
                $newstext=str_replace($r[keyname],"<a href='".$r[keyurl]."' target='_blank' class='infotextkey'>".$r[keyname]."</a>",$newstext);
        }
        return $newstext;
}

修改为

 

$newstext=str_replace($r[keyname],"<b> <a href='".$r[keyurl]."' target='_blank' class='infotextkey'>".$r[keyname]."</a></b>",$newstext);

 
2009-05-19 / 帝国ecms / none 阅读全文

ecms内容自定义文件名自动生成拼音

0 条评论

内容自定义文件名自动生成拼音
需要点一下按钮
修改文件如下
1,
e/admin/addnews.php
合适位置修改为
<tr>
    <td height="25" bgcolor="#FFFFFF"><span id="diy_filename1" style="display:none">文件前缀: <input name="filenameqz" type="text" value=""></span>
                  <span id="diy_filename2" style="display:">文件名&nbsp;&nbsp;&nbsp;: <input name="filename" type="text" value=""></span>
                  <input name="diyfilename" type="checkbox" id="diyfilename" value="1" onClick="if(this.checked){diy_filename2.style.display='none';diy_filename1.style.display='';}else{diy_filename1.style.display='none';diy_filename2.style.display='';}">
                  文件名前缀 ,
                  <input type=checkbox name=closepl value=1>关闭评论</td>
  </tr>
2,e/date/html/1.php合适位置修改为
<tr>
  <td height="25" bgcolor="#FFFFFF">
        <input type=text name=title value="<?=htmlspecialchars(stripSlashes($r[title]))?>" size="60">
        <input type="button" name="button" value="图文" onclick="document.add.title.value=document.add.title.value+'(图文)';">
  <input type="button" name="Submit5" value="生成拼音标题" onclick="window.open('GetPinyin.php?hz='+document.add.title.value+'&returnform=opener.document.add.filename.value','','width=160,height=100');">
  </td>

</tr>

ok

2009-05-19 / 帝国ecms / none 阅读全文