Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

x1.5横排美化,显示:简介、版主、最后发表等教程

[复制链接]
zhanyong 发表于 2011-3-10 11:32:28 | 显示全部楼层 |阅读模式
Discuz!模板
适用版本: Discuz! X1.5
语言编码: GBK简体 UTF8简体 BIG5繁体 UTF8繁体 
风格转换者: 原创
本帖最后由 zhanyong 于 2011-3-10 11:33 编辑

不多说了,大家先看图



其实楼主在逛论坛上看到这么好的东西就扣出来,写了些,分享给大家

主要要修改一个模板/template/您的模板风格/forum/discuz.php

查找:

复制代码
替换:
  1. |<em class="xw0 xi0"> 今日: <font color="#FF3399">$forum[todayposts]</font>,帖子: <em>$forum[posts]</em></h2></dt>
  2. <!--{if $forum[description]}--><p class="xg2">简介:$forum[description]</p><!--{/if}-->
  3. <p><!--{if $forum['moderators']}--><p>{lang forum_moderators}:$forum[moderators]</p><!--{else}-->
  4. {lang forum_moderators}:<a href=您邀请斑竹的帖子链接><font color=Silver>诚邀斑竹</font></a>
  5. <!--{/if}--></dd><!--{if !$forum['redirect']}--><!--{/if}--><dd>
复制代码

再查找:
  1. <!--{if $cat['forumcolumns'] < 3}-->
  2. <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum[lastpost][subject], 30)}--></a> <cite>$forum[lastpost][dateline] <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}--></cite>
复制代码
替换:
  1. <!--{if $cat['forumcolumns'] < 4}-->
  2. 最新:<a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutst($forum[lastpost][subject], 17)}--></a>
  3. <cite>$forum[lastpost][dateline] <!--{if $forum['lastpost']['author']}--><!--{else}-->{lang anonymous}
  4. <!--{/if}--></cite>
复制代码

注:标记红色的地方都是您可以修改的地方

淘客联盟中国站祝愿各位的站越来越旺!




本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
 楼主| zhanyong 发表于 2011-3-10 11:35:12 | 显示全部楼层
广告位招租
淘客联盟中国站http://www.taoke-cn.cn/
专业为网络淘客联盟成员提供资讯与解决方案的站点
回复

使用道具 举报

wozhaoying 发表于 2011-3-10 11:47:00 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

lxp922 发表于 2011-3-12 12:18:00 | 显示全部楼层
回复

使用道具 举报

 楼主| zhanyong 发表于 2011-3-18 12:28:29 | 显示全部楼层
(EM:148:)(EM:148:)(EM:148:)(EM:148:)(EM:148:)
回复

使用道具 举报

zxm360 发表于 2011-3-18 12:42:44 | 显示全部楼层
我现在期待x2
回复

使用道具 举报

一起来合租 发表于 2011-3-18 12:43:41 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

zxm360 发表于 2011-3-19 06:10:55 | 显示全部楼层
顶了在看
回复

使用道具 举报

maikency 发表于 2011-3-23 22:09:18 | 显示全部楼层
楼主,有两个问题:
1.没有discuz.php这个文件,应该是discuz.htm吧?
2.第一段代码为空白呀,应该是什么?

期待您回答上述两个问题,谢谢。
回复

使用道具 举报

kaqiusacn 发表于 2011-3-23 22:27:22 | 显示全部楼层
第一段是查找什么呀
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-9-22 07:14 , Processed in 0.132457 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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