修改网站标题

在语言文件.lng.module里面修改

修改前台页面底部版权信息

在模版头尾模版default_foot里面修改

修改后台版权信息

在语言文件admin.lng.main和admin.lng.admin_config里面修改

修改源代码里面的执行时间版权

细心的读者可以发现在源代码中最底部有<!–JTBC(1.0), Processed in 这样的版权和执行时间标记。

可以在common/incfiles/web.asp第36行中找到,可以将& "<!–JTBC(1.0), Processed in " & tmpspeed & " ms–>"都去掉,也可以留下执行时间。

这样就可以将所有的版权信息去掉了。

一、增加一个上传的js函数。

在common\images\js\manage.js中加入以下函数(根据insert_images()改动而来)

[CODE=JavaScript]
function insert_attachments(strid, strurl, strntype, strtype, strbase,strname)
{
var tstrtype;
if (strtype == -1)
{tstrtype = strntype;}
else
{
var thtype = request[“htype”];
if (thtype == undefined)
{tstrtype = strtype;}
else
{tstrtype = get_num(thtype);}
}
if (tstrtype == 1)
{
itextner(strid, “[url=” + strurl + “]”+strname+”[/url]”);
}
else
{
if (tstrtype == 0)
{
editor_insert(strid, ““+strname+”“);
}
}
}
[/CODE]

二、增加语言节点。

在.lng.lng_config里增加节点attachment,值为自己选(我的是:"附件:下载").修改insert的值为插入图片(方便自己查看),增加insertfile值为插入附件。

三、增加页面调用。

另外在文章manage.jtbc中292行add和423(第一个地方增加之后,第二个行数423可能变为424)行edit相应位置加入<input type="button" class="button" value="{$=itake(‘global.lng_config.insertfile’,’lng’)}" onclick="insert_attachments(‘content’, get_id(‘content_images’).value, {$=ncttype}, -1, ‘{$=get_lrstr(nuri, "/", "leftr")}’,'{$=itake("global.lng_config.attachment","lng")}’)">

JTBC里面默认的编辑器是UUB,html编辑器是tinymce,我们可以修改默认编辑器为html编辑器。

方法是每个频道里的common/incfiles/manage_config.asp文件。

找到语句:If ncttype = -1 Then ncttype = 1 改为 If ncttype = -1 Then ncttype = 0

后面ncttype的值,1为ubb,0为html,2为纯文本

另外我发现tinymce弹出的比如插入表格等都是在新窗口打开,超级不方便,我将它修改为在当前页面弹出层。

方法是增加一个inlinepopups插件。

找到plugins : "table,advhr,advimage, 这句话,修改为plugins : "inlinepopups,table,advhr,advimage,