以下方法修改默认模板和风格.修改完成后,记得更新缓存,其它风格参考修改
第一步:打开当前使用样式文件,如:Css\cndw\pub_cndw.css
找到:
------------发帖部分改动过 (注意) -------------
*/
.post_button {margin-left:86px !important; margin-left:43px;width:82px; height:28px; float:left; overflow:hidden; line-height:28px;}
.post_button a{ background:url("./images/post/post_bg.gif") no-repeat; height:28px; line-height:30px; width:82px; display:block; float:left; margin-right:2px; text-align:center; text-decoration: none; }
.post_button a:hover{ background:url("./images/post/post_bg2.gif") no-repeat; text-decoration : none;}
.floatCenter {position: fixed;background: #ffffff;z-index: 102;color:#000000;border: 1px solid #9cc3d9;text-align:left;top:50%;left:50%;}
下面添加:
.post_button1 {width:82px; height:28px; float:left; overflow:hidden; line-height:28px;}
.post_button1 a{ background:url("./images/post/post_bg.gif") no-repeat; height:28px; line-height:30px; width:82px; display:block; float:left; margin-right:2px; text-align:center; text-decoration: none; }
.post_button1 a:hover{ background:url("./images/post/post_bg2.gif") no-repeat; text-decoration : none;}
.post_button2 {margin-left:4px;width:82px; height:28px; float:left; overflow:hidden; line-height:28px;}
.post_button2 a{ background:url("./images/post/post_bg.gif") no-repeat; height:28px; line-height:30px; width:82px; display:block; float:left; margin-right:2px; text-align:center; text-decoration: none; }
.post_button2 a:hover{ background:url("./images/post/post_bg2.gif") no-repeat; text-decoration : none;}
第二步:后台>风格界面>风格界面模板总管理>page_index界面风格>template.html(1)
找到:
<div class="nav" style="float:left;">
<ul>
<li class="menu2" onmouseover="this.className='menu1'" onmouseout="this.className='menu2'"><a href="javascript:;"><xsl:text disable-output-escaping="yes" >&nbsp;&nbsp;</xsl:text>我要发表</a>
<div class="postlist">
<a title="发表一个新帖子" href="post.asp?action=new&boardid={xml/boarddata/@boardid}&stype=0" ><span><img src="css/cndw/images/post/new_post.gif" border="0" /></span>新的主题</a><br />
<xsl:if test="
xml/forum_setting/@postalipay=1">
<a title="发起一个用QQ财付通交易的交易贴!" href="post.asp?action=new&boardid={xml/boarddata/@boardid}&stype=1" ><span><img src="css/cndw/images/post/shop_post.gif" border="0" /></span>新交易贴</a><br />
</xsl:if>
<a title="发起一个新投票" href="post.asp?action=vote&boardid={xml/boarddata/@boardid}&stype=0" ><span><img src="css/cndw/images/post/vote_post.gif" border="0" /></span>新的投票</a><br />
<a title="发布一个小字报" href="infolist.asp?t=smallpaper&boardid={xml/boarddata/@boardid}"><span><img src="css/cndw/images/post/sp_post.gif" border="0" /></span>新小字报</a><br />
</div>
</li>
</ul>
</div>
替换为:
<div class="nav" style="float:left;">
<div class="post_button1"><a title="发表一个新帖子" href="post.asp?action=new&boardid={xml/boarddata/@boardid}&stype=0" ><span><img src="css/cndw/images/post/new_post.gif" border="0" /></span>新的主题</a></div>
<xsl:if test="
xml/forum_setting/@postalipay=1">
<div class="post_button2"><a title="发起一个用QQ财付通交易的交易贴!" href="post.asp?action=new&boardid={xml/boarddata/@boardid}&stype=1" ><span><img src="css/cndw/images/post/shop_post.gif" border="0" /></span>新交易贴</a></div>
</xsl:if>
<div class="post_button2"><a title="发起一个新投票" href="post.asp?action=vote&boardid={xml/boarddata/@boardid}&stype=0" ><span><img src="css/cndw/images/post/vote_post.gif" border="0" /></span>新的投票</a></div>
<div class="post_button2"><a title="发布一个小字报" href="infolist.asp?t=smallpaper&boardid={xml/boarddata/@boardid}"><span><img src="css/cndw/images/post/sp_post.gif" border="0" /></span>新小字报</a></div>
</div>
第三步:后台>风格界面>风格界面模板总管理>page_dispbbs界面风格>template.html(0)
找到:
<div class="nav">
<ul>
<li class="menu2" onmouseover="this.className='menu1'" onmouseout="this.className='menu2'">
<xsl:text disable-output-escaping="yes" >&nbsp;&nbsp;</xsl:text>
<a href="javascript:;">我要发表</a>
<div class="postlist">
<a title="发表一个新帖子" href="post.asp?action=new&boardid={post/postinfo/@boardid}"><span><img src="css/cndw/images/post/new_post.gif" border="0" /></span>新的主题</a><br />
<xsl:if test="
/post/setting/@postalipay=1">
<a title="发起一个用QQ财付通交易的交易贴!" href="post.asp?action=new&boardid={post/postinfo/@boardid}&stype=1"><span><img src="css/cndw/images/post/shop_post.gif" border="0" /></span>新交易贴</a><br />
</xsl:if>
<a title="发起一个新投票" href="post.asp?action=vote&boardid={post/postinfo/@boardid}"><span><img src="css/cndw/images/post/vote_post.gif" border="0" /></span>新的投票</a><br />
<a title="发布一个小字报" href="infolist.asp?t=smallpaper&boardid={post/postinfo/@boardid}"><span><img src="css/cndw/images/post/sp_post.gif" border="0" /></span>新小字报</a><br />
</div>
</li>
</ul>
</div>
<div class="post_button">
<xsl:choose>
<xsl:when test="
post/postinfo/@postuserid =0">
<a title="回复贴子" href="post.asp?action=re&boardid={post/postinfo/@boardid}&id={post/postinfo/@topicid}&star={post/postinfo/@star}&page={post/postinfo/@page}&guest=true&TB_iframe=false&height=655&width=970">回复贴子</a>
</xsl:when>
<xsl:otherwise>
<a title="回复贴子" href="post.asp?action=re&boardid={post/postinfo/@boardid}&id={post/postinfo/@topicid}&star={post/postinfo/@star}&page={post/postinfo/@page}&TB_iframe=false&height=655&width=970">回复贴子</a>
</xsl:otherwise>
</xsl:choose>
</div>
替换为:
<div class="nav" style="float:left;">
<div class="post_button1"><a title="发表一个新帖子" href="post.asp?action=new&boardid={post/postinfo/@boardid}"><span><img src="css/cndw/images/post/new_post.gif" border="0" /></span>新的主题</a></div>
<xsl:if test="
/post/setting/@postalipay=1">
<div class="post_button2"><a title="发起一个用QQ财付通交易的交易贴!" href="post.asp?action=new&boardid={post/postinfo/@boardid}&stype=1"><span><img src="css/cndw/images/post/shop_post.gif" border="0" /></span>新交易贴</a></div>
</xsl:if>
<div class="post_button2"><a title="发起一个新投票" href="post.asp?action=vote&boardid={post/postinfo/@boardid}"><span><img src="css/cndw/images/post/vote_post.gif" border="0" /></span>新的投票</a></div>
<div class="post_button2"><a title="发布一个小字报" href="infolist.asp?t=smallpaper&boardid={post/postinfo/@boardid}"><span><img src="css/cndw/images/post/sp_post.gif" border="0" /></span>新小字报</a></div>
</div>
<div class="post_button2">
<xsl:choose>
<xsl:when test="
post/postinfo/@postuserid =0">
<a title="回复贴子" href="post.asp?action=re&boardid={post/postinfo/@boardid}&id={post/postinfo/@topicid}&star={post/postinfo/@star}&page={post/postinfo/@page}&guest=true&TB_iframe=false&height=655&width=970">回复贴子</a>
</xsl:when>
<xsl:otherwise>
<a title="回复贴子" href="post.asp?action=re&boardid={post/postinfo/@boardid}&id={post/postinfo/@topicid}&star={post/postinfo/@star}&page={post/postinfo/@page}&TB_iframe=false&height=655&width=970">回复贴子</a>
</xsl:otherwise>
</xsl:choose>
</div>