迅睿開源框架是一款PHP8高性能·簡單易用的PHP開源開發(fā)框架, 基于MIT開源許可協(xié)議發(fā)布,不限制商業(yè)使用,以多端互聯(lián)為設(shè)計理念, 支持的微信公眾號、小程序、APP客戶端、移動端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
業(yè)務(wù)經(jīng)理
微信掃描以上二維碼
028-61286886
在線咨詢
一:如何自動判斷論壇每個板塊下的主題數(shù)(我想要這個數(shù)據(jù),如何獲?。?br/>
二:如何獲取每個用戶的主題數(shù)和回帖數(shù)
謝謝大神
輪壇是模塊嗎?回帖是評論嗎?
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
是的,
比如論壇模塊下創(chuàng)建了兩個論壇版塊,版塊1和版塊2。
如何獲取板塊1下面有多少條主題,版塊2下面有多少條主題。
例:版塊1(主題:15條)
版塊2(主題:22條)
類似索引,就像文章的內(nèi)容頁右側(cè)顯示的那個一樣,顯示每個欄目里面有幾條數(shù)據(jù)。
還有一個問題,如何調(diào)用數(shù)據(jù)庫里面的信息。
我看dr開頭的我都試過了,格式是怎么樣的?
想調(diào)用數(shù)據(jù)庫里面的任何表和字段
能舉個例子嗎?最好注視一下,謝謝?
模板中調(diào)用還是PHP文件里面調(diào)用?
模板標(biāo)簽寫法是用module標(biāo)簽
http://apdwn.com/doc/15.html
比如欄目1下面的數(shù)據(jù)量
{module module=bbs catid=1 return=r}{/module} {$count_r}
http://apdwn.com/doc/426.html 這個手冊可以查詢?nèi)我獗頂?shù)據(jù)
用戶的主題數(shù)
{module module=bbs uid=用戶的id號 return=r}{/module} {$count_r}
用戶的回帖
{comment module=bbs uid=用戶的id號 return=r}{/comment} {$count_r}
板塊的主題數(shù)
{module module=bbs catid=板塊的id號 return=r}{/module} {$count_r}
板塊的回帖
{comment module=bbs catid=板塊戶的id號 return=r}{/comment} {$count_r}
有沒有自動判斷欄目的,不要指定欄目的
list.html category.html show.html可以把欄目id改成$catid,表示當(dāng)前欄目id
回復(fù)@阿慶嫂
回復(fù)@易學(xué)習(xí)
{module module=bbs catid=$catid return=r}{/module} {$count_r}
這樣寫的話,每個欄目的都顯示一樣的了。
舉一反三啊,反正是接收欄目id號的,你最好把代碼都發(fā)上來看一下,如果是循環(huán)體里面,需要改下id變量前綴
{if $related}{loop $related $t} <li><a href="{$t.url}"><div class="icons icon-manage-verify"><img src="{dr_thumb($t.thumb)}"></div> <dl> <dt class="color-tit">{$t.name}{module module=bbs catid=$catid return=r}{/module} {$count_r}</dt> <dd>{$t.content}</dd> <div class="clearfix"></div> </dl> </a> </li> {/loop}{/if}
xunrui是我用的最靈活的cms,二次開發(fā)很容易
{if $related}{loop $related $t} <li><a target="_blank" href="{$t.url}"><div class="icons icon-manage-verify"><img src="{dr_thumb($t.thumb)}"></div> <dl> <dt class="color-tit">{$t.name}{module module=bbs catid=$t.id return=r}{/module} {$count_r}</dt> <dd>{$t.content}</dd> <div class="clearfix"></div> </dl> </a> </li> {/loop}{/if}
你怎么不會讀取循環(huán)體的變量值呢
我是菜鳥啊,會css,html。PHP不怎么會啊
能請教一個問題嗎?
{module module=bbs catid=$t.id return=r}{/module} {$count_r}
為什么 {$count_r} 在外面呢?不是應(yīng)該套在module里面的嗎?
手冊上是這么說的啊,手冊上讓寫在外面的呢
感謝你,大神。謝謝了。問題解決了。
輪壇是模塊嗎?回帖是評論嗎?
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
是的,
比如論壇模塊下創(chuàng)建了兩個論壇版塊,版塊1和版塊2。
如何獲取板塊1下面有多少條主題,版塊2下面有多少條主題。
例:版塊1(主題:15條)
版塊2(主題:22條)
類似索引,就像文章的內(nèi)容頁右側(cè)顯示的那個一樣,顯示每個欄目里面有幾條數(shù)據(jù)。
還有一個問題,如何調(diào)用數(shù)據(jù)庫里面的信息。
我看dr開頭的我都試過了,格式是怎么樣的?
想調(diào)用數(shù)據(jù)庫里面的任何表和字段
能舉個例子嗎?最好注視一下,謝謝?
模板中調(diào)用還是PHP文件里面調(diào)用?
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
模板標(biāo)簽寫法是用module標(biāo)簽
http://apdwn.com/doc/15.html
比如欄目1下面的數(shù)據(jù)量
{module module=bbs catid=1 return=r}{/module} {$count_r}
http://apdwn.com/doc/426.html 這個手冊可以查詢?nèi)我獗頂?shù)據(jù)
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
用戶的主題數(shù)
{module module=bbs uid=用戶的id號 return=r}{/module} {$count_r}
用戶的回帖
{comment module=bbs uid=用戶的id號 return=r}{/comment} {$count_r}
用戶的主題數(shù)
{module module=bbs uid=用戶的id號 return=r}{/module} {$count_r}
用戶的回帖
{comment module=bbs uid=用戶的id號 return=r}{/comment} {$count_r}
板塊的主題數(shù)
{module module=bbs catid=板塊的id號 return=r}{/module} {$count_r}
板塊的回帖
{comment module=bbs catid=板塊戶的id號 return=r}{/comment} {$count_r}
有沒有自動判斷欄目的,不要指定欄目的
list.html category.html show.html可以把欄目id改成$catid,表示當(dāng)前欄目id
回復(fù)@阿慶嫂
回復(fù)@易學(xué)習(xí)
{module module=bbs catid=$catid return=r}{/module} {$count_r}
這樣寫的話,每個欄目的都顯示一樣的了。
舉一反三啊,反正是接收欄目id號的,你最好把代碼都發(fā)上來看一下,如果是循環(huán)體里面,需要改下id變量前綴
回復(fù)@阿慶嫂
回復(fù)@易學(xué)習(xí)
{if $related}{loop $related $t} <li><a href="{$t.url}"><div class="icons icon-manage-verify"><img src="{dr_thumb($t.thumb)}"></div> <dl> <dt class="color-tit">{$t.name}{module module=bbs catid=$catid return=r}{/module} {$count_r}</dt> <dd>{$t.content}</dd> <div class="clearfix"></div> </dl> </a> </li> {/loop}{/if}xunrui是我用的最靈活的cms,二次開發(fā)很容易
{if $related}{loop $related $t} <li><a target="_blank" href="{$t.url}"><div class="icons icon-manage-verify"><img src="{dr_thumb($t.thumb)}"></div> <dl> <dt class="color-tit">{$t.name}{module module=bbs catid=$t.id return=r}{/module} {$count_r}</dt> <dd>{$t.content}</dd> <div class="clearfix"></div> </dl> </a> </li> {/loop}{/if}你怎么不會讀取循環(huán)體的變量值呢
回復(fù)@易學(xué)習(xí)
我是菜鳥啊,會css,html。PHP不怎么會啊
能請教一個問題嗎?
{module module=bbs catid=$t.id return=r}{/module} {$count_r}為什么 {$count_r} 在外面呢?不是應(yīng)該套在module里面的嗎?
手冊上是這么說的啊,手冊上讓寫在外面的呢
回復(fù)@阿慶嫂
回復(fù)@易學(xué)習(xí)
感謝你,大神。謝謝了。問題解決了。