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