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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[发布] discuz2.5文章页模板修改,discuz2.5修改边栏宽度,discuz2.5模版宽度修改

[复制链接]
1263104 发表于 2013-4-18 23:47:08 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

 楼主| 勿忘我科技 发表于 2013-4-20 03:45:50 | 显示全部楼层
自己来顶一下吧
回复

使用道具 举报

魂之挽歌1 发表于 2013-5-16 18:05:24 | 显示全部楼层

可以帮我看一下吗,我的list.htm里面代码里面没有你说的那个
<!--{subtemplate common/header}-->
<!--[name]{lang portalcategory_listtplname}[/name]-->
<!--{eval $list = array();}-->
<!--{eval $wheresql = category_get_wheresql($cat);}-->
<!--{eval $list = category_get_list($cat, $wheresql, $page);}-->
<div id="pt" class="bm cl">
        <div class="z">
                <a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>&rsaquo;</em>
                <a href="$_G[setting][navs][1][filename]">{lang portal}</a> <em>&rsaquo;</em>
                <!--{loop $cat[ups] $value}--> <a href="{echo getportalcategoryurl($value[catid])}">$value[catname]</a><em>&rsaquo;</em><!--{/loop}-->
                $cat[catname]
        </div>
</div>

<!--{ad/text/wp a_t}-->
<style id="diy_style" type="text/css"></style>
<div class="wp">
        <!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
</div>

<div id="ct" class="ct2 wp cl">
        <div class="mn">
                <!--{ad/articlelist/mbm hm/1}--><!--{ad/articlelist/mbm hm/2}-->
                <!--[diy=listcontenttop]--><div id="listcontenttop" class="area"></div><!--[/diy]-->
                <div class="bm">
                        <div class="bm_h cl">
                                <!--{if $_G[setting][rssstatus] && !$_GET['archiveid']}--><a href="portal.php?mod=rss&catid=$cat[catid]" class="y xi2 rss" target="_blank" title="RSS">{lang rss_subscribe_this}</a><!--{/if}-->
                                <!--{if ($_G['group']['allowpostarticle'] || $_G['group']['allowmanagearticle'] || $categoryperm[$catid]['allowmanage'] || $categoryperm[$catid]['allowpublish']) && empty($cat['disallowpublish'])}-->
                                <a href="portal.php?mod=portalcp&ac=article&catid=$cat[catid]" class="y xi2 addnew">{lang article_publish}</a>
                                <!--{/if}-->
                                <h1 class="xs2">$cat[catname]</h1>
                        </div>
                        <!--{if $cat[subs]}-->
                        <div class="bm_c bbda">
                                {lang sub_category}:&nbsp;&nbsp;
                                <!--{eval $i = 1;}-->
                                <!--{loop $cat[subs] $value}-->
                                <!--{if $i != 1}--><span class="pipe">|</span><!--{/if}--><a href="{echo getportalcategoryurl($value[catid]);}" class="xi2">$value[catname]</a><!--{eval $i--;}-->
                                <!--{/loop}-->
                        </div>
                        <!--{/if}-->
                        <div class="bm_c xld">
                        <!--{loop $list['list'] $value}-->
                        <!--{eval $highlight = article_title_style($value);}-->
                                <dl class="bbda cl">
                                        <dt class="xs2"><a href="portal.php?mod=view&aid=$value[aid]" target="_blank" class="xi2" $highlight>$value[title]</a> <!--{if $value[status] == 1}-->({lang moderate_need})<!--{/if}--></dt>
                                        <dd class="xs2 cl">
                                                <!--{if $value[pic]}--><div class="atc"><a href="portal.php?mod=view&aid=$value[aid]" target="_blank"><img src="$value[pic]" alt="$value[title]" class="tn" /></a></div><!--{/if}-->
                                                $value[summary]
                                        </dd>
                                        <dd>
                                                <!--{if $value[catname] && $cat[subs]}-->{lang category}: <label><a href="{echo getportalcategoryurl($value[catid]);}" class="xi2">$value[catname]</a></label>&nbsp;&nbsp;<!--{/if}-->
                                                <span class="xg1"> $value[dateline]</span>
                                                <!--{if $_G['group']['allowmanagearticle'] || ($_G['group']['allowpostarticle'] && $value['uid'] == $_G['uid'] && (empty($_G['group']['allowpostarticlemod']) || $_G['group']['allowpostarticlemod'] && $value['status'] == 1)) || $categoryperm[$value['catid']]['allowmanage']}-->
                                                <span class="xg1">
                                                        <span class="pipe">|</span>
                                                        <label><a href="portal.php?mod=portalcp&ac=article&op=edit&aid=$value[aid]">{lang edit}</a></label>
                                                        <span class="pipe">|</span>
                                                        <label><a href="portal.php?mod=portalcp&ac=article&op=delete&aid=$value[aid]" id="article_delete_$value[aid]" onclick="showWindow(this.id, this.href, 'get', 0);">{lang delete}</a></label>
                                                </span>
                                                <!--{/if}-->
                                        </dd>
                                </dl>
                        <!--{/loop}-->
                        </div>
                        <!--[diy=listloopbottom]--><div id="listloopbottom" class="area"></div><!--[/diy]-->
                </div>
                <!--{ad/articlelist/mbm hm/3}--><!--{ad/articlelist/mbm hm/4}-->
                <!--{if $list['multi']}--><div class="pgs cl">{$list['multi']}</div><!--{/if}-->

                <!--[diy=diycontentbottom]--><div id="diycontentbottom" class="area"></div><!--[/diy]-->

        </div>
        <div class="sd pph">

                <div class="drag">
                        <!--[diy=diyrighttop]--><div id="diyrighttop" class="area"></div><!--[/diy]-->
                </div>

