模板自定义备忘录

韦林 65 阅读

扩展图片目录 {STYLEIMGDIR}:
template/jqonline/images

1.0 首页为门户主页时,跳转至论坛主页
template/jqonline/touch/portal/index.htm

<!--{template common/header}-->
<!--{eval dheader('Location:forum.php');exit;}-->
<!--{template common/footer}-->

2.0 首页新增显示所有置顶帖子
template/jqonline/touch/forum/discuz.htm
69 行新增

<div class="swiper-container listbox cl mt10 ">
<div class="swiper-wrapper">
<div class="swiper-slide">
<ul>
<!--{block/10}-->
</ul>
</div>

</div>
</div>

2.1 首页取消精华帖子
83行 删除
<a href="javasc*pt:;" class="flex">{lang post_digest_thread}</a>

118-127行删除

<div class="swiper-slide">
<ul>
<!--{loop $g*ds['digest'] $thread}-->
<!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
<!--{eval $thread['tid']=$thread['closed'];}-->
<!--{/if}-->
<li><a href="forum.php?mod=viewthread&tid=$thread['tid']"{if $thread['highlight']} $thread['highlight']{/if} title="$thread['oldsubject']"><span class="mybk">$thread['author']</span><span class="mico"></span>{$thread['oldsubject']}</a></li>
<!--{/loop}-->
</ul>
</div>

2.2 首页增加发现find四格
2-4行删除

<!--{if $_GET['mod'] == 'find'}-->
<!--{template forum/find}-->
<!--{else}-->

216行删除

<!--{/if}-->

20 行新增<!--{template forum/find}-->
template/jqonline/touch/forum/find.htm
全文替换

<div>
<div class="nui-classify-box p10">
<!--{loop $_G['setting']['mfindnavs'] $key $nav}-->
<!--{if is_array($nav) && $nav['available'] && ($nav['type'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1)) || !$nav['type'])}-->
<div class="nui-classify-item"> <a href="$nav[url]">
<div class="nui-classify-img" style=" background-image: url(/template/jqonline/images/g*ds/$key.png);"> </div>
<div class="nui-classify-name"> $nav[name] </div>
</a>
</div>

<!--{/if}-->
<!--{/loop}-->
<!--{hook/index_find_extra_mobile}-->
</div>
</div>

3.0 列表页改变“官方已回复”插件显示位置错误
template/jqonline/touch/forum/forumdisplay.htm
108 行删除 新增到 140行

<!--{hook/forumdisplay_thread_mobile $key}-->

4.0 新增发帖提示
template/jqonline/touch/forum/post.htm
93 行新增

<!--{if $_GET['action'] == 'newthread'}-->
<li class="mtext">
提示:
<!--{if $_G['forum']['modnewposts'] == 1 }-->
$_G['forum'][name]发贴 <font color="red">需等待审核</font>,禁止商业广告。
<!--{else}-->
$_G['forum'][name]发贴消费5元/条,<a href="pay" target="_blank"><strong class="xi1">点击充值</strong></a>。
<!--{if $_G['forum']['fid'] == 6 }-->
内容中不得出现“最佳”“第一”等违法词,不得以知名机构、建筑附近为位置说明。
<!--{/if}-->
<!--{if $_G['forum']['fid'] == 17 }-->
未明确招聘单位名称的信息不予推送。
<!--{/if}-->
<!--{/if}-->
</li>
<!--{/if}-->

全部回复

