"
phpwind的账号通功能早就失效了,但是首页的链接一直存在,造成了很不好的影响
但是后台打开账号通功能又打不开,所以想到了在前端的模板中通过屏蔽这部分代码的方法隐藏掉这个功能在首页的显示
1.打开/tmaplate/wind/header_login.html找到如下代码段并注释掉
[/span>div class=""tar p5"" style=""height:23px;""
[/span>a href=""javascript:;"" onclick=""$windowOpenScript"" class=""sina_ico png_bg""
1)""]{$firstWay【'accountTitle'】}登录<!--
EOT;
if ($loginWays) {
print [
-->
<!--
EOT;
foreach ($loginWays as $restWay) {
$windowOpenScript = WeiboLoginViewHelper_WindowOpenScript($restWay【'type'】);
print [
-->
{$restWay【'accountTitle'】}登录
<!--
EOT;
}
print [
-->
<!--
EOT;
$GLOBALS【'db_menuinit'】 .= "",'weibo_login' : 'menu_weibo_login'"";
}
print [
-->
2.打开/tmaplate/你的模板名/header_login.htm,找到如下代码段并注释
[/span>div class=""tar p5"" style=""height:23px;""
[/span>a href=""javascript:;"" onclick=""$windowOpenScript"" class=""sina_ico png_bg""
<!--
EOT;
if ($loginWays) {
print [
-->
<!--
EOT;
foreach ($loginWays as $restWay) {
$windowOpenScript = WeiboLoginViewHelper_WindowOpenScript($restWay【'type'】);
print [
-->
<!-- {$restWay【'accountTitle'】}登录
<!--
EOT;
}
print [
-->
<!--
EOT;
$GLOBALS【'db_menuinit'】 .= "",'weibo_login' : 'menu_weibo_login'"";
}
print [
-->
3.打开/mode/area/tmplate/m_header.htm找到如下代码段并注释
[/span>div class=""tar p5"" style=""height:23px;""
[/span>a href=""javascript:;"" onclick=""$windowOpenScript"" class=""sina_ico png_bg""
<!--
EOT;
if ($loginWays) {
print [
-->
<!--
EOT;
foreach ($loginWays as $restWay) {
$windowOpenScript = WeiboLoginViewHelper_WindowOpenScript($restWay【'type'】);
print [
-->
<!-- //代码效果参考:https://v.youku.com/v_show/id_XNjQwMDEzODE4MA==.html
{$restWay【'accountTitle'】}登录<!--
EOT;
}
print [
-->
<!--
EOT;
$GLOBALS【'db_menuinit'】 .= "",'weibo_login' : 'menu_weibo_login'"";
}
print [
-->
至此,首页的账号通快速登陆去掉完成
"