Home > CMS Tutorial > DEDECMS > How does DEDECMS realize member login or logout and jump directly to the homepage?

How does DEDECMS realize member login or logout and jump directly to the homepage?

藏色散人
Release: 2020-01-08 09:21:47
Original
2641 people have browsed it

How does DEDECMS realize member login or logout and jump directly to the homepage?

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);
Copy after login

and replace it with:

ShowMsg("成功登录,5秒钟后转向系统主页...","/",0,2000);
Copy after login

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);
Copy after login

Replace it with:

ShowMsg("成功退出登录!","/",0,2000);
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template