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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

cr180:补丁比对校验R20101020=>R20101125 common文件夹更新

[复制链接]
cr180 发表于 2010-11-26 21:02:29 | 显示全部楼层 |阅读模式
本帖最后由 cr180 于 2010-11-26 22:08 编辑

header.htm

  1. <!--{if $_G['basescript'] == 'forum'}-->
复制代码

更新为:该资料教程由CR180 QQ:250997329原创,转载必须注明出处和版权!
  1. <!--{if $_G['basescript'] == 'forum' || $_G['basescript'] == 'group'}-->
复制代码

 楼主| cr180 发表于 2010-11-26 21:02:44 | 显示全部楼层

stat.htm

本帖最后由 cr180 于 2010-11-26 21:04 编辑
stat.htm


  1. <li class="cl{if $op == 'trend'} a{/if}"><a href="misc.php?mod=stat&op=trend">{lang trend}</a></li>
复制代码
更新为:
  1.                         <!--{if $_G['setting']['updatestat']}-->
  2.                                 <li class="cl{if $op == 'trend'} a{/if}"><a href="misc.php?mod=stat&op=trend">{lang trend}</a></li>
  3.                         <!--{/if}-->
复制代码
回复

使用道具 举报

 楼主| cr180 发表于 2010-11-26 21:03:38 | 显示全部楼层
本帖最后由 cr180 于 2010-11-26 21:04 编辑
pubsearchform.htm


第一处:

  1. <!--{if $_G['setting']['search']}-->
  2. <!--{eval $slist = array();}-->
  3. <!--{if $_G['setting']['search']['portal']['status'] && ($_G['group']['allowsearch'] & 1 || $_G['adminid'] == 1)}--><!--{block slist[portal]}--><label for="mod_article" title="{lang search}{lang article}"><input type="radio" id="mod_article" class="pr" name="mod" value="portal"{if CURSCRIPT == 'portal'} checked="checked"{/if} /> {lang article}</label><!--{/block}--><!--{/if}-->
  4. <!--{if $_G['setting']['search']['forum']['status'] && ($_G['group']['allowsearch'] & 2 || $_G['adminid'] == 1)}--><!--{block slist[forum]}--><label for="mod_thread" title="{lang search}$_G['setting']['navs'][2]['navname']"><input type="radio" id="mod_thread" class="pr" name="mod" value="forum"{if CURSCRIPT == 'forum'} checked="checked"{/if} /> $_G['setting']['navs'][2]['navname']</label><!--{/block}--><!--{/if}-->
  5. <!--{if $_G['setting']['search']['blog']['status'] && ($_G['group']['allowsearch'] & 4 || $_G['adminid'] == 1)}--><!--{block slist[blog]}--><label for="mod_blog" title="{lang search}{lang blog}"><input type="radio" id="mod_blog" class="pr" name="mod" value="blog"{if CURSCRIPT == 'home' && $do != 'album'} checked="checked"{/if} /> {lang blog}</label><!--{/block}--><!--{/if}-->
  6. <!--{if $_G['setting']['search']['album']['status'] && ($_G['group']['allowsearch'] & 8 || $_G['adminid'] == 1)}--><!--{block slist[album]}--><label for="mod_album" title="{lang search}{lang album}"><input type="radio" id="mod_album" class="pr" name="mod" value="album"{if CURSCRIPT == 'home' && $do == 'album'} checked="checked"{/if} /> {lang album}</label><!--{/block}--><!--{/if}-->
  7. <!--{if $_G['setting']['groupstatus'] && $_G['setting']['search']['group']['status'] && ($_G['group']['allowsearch'] & 16 || $_G['adminid'] == 1)}--><!--{block slist[group]}--><label for="mod_group" title="{lang search}$_G['setting']['navs'][3]['navname']"><input type="radio" id="mod_group" class="pr" name="mod" value="group"{if CURSCRIPT == 'group'} checked="checked"{/if} /> $_G['setting']['navs'][3]['navname']</label><!--{/block}--><!--{/if}-->
  8. <!--{block slist[user]}--><label for="mod_user" title="{lang search_friends}"><input type="radio" id="mod_user" name="mod" value="user" class="pr" /> {lang users}</label><!--{/block}-->
  9. <!--{/if}-->
