大马资讯论坛 - 马来西亚中文资讯平台

 找回密码
 注册
搜索

[教学] [教学] x3.2首页四格,自行修改,DIY内容一下

[复制链接]
发表于 2014-11-2 21:54:10 | 显示全部楼层 |阅读模式
显示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'];

手机版|大马资讯论坛  

GMT+8, 2024-3-29 22:22 , Processed in 0.176012 second(s), 12 queries , File On.

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表