或者通过合作网站直接登录猪跑啦
用新浪微博登陆
用QQ账号登陆
大家是怎么做当用户没有登陆时,无论访问那个页面都跳转到登陆页面的?
在所有page*.tpl.php页面增加
1 2 3 4
<?php if (!$user->uid) header("Location: http://www.drupalla.com/user/register"); } ?>
再加点料更好:?destination=[当前路径] 登录or注册后会跳转回来
2 个回答
在所有page*.tpl.php页面增加
分头诗人Lv 17
再加点料更好:?destination=[当前路径] 登录or注册后会跳转回来
希望之翼Lv 9