复制代码
更新为:

  1. <!--{if $_G['setting']['search']}-->
  2. <!--{eval $slist = array();}-->
  3. <!--{if $_G['setting']['search']['portal']['status'] && ($_G['group']['allowsearch'] & 1 || $_G['adminid'] == 1)}--><!--{block slist[portal]}--><label for="mod_article" title="{lang search}{lang article}"><input type="radio" id="mod_article" class="pr" name="mod" value="portal"{if CURSCRIPT == 'portal'} checked="checked"{/if} onclick="modifyAdvancedUrl(this.value);" /> {lang article}</label><!--{/block}--><!--{/if}-->
  4. <!--{if $_G['setting']['search']['forum']['status'] && ($_G['group']['allowsearch'] & 2 || $_G['adminid'] == 1)}--><!--{block slist[forum]}--><label for="mod_thread" title="{lang search}$_G['setting']['navs'][2]['navname']"><input type="radio" id="mod_thread" class="pr" name="mod" value="forum"{if CURSCRIPT == 'forum'} checked="checked"{/if} onclick="modifyAdvancedUrl(this.value);" /> $_G['setting']['navs'][2]['navname']</label><!--{/block}--><!--{/if}-->
  5. <!--{if $_G['setting']['search']['blog']['status'] && ($_G['group']['allowsearch'] & 4 || $_G['adminid'] == 1)}--><!--{block slist[blog]}--><label for="mod_blog" title="{lang search}{lang blog}"><input type="radio" id="mod_blog" class="pr" name="mod" value="blog"{if CURSCRIPT == 'home' && $do != 'album'} checked="checked"{/if} onclick="modifyAdvancedUrl(this.value);" /> {lang blog}</label><!--{/block}--><!--{/if}-->
  6. <!--{if $_G['setting']['search']['album']['status'] && ($_G['group']['allowsearch'] & 8 || $_G['adminid'] == 1)}--><!--{block slist[album]}--><label for="mod_album" title="{lang search}{lang album}"><input type="radio" id="mod_album" class="pr" name="mod" value="album"{if CURSCRIPT == 'home' && $do == 'album'} checked="checked"{/if} onclick="modifyAdvancedUrl(this.value);" /> {lang album}</label><!--{/block}--><!--{/if}-->
  7. <!--{if $_G['setting']['groupstatus'] && $_G['setting']['search']['group']['status'] && ($_G['group']['allowsearch'] & 16 || $_G['adminid'] == 1)}--><!--{block slist[group]}--><label for="mod_group" title="{lang search}$_G['setting']['navs'][3]['navname']"><input type="radio" id="mod_group" class="pr" name="mod" value="group"{if CURSCRIPT == 'group'} checked="checked"{/if} onclick="modifyAdvancedUrl(this.value);" /> $_G['setting']['navs'][3]['navname']</label><!--{/block}--><!--{/if}-->
  8. <!--{block slist[user]}--><label for="mod_user" title="{lang search_friends}"><input type="radio" id="mod_user" name="mod" value="user" class="pr" onclick="modifyAdvancedUrl(this.value);" /> {lang users}</label><!--{/block}-->
  9. <!--{/if}-->
复制代码
第二处:

  1. <td><a href="search.php?mod=search&adv=yes" target="_blank" class="xi2">{lang advanced_search}</a></td>
复制代码
更新为

  1. <td><a href="search.php?mod=forum&adv=yes" id="advancedsearch" target="_blank" class="xi2">{lang advanced_search}</a></td>
复制代码
第三处:

  1. <div class="hot">
  2.       <!--{if $_G['setting']['srchhotkeywords']}-->
  3.       <strong class="xw1 xi1">{lang hot_search}: </strong>
  4.       <!--{loop $_G['setting']['srchhotkeywords'] $val}--><!--{if $val = trim($val)}--><a href="search.php?mod=search&srchtxt={echo rawurlencode($val)}&formhash=f1c7ceaa&searchsubmit=true" target="_blank" class="xi2">$val</a><span class="pipe">|</span><!--{/if}--><!--{/loop}-->
  5.       <!--{/if}-->
  6.      </div>
复制代码
更新为:

  1. <div class="hot">
  2.       <!--{if $_G['setting']['srchhotkeywords']}-->
  3.       <strong class="xw1 xi1">{lang hot_search}: </strong>
  4.        <!--{loop $_G['setting']['srchhotkeywords'] $val}-->
  5.         <!--{if $val=trim($val)}-->
  6.          <!--{eval $valenc=rawurlencode($val);}-->
  7.          <!--{block srchhotkeywords[]}--><a href="search.php?mod=search&srchtxt=$valenc&formhash={FORMHASH}&searchsubmit=true" target="_blank" class="xi2">$val</a><!--{/block}-->
  8.         <!--{/if}-->
  9.        <!--{/loop}-->
  10.        {echo implode('<span class="pipe">|</span>', $srchhotkeywords);}
  11.       <!--{/if}-->
  12.      </div>
复制代码
第四处:
  1. <script type="text/javascript">initSearchmenu();</script>
复制代码
更新为:

  1. <script type="text/javascript">
  2.   initSearchmenu();
  3.   function modifyAdvancedUrl(mod) {
  4.    $('advancedsearch').href = 'search.php?adv=yes&mod=' + mod;
  5.   }
  6. </script>
复制代码

评分

1

查看全部评分

回复

使用道具 举报

蛇镜眼是不蛇某 发表于 2010-11-26 23:37:38 | 显示全部楼层
这都可以列出来···

看来我还得增强看代码不头晕的能力····
回复

使用道具 举报

freeman3c 发表于 2010-11-27 15:42:59 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

freeman3c 发表于 2010-11-27 15:44:47 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

eyunan 发表于 2010-11-28 09:28:06 | 显示全部楼层
回复

使用道具 举报

laoshuabb 发表于 2010-11-28 17:07:02 | 显示全部楼层
回复

使用道具 举报

rstar 发表于 2010-11-30 00:22:56 | 显示全部楼层
回复

使用道具 举报

wangyunxuan 发表于 2010-11-30 13:15:41 | 显示全部楼层
官方不是出了更新包了么?
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-15 06:50 , Processed in 0.035730 second(s), 7 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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