Dream Weaving automatic Recognition Registered Member mailbox list verify mailbox link

Source: Internet
Author: User

Intermediary transaction SEO diagnosis Taobao guest Cloud host technology Hall

Dream weaving if you need a member module, the member needs to verify the mailbox, can carry out other operations, the Member registration pop-up page and the Member home page and no mailbox verification link. User verification mailbox needs to go to the address bar to open the mailbox login interface, the user experience is not high.

Here on the introduction, how to make the user after registration, automatically judge the mailbox, and after the Member registration pop-up page and member homepage to the login email link, improve the user experience degree.

One, the goal: realizes the Dede member registers the automatic Judgment mailbox, and gives the verification mailbox login link

Member Homepage effect is as follows:

After registering the pop-up page appears the validation mailbox button effect is as follows:

Ii. Operation Process

1, Find http://www.badubox.com/member/templets/reg-new3.htm

Note: The path above is the local station, please find your own site Directory/member/templets/index.htm

Find:< a href= "/" > Back Home </a>

Add the following code below it:

< a href= "http://mail.<? php

$lmail = $email;

$lenmai L = strlen ("$lmail");

$lenemail = strcspn ("$lmail", "@");

$lenmailvalue = $lenmail-$lenemail-1;

$regmail = substr ("$lmail",-$lenmailvalue);

Echo $regmail;

?> > Verify Mailbox Now

2, Find http://www.badubox.com/member/templets/index.htm

Note: The path above is the local station, please find your own site Directory/member/templets/index.htm

Find:

No personality signature, try it in the input box below

Add the following code below it:

< a href= "http://mail.

$lmail = $cfg _ml->fields[' email '];

$lenmail = strlen ("$lmail");

$lenemail = strcspn ("$lmail", "@");

$lenmailvalue = $lenmail-$lenemail-1;

$regmail = substr ("$lmail",-$lenmailvalue);

Echo $regmail;

?> > Verify Mailbox

Iii. Code Resolution

1. Code in reg-new3.htm

< a href= "http://mail.

$lmail = $email;

$lenmail = strlen ("$lmail");

$lenemail = strcspn ("$lmail", "@");

$lenmailvalue = $lenmail-$lenemail-1;

$regmail = substr ("$lmail",-$lenmailvalue);

Echo $regmail;

?> > Verify Mailbox Now

Resolution:

Set Variable $lmail= $email

$lenmail = strlen ("$lmail");//Gets the length of the $lmail string and assigns the value to $lenmail

$lenemail = strcspn ("$lmail", "@"),//Gets the length of the first character to the @ character in the $lmail string, and assigns the value to $lenemail.

$lenmailvalue = $lenmail-$lenemail-1; Total string Length-the first character of the string to the length of @ 1, gets the total length of the @ to the last character.

$regmail = substr ("$lmail",-$lenmailvalue);//Gets the string of the string @ to the last character.

echo $regmail//Output A string of @ to the last character.

< a href= "Http://mail.echo $regmail;" > Verify your mailbox now

2. Code in Index.htm

< a href= "http://mail.

$lmail = $cfg _ml->fields[' email ');

$lenmail = strlen ("$lmail");

$lenemail = strcspn ("$lmail", "@");

$lenmailvalue = $lenmail-$lenemail-1;

$regmail = substr ("$lmail",-$lenmailvalue);

Echo $regmail;

?> > Verify Mailbox

Resolution:

$lmail = $cfg _ml->fields[' email '];//get the mailbox string, assign to $lmail

$lenmail = strlen ("$lmail");//Gets the length of the $lmail string and assigns the value to $lenmail

$lenemail = strcspn ("$lmail", "@"),//Gets the length of the first character to the @ character in the $lmail string, and assigns the value to $lenemail.

$lenmailvalue = $lenmail-$lenemail-1; Total string Length-the first character of the string to the length of @ 1, gets the total length of the @ to the last character.

$regmail = substr ("$lmail",-$lenmailvalue); Gets the string of the string @ to the last character.

echo $regmail//Output A string of @ to the last character.

< a href= "Http://mail.echo $regmail;" > Verify Mailbox </a>

Four, this completes!

Design by www.badubox.com Eight-degree box Game network

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.