很多朋友在用Phpcms做站時(shí),具體需要在列表頁、首頁調(diào)用文章列表調(diào)用文章的點(diǎn)擊量和評(píng)論排行,那么怎么才能做到在Phpcms v9首頁、頻道頁、列表頁、推薦位等頁面獲取文章瀏覽量和評(píng)
稍微改一下phpcms/libs/functions/global.func.php文件中的thumb函數(shù)。 第一步:將函數(shù)thumb默認(rèn)參數(shù)$height = 100改為$height = 0; 第二步:找到這句if($width=$width_t || $height=$height_t) return $imgurl; (大約
phpcms v9中相關(guān)閱讀的排序問題,調(diào)用出來的內(nèi)容十分陳舊。于是嘗試添加 order=id DESC 參數(shù)進(jìn)行排序,調(diào)用順序依然毫無變化。打開 phpcms/modules/content/classes/content_tag.class.php 內(nèi)容模型標(biāo)簽
網(wǎng)上收集下來的,常用標(biāo)簽基本都用的到的!當(dāng)然二次開發(fā)肯定不包括在內(nèi),供我這種小白使用: 首頁調(diào)用欄目 {pc:content action=category siteid=$siteid num=15 order=listorder} {loop $data $r} lia title=
由于PHPCMS關(guān)鍵字關(guān)聯(lián)鏈接替換的時(shí)候 對(duì)ALT標(biāo)簽也會(huì)替換掉 還有A標(biāo)簽內(nèi)的東西也會(huì)替換掉 這樣不是我們的本意,搜遍論壇沒有解決方案,看到一個(gè)網(wǎng)站解決了,問了下那個(gè)朋友,人家告
1. 內(nèi)容標(biāo)簽 在官方模板頁里邊,我們可以看到如{tag_網(wǎng)站首頁頭條} 這樣的標(biāo)簽。 這種標(biāo)簽就是內(nèi)容標(biāo)簽,可以在后臺(tái)的模板風(fēng)格-的內(nèi)容標(biāo)簽管理里進(jìn)行查看和修改。 這種標(biāo)簽屬于模
今天的CI突然failed掉了, 一下子掛掉好多case,嚇我一大跳。因?yàn)橐话阋膊粫?huì)一下錯(cuò)誤這么多case,應(yīng)該不是case本身的問題,可能是環(huán)境除了狀況。登陸到環(huán)境的服務(wù)器上,很快發(fā)現(xiàn)是流
在Linux下查看磁盤空間使用情況,最常使用的就是du和df了。然而兩者還是有很大區(qū)別的,有時(shí)候其輸出結(jié)果甚至非常懸殊。 1. 如何記憶這兩個(gè)命令 du-Disk Usage df-Disk Free 2. df 和du 的工作
需求的變動(dòng)對(duì)項(xiàng)目本身會(huì)帶來很大的風(fēng)險(xiǎn),在程序員來說也會(huì)有很大的開發(fā)壓力。 以前在書本上學(xué)習(xí)項(xiàng)目管理的時(shí)候,對(duì)項(xiàng)目需求變動(dòng)沒有特別的了解,然后真當(dāng)我遇上了,簡(jiǎn)直殺我一
最近用Phpcms v9又碰到一個(gè)老問題:在內(nèi)容頁縮略圖裁剪的時(shí)候出現(xiàn)黑邊,這種情況很久沒碰到,估計(jì)是長寬不同或者會(huì)在首頁、列表頁、內(nèi)容頁不同地方偶然出現(xiàn)的情況,在這里 CMSYO
漏洞名稱 :phpcmsv9寬字節(jié)注入 文件路徑 :/phpcms/modules/pay/respond.php...
以下為風(fēng)信建站項(xiàng)目開發(fā)中所使用的JQuery用戶提交登記信息進(jìn)行驗(yàn)證的代碼片段,...
Jquery頭部滾動(dòng)固定的實(shí)現(xiàn)代碼片段,以下代碼為項(xiàng)目開發(fā)中的片段,實(shí)現(xiàn)方法思路...
通過獲取父子關(guān)系的值,我們來進(jìn)行查詢排序,是經(jīng)常用到的一個(gè)MySQL功能,我們...
為 了提升用戶的移動(dòng)搜索結(jié)果瀏覽體驗(yàn),百度移動(dòng)搜索對(duì)具有對(duì)應(yīng)手機(jī)站的PC站提...
SweetAlert2 一個(gè)漂亮的、響應(yīng)式的、可定制的和可訪問(WAI-ARIA)的JavaScript...
可能很多朋友都常用nginx不支持.htaccess,只有apache才支持.htaccess文件,其...
1.截取調(diào)用標(biāo)題長度 {str_cut($r[title],36,)} 2.格式化時(shí)間 調(diào)用格式化時(shí)間 20...