2008-5-7 11:06
邊個
首頁直排顯示單查詢版
直排作者:ntf
本版修改:cambyliverson/邊個
演示網站:[url]http://www.xymercury.com/forum/index.php[/url]
新加功能:
1.後台可選不同風格 , 預設共 3 種風格及可選擇隨機顯示不同風格
2.後台可輸入廣告碼 , 廣告在直排右方顯示
3.後台可輸入顯示 hot 圖示所需帖數
4.不用緩存 , 沿用橫排的 query , 所有帖數即時更新
文件有錯 , 附件已更新
安裝方法:
[color=Red][b]第 1 步[/b][/color]
上傳附件 upload 中的所有檔案
[color=Red][b]第 2 步[/b][/color]
升級數據庫
[code]ALTER TABLE `cdb_forums` ADD `straightdisplay` SMALLINT( 1 ) NOT NULL DEFAULT '0';[/code]
[color=Red][b]第 3 步[/b][/color]
進行檔案修改
[color=Blue][b]index.php[/b][/color]
找
[code]$sql = !empty($accessmasks) ?[/code]
上加
[code]require_once './forumdata/cache/plugin_straightdisplay.php';
$display_one = $_DPLUGIN['straightdisplay']['vars']['display_one'];
$display_two= $_DPLUGIN['straightdisplay']['vars']['display_two'];
$display_three= $_DPLUGIN['straightdisplay']['vars']['display_three'];
$display_four= $_DPLUGIN['straightdisplay']['vars']['display_four'];
$hotpostrequire = $_DPLUGIN['straightdisplay']['vars']['hotpostrequire'];
$adv = $_DPLUGIN['straightdisplay']['vars']['adv'];
$straightstyle = $_DPLUGIN['straightdisplay']['vars']['straightstyle'];
if(empty($straightstyle) || $straightstyle=='random') {
$straightstyle = rand(1,3);
}[/code]
找(共兩個 , 需改兩次)
[code]SELECT f.fid, f.fup[/code]
後加
[code], f.straightdisplay[/code]
找
[code]$forumlist[$forum['fup']]['subforums'] .= '<a href="forumdisplay.php?fid='.$forum['fid'].'"><u>'.$forum['name'].'</u></a> ';[/code]
改為
[code]if($showforumlist=='default') {
$forumlist[$forum['fup']]['subforums'] .= '<a href="forumdisplay.php?fid='.$forum['fid'].'"><u>'.$forum['name'].'</u></a> ';
} else {
$forumlist[$forum['fup']]['subforums'] .= '<li><a href="forumdisplay.php?fid='.$forum['fid'].'" title="今日帖數:'.$forum['todayposts'].'
主題數目:'.$forum['threads'].'
帖子數目:'.$forum['posts'].'">'.$forum['name'].'</a></li>';
}[/code]
[color=Blue][b]discuz.htm[/b][/color]
由
[code]<!--{loop $catlist $key $cat}-->[/code]
至
[code]<!--{if !empty($advlist['intercat']) && $key < max(array_keys($catlist))}--><div style="clear: both; margin-top: 5px;"><!--{echo $advlist['intercat'][array_rand($advlist['intercat'])]}--></div><!--{else}--><br><!--{/if}-->
<!--{/if}-->
<!--{/loop}-->[/code]
的內容
改為
[code]<!--{if $gid || $showforumlist == 'default'}-->
{template forumlist_default}
<!--{else}-->
<!--{if $straightstyle==2}-->
{template forumlist_straightdisplay2}
<!--{elseif $straightstyle==3}-->
{template forumlist_straightdisplay3}
<!--{else}-->
{template forumlist_straightdisplay1}
<!--{/if}-->
<!--{/if}-->[/code]
[color=Red][b]第 4 步[/b][/color]
導入附件所附之插件碼 --- discuz_plugin_straightdisplay.txt
[color=Red][b]第 5 步[/b][/color]
直排的插件設置 , 調整你所需的設定
[color=Red][b]第 6 步[/b][/color]
回到首頁 , 點進社區直排管理平台
按直排管理平台 , 調整各版塊分類的行數 , 然後按提交 , 安裝完成~~
logo 設定:
請將風格 1 的 logo 上傳到 images/forum/style1
請將風格 2 的 logo 上傳到 images/forum/style2
請將風格 3 的 logo 上傳到 images/forum/style3
如你只需使用一種風格 , 其餘兩個可不理
[[i] 本帖最後由 邊個 於 2008-5-7 11:29 編輯 [/i]]
2008-5-7 11:08
teng
*** 作者被禁止或刪除 內容自動屏蔽 ***
2008-5-7 11:28
邊個
唔用緩存唔係簡單左咩:em141:
改少好多野架wor:titter:
2008-5-7 11:31
teng
*** 作者被禁止或刪除 內容自動屏蔽 ***
2008-5-7 11:44
邊個
[quote]原帖由 [i]teng[/i] 於 2008-5-7 11:31 發表 [url=http://www.alan888.com/Discuz/redirect.php?goto=findpost&pid=1207503&ptid=144513][img=13,13]http://www.alan888.com/Discuz/images/common/back.gif[/img][/url]
=3=你搞到後台好似萬能咁= =" [/quote]
方便 d 姐 , 唔洗下下改文件
已經有好多野冇加
2008-5-7 11:52
teng
*** 作者被禁止或刪除 內容自動屏蔽 ***
2008-5-7 13:50
edmuind007
十卜
好好用牙e個
返到屋企試下整下先:em32:
2008-5-8 19:57
小馬
如果我安裝了ntf 直排 v1.05 , 是否要移除之, 再安裝你這個直排??
2008-5-8 20:00
藍藍=]
唔錯=]:em32:
2008-5-9 11:34
邊個
[quote]原帖由 [i]小馬[/i] 於 2008-5-8 19:57 發表 [url=http://www.alan888.com/Discuz/redirect.php?goto=findpost&pid=1208136&ptid=144513][img=13,13]http://www.alan888.com/Discuz/images/common/back.gif[/img][/url]
如果我安裝了ntf 直排 v1.05 , 是否要移除之, 再安裝你這個直排?? [/quote]
可以將之前ge修改全部還原再跟呢個重改
數據庫升級方面是一樣的 , 所以不用重新升級
2008-5-9 12:55
小馬
:em32: 支持
感謝您之回答:em49:
2008-5-9 15:55
233062306
真係純支持了
2008-5-23 12:22
lyhui
請問有沒有6.0版本??
2008-7-29 04:50
Silencer
plugin_straightdisplay.php 是不是有問題呢
在社區直排管理有error
:em40:
pls help !!!
[code]function highlight_table(){ //reset table style first group_bg = new Array(); group_bg[]="gid"; group_bg[]="gid"; group_bg[]="gid"; group_bg[]="gid"; group_bg[]="gid"; group_bg[]="gid"; group_bg[]="gid"; group_bg[]="gid"; group_bg[]="gid"; group_bg[]="gid"; group_bg[]="gid"; for(i=0;i[/code]
[[i] 本帖最後由 Silencer 於 2008-7-29 05:01 編輯 [/i]]
2008-7-29 05:03
ccna
:em49: :em49: :em49: 請問有沒有6.0版本??:em27: :em27:
2008-7-30 00:45
Silencer
[quote]原帖由 [i]Silencer[/i] 於 2008-7-29 04:50 發表 [url=http://www.alan888.com/Discuz/redirect.php?goto=findpost&pid=1246120&ptid=144513][img=13,13]http://www.alan888.com/Discuz/images/common/back.gif[/img][/url]
plugin_straightdisplay.php 是不是有問題呢
在社區直排管理有error
:em40:
pls help !!!
function highlight_table(){ //reset table style first group_bg = new Array(); group_bg="gid"; group_bg ... [/quote]
有人可以幫忙嗎?
2008-10-8 18:09
牙俊〞
唔洗更新緩存..
吸引:em30:
2008-10-9 21:48
frankiemak
6.1用唔用到先+_+
2008-10-11 21:22
牙俊〞
[quote]原帖由 [i]frankiemak[/i] 於 2008-10-9 21:48 發表 [url=http://www.alan888.com/Discuz/redirect.php?goto=findpost&pid=1284170&ptid=144513][img=13,13]http://www.alan888.com/Discuz/images/common/back.gif[/img][/url]
6.1用唔用到先+_+ [/quote]
乜唔係有個6.1版啦咩:em36:
頁:
[1]
Powered by Discuz! Archiver 5.5.0
© 2001-2006 Comsenz Inc.