码迷,mamicode.com
首页 > Windows程序 > 详细

phpwind之关闭账号通

时间:2015-04-05 13:19:08      阅读:188      评论:0      收藏:0      [点我收藏+]

标签:

phpwind的账号通功能早就失效了,但是首页的链接一直存在,造成了很不好的影响

但是后台打开账号通功能又打不开,所以想到了在前端的模板中通过屏蔽这部分代码的方法隐藏掉这个功能在首页的显示

1.打开/tmaplate/wind/header_login.html找到如下代码段并注释掉

<div class="tar p5" style="height:23px;">
        <a href="javascript:;" onclick="$windowOpenScript" class="sina_ico png_bg">{$firstWay[‘accountTitle‘]}登录</a>
<!--
EOT;
    if ($loginWays) {
print <<<EOT
-->
<!--
EOT;
        foreach ($loginWays as $restWay) {
            $windowOpenScript = WeiboLoginViewHelper_WindowOpenScript($restWay[‘type‘]);
print <<<EOT
-->
      <a title="使用{$restWay[‘accountTitle‘]}登录" href="javascript:;" onclick="$windowOpenScript" class="qq_ico mr5 png_bg">{$restWay[‘accountTitle‘]}登录</a>
<!--
EOT;
        }
print <<<EOT
-->
<!--
EOT;
        $GLOBALS[‘db_menuinit‘] .= ",‘weibo_login‘ : ‘menu_weibo_login‘";
    }
print <<<EOT
-->
</div>

2.打开/tmaplate/你的模板名/header_login.htm,找到如下代码段并注释

<div class="tar p5" style="height:23px;">
        <a href="javascript:;" onclick="$windowOpenScript" class="sina_ico png_bg">{$firstWay[‘accountTitle‘]}登录</a>
<!--
EOT;
    if ($loginWays) {
print <<<EOT
-->
<!--
EOT;
        foreach ($loginWays as $restWay) {
            $windowOpenScript = WeiboLoginViewHelper_WindowOpenScript($restWay[‘type‘]);
print <<<EOT
-->
    <!--    <a title="使用{$restWay[‘accountTitle‘]}登录" href="javascript:;" onclick="$windowOpenScript" class="qq_ico mr5 png_bg">{$restWay[‘accountTitle‘]}登录</a>
<!--
EOT;
        }
print <<<EOT
-->
<!--
EOT;
        $GLOBALS[‘db_menuinit‘] .= ",‘weibo_login‘ : ‘menu_weibo_login‘";
    }
print <<<EOT
-->
</div>

3.打开/mode/area/tmplate/m_header.htm找到如下代码段并注释

<div class="tar p5" style="height:23px;">
        <a href="javascript:;" onclick="$windowOpenScript" class="sina_ico png_bg">{$firstWay[‘accountTitle‘]}登录</a>
<!--
EOT;
    if ($loginWays) {
print <<<EOT
-->
<!--
EOT;
        foreach ($loginWays as $restWay) {
            $windowOpenScript = WeiboLoginViewHelper_WindowOpenScript($restWay[‘type‘]);
print <<<EOT
-->
    <!--    <a title="使用{$restWay[‘accountTitle‘]}登录" href="javascript:;" onclick="$windowOpenScript" class="qq_ico mr5 png_bg">{$restWay[‘accountTitle‘]}登录</a>
<!--
EOT;
        }
print <<<EOT
-->
<!--
EOT;
        $GLOBALS[‘db_menuinit‘] .= ",‘weibo_login‘ : ‘menu_weibo_login‘";
    }
print <<<EOT
-->
</div>

至此,首页的账号通快速登陆去掉完成

phpwind之关闭账号通

标签:

原文地址:http://www.cnblogs.com/yiluxiuxing/p/4393875.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!