标签:
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>
至此,首页的账号通快速登陆去掉完成
标签:
原文地址:http://www.cnblogs.com/yiluxiuxing/p/4393875.html