無覓智能相關(guān)文章服務(wù)是無覓織夢dedecms網(wǎng)面向網(wǎng)站用戶推出的一項智能云端服務(wù),旨在提升織夢dedecms網(wǎng)站相關(guān)文章的轉(zhuǎn)化率,幫助讀者發(fā)現(xiàn)網(wǎng)站的價值信息。
它依托無覓精準的內(nèi)容分析和推薦算法,系統(tǒng)分析文章內(nèi)容、標簽、用戶行為、時間等參數(shù),實時生成關(guān)聯(lián)推薦結(jié)果,
并在當前文章底部進行圖文展示,能夠給織夢dedecms網(wǎng)站帶來快速的流量增長,也為用戶提供流暢的閱讀體驗。
無覓相關(guān)文章默認展示樣式:
在DEDECMS織夢中實現(xiàn)無覓相關(guān)文章功能 三聯(liá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、進入后臺管理的“默認模板管理”頁面,分別在下列文件中找到對應(yīng)代碼的位置:
article_article.htm,article_shop.htm,article_infos.htm以及V5.7版本中的所有隨機文章內(nèi)容頁模板文件中,找到{dede:field.body/}
article_image.htm:
V5.3.1版本中找到<div class="picbox">對應(yīng)的結(jié)束標簽</div>
V5.7版本中找到<div class="intro">對應(yīng)的結(jié)束標簽</div>
article_soft.htm中找到<div class="intro">對應(yīng)的結(jié)束標簽</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)容啟用絕對網(wǎng)址”為YES,請將上述第二行代碼改為:
<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、在管理后臺更新文檔 HTML。