<!--{if $cat[others]}-->
                <div class="bm">
                        <div class="bm_h cl">
                                <h2>{lang category_related}</h2>
                        </div>
                        <div class="bm_c">
                                <ul class="xl xl2 cl">
                                        <!--{loop $cat[others] $value}-->
                                        <li>&bull; <a href="{echo getportalcategoryurl($value[catid]);}">$value[catname]</a></li>
                                        <!--{/loop}-->
                                </ul>
                        </div>
                </div>
<!--{/if}-->

                <div class="drag">
                        <!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
                </div>

        </div>
</div>

<div class="wp mtn">
        <!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
</div>

<!--{subtemplate common/footer}-->
回复

使用道具 举报

魂之挽歌1 发表于 2013-5-16 18:32:21 | 显示全部楼层
view.html里面也没有找到呀,帮我看看吧,
<!--{subtemplate common/header}-->
<!--[name]{lang portalcategory_viewtplname}[/name]-->

<script type="text/javascript" src="{$_G['setting']['jspath']}forum_viewthread.js?{VERHASH}"></script>
<script type="text/javascript">zoomstatus = parseInt($_G['setting']['zoomstatus']), imagemaxwidth = '{$_G['setting']['imagemaxwidth']}', aimgcount = new Array();</script>
<div id="pt" class="bm cl">
        <div class="z">
                <a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>&rsaquo;</em>
                <a href="$_G[setting][navs][1][filename]">{lang nav_index}</a> <em>&rsaquo;</em>
                <!--{loop $cat[ups] $value}-->
                        <a href="{echo getportalcategoryurl($value[catid])}">$value[catname]</a><em>&rsaquo;</em>
                <!--{/loop}-->
                <a href="{echo getportalcategoryurl($cat[catid])}">$cat[catname]</a> <em>&rsaquo;</em>
                {lang view_content}
        </div>
</div>

<!--{hook/view_article_top}-->
<!--{ad/text/wp a_t}-->
<style id="diy_style" type="text/css"></style>
<div class="wp">
        <!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
