How does DEDECMS allow members to log in or log out and jump directly to the home page?
Modification method for DreamWeaver DEDECMS members to log in or log out and jump directly to the home page
Recommended learning: DreamWeaver cms
Default dede In the template, after members log in to the homepage, they will jump to the member center by default.
If we want to jump to the website homepage after logging in, we can modify the dede file like this:
1, Find this index_do.php file in the /member directory
2. Search for the following sentence:
ShowMsg("成功登录,5秒钟后转向系统主页...","index.php",0,2000);
and replace it with:
ShowMsg("成功登录,5秒钟后转向系统主页...","/",0,2000);
In addition: If dede members want to quit dede System, also return to the dede website homepage
You can search the following sentence in the file:
ShowMsg("成功退出登录!","index.php",0,2000);
Replace it with:
ShowMsg("成功退出登录!","/",0,2000);
In this way, dede members log in and log out will not return to the dede member center.
The above is the detailed content of How does DEDECMS realize member login or logout and jump directly to the homepage?. For more information, please follow other related articles on the PHP Chinese website!