经过修改,终于把单调的查看页面丰富了,参考:
http://www.lubesale.com/?2/viewspace-2931.html
目前头疼的是,内容页面底部的广告出现两个,不知道修改哪个地方。
把下面代码完整替换blog_view模板代码就可以。
7.4日主要更改了板块的颜色,并对网站的其他板块做了修改,提高了用户的信息浏览量和互动效果。
- <?exit?>
- <!--{eval include template($type."_header");}-->
- <link id="commonstyle" rel="stylesheet" type="text/css" href="{S_URL}/css/space.css" />
- <!-- Content内容 -->
- <div class="content topcontent">
- <div class="mainarea">
- <p id="nav">您的位置:<a href="$siteurl/" target="_blank">$_SCONFIG[sitename]</a>
- » <a href="#uid/$uid#">$space[spacename]</a>
- » $thepagename
- </p>
- <!--{if !empty($_SCONFIG['viewadcenter'])}-->
- <div class="adbox">
- $_SCONFIG[viewadcenter]
- </div>
- <!--{/if}-->
- <!--{if !empty($showtplfile)}-->
- <div id="show"><!--{eval include template($showtplfile, 1);}--></div>
- <!--{/if}-->
-
- </div>
- <div class="side">
- <!-- 用户面板 -->
- <div id="userpanel">
- <script src="{S_URL}/batch.panel.php?rand={eval echo rand(1, 999999)}" type="text/javascript" language="javascript"></script>
- </div>
- <div id="spacestar">
- <h3>推荐企业</h3>
- <!--{block name="userspace" parameter="isstar/1/showdetail/1/order/u.lastpost DESC/limit/0,5/cachetime/94400/cachename/spacestar/tpl/data"}-->
- <ul>
- <!--{loop $_SBLOCK['spacestar'] $value}-->
- <li>
- <div><a href="$value[url]" title="$value[username]"><img src="$value[photo]" alt="$value[spacename]" /></a></div>
- </li>
- <!--{/loop}-->
- </ul>
- </div>
-
- <!-- 同城空间 -->
- <div id="cityspace" class="block cleanblock">
- <script language="javascript" type="text/javascript" src="{S_URL}/include/js/city.js"></script>
- <form action="{S_URL}/batch.search.php" method="post">
- <script language="javascript" type="text/javascript">showprovince('province', 'city', '');</script><script language="javascript" type="text/javascript">showcity('city', '');</script>
- <button value="true" type="submit" name="usersearch">同城空间</button>
- </form>
- </div>
- <div class="block topblock">
- <h3>本文作者</h3>
- <div id="avatar" class="xspace-sideblock"><div id="xspace-avatar"><img src="$space[photo]" alt="$space[username]" class="xspace-imgstyle" />
- <p><a href="#uid/$uid/action/viewpro/showpro/1#">$space[username]</a></p></div></div>
- </div>
- <!--{if !empty($_SCONFIG['viewadsidebar'])}-->
- <div class="block">
- <h3>网络推荐</h3>
- <div style="text-align:center;padding:0.5em;">$_SCONFIG[viewadsidebar]</div>
- </div>
- <!--{/if}-->
- <!--站内热门BLOG列表(一周)-->
- <!--{block name="spaceblog" parameter="lastpost/604800/order/i.replynum DESC/limit/0,10/cachetime/15400/subjectlen/30/subjectdot/1/cachename/replyhot/tpl/data"}-->
- <div class="block blockG" style="height: 260px; overflow: hidden;">
- <h3>业界推荐</h3>
- <ul>
- <!--{loop $_SBLOCK['replyhot'] $value}-->
- <li><a href="$value[url]">$value[subject]</a> <span class="smalltxt"><a href="#uid/$value[uid]#" target="_blank">$value[username]</a></span></li>
- <!--{/loop}-->
- </ul>
- </div>
-
- <!--{block name="spacefile" parameter="order/i.lastpost DESC/limit/0,10/subjectlen/34/subjectdot/1/cachetime/13400/cachename/hotreplyfile/tpl/data"}-->
- <div class="block" style="height: 260px; overflow: hidden;">
- <h3>热门下载</h3>
- <ul>
- <!--{loop $_SBLOCK['hotreplyfile'] $value}-->
- <li>
- <a href="$value[url]" target="_blank">$value[subject]</a>
- <span class="smalltxt"><a href="#uid/$value[uid]#" target="_blank">$value[username]</a></span>
- </li>
- <!--{/loop}-->
- </ul>
- </div>
- <!--最新上架商品-->
- <!--{block name="spacegoods" parameter="order/i.dateline DESC/limit/0,10/subjectlen/30/subjectdot/1/showdetail/1/cachetime/11900/cachename/weekcommendgoods/tpl/data"}-->
- <div class="block blockG" style="height: 260px; overflow: hidden;">
- <h3>最新商品</h3>
- <ul>
- <!--{loop $_SBLOCK['weekcommendgoods'] $value}-->
- <li>
- <a href="$value[url]" target="_blank" title="{$value[subjectall]} {$value[province]}{$value[city]}">$value[subject]</a>
- <span class="smalltxt">$value[price]元</span>
- </li>
- <!--{/loop}-->
- </ul>
- </div>
- <!--月度好评图-->
- <!--{block name="spaceimage" parameter="dateline/25920000/order/i.lastpost DESC/limit/0,10/cachetime/57400/subjectlen/26/subjectdot/1/showdetail/1/cachename/specialimage/tpl/data"}-->
- <div class="block" style="height: 260px; overflow: hidden;">
- <h3>图文欣赏</h3>
- <ul>
- <!--{loop $_SBLOCK['specialimage'] $value}-->
- <li>
- <a href="$value[url]" target="_blank" title="$value[subjectall]">$value[subject]</a>
- <span class="smalltxt"><a href="#uid/$value[uid]#" target="_blank">$value[username]</a> / $value[imagenum]图</span>
- </li>
- <!--{/loop}-->
- </ul>
- </div>
- <!--推荐影音 等级为4 -->
- <!--{block name="spacevideo" parameter="order/i.goodrate DESC/limit/0,10/cachetime/64400/subjectlen/30/subjectdot/1/cachename/gradevideo/tpl/data"}-->
- <div class="block blockG" style="height: 260px; overflow: hidden;">
- <h3>影视培训</h3>
- <ul>
- <!--{loop $_SBLOCK['gradevideo'] $value}-->
- <li><a href="$value[url]" target="_blank" title="$value[subjectall]">$value[subject]</a></li>
- <!--{/loop}-->
- </ul>
- </div>
- </div>
- </div>
- <!-- /Content -->
- <!--{if !empty($_SCONFIG['viewadfooter'])}-->
- <div class="adbox">$_SCONFIG[viewadfooter]</div>
- <!--{/if}-->
- <script language="javascript" type="text/javascript">
- <!--
- addMediaAction('articlebody');
- addImgLink("articlebody");
- <!--屏蔽以下代码
- //-->
- </script>
- <!--{if !empty($_SCONFIG['viewadfloating']) || !empty($_SCONFIG['viewadside'])}-->
- <script language="javascript" type="text/javascript" src="{S_URL}/include/js/floatadv.js"></script>
- <script language="javascript" type="text/javascript">
- <!--
- <!--{if !empty($_SCONFIG['viewadfloating'])}-->
- var lengthobj = getWindowSize();
- lsfloatdiv('floatAdv', 0, 0, "<div style="position: absolute; right: 6px; bottom: -"+lengthobj.winHeight+"px;"><!--{eval echo jsstrip($_SCONFIG['viewadfloating']);}--><\/div>").floatIt();
- <!--{/if}-->
- <!--{if !empty($_SCONFIG['viewadside'])}-->
- lsfloatdiv('coupleBannerAdv', 0, 0, "<div style="position: absolute; left: 6px; top: 6px;"><!--{eval echo jsstrip($_SCONFIG['viewadside']);}--><br \/><img src="{S_URL}/images/base/advclose.gif" onMouseOver="this.style.cursor='hand'" onClick="closeBanner('coupleBannerAdv');"><\/div><div style="position: absolute; right: 6px; top: 6px;"><!--{eval echo jsstrip($_SCONFIG['viewadside']);}--><br \/><img src="{S_URL}/images/base/advclose.gif" onMouseOver="this.style.cursor='hand'" onClick="closeBanner('coupleBannerAdv');"><\/div>").floatIt();
- <!--{/if}-->
- //-->
- </script>
- <!--{/if}-->
- -->
- {template site_footer}
复制代码
[ 本帖最后由 saleroad 于 2007-7-4 17:59 编辑 ] |