Zhimeng automatically identifies registered member email addresses to list verification email links

Source: Internet
Author: User
Tags email string

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.