收藏本页
联系我们
论坛帮助

牛头网络技术论坛网管专区动网相关 → 把“我要发表”改回原版模式

垃圾帖子的防止方法 动网水印问题 sql里的字符替换方法 2003安全设置大全 短信检测提交问题

  共有627人关注过本帖树形打印

主题:把“我要发表”改回原版模式

帅哥,在线噢!
牛头

  1楼


头衔:站长
金币:5059
经验:6148
金钱:9145
等级:管理员
文章:572
精华:10
加为好友
发送短信
个性首页
把“我要发表”改回原版模式  发贴心情 Post By:2008-1-23 9:53:41 [只看该作者]

以下方法修改默认模板和风格.修改完成后,记得更新缓存,其它风格参考修改

第一步:打开当前使用样式文件,如: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" >&amp;nbsp;&amp;nbsp;</xsl:text>我要发表</a>
<div class="postlist">
<a title="发表一个新帖子" href="post.asp?action=new&amp;boardid={xml/boarddata/@boardid}&amp;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&amp;boardid={xml/boarddata/@boardid}&amp;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&amp;boardid={xml/boarddata/@boardid}&amp;stype=0" ><span><img src="css/cndw/images/post/vote_post.gif" border="0" /></span>新的投票</a><br />
<a title="发布一个小字报" href="infolist.asp?t=smallpaper&amp;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&amp;boardid={xml/boarddata/@boardid}&amp;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&amp;boardid={xml/boarddata/@boardid}&amp;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&amp;boardid={xml/boarddata/@boardid}&amp;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&amp;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" >&amp;nbsp;&amp;nbsp;</xsl:text>
<a href="javascript:;">我要发表</a>
<div class="postlist">
<a title="发表一个新帖子" href="post.asp?action=new&amp;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&amp;boardid={post/postinfo/@boardid}&amp;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&amp;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&amp;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&amp;boardid={post/postinfo/@boardid}&amp;id={post/postinfo/@topicid}&amp;star={post/postinfo/@star}&amp;page={post/postinfo/@page}&amp;guest=true&amp;TB_iframe=false&amp;height=655&amp;width=970">回复贴子</a>
</xsl:when>
<xsl:otherwise>
<a title="回复贴子" href="post.asp?action=re&amp;boardid={post/postinfo/@boardid}&amp;id={post/postinfo/@topicid}&amp;star={post/postinfo/@star}&amp;page={post/postinfo/@page}&amp;TB_iframe=false&amp;height=655&amp;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&amp;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&amp;boardid={post/postinfo/@boardid}&amp;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&amp;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&amp;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&amp;boardid={post/postinfo/@boardid}&amp;id={post/postinfo/@topicid}&amp;star={post/postinfo/@star}&amp;page={post/postinfo/@page}&amp;guest=true&amp;TB_iframe=false&amp;height=655&amp;width=970">回复贴子</a>
</xsl:when>
<xsl:otherwise>
<a title="回复贴子" href="post.asp?action=re&amp;boardid={post/postinfo/@boardid}&amp;id={post/postinfo/@topicid}&amp;star={post/postinfo/@star}&amp;page={post/postinfo/@page}&amp;TB_iframe=false&amp;height=655&amp;width=970">回复贴子</a>
</xsl:otherwise>
</xsl:choose>
</div>


在线咨询技术 [牛头][早起的鸟儿有虫吃!]
 牛头网电脑学院,尽显英雄本色 支持(0中立(0反对(0回到顶部