</div>
<div id="ct" class="ct2 wp cl">
        <div class="mn">
                <div class="bm vw">
                        <div class="h hm">
                                <h1 class="ph">$article[title] <!--{if $article['status'] == 1}-->({lang moderate_need})<!--{elseif $article['status'] == 2}-->({lang ignored})<!--{/if}--></h1>
                                <p class="xg1">
                                        $article[dateline]<span class="pipe">|</span>
                                        {lang view_publisher}: <a href="home.php?mod=space&uid=$article[uid]">$article[username]</a><span class="pipe">|</span>
                                        {lang view_views}: <!--{if $article[viewnum] > 0}-->$article[viewnum]<!--{else}-->0<!--{/if}--><span class="pipe">|</span>
                                        {lang view_comments}: <!--{if $article[commentnum] > 0}--><a href="$common_url" title="{lang view_all_comments}">$article[commentnum]</a><!--{else}-->0<!--{/if}-->
                                        <!--{if $article[author]}--><span class="pipe">|</span>{lang view_author_original}: $article[author]<!--{/if}-->
                                        <!--{if $article[from]}--><span class="pipe">|</span>{lang from}: <!--{if $article[fromurl]}--><a href="$article[fromurl]" target="_blank">$article[from]</a><!--{else}-->$article[from]<!--{/if}--><!--{/if}-->

                                        <!--{if $_G['group']['allowmanagearticle'] || ($_G['group']['allowpostarticle'] && $article['uid'] == $_G['uid'] && (empty($_G['group']['allowpostarticlemod']) || $_G['group']['allowpostarticlemod'] && $article['status'] == 1)) || $categoryperm[$value['catid']]['allowmanage']}-->
                                                <span class="pipe">|</span><a href="portal.php?mod=portalcp&ac=article&op=edit&aid=$article[aid]">{lang edit}</a>
                                                <!--{if $article[status]>0 && ($_G['group']['allowmanagearticle'] || $categoryperm[$value['catid']]['allowmanage'])}-->
                                                        <span class="pipe">|</span><a href="portal.php?mod=portalcp&ac=article&op=verify&aid=$article[aid]" id="article_verify_$article[aid]" onclick="showWindow(this.id, this.href, 'get', 0);">{lang moderate}</a>
                                                <!--{else}-->
                                                        <span class="pipe">|</span><a href="portal.php?mod=portalcp&ac=article&op=delete&aid=$article[aid]" id="article_delete_$article[aid]" onclick="showWindow(this.id, this.href, 'get', 0);">{lang delete}</a>
                                                <!--{/if}-->
                                        <!--{/if}-->
                                        <!--{hook/view_article_subtitle}-->
                                </p>
                        </div>

                        <!--[diy=diysummarytop]--><div id="diysummarytop" class="area"></div><!--[/diy]-->

                        <!--{if $article[summary] && empty($cat[notshowarticlesummay])}--><div class="s"><div><strong>{lang article_description}</strong>: $article[summary]</div><!--{hook/view_article_summary}--></div><!--{/if}-->

                        <!--[diy=diysummarybottom]--><div id="diysummarybottom" class="area"></div><!--[/diy]-->

                        <div class="d">

                                <!--[diy=diycontenttop]--><div id="diycontenttop" class="area"></div><!--[/diy]-->

                                <table cellpadding="0" cellspacing="0" class="vwtb"><tr><td id="article_content">
                                        <!--{ad/article/a_af/1}-->
                                        <!--{if $content[title]}-->
                                        <div class="vm_pagetitle xw1">$content[title]</div>
                                        <!--{/if}-->
                                        $content[content]
                                </td></tr></table>
                                <!--{hook/view_article_content}-->
                                <!--{if $multi}--><div class="ptw pbw cl">$multi</div><!--{/if}-->

                                <!--[diy=diycontentbottom]--><div id="diycontentbottom" class="area"></div><!--[/diy]-->

                                <script type="text/javascript" src="{$_G[setting][jspath]}home.js?{VERHASH}"></script>
                                <div id="click_div">
                                        <!--{template home/space_click}-->
                                </div>

                                <!--{if !empty($contents)}-->
                                <div id="inner_nav" class="ptn xs1">
                                        <h3>{lang article_inner_navigation}</h3>
                                        <ul class="xl xl2 cl">
                                                <!--{loop $contents $key $value}-->
                                                <!--{eval $curpage = $key+1;}-->
                                                <li>&bull; <a href="portal.php?mod=view&aid=$aid&page=$curpage"{if $key === $start} class="xi1"{/if}>{lang article_inner_page_pre} {$curpage} {lang article_inner_page} $value[title]</a></li>
                                                <!--{/loop}-->
                                        </ul>
                                </div>
                                <!--{/if}-->

                                <!--[diy=diycontentclickbottom]--><div id="diycontentclickbottom" class="area"></div><!--[/diy]-->

                        </div>
                        <!--{if !empty($aimgs[$content[pid]])}-->
                                <script type="text/javascript" reload="1">aimgcount[{$content[pid]}] = [<!--{echo implode(',', $aimgs[$content[pid]]);}-->];attachimgshow($content[pid]);</script>
                        <!--{/if}-->

                        <!--{if !empty($_G['setting']['pluginhooks']['view_share_method'])}-->
                                <div class="tshare cl">
                                        <strong>{lang viewthread_share_to}:</strong>
                                        <!--{hook/view_share_method}-->
                                </div>
                        <!--{/if}-->

                        <div class="o cl ptm pbm">
                                <!--{hook/view_article_op_extra}-->
                                <a href="home.php?mod=spacecp&ac=favorite&type=article&id=$article[aid]&handlekey=favoritearticlehk_{$article[aid]}" id="a_favorite" onclick="showWindow(this.id, this.href, 'get', 0);" class="oshr ofav">{lang favorite}</a>
                                <!--{if helper_access::check_module('share')}-->
                                <a href="home.php?mod=spacecp&ac=share&type=article&id=$article[aid]&handlekey=sharearticlehk_{$article[aid]}" id="a_share" onclick="showWindow(this.id, this.href, 'get', 0);" class="oshr">{lang share}</a>
                                <!--{/if}-->
                                <a href="misc.php?mod=invite&action=article&id=$article[aid]" id="a_invite" onclick="showWindow('invite', this.href, 'get', 0);" class="oshr oivt">{lang invite}</a>
                                <!--{if $_G['group']['allowmanagearticle'] || ($_G['group']['allowpostarticle'] && $article['uid'] == $_G['uid'] && (empty($_G['group']['allowpostarticlemod']) || $_G['group']['allowpostarticlemod'] && $article['status'] == 1)) || $categoryperm[$value['catid']]['allowmanage']}-->
                                        <a href="portal.php?mod=portalcp&ac=article&op=edit&aid=$article[aid]">{lang edit}</a><span class="pipe">|</span>
                                        <a  id="related_article" href="portal.php?mod=portalcp&ac=related&aid=$article[aid]&catid=$article[catid]&update=1" onclick="showWindow(this.id, this.href, 'get', 0);return false;">{lang article_related}</a><span class="pipe">|</span>
                                        <!--{if $article[status]>0 && ($_G['group']['allowmanagearticle'] || $categoryperm[$value['catid']]['allowmanage'])}-->
                                                <a href="portal.php?mod=portalcp&ac=article&op=verify&aid=$article[aid]" id="article_verify_$article[aid]" onclick="showWindow(this.id, this.href, 'get', 0);">{lang moderate}</a>
                                        <!--{else}-->
                                                <a href="portal.php?mod=portalcp&ac=article&op=delete&aid=$article[aid]" id="article_delete_$article[aid]" onclick="showWindow(this.id, this.href, 'get', 0);">{lang delete}</a>
                                        <!--{/if}-->
                                        <span class="pipe">|</span>
                                <!--{/if}-->
                                <!--{if $article[status]==0 && ($_G['group']['allowdiy']  || getstatus($_G['member']['allowadmincp'], 4) || getstatus($_G['member']['allowadmincp'], 5) || getstatus($_G['member']['allowadmincp'], 6))}-->
                                <a href="portal.php?mod=portalcp&ac=portalblock&op=recommend&idtype=aid&id=$article[aid]" onclick="showWindow('recommend', this.href, 'get', 0)">{lang blockdata_recommend}</a><span class="pipe">|</span>
                                <!--{/if}-->
                        </div>

                </div>

                <!--[diy=diycontentrelatetop]--><div id="diycontentrelatetop" class="area"></div><!--[/diy]-->

                <!--{ad/article/mbm hm/2}--><!--{ad/article/mbm hm/3}-->

                <!--{if $article['related']}-->
                <div id="related_article" class="bm">
                        <div class="bm_h cl">
                                <h3>{lang view_related}</h3>
                        </div>
                        <div class="bm_c">
                                <ul class="xl xl2 cl" id="raid_div">
                                <!--{loop $article['related'] $raid $rtitle}-->
                                        <input type="hidden" value="$raid" />
                                        <li>&bull; <a href="portal.php?mod=view&aid=$raid">$rtitle</a></li>
                                <!--{/loop}-->
                                </ul>
                        </div>
                </div>
                <!--{/if}-->

                <!--[diy=diycontentrelate]--><div id="diycontentrelate" class="area"></div><!--[/diy]-->

                <!--{if $article['allowcomment']==1}-->
                        <!--{eval $data = &$article}-->
                        <!--{subtemplate portal/portal_comment}-->
                <!--{/if}-->

                <!--[diy=diycontentcomment]--><div id="diycontentcomment" class="area"></div><!--[/diy]-->


        </div>
        <div class="sd pph">

                <!--{hook/view_article_side_top}-->

                <div class="drag">
                        <!--[diy=diyrighttop]--><div id="diyrighttop" class="area"></div><!--[/diy]-->
                </div>

                <!--{if $cat[others]}-->
                <div class="bm">
                        <div class="bm_h cl">
                                <h2>{lang category_related}</h2>
                        </div>
                        <div class="bm_c">
                                <ul class="xl xl2 cl">
                                        <!--{loop $cat[others] $value}-->
                                        <li><a href="{echo getportalcategoryurl($value[catid])}">$value[catname]</a></li>
                                        <!--{/loop}-->
                                </ul>
                        </div>
                </div>
                <!--{/if}-->

                <!--{if $cat[subs]}-->
                <div class="bm">
                        <div class="bm_h cl">
                                <h2>{lang sub_category}</h2>
                        </div>
                        <div class="bm_c">
                                <ul class="xl xl2 cl">
                                <!--{loop $cat[subs] $value}-->
                                        <li><a href="{echo getportalcategoryurl($value[catid])}">$value[catname]</a></li>
                                <!--{/loop}-->
                                </ul>
                        </div>
                </div>
                <!--{/if}-->

                <div class="drag">
                        <!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
                </div>

                <!--{hook/view_article_side_bottom}-->

        </div>
