If the member module is required for zhimeng, the member needs email verification to perform other operations. After the Member is registered, the pop-up page and the member homepage do not have the email verification link. To verify the email address, you must go to the address bar to open the email login interface. The user experience is not high.
This section describes how to enable the user to automatically determine the mailbox after registration, and provide a logon email link to the member homepage on the pop-up page after Member registration to improve user experience.
I. Goal: To automatically determine the email address for DEDE Member registration and provide a verification email login link
The effect of the member homepage is as follows:
The "verify email" button appears on the pop-up page after registration. The effect is as follows:
Ii. Procedure
1. Find http://www.badubox.com/member/templets/reg-new3.htm
Note: The above path is the path of this site. Please find your website directory/member/templets/index.htm
Search: <a href = "/"> return to the homepage </a>
Add the code below:
<A href = "http: // mail. <? Php
$ Lmail = $ email;
$ Lenmai l = strlen ("$ lmail ");
$ Lenemail = strcspns ("$ lmail ","@");
$ Lenmailvalue = $ lenmail-$ lenemail-1;
$ Regmail = substr ("$ lmail",-$ lenmailvalue );
Echo $ regmail;
?> "> Verify email now
2. Find the http://www.badubox.com/member/templets/index.htm
Note: The above path is the path of this site. Please find your website directory/member/templets/index.htm
Search:
No personalized signature yet. Try entering it in the input box below
Add the code below:
<A href = "http: // mail.
$ Lmail = $ pai_ml-> fields ['email '];
$ Lenmail = strlen ("$ lmail ");
$ Lenemail = strcspns ("$ lmail ","@");
$ Lenmailvalue = $ lenmail-$ lenemail-1;
$ Regmail = substr ("$ lmail",-$ lenmailvalue );
Echo $ regmail;
?> "> Verify email
Iii. Code Parsing
Code in 1、reg-new3.htm
<A href = "http: // mail.
$ Lmail = $ email;
$ Lenmail = strlen ("$ lmail ");
$ Lenemail = strcspns ("$ lmail ","@");
$ Lenmailvalue = $ lenmail-$ lenemail-1;
$ Regmail = substr ("$ lmail",-$ lenmailvalue );
Echo $ regmail;
?> "> Verify email now
Resolution:
Set variable $ lmail = $ email
$ Lenmail = strlen ("$ lmail"); // obtain the length of the $ lmail string and assign it to $ lenmail.
$ Lenemail = strcspn ("$ lmail", "@"); // obtain the length from the first character to the @ character in the $ lmail string and assign it to $ lenemail.
$ Lenmailvalue = $ lenmail-$ lenemail-1; // The total length of the string-the first character of the string to the length of @-1, and the total length of @ to the last character.
$ Regmail = substr ("$ lmail",-$ lenmailvalue); // obtain the string @ to the last character.
Echo $ regmail; // string that outputs @ to the last character.
<A href = "http://mail.echo $ regmail;"> verify email now
Code in 22.16index.htm
<A href = "http: // mail.
$ Lmail = $ pai_ml-> fields ['email '];
$ Lenmail = strlen ("$ lmail ");
$ Lenemail = strcspns ("$ lmail ","@");
$ Lenmailvalue = $ lenmail-$ lenemail-1;
$ Regmail = substr ("$ lmail",-$ lenmailvalue );
Echo $ regmail;
?> "> Verify email
Resolution:
$ Lmail = $ pai_ml-> fields ['email ']; // obtain the email string and assign it to $ lmail.
$ Lenmail = strlen ("$ lmail"); // obtain the length of the $ lmail string and assign it to $ lenmail.
$ Lenemail = strcspn ("$ lmail", "@"); // obtain the length from the first character to the @ character in the $ lmail string and assign it to $ lenemail.
$ Lenmailvalue = $ lenmail-$ lenemail-1; // The total length of the string-the first character of the string to the length of @-1, and the total length of @ to the last character.
$ Regmail = substr ("$ lmail",-$ lenmailvalue); // obtain the string @ to the last character.
Echo $ regmail; // string that outputs @ to the last character.
<A href = "http://mail.echo $ regmail;"> verifyemail </a>
4. This is done!
Design By www.badubox.com