NoName Mobile

登录
NoName » Project Parasy » sai请进~请教PP首页的最新讨论和NOWHERE的显示条数怎么控制

sai请进~请教PP首页的最新讨论和NOWHERE的显示条数怎么控制

by mudct at 2008-11-24 18:39
请教PP首页的最新讨论和NOWHERE的显示条数怎么控制,默认的是20条。。。。。如何修改啊?
# 1 - Sai at 2008-11-25 23:34
include/cache.func.php
                case 'nowhere':
                        $table = 'plugin_now n';
                        $cols = 'n.*,mf.avatar';
                        $conditions = "LEFT JOIN {$tablepre}memberfields mf ON mf.uid=n.authorid ORDER BY dateline DESC LIMIT 30";
                        break;


case 'newthread':
                        $table = 'threads t';
                        $cols = 't.tid, t.fid, t.author,t.subject, t.dateline, t.lastpost, t.lastposter, t.views, t.replies,f.name,f.board_name, mf.avatar,mf.uid';
                        $conditions = "LEFT JOIN {$tablepre}forums f ON f.fid=t.fid LEFT JOIN {$tablepre}memberfields mf ON mf.uid=t.authorid WHERE t.displayorder!='-1' ORDER BY t.lastpost DESC LIMIT 0, 20";
                        break;

# 2 - mudct at 2008-11-26 10:46
非常感谢!!!(ll01) (ll01) (ll01) (ll01) (ll01) (ll01)
© 2007 NoNameMagazine