本帖最后由 PHP学生 于 2009-4-1 03:13 编辑
我昨天晚上下载了平湖信息模板用了下,发现里面很多调用都是手工写的,非自动调用,非常不适合用户默认使用;因此本人将正确的调用在此分享下.另外我这里附一份我已经修正了的CSS,下载前请先看我修改了哪里?修改有何意义等..........当然我鼓励您按照我的步骤手动修改!
1.首先修正咨讯查看位置为自动判断:
打开news_view.html.php news_category.html.php
分别查找:- <h3>您的位置:<a href="/">$_SCONFIG[sitename]</a>
- >>
- <!--{if $thecat[subcatid] == '1' }-->合肥新闻<!--{elseif $thecat[subcatid] == '2' }-->文化娱乐<!--{elseif $thecat[subcatid] == '12' }-->汽车频道<!--{elseif $thecat[subcatid] == '10' }-->餐饮美食<!--{elseif $thecat[subcatid] == '13' }-->旅游资讯<!--{elseif $thecat[subcatid] == '14' }-->家装话题<!--{elseif $thecat[subcatid] == '15' }-->房产频道<!--{elseif $thecat[subcatid] == '20' }-->数码电子<!--{/if}-->
- </h3>
复制代码 修改为:
- <h3>您的位置:<a href="{S_URL}">$_SCONFIG[sitename]</a>
- <!--{loop $guidearr $value}-->
- >> <a href="$value[url]">$value[name]</a>
- <!--{/loop}-->
- </h3>
复制代码 2.资讯页面漏掉热门标签,增加标签方法:
打开news_index.html.php
查找:- </div>
- </div><!--col_710主体左侧 end-->
-
- <div class="box_r col_230">
- <!--广告区-->
-
- <div class="newsside_glo_module news_stx_list">
- <h3>广告招租</h3>
- <div class="newsside_glo_content">
- <ul>
-
- </ul>
- </div>
- </div>
复制代码 下加:
- <!--热门标签显示-->
- <!--{block name="tag" parameter="order/spacenewsnum DESC/limit/0,30/cachetime/88008/cachename/hottag/tpl/data"}-->
- <div class="global_module margin_bot10 bg_fff">
- <div class="newsside_glo_module news_stx_list"><h3>热门标签</h3></div>
- <ul class="tag_list clearfix">
- <!--{loop $_SBLOCK['hottag'] $value}-->
- <li><a href="$value[url]">$value[tagname]</a>($value[spacenewsnum])</li>
- <!--{/loop}-->
- </ul>
- </div>
复制代码 3.增加热门标签防错位CSS修改:
打开您的平湖模板目录中css的common.css文件,在最底部增加以下CSS:- /* tag list */
- .tag_list { padding-left:15px;}
- .tag_list li { display:inline; float:left; margin-right:8px; white-space:nowrap; line-height:25px; }
复制代码 4.修正用户个人中心页面函数错误与错位现象,新增加系统广告位:
打开space.html.php
将原代码:- <?exit?>
- <!--{template header}-->
- <div id="pagebody">
- <div id="pagebody_extbg">
- <div class="column">
- <div id="user_info">
- <h1>用户信息</h1>
- <div class="userinfo_content">
- <div class="box_l">
- <dl>
- <dt><img src="{UC_API}/avatar.php?uid=$member[uid]&size=big" alt="" /></dt>
- <dd>
- <h2>用 户 名:$member['username']</h2>
- <p>用 户 组:<!--{eval echo $_SGLOBAL['grouparr'][{$member['groupid']}]['grouptitle']}--> </p>
- <p>注册日期:$member['dateline']</p>
- <p>最后发表:$member['updatetime']</p>
- <p>上次访问:$member['lastlogin']</p>
- </dd>
- </dl>
- </div>
- <div class="box_r">
- <h3>$member['username'] 发布的资讯</h3>
- <!--{if $list}-->
- <ul>
- <!--{loop $list $value}-->
- <li><span>#date('m.d', $value['dateline'])#</span><a href="$value[url]" target="_blank">$value[subject]</a></li>
- <!--{/loop}-->
- </ul>
- <!--{if $multipage}-->
- $multipage
- <!--{/if}-->
- <!--{else}-->
- <ul>
- <li>此用户尚未发表资讯</li>
- </ul>
- <!--{/if}-->
- </div>
- </div>
- </div><!--register end-->
- </div><!--column end-->
- </div>
- </div><!--pagebody end-->
- <!--{template footer}-->
复制代码 替换为:- <?exit?>
- <!--{template header}-->
- <!--{eval $ads = getad('system', 'space', '1'); }-->
- <!--{if !empty($ads['pageheadad']) }-->
- <div class="ad_header">$ads[pageheadad]</div>
- <!--{/if}-->
- </div><!--header end-->
- <div class="column" id="blog_detail">
- <!--{if !empty($ads['pagecenterad'])}-->
- <div class="ad_mainbody">$ads[pagecenterad]</div>
- <!--{/if}-->
- <div class="box_l">
- <div class="global_module margin_bot10">
- <div class="global_module2_caption"><h3>作者</h3></div>
- <div class="blog_user">
- <a href="{S_URL}/space.php?uid=$member[uid]"><img src="{UC_API}/avatar.php?uid=$member[uid]" alt="" /></a><br/>
- <a href="{S_URL}/space.php?uid=$member[uid]">$member[username]</a><br />
- <div class="user_group">
- 用户组:<!--{if $member['groupid']}--><!--{eval echo $_SGLOBAL['grouparr'][{$member['groupid']}]['grouptitle']}--><!--{else}-->-<!--{/if}--><br />
- 开通时间:$member[dateline]<br />
- 更新时间:$member[updatetime]<br />
- 上次登陆时间:$member[lastlogin]
- </div>
- </div>
- </div>
- <!--{if !empty($ads['siderad'])}-->
- <div class="global_module margin_bot10 bg_fff">
- <div class="global_module2_caption"><h3>网络资源</h3></div>
- <div class="ad_sidebar">
- $ads[siderad]
- </div>
- </div>
- <!--{/if}-->
- </div><!--box_l end-->
-
- <div class="box_r bg_fff">
- <div id="user_tab_caption">
- <a<!--{if $_GET['op'] == 'news'}--> class="current"<!--{/if}--> href="#uid/$_GET[uid]/op/news#">资讯</a>
- <!--{if uchome_exists() && !in_array('uchblog', $_SCONFIG['closechannels'])}-->
- <a<!--{if $_GET['op'] == 'uchblog'}--> class="current"<!--{/if}--> href="#uid/$_GET[uid]/op/uchblog#">日志</a>
- <!--{/if}-->
- <!--{if uchome_exists() && !in_array('uchphoto', $_SCONFIG['closechannels'])}-->
- <a<!--{if $_GET['op'] == 'uchphoto'}--> class="current"<!--{/if}--> href="#uid/$_GET[uid]/op/uchphoto#">相册</a>
- <!--{/if}-->
- <!--{if discuz_exists() && !in_array('bbs', $_SCONFIG['closechannels'])}-->
- <a<!--{if $_GET['op'] == 'bbs'}--> class="current"<!--{/if}--> href="#uid/$_GET[uid]/op/bbs#">论坛</a>
- <!--{/if}-->
- </div>
-
- <!--{if $_GET['op'] == 'uchblog' && uchome_exists() && !in_array('uchblog', $_SCONFIG['closechannels'])}-->
- <!--{block name="uchblog" parameter="uid/$_GET['uid']/order/dateline DESC/perpage/20/cachetime/3600/showdetail/1/messagelen/200/messagedot/1/cachename/infobody"}-->
- <!--{elseif $_GET['op'] == 'uchphoto' && uchome_exists() && !in_array('uchphoto', $_SCONFIG['closechannels'])}-->
- <!--{block name="uchphoto" parameter="uid/$_GET['uid']/order/updatetime DESC/perpage/6/subjectlen/30/messagedot/0/cachetime/3600/cachename/infobody"}-->
- <!--{elseif $_GET['op'] == 'bbs' && discuz_exists() && !in_array('bbs', $_SCONFIG['closechannels'])}-->
- <!--{block name="bbsthread" parameter="authorid/$_GET['uid']/order/dateline DESC/perpage/20/cachetime/3600/showdetail/1/messagelen/200/messagedot/1/cachename/infobody"}-->
- <!--{else}-->
- <!--{block name="spacenews" parameter="uid/$_GET['uid']/order/i.dateline DESC/perpage/20/cachetime/3600/showdetail/1/messagelen/200/messagedot/1/cachename/infobody"}-->
- <!--{/if}-->
-
- <!--{if $_GET['op'] == 'uchphoto'}-->
-
- <div class="global_module user_photolist">
- <div class="clearfix">
- <!--{loop $_SBLOCK['infobody'] $key $value}-->
- <dl>
- <dt><div><a href="$value[url]"><img src="$value[pic]" alt="" /></a></div></dt>
- <dd>
- <h5><a href="$value[url]">$value[albumname]</a></h5>
- <p><a href="{S_URL}/space.php?uid=$value[uid]">$value[username]</a> $value[picnum]张照片</p>
- <p>
- 创建:
- <!--{if ($_SGLOBAL['timestamp'] - $value['dateline']) > 86400}-->
- #date("Y-m-d", $value[dateline])#
- <!--{else}-->
- <!--{eval echo intval(($_SGLOBAL['timestamp'] - $value['dateline']) / 3600 + 1);}-->小时之前
- <!--{/if}-->
- </p>
- <p>更新:
- <!--{if ($_SGLOBAL['timestamp'] - $value['dateline']) > 86400}-->
- #date("Y-m-d", $value[updatetime])#
- <!--{else}-->
- <!--{eval echo intval(($_SGLOBAL['timestamp'] - $value['dateline']) / 3600 + 1);}-->小时之前
- <!--{/if}--></p>
- </dd>
- </dl>
- <!--{/loop}-->
- </div>
-
- <!--{if !empty($_SBLOCK[infobody_multipage])}-->
- $_SBLOCK[infobody_multipage]
- <!--{/if}-->
-
- <!--{if empty($_SBLOCK['infobody'])}-->
- <div class="user_no_body">此用户尚未发表信息</div>
- <!--{/if}-->
- </div>
- <!--{else}-->
- <div class="global_module user_blog">
- <!--{loop $_SBLOCK['infobody'] $key $value}-->
- <!--{if $_GET['op'] == 'bbs'}--><!--{eval $value['replynum'] = $value['replies'];}--><!--{/if}-->
- <div class="user_blog_list">
- <h5><a href="$value['url']">$value['subject']</a></h5>
- <p>$value['message']</p>
- <p class="user_blog_op"><a class="more" href="$value['url']">点击此处查看原文</a>
- <span>
- <!--{if ($_SGLOBAL['timestamp'] - $value['dateline']) > 86400}-->
- #date("Y-m-d", $value[dateline])#
- <!--{else}-->
- <!--{eval echo intval(($_SGLOBAL['timestamp'] - $value['dateline']) / 3600 + 1);}-->小时之前
- <!--{/if}--> |
- <!--{if $_GET['op'] == 'bbs'}-->
- 评论($value['replies']) | 阅读($value['views'])
- <!--{else}-->
- 评论($value['replynum']) | 阅读($value['viewnum'])
- <!--{/if}-->
-
- </span></p>
- </div>
- <!--{/loop}-->
-
- <!--{if !empty($_SBLOCK[infobody_multipage])}-->
- $_SBLOCK[infobody_multipage]
- <!--{/if}-->
-
- <!--{if empty($_SBLOCK['infobody'])}-->
- <div class="user_no_body">此用户尚未发表信息</div>
- <!--{/if}-->
- </div>
- <!--{/if}-->
- </div>
- </div><!--column end-->
- <!--{if !empty($ads['pagefootad'])}-->
- <div class="ad_pagebody">$ads[pagefootad]</div>
- <!--{/if}-->
- <!--{if !empty($ads['pagemovead']) || !empty($ads['pageoutad'])}-->
- <!--{if !empty($ads['pagemovead'])}-->
- <div id="coupleBannerAdv" style="z-index: 10; position: absolute; width:100px;left:10px;top:10px;display:none">
- <div style="position: absolute; left: 6px; top: 6px;">
- $ads[pagemovead]
- <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;">
- $ads[pagemovead]
- <br />
- <img src="{S_URL}/images/base/advclose.gif" onMouseOver="this.style.cursor='hand'" onClick="closeBanner('coupleBannerAdv');">
- </div>
- </div>
- <!--{/if}-->
- <!--{if !empty($ads['pageoutad'])}-->
- <div id="floatAdv" style="z-index: 10; position: absolute; width:100px;left:10px;top:10px;display:none">
- <div id="floatFloor" style="position: absolute; right: 6px; bottom:-700px">
- $ads[pageoutad]
- </div>
- </div>
- <!--{/if}-->
- <script type="text/javascript" src="{S_URL}/include/js/floatadv.js"></script>
- <script type="text/javascript">
- <!--{if !empty($ads['pageoutad'])}-->
- var lengthobj = getWindowSize();
- lsfloatdiv('floatAdv', 0, 0, 'floatFloor' , -lengthobj.winHeight).floatIt();
- <!--{/if}-->
- <!--{if !empty($ads['pagemovead'])}-->
- lsfloatdiv('coupleBannerAdv', 0, 0, '', 0).floatIt();
- <!--{/if}-->
- </script>
- <!--{/if}-->
- <!--{if !empty($ads['pageoutindex'])}-->
- $ads[pageoutindex]
- <!--{/if}-->
- <!--{template footer}-->
复制代码 5.防止页面错位,在您的平湖风格目录下打开CSS文件中common.css的底下增加:- /*============================================= user info pages style */
- .user_photolist { border-top:none; background:#FFF; }
- #user_tab_caption { height:31px; overflow:hidden; background:url(../images/solid_bg.gif) repeat-x 0 100%; }
- #user_tab_caption a { display:block; float:left; width:65px; overflow:hidden; margin-right:3px; background:url(../images/user_info_tab_bg.gif) no-repeat; text-align:center; line-height:31px; }
- #user_tab_caption .current { background-position:0 -30px;}
- .user_photolist_caption { height:25px; overflow:hidden; margin:0 15px 0; padding-top:15px; background:url(../images/dashed_bg.gif) repeat-x 0 39px; color:#666; }
- .user_photolist_caption .box_l { width:500px!important; }
- .user_photolist_caption .more { float:right; }
- .user_photolist .clearfix { margin-bottom:15px;}
- .user_photolist p a { color:#369; }
- .user_photolist dl { display:inline; float:left; width:350px; height:105px; overflow:hidden; margin:15px 15px 0 15px; }
- .user_photolist dl dt { float:left; }
- .user_photolist dl dt div { display:table-cell; *display:block; width:102px; height:104px; *height:102px; overflow:hidden; border:1px solid #E0E9F2; background:#FFF; text-align:center; vertical-align:middle; *font-size:85px; }
- .user_photolist dl dd { float:right; width:240px; }
- .user_photolist dl dd h5, .user_photolist dl dd p { padding-bottom:6px;}
- .user_blog { min-height:270px; padding-top:10px; border-top:none; background:#FFF; }
- .user_blog_list { margin:0 15px 10px; padding-bottom:5px; background:url(../images/dashed_bg.gif) repeat-x 0 100%; line-height:20px; }
- .user_blog_list h5 { padding-bottom:5px; font-size:14px; font-weight:400; }
- .user_blog_list a { color:#369; }
- .user_blog_tag { color:#999; }
- .user_blog_tag a { color:#D7121C; text-decoration:underline; }
- .user_blog_list p { padding-bottom:5px; }
- .user_blog_op { color:#369; text-align:right; }
- .user_blog_op a { text-decoration:underline; }
- .user_blog_op .more { float:left; }
- .user_no_body { padding:114px 0; color:#999; font-weight:700; font-size:18px; text-align:center; }
复制代码 6.修正用户控制面版为自动判断:
打开batch.panel.php
查找代码:- print <<<END
- function contributeop() {
- if($('contribute_op').style.display != 'block') {
- $('contribute_op').style.display = 'block';
- } else {
- $('contribute_op').style.display = 'none';
- }
- }
- function hidendivop(){
- $('contribute_op').style.display = 'none';
- }
- document.write('<div class="login_ext">');
- document.write('<p>欢迎回来 <a href="http://home.pinghu.net/space.php?uid=$uid">$_SGLOBAL[supe_username]</a> [<a href="$siteurl/batch.login.php?action=logout">$blang[safe_logout]</a>]');
- document.write('<a href="http://home.pinghu.net/space.php?uid=$uid" target="_blank">$blang[my_space]</a>');
- document.write('| <a href="$siteurl/admincp.php" target="_blank">管理我的信息</a>');
- document.write('</div>');
- END;
- } else {
复制代码 7.替换为:- print <<<END
- function contributeop() {
- if($('contribute_op').style.display != 'block') {
- $('contribute_op').style.display = 'block';
- } else {
- $('contribute_op').style.display = 'none';
- }
- }
- function hidendivop(){
- $('contribute_op').style.display = 'none';
- }
- document.write('<div class="login_ext">');
- document.write('<p>欢迎回来 <a href="$siteurl/space.php?uid=$uid">$_SGLOBAL[supe_username]</a> [<a href="$siteurl/batch.login.php?action=logout">$blang[safe_logout]</a>]');
- document.write('<a href="$siteurl/space.php?uid=$uid">$blang[my_space]</a>');
- document.write('| <a href="$siteurl/admincp.php" target="_blank">管理我的信息</a>');
- document.write('</div>');
- END;
- } else {
复制代码 8.修改用户面板batch.panelloin.php,打开您的跟目录中的batch.panelloin.php
查找:- print <<<END
- function contributeop() {
- if($('contribute_op').style.display != 'block') {
- $('contribute_op').style.display = 'block';
- } else {
- $('contribute_op').style.display = 'none';
- }
- }
- function hidendivop(){
- $('contribute_op').style.display = 'none';
- }
- document.write('<div id="user_login_position">');
- document.write('<h3>$blang[user_panel]</h3>');
- document.write('<div class="user_info">');
- document.write('<dl>');
- document.write('<dt><a href="http://home.pinghu.net/space.php?uid=$uid"><img src="$ucurl" alt=""></a></dt>');
- document.write('<dd>');
- document.write('欢迎 <a href="http://home.pinghu.net/space.php?uid=$uid">$_SGLOBAL[supe_username]</a> 回到噢耶合肥网 [<a href="$siteurl/batch.login.php?action=logout">$blang[safe_logout]</a>]<br />');
- document.write('<a class="tx_blue" href="http://home.pinghu.net/space.php?uid=$uid">$blang[my_space]</a> | <a class="tx_blue" href="$siteurl/batch.search.php">站内搜索</a>');
- document.write('</dd>');
- document.write('</dl>');
- $showposturl
- document.write(' <span>');
- document.write('$bbshtml');
- document.write('$uchhtml');
- document.write(' | <a href="$siteurl/admincp.php" target="_blank">管理您发布的信息</a> </span></div>');
- document.write('</div>$divhtml</div>');
- END;
- } else {
复制代码 9.修改为:- print <<<END
- function contributeop() {
- if($('contribute_op').style.display != 'block') {
- $('contribute_op').style.display = 'block';
- } else {
- $('contribute_op').style.display = 'none';
- }
- }
- function hidendivop(){
- $('contribute_op').style.display = 'none';
- }
- document.write('<div id="user_login_position">');
- document.write('<h3>$blang[user_panel]</h3>');
- document.write('<div class="user_info">');
- document.write('<dl>');
- document.write('<dt><a href="$siteurl/space.php?uid=$uid"><img src="$ucurl" alt=""></a></dt>');
- document.write('<dd>');
- document.write('欢迎 <a href="$siteurl/space.php?uid=$uid">$_SGLOBAL[supe_username]</a> 回到本站 [<a href="$siteurl/batch.login.php?action=logout">$blang[safe_logout]</a>]<br />');
- document.write('<a class="tx_blue" href="$siteurl/space.php?uid=$uid">$blang[my_space]</a> | <a class="tx_blue" href="$siteurl/batch.search.php">站内搜索</a>');
- document.write('</dd>');
- document.write('</dl>');
- $showposturl
- document.write(' <span>');
- document.write('$bbshtml');
- document.write('$uchhtml');
- document.write(' | <a href="$siteurl/admincp.php" target="_blank">管理您发布的信息</a> </span></div>');
- document.write('</div>$divhtml</div>');
- END;
- } else {
复制代码 10.修正精彩相册页面错位现象.主要出现问题的,点相册后点更多精彩相册出现严重错位现象.
打开image_album_list.html.php
查找:- <div id="nav">
- <div class="main_nav">
- <ul>
- <!--{if empty($_SCONFIG['defaultchannel'])}-->
- <li><a href="{S_URL}/index.php">首页</a></li>
- <!--{/if}-->
- <!--{loop $channels['menus'] $key $value}-->
- <li <!--{if $key == 'uchimage' }--> class="current"<!--{/if}-->><a href="$value[url]">$value[name]</a></li>
- <!--{/loop}-->
- </ul>
- </div>
- </div><!--nav end-->
复制代码 11.反删除之,注意:此修改是原作者没有增加相册转至到CUH ,而是直接点相册后连接至您的UCH相应地址!同时防止页面出错,在您的风格目录下打开CSS文件中common.css的底下增加:- /*============================================= image pages style */
- #image_focus { width:698px; height:268px; }
- #image_focus_big { float:left; margin:1px 0 0 1px; }
- #image_focus_big img { width:350px; height:276px; }
- #image_focus_big li { display:none; }
- #image_focus_big .current { display:block; }
- #image_focus_small { float:right; width:345px;}
- #image_focus_small h3 { padding:8px 15px 12px;}
- #image_focus_small ul { height:auto; padding:0 0 0 4px; }
- #image_focus_small li { height:120px; margin-left:5px; }
- .image_user_list { padding-left:10px; color:#666; }
- .image_user_list dl { display:inline; float:left; margin:5px 0 0 10px; width:145px; height:60px; }
- .image_user_list dl dt { float:left; }
- .image_user_list dl dt img { width:48px; height:48px; padding:1px; border:1px solid #D8D8D8; background:#FFF;}
- .image_user_list dl dd { float:right; width:85px; }
- .image_user_list dl dd p { padding-top:4px; }
- .image_user_list dl a { color:#369; }
- .image_gallery_list { padding:0 0 10px 10px; }
- .image_gallery_list dl { display:inline; float:left; width:284px; height:120px; overflow:hidden; margin:10px 0 10px 22px; background:url(../images/image_shadow_bg.gif) no-repeat; }
- .image_gallery_list dl dt { display:inline; float:left; width:100px; height:100px; overflow:hidden; margin:10px 0 0 12px; }
- .image_gallery_list dl dt div { display:table-cell; width:100px; height:100px; text-align:center; vertical-align:middle; *display: block; *font-size:86px; }
- .image_gallery_list dl dt img { max-height:100px; max-width:100px; width:expression(this.width > 100 && this.height < this.width ? 100:true); height:expression(this.height > 100 ? 100:true); vertical-align:middle; }
- .image_gallery_list dl dd { display:inline; float:right; width:127px; overflow:hidden; margin:20px 6px 0 0; color:#999; line-height:1.7em; }
- .image_gallery_list dl h6 { height:20px; overflow:hidden; font-weight:400; line-height:20px; }
- .image_gallery_list dl a { color:#369; }
- .image_gallery_list dd h6 a { color:#333!important; }
- #image_show {}
- .image_caption { width:900px; margin:0 auto; padding:5px 0; overflow:hidden; color:#999; }
- .image_caption a { color:#369; text-decoration:underline; margin-left:5px; }
- .image_bigshow { width:900px; margin:0 auto; padding:15px 0; background:#F8F8F8; text-align:center; }
- .image_bigshow img { max-width:870px; width:expression(this.width > 870 ? 870: true); }
- .image_bigshow h3 { padding-top:6px;}
- #prev_next_news { width:900px; margin:0 auto; padding:10px 0 20px; }
- #prev_next_news a { color:#369; text-decoration:underline; }
- .image_list_userinfo { width:920px; height:65px; margin:15px auto 2px; padding:0; background:url(../images/dashed_bg.gif) repeat-x 0 64px; }
- .image_list_userinfo dl { width:100%; margin:0; }
- .image_list_userinfo dl dt { display:inline; float:left; }
- .image_list_userinfo dl dt div { display:table-cell; width:50px; height:52px; *height:50px; overflow:hidden; border:1px solid #E0E9F2; text-align:center; vertical-align:middle; *display: block; *font-size:42px; }
- .image_list_userinfo dl dt div img { max-height:48px; max-width:48px; width:expression(this.width > 48 && this.height < this.width ? 48:true); height:expression(this.height > 48 ? 48:true); vertical-align:middle;}
- .image_list_userinfo dd { float:right; width:860px !important;}
- .image_list_userinfo dd h2, .image_list_userinfo dd h4 { font-weight:400; }
- .image_list_userinfo dd h2 { color:#333; }
- .image_list_userinfo dd a { color:#369; }
- .image_list { height:auto; margin:4px 0 0 0; }
- .image_list li { margin:0 18px 7px 12px; }
复制代码 12.不进行第11步操作,您可以不删除第11步的代码,可以替换为12步的代码;但是上面的CSS必须加,将您的image_album_list.html.php里面的所有代码替换为官方的(进行对比明显发现增加了系统广告位):代码如下:- <?exit?>
- <!--{template header}-->
- <!--{eval $ads2 = getad('system', 'uchimage', '2'); }-->
- <!--{if !empty($ads2['pageheadad']) }-->
- <div class="ad_header">$ads2[pageheadad]</div>
- <!--{/if}-->
- </div><!--header end-->
- <div id="nav">
- <div class="main_nav">
- <ul>
- <!--{if empty($_SCONFIG['defaultchannel'])}-->
- <li><a href="{S_URL}/index.php">首页</a></li>
- <!--{/if}-->
- <!--{loop $channels['menus'] $key $value}-->
- <li <!--{if $key == 'uchimage' }--> class="current"<!--{/if}-->><a href="$value[url]">$value[name]</a></li>
- <!--{/loop}-->
- </ul>
- </div>
- </div><!--nav end-->
- <!--{if !empty($ads2['pagecenterad'])}-->
- <div class="ad_pagebody">$ads2[pagecenterad]</div>
- <!--{/if}-->
- <div class="column global_module bg_fff">
- <div class="global_module1_caption"><h3>精彩相册</h3></div>
- <div class="image_gallery_list clearfix">
- <!--{block name="uchphoto" parameter="order/updatetime DESC/perpage/21/subjectlen/20/subjectdot/0/cachetime/8200/cachename/uchimage"}--><!--uchimage-->
- <!--{loop $_SBLOCK['uchimage'] $key $value}-->
- <dl>
- <dt><div><a href="$value['url']"><img src="$value['pic']" alt="" /></a></div></dt>
- <dd>
- <h6><a href="$value['url']">$value['albumname']</a></h6>
- <p><a href="{S_URL}/space.php?uid=$value[uid]">$value['username']</a></p>
- <p>$value['picnum']张照片</p>
- <p>更新:
- <!--{if ($_SGLOBAL['timestamp'] - $value['updatetime']) > 86400}-->
- #date("Y-m-d", $value[updatetime])#
- <!--{else}-->
- <!--{eval echo intval(($_SGLOBAL['timestamp'] - $value['updatetime']) / 3600 + 1);}-->小时之前
- <!--{/if}-->
- </p>
- </dd>
- </dl>
- <!--{/loop}-->
- </div>
- <!--{if $_SBLOCK[uchimage_multipage]}-->
- $_SBLOCK[uchimage_multipage]
- <!--{/if}-->
- </div>
- <!--{if !empty($ads2['pagefootad'])}-->
- <div class="ad_pagebody">$ads2['pagefootad']</div>
- <!--{/if}-->
- <!--{if !empty($ads2['pagemovead']) || !empty($ads2['pageoutad'])}-->
- <!--{if !empty($ads2['pagemovead'])}-->
- <div id="coupleBannerAdv" style="z-index: 10; position: absolute; width:100px;left:10px;top:10px;display:none">
- <div style="position: absolute; left: 6px; top: 6px;">
- $ads2[pagemovead]
- <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;">
- $ads2[pagemovead]
- <br />
- <img src="{S_URL}/images/base/advclose.gif" onMouseOver="this.style.cursor='hand'" onClick="closeBanner('coupleBannerAdv');">
- </div>
- </div>
- <!--{/if}-->
- <!--{if !empty($ads2['pageoutad'])}-->
- <div id="floatAdv" style="z-index: 10; position: absolute; width:100px;left:10px;top:10px;display:none">
- <div id="floatFloor" style="position: absolute; right: 6px; bottom:-700px">
- $ads2[pageoutad]
- </div>
- </div>
- <!--{/if}-->
- <script type="text/javascript" src="{S_URL}/include/js/floatadv.js"></script>
- <script type="text/javascript">
- <!--{if !empty($ads2['pageoutad'])}-->
- var lengthobj = getWindowSize();
- lsfloatdiv('floatAdv', 0, 0, 'floatFloor' , -lengthobj.winHeight).floatIt();
- <!--{/if}-->
- <!--{if !empty($ads2['pagemovead'])}-->
- lsfloatdiv('coupleBannerAdv', 0, 0, '', 0).floatIt();
- <!--{/if}-->
- </script>
- <!--{/if}-->
- <!--{template footer}-->
复制代码 13.修正用户个人中心无数据情况下页面显示错位,请在您的风格目录下打开CSS文件中common.css的底下增加:- /*============================================= blog pages style */
- #blog_pic_story { height:140px; overflow:hidden; border:1px solid #D8D8D8; background:#F8F8F8; }
- #blog_pic_story h3 { padding:8px 20px 4px; }
- #blog_pic_story ul { padding-left:6px;}
- #blog_pic_story ul li { margin:3px 0 0 14px; }
- .blog_hot_avatar { height:76px; overflow:hidden; padding:4px 0 0 10px; }
- .blog_hot_avatar li { margin-left:10px;}
- #blog_new { height:467px; border:1px solid #D8D8D8; background:#F8F8F8;}
- #blog_new h3 { padding:8px 20px 4px; }
- #blog_new .global_avatar_list { margin-bottom:5px; padding-left:8px;}
- #blog_new .global_avatar_list li { margin:3px 0 3px 6px; }
- #blog_new ul.txt { padding:0 15px; }
- #blog_new ul.txt li { height:28px; overflow:hidden; font-size:14px; line-height:28px; }
- #blog_top { height:301px; border:1px solid #D8D8D8; background:#F7FDFD; color:#999; }
- #blog_top h3 { padding:8px 15px 10px; color:#EB1C26; }
- #blog_top dl { height:83px; margin-top:3px; padding:0 15px; }
- #blog_top dt { float:left; }
- #blog_top dt img { display:block; width:48px; height:48px; padding:1px; border:1px solid #D8D8D8; }
- #blog_top dt span { display:block; width:52px; height:25px; overflow:hidden; line-height:25px; text-align:center; }
- #blog_top dd { float:right; width:160px; line-height:25px; }
- #blog_top dd a { color:#369; }
- .blog_info_list { position:relative; width:96%; height:130px; overflow:hidden; margin:15px auto; border:1px dashed #DDD; color:#333; }
- .blog_info_list a { color:#369; }
- .blog_info_list .box_l { width:80px; height:100%; padding:12px 10px 0 15px; background:#EEF1F6; }
- .blog_info_list .box_l img { width:48px; height:48px; }
- .blog_info_list .box_r { width:795px; padding:10px; }
- .blog_info_list .box_r h5 { height:18px; overflow:hidden; margin-bottom:4px; font-weight:400; font-size:14px; }
- .blog_info_list .box_r .blog_signtx { height:92px; overflow:hidden; margin-bottom:14px; }
- .blog_info_list .blog_showbox_pic { width:100px; height:100px; border:1px solid #E0E9F2; background:#EEF1F6 ; }
- .blog_info_list .blog_info { position:absolute; left:116px; bottom:8px; color:#666; }
- #blog_detail {}
- #blog_detail .box_l { width:180px; }
- #blog_detail .box_r { width:770px; }
- .blog_user { text-align:center; line-height:25px; }
- .blog_user a { color:#369; }
- .user_group { margin:0 10px; text-align:left; }
- #blog_article { width:94%; margin:0 auto; padding:15px 0; }
- #blog_article h1 { padding-bottom:8px; color:#369; font-size:16px; font-weight:400; }
- #blog_article .blog_tipinfo { padding:8px 0 15px; background:url(../images/dashed_bg.gif) repeat-x center top; color:#999; }
- #blog_body { padding-bottom:25px; line-height:2em; }
- #blog_article .blog_op { padding:8px 0; background:url(../images/dashed_bg.gif) repeat-x center top; text-align:right; color:#369; }
- #blog_article .blog_op a { color:#369; text-decoration:underline; }
- #blog_body a { color:#369; }
- .blog_margin_hack .margin_bot10 { margin-bottom:11px!important;}
复制代码 14.修正用户中心博客转至UCH,导航频道分类的错位.请在您的风格目录下打开CSS文件中common.css的底下增加:- /* nav style */
- #nav { width:1000px; overflow:hidden; margin:0 auto 10px; background:#D3EAF0; }
- .main_nav { height:34px; overflow:hidden; padding-top:1px; background:#1A4963; color:#FFF; font-size:14px; }
- .main_nav ul { width:94%; overflow:hidden; padding:0 0 0 1.3%; }
- .main_nav ul li { float:left; margin-right:1px; }
- .main_nav ul li a { float:left; display:block; padding:9px 15px; color:#FFF; }
- .main_nav .current a { background:url(../images/nav_current_bg.gif) repeat-x; color:#295B72; font-weight:700; text-decoration:none!important; }
- ul.ext_nav { padding:7px 12px; color:#369; line-height:1.9em; }
- ul.ext_nav li { float:left; margin-right:8px; white-space:nowrap; }
- ul.ext_nav a { margin-right:2px; color:#295B72; }
- .order_nav { padding:7px 12px; color:#369; line-height:1.9em; }
- .order_nav li { height:1.9em; overflow:hidden; }
- .order_nav li a { margin-left:2px; color:#295B72; }
- .order_nav em { margin-right:3px; color:#295B72; }
- #contribute_op { position:absolute; top:140px; left:15px; padding:5px 15px; border:1px solid #D8D8D8; background:#F7FDFD; }
- #contribute_op li { margin:2px 0; }
- #contribute_op li a { color:#369;}
复制代码 15.如果您不需要导航上的频道分类显示,请在增加以上CSS同时打开您的blog_detail.html.php文件
查找:- <div id="nav">
- <div class="main_nav">
- <ul>
- <!--{if empty($_SCONFIG['defaultchannel'])}-->
- <li><a href="{S_URL}/index.php">首页</a></li>
- <!--{/if}-->
- <!--{loop $channels['menus'] $key $value}-->
- <li <!--{if $key == 'uchblog' }--> class="current"<!--{/if}-->><a href="$value[url]">$value[name]</a></li>
- <!--{/loop}-->
- </ul>
- </div>
- </div><!--nav end-->
复制代码 进行反删之!
16.点模型分类频道不存在修改.
首先将风格包进行解压,在您的后台点模型进行导入,填写唯一的英文命名标识!,完成后请在频道设置中关闭官方默认模型,开启您所导入的模型.然后分别打开/model/data/ 目录下新导入的模型文件,将模型中的category.html.php view.html.php
viewcomment.html.php 的连接标识英文ID分别进行修改为您设置的ID! |
评分
-
1
查看全部评分
-
|