2
  1. 韦林 1 楼

    5.0 内容页新增用户自助置顶,删除帖子道具功能
    template/jqonline/touch/forum/viewthread.htm
    173行 删除
    <em class="mgl"><a href="forum.php?mod=post&action=edit&fid={$_G['fid']}&tid={$_G['tid']}&pid={$post['pid']}{if !empty($_GET['modthreadkey'])}&modthreadkey={$_GET['modthreadkey']}{/if}&page={$page}" class="popup"><!--{if $_G['forum_thread']['special'] == 2 && !$post['message']}-->{lang post_add_aboutcounter}<!--{else}-->{lang edit}<!--{/if}--></a></em>

    替换为
    <em class="mgl"><div href="#moption_$post['pid']" class="popup blue">{lang manage}</div></em>
    <div id="moption_$post['pid']" popup="true" class="manage" style="display:none;">
    <a class="button" href="forum.php?mod=post&action=edit&fid=$_G['fid']&tid=$_G['tid']&pid=$post['pid']<!--{if $_G['forum_thread']['sortid']}--><!--{if $post['first']}-->&sortid={$_G['forum_thread']['sortid']}<!--{/if}--><!--{/if}-->{if !empty($_GET['modthreadkey'])}&modthreadkey=$_GET['modthreadkey']{/if}&page=$page">{lang edit}</a>
    {$ndbtn}
    <!--{if !empty($_G['setting']['magics']['repent']) && $post['autho*d'] == $_G['uid'] && !$rushreply}-->
    <input type="button" value="$_G['setting']['magics']['repent']" class="dialog button" href="home.php?mod=magic&mid=repent&idtype=pid&id=$post[pid]:$_G[tid]">
    <!--{/if}-->
    <!--{if !empty($_G['setting']['magics']['close'])}-->
    <input type="button" value="$_G['setting']['magics']['close']" class="dialog button" href="home.php?mod=magic&mid=close&idtype=tid&id=$_G[tid]">
    <!--{/if}-->
    </div>

    185行(百姓话题的帖子) 删除
    <em class="mgl"><a href="forum.php?mod=misc&action=postappend&tid={$post['tid']}&pid={$post['pid']}&extra={$_GET['extra']}&page={$page}" class="popup">{lang postappend}</a></em>

    替换为
    <em class="mgl"><div href="#moption_$post['pid']" class="popup blue">{lang manage}</div></em>
    <div id="moption_$post['pid']" popup="true" class="manage" style="display:none;">
    <input type="button" value="{lang postappend}" class="dialog button" href="forum.php?mod=misc&action=postappend&tid={$post['tid']}&pid={$post['pid']}&extra={$_GET['extra']}&page={$page}">
    {$ndbtn}
    <!--{if !empty($_G['setting']['magics']['repent']) && $post['autho*d'] == $_G['uid'] && !$rushreply}-->
    <input type="button" value="$_G['setting']['magics']['repent']" class="dialog button" href="home.php?mod=magic&mid=repent&idtype=pid&id=$post[pid]:$_G[tid]">
    <!--{/if}-->
    <!--{if !empty($_G['setting']['magics']['close'])}-->
    <input type="button" value="$_G['setting']['magics']['close']" class="dialog button" href="home.php?mod=magic&mid=close&idtype=tid&id=$_G[tid]">
    <!--{/if}-->
    </div>

    5.1 新增贴内显示*作记录
    294-295行

    <!--{if $post['first']}-->
    <!--{/if}-->

    中间新增
    <!--{if !empty($lastmod['modaction'])}--><i class="pstatus "><!--{if $lastmod['modactiontype'] == 'REB'}-->{lang thread_mod_recommend_by}<!--{else}-->{lang thread_mod_by}<!--{/if}--></i><!--{/if}-->
    <!--{hook/viewthread_modaction}-->

  2. 韦林 2 楼

    6.0 底部菜单只保留三组按钮
    template/jqonline/touch/common/footer.htm
    10-38 行删除

    <!--{if strpos('forum.php', $_G['setting']['defaultindex']) === false}-->
    <a href="<!--{if $_G['setting']['mobile']['forum']['index'] > 1}-->forum.php<!--{elseif $_G['setting']['mobile']['forum']['index'] == 1}-->forum.php?mod=guide&view=newthread<!--{else}-->forum.php?forumlist=1<!--{/if}-->" class="flex{if $_G['basesc*pt'] == 'forum' && $_GET['mod'] != 'find' && (CURMODULE == 'index' || $_GET['forumlist'] == 1 || CURMODULE == 'forumdisplay' || CURMODULE == 'viewthread' || CURMODULE == 'guide')} mon{/if}">
    <span class="foot-ico"><em class="mb"></em></span>
    <span class="foot-txt">{$_G['setting']['navs'][2]['navname']}</span>
    </a>
    <!--{/if}-->
    <!--{if strpos('forum.php', $_G['setting']['defaultindex']) === 0}-->
    <!--{if helper_access::check_module('portal')}-->
    <a href="portal.php" class="flex{if $_G['basesc*pt'] == 'portal'} mon{/if}">
    <span class="foot-ico"><em class="mb"></em></span>
    <span class="foot-txt">{lang mobnews}</span>
    </a>
    <!--{elseif helper_access::check_module('group')}-->
    <a href="group.php" class="flex{if $_G['basesc*pt'] == 'group'} mon{/if}">
    <span class="foot-ico"><em class="mb"></em></span>
    <span class="foot-txt">{$_G['setting']['navs'][3]['navname']}</span>
    </a>
    <!--{elseif helper_access::check_module('feed')}-->
    <a href="home.php" class="flex{if $_G['basesc*pt'] == 'home' && CURMODULE == 'space' && $_GET['do'] == 'home'} mon{/if}">
    <span class="foot-ico"><em class="mb"></em></span>
    <span class="foot-txt">{lang mobfeed}</span>
    </a>
    <!--{else}-->
    <a href="home.php?mod=space&do=pm" class="flex{if $_G['basesc*pt'] == 'home' && CURMODULE == 'space' && $_GET['do'] == 'pm'} mon{/if}">
    <span class="foot-ico"><em class="mb"><!--{if $_G['uid'] && ($_G['member']['newpm'] || $_G['member']['newprompt'])}--><i class="ico_msg"></i><!--{/if}--></em></span>
    <span class="foot-txt">{lang pm_center}</span>
    </a>
    <!--{/if}-->
    <!--{/if}-->

    14-17行删除

    <a href="forum.php?mod=find" class="flex{if $_G['basesc*pt'] == 'forum' && $_GET['mod'] == 'find'} mon{/if}">
    <span class="foot-ico"><em class="md"></em></span>
    <span class="foot-txt">{lang mobfind}</span>
    </a>