dedecms首页调用登陆状态,必须引用:
- <script language="javascript" type="text/javascript" src="{dede:global.cfg_cmsurl/}/include/dedeajax2.js">
- <script>
在适当位置加入:
- <div id="_userlogin">
- 未登陆显示:<a href="/member/">登录| <a href="/member/">免费注册
- </div>
- <script language="javascript" type="text/javascript">CheckLogin(); </script>
修改登陆后显示/member/ajax_loginsta.php个文件:
- <div class="welcome">你好:<a href="/index.php"><?php echo $cfg_ml->M_UserName; ?></strong>! <a href="/index_do.php?fmdo=login&dopost=exit">退出登录</div>
- <strong><a class="user" href="/index.php"></strong>
- //开源软件:Vevb.com
- <?php echo $cfg_ml->M_Rank; ?>,
- <a href="/index_do.php?fmdo=login&dopost=exit">退出
新闻热点
疑难解答