显示x3.2首页四格,需到后台启用。
1. 修改界面:目录\template\default\forum\discuz.htm
-修改图片大小 var slideImgsize = [318,240];
-最新主题 <ul class="category_newlist">
-最新回复 <div class="replaybox">
2. 修改数量:目录\source\module\forum\forum_index.php
-修改最新主题列出0-20 $grids['newthread'] = C::t('forum_thread')->fetch_all_for_guide('newthread', 0, array(), 0, 0, 0, 20, $_G['setting']['grid']['fids']);
-修改最新回复列出20-40 $grids['newreply'] = C::t('forum_thread')->fetch_all_for_guide('newthread', 0, array(), 0, 0, 20, 20, $_G['setting']['grid']['fids']);
-修改最新图片列出20 $images = C::t('forum_threadimage')->fetch_all_order_by_tid(20);
3. 修改图片:登入mysql threadimage
-修改最新图片
INSERT INTO `cdb_fi_forum_threadimage`(`tid`, `attachment`, `remote`) VALUES ('123','http://freeinfo.com.my/static/image/common/logo.png','0')
-去除data/attachment/forum 直接显示外部链接地址
目录\source\module\forum\forum_index.php
//$imageurl = $_G['setting']['attachurl'].'forum/'.$images[$ithread['tid']]['attachment'];
$imageurl = $images[$ithread['tid']]['attachment']; |