POST TIME:2018-09-02 13:16
無覓智能相關(guān)文章服務(wù)是無覓網(wǎng)面向網(wǎng)站用戶推出的一項(xiàng)智能云端服務(wù),旨在提升網(wǎng)站相關(guān)文章的轉(zhuǎn)化率,幫助讀者發(fā)現(xiàn)網(wǎng)站的價(jià)值信息。它依托無覓精準(zhǔn)的內(nèi)容分析 和推薦算法,系統(tǒng)分析文章內(nèi)容、標(biāo)簽、用戶行為、時(shí)間等參數(shù),實(shí)時(shí)生成關(guān)聯(lián)推薦結(jié)果,并在當(dāng)前文章底部進(jìn)行圖文展示,能夠給網(wǎng)站帶來快速的流量增長,也為 用戶提供流暢的閱讀體驗(yàn)。
無覓相關(guān)文章默認(rèn)展示樣式:
DEDECMS用戶可以通過在模板文件中添加代碼而定方式來使用無覓相關(guān)文章功能。以下代碼來自無覓官方網(wǎng)站。
1、編輯服務(wù)器上的/include/arc.archives.class.php文件,在$this->Fields = $this->dsql->GetOne($query);一行下插入以下代碼:
$this->Fields['arcurl'] = GetFileUrl(
$this->ArcID, $this->Fields["typeid"], $this->Fields["senddate"],
$this->Fields["title"], $this->Fields["ismake"],
$this->Fields["arcrank"], $this->TypeLink->TypeInfos['namerule'],
$this->TypeLink->TypeInfos['typedir'], $this->Fields["money"],
$this->Fields['filename'], $this->TypeLink->TypeInfos['moresite'],
$this->TypeLink->TypeInfos['siteurl'], $this->TypeLink->TypeInfos['sitepath']
);
2、繼續(xù)編輯該文件,找到if($this->ChannelUnit->ChannelInfos['addtable']!=”)一行,在其上插入以下代碼:
$this->Fields['wumiipic'] = strpos($this->Fields['litpic'], ‘/’) === 0 ? ($GLOBALS['cfg_basehost'] . $this->Fields['litpic']) : $this->Fields['litpic'];
3、進(jìn)入后臺(tái)管理的“默認(rèn)模板管理”頁面,分別在下列文件中找到對(duì)應(yīng)代碼的位置:
article_article.htm,article_shop.htm,article_infos.htm以及V5.7版本中的所有隨機(jī)文章內(nèi)容頁模板文件中,找到{dede:field.body/}
article_image.htm:
V5.3.1版本中找到<div class="picbox">對(duì)應(yīng)的結(jié)束標(biāo)簽</div>
V5.7版本中找到<div class="intro">對(duì)應(yīng)的結(jié)束標(biāo)簽</div>
article_soft.htm中找到<div class="intro">對(duì)應(yīng)的結(jié)束標(biāo)簽</div>
在以上位置之后添加以下代碼:
<div class="wumii-hook">
<input type="hidden" name="wurl" value="{dede:global.cfg_basehost/}{dede:field.arcurl/}" />
<input type="hidden" name="wtitle" value="{dede:field.title/}" />
<input type="hidden" name="wpic" value="{dede:field.wumiipic/}" />
</div>
<p style="display: none;">
{dede:tag}<a rel="tag">[field:tag /]</a>{/dede:tag}
</p>
<script>
var wumiiSitePrefix = "{dede:global.cfg_basehost/}{dede:global.cfg_indexurl/}/";
</script>
注:如果您的網(wǎng)站設(shè)置了“arclist內(nèi)容啟用絕對(duì)網(wǎng)址”為YES,請(qǐng)將上述第二行代碼改為:
<input type="hidden" name="wurl" value="{dede:field.arcurl/}" />
4、在第3步修改的所有模板文件中找到文件末尾的</body>,在其前面添加以下代碼:
<script type="text/javascript">
var wumiiParams = "&num=5&mode=3&pf=DedeCMS_{dede:global.cfg_version/}";
</script>
<script type="text/javascript" id="wumiiRelatedItems" src="http://widget.wumii.com/ext/relatedItemsWidget.htm"></script>
5、在管理后臺(tái)更新文檔 HTML。