</div>

<!--{if $_G['relatedlinks']}-->
        <script type="text/javascript">
                var relatedlink = [];
                <!--{loop $_G['relatedlinks'] $key $link}-->
                relatedlink[$key] = {'sname':'$link[name]', 'surl':'$link[url]'};
                <!--{/loop}-->
                relatedlinks('article_content');
        </script>
<!--{/if}-->

<div class="wp mtn">
        <!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
</div>
<input type="hidden" id="portalview" value="1">

<!--{subtemplate common/footer}-->
回复

使用道具 举报

 楼主| 勿忘我科技 发表于 2013-5-29 00:33:34 | 显示全部楼层
魂之挽歌1 发表于 2013-5-16 18:32
view.html里面也没有找到呀,帮我看看吧,

默认模版吗
回复

使用道具 举报

魂之挽歌1 发表于 2013-5-29 17:53:21 | 显示全部楼层

谢谢,已经解决了
回复

使用道具 举报

googlg 发表于 2013-8-21 13:59:08 | 显示全部楼层
帖子被屏蔽了
回复

使用道具 举报

fvfvfv 发表于 2013-11-2 21:31:27 | 显示全部楼层
谢谢楼主无私分享
回复

使用道具 举报

 楼主| 勿忘我科技 发表于 2013-11-3 10:19:40 | 显示全部楼层
fvfvfv 发表于 2013-11-2 21:31
谢谢楼主无私分享


哎,不知道什么原因封号了几个月,最近才解封,进来看看
回复

使用道具 举报

fvfvfv 发表于 2013-11-3 13:38:24 | 显示全部楼层
勿忘我科技 发表于 2013-11-3 10:19
哎,不知道什么原因封号了几个月,最近才解封,进来看看

官方就是这样呢。。。。楼主能否帮忙投下票啊。https://discuz.dismall.com/thread-3474115-1-1.html   我朋友的文章是11号,我的建站之梦,因有你们而精彩!帮忙支持下吧
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-9-28 13:23 , Processed in 0.169833 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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