一 去掉水印###
1.先按照目錄路徑找到statics/images/water 文件夾皮璧,把這個(gè)water文件刪除
2.按照該目錄路徑找到phpcms/libs/classes/image.class.php文件中watermark水印函數(shù),將此函數(shù)中$w_text 參數(shù)的值設(shè)置為空就可以了。
二 絕對(duì)地址改為相對(duì)路徑###
1.將數(shù)據(jù)庫中v9_site表的domain字段修改為/。不想改數(shù)據(jù)庫也可以,需要修改如下數(shù)據(jù)找到phpcms/modules/admin/site.php文件大約128行到130行如下:
if (!empty($domain) && !preg_match('/http:\/\/(.+)\/$/i', $domain)) {
showmessage(L('site_domain').L('site_domain_ex2'));
}
將以上代碼屏蔽或者刪除后保存,進(jìn)入網(wǎng)站后臺(tái)---設(shè)置--站點(diǎn)設(shè)置--修改站點(diǎn)域名為"/"即可!
2.后臺(tái)修改附件 、js 库快、 圖片前面的地址去掉蜂大,如下:
更新所有靜態(tài)文件,更新緩存沐悦,大功告成概荷!
三 調(diào)用指定欄目及其下面的內(nèi)容###
{pc:content action="category" catid="$catid" num="34" siteid="$siteid" order="listorder ASC"}
<ul>
{loop $data $r}
<li>
<font>{$r[catname]}</font>
<ul>
{pc:content action="lists" catid="$r[catid]" num="10" order="listorder ASC"}
{loop $data $rr}
<a href="{$rr[url]">
<li>
<font>{$rr[title]}</font>
<font>{str_cut($rr['description'],300,'...')}</font>
</li>
</a>
{/loop}
{/pc}
</ul>
</li>
{/loop}
</ul>
{/pc}
四愈捅、修改摘要字符###
1.后臺(tái)-->內(nèi)容-->模型管理-->文章模型中的字段管理-->字段摘要description-->字符長度取值范圍,修改最大值即可慈鸠。
2.文章編輯內(nèi)容頁面蓝谨,修改
默認(rèn)數(shù)字200即可。
五青团、修改system.php中的app_path譬巫,網(wǎng)站打不開###
編碼錯(cuò)誤,盡量避免直接用記事本編輯修改督笆,用其他文本編輯器芦昔,保存時(shí)注意編碼
六、刪除推送的文章時(shí)報(bào)錯(cuò)###
phpcms\model\content_model.class.
phpcms v9推送時(shí)增加content內(nèi)容
phpcms\modules\content\classes\push_api.class.php
pc標(biāo)簽調(diào)用content字段別忘記加入 moreinfo="1" 哦娃肿。