[問題] plus 加裝『性別統計』add-on無法顯示於討論區首頁(已解決)

phpBB Plus Support
本區是討論關於 phpBB 2 plus 使用上的問題討論!
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

主題已鎖定
hanson.hung
星球公民
星球公民
文章: 48
註冊時間: 2006-05-07 16:15

[問題] plus 加裝『性別統計』add-on無法顯示於討論區首頁(已解決)

文章 hanson.hung »

今天心血來潮想把『性別統計』這個add-on加到我的plus,
但是很奇怪的, 在討論區的首頁(index.php),
若是以 plus 樣式, 就顯示不出統計人數字,如圖1, index_body_plus.tpl檔案
若是以 phpbb2 樣式, 就可以顯示統計人數,如圖2, index_body.tpl檔案
順便附上我的index.php檔案
請各位高手幫忙, 感謝您!!!

參考文章:[討論]關於先安裝風格後在裝金錢外掛時

●架設主機作業系統:Linux (CentOS 4.2)
●您的上網方式:Hinet ADSL 2M/512
●您安裝的程式:Appserv 2.0.52、MySQL 4.1.20、PHP 4.3.9
●您的 phpBB2 版本:中文 plus 1.53a 內含 phpBB 2.0.21
●您的 domain(網域名稱) :www.hanson.club.tw
●您的 phpBB2 連結網址: http://www.hanson.club.tw/test2/index.php
最後由 hanson.hung 於 2006-09-20 12:14 編輯,總共編輯了 1 次。
wu2017
竹貓忠實會員
竹貓忠實會員
文章: 359
註冊時間: 2002-08-20 15:23
來自: 平凡心動
聯繫:

文章 wu2017 »

參閱你的 index.php,發現有點疑問 ^^||

代碼: 選擇全部

if ($plus_config['index_layout'] == 'index_body_plus.tpl')
.....

else
.....
//-- 性別統計 Add-on Start
'TOTAL_MALE' => sprintf($l_total_male, $total_male),
'TOTAL_FEMALE' => sprintf($l_total_female, $total_female),
//-- 性別統計 Add-on End
也許這是問題所在,它不就成為:
當不是以 plus 樣式顯示時,才進行性別統計.....
我們都想寫下自己的故事,才初執筆就驚覺,悲歡離合竟也是年輕事!
平凡心動 http://www.hope99.idv.tw/

提出問題時,請提供較完整的資料,才能給你正確的答案,節省你的時間。
發問格式可參閱: http://phpbb-tw.net/phpbb/viewtopic.php?t=15329

PLUS 下載位址: http://www.phpbb2.de/dload.php?action=c ... &cat_id=20
hanson.hung
星球公民
星球公民
文章: 48
註冊時間: 2006-05-07 16:15

文章 hanson.hung »

wu2017 寫:參閱你的 index.php,發現有點疑問 ^^||

代碼: 選擇全部

if ($plus_config['index_layout'] == 'index_body_plus.tpl')
.....

else
.....
//-- 性別統計 Add-on Start
'TOTAL_MALE' => sprintf($l_total_male, $total_male),
'TOTAL_FEMALE' => sprintf($l_total_female, $total_female),
//-- 性別統計 Add-on End
也許這是問題所在,它不就成為:
當不是以 plus 樣式顯示時,才進行性別統計.....
唉呀.............真是粗心...........沒有把整個語法看完................... :-D
感謝wu2017兄的提醒, 已經修正OK了, 感謝您!! :-P
主題已鎖定

回到「phpBB 2 plus 綜合討論」