close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Help with double opt tutorial

Thread began 10/02/2013 1:20 pm by danny405167 | Last modified 10/09/2013 3:48 pm by danny405167 | 2105 views | 17 replies |

danny405167

Help with double opt tutorial

I am having problem with making the "Your email hasn't been verified. Please click here and we will email you a new link" appear after the user has changed the email address. The UserEmail gets updated with the new email and UserEmailVerified gets updated from 1 to 0 but the link does not appear. The only time that I can make the link appear is when I call the logout.php page to kill the session. Is there a step missing in the tutorial where after changing the email address(in the userupdate.php) the session should be killed so that the user gets to see and click on the link to get the email verified?
I will post the link and your info to logging into the site

Sign in to reply to this post

danny405167

Originally Said By: danny405167
  I am having problem with making the "Your email hasn't been verified. Please click here and we will email you a new link" appear after the user has changed the email address. The UserEmail gets updated with the new email and UserEmailVerified gets updated from 1 to 0 but the link does not appear. The only time that I can make the link appear is when I call the logout.php page to kill the session. Is there a step missing in the tutorial where after changing the email address(in the userupdate.php) the session should be killed so that the user gets to see and click on the link to get the email verified?
I will post the link and your info to logging into the site  
Sign in to reply to this post

Jason ByrnesWebAssist

Yes, there should be another step on the userupdate page to add another set session value behavior.

For the trigger, click the lightning bolt and select the send URL variable.

Set the session name to:
emailVerified

and the value to 0.

Sign in to reply to this post

danny405167

I added the session value and still the link does not appear when the email is changed. I have to log out in order for it to appear. The show region is set up as NOT VERIFIED USER


<?php if(!WA_Auth_RulePasses("Verified User")){ // Begin Show Region ?>
Your email hasn't been verified. Please click here and we will <a href="userupdate.php?send=true">email you a new link</a>.
<?php } // End Show Region ?>

Attached Files
userupdate.zip
Sign in to reply to this post

Jason ByrnesWebAssist

I'll need to troubleshoot directly, see the private message section.

Sign in to reply to this post

danny405167

Originally Said By: Jason Byrnes
  I'll need to troubleshoot directly, see the private message section.  
Sign in to reply to this post

danny405167

Originally Said By: danny405167
    
Sign in to reply to this post

danny405167

I sent you the info you requested

Sign in to reply to this post

Jason ByrnesWebAssist

see pm

Sign in to reply to this post

danny405167

Thanks, It worked.

I did the same for the user-confirm.php page. I have a test page named access.php with User Verified restriction. Every time I clicked on the

"Thank you for verifying your email address. You may now access restricted content.", the link would fail and redirect to the userupdate.php page.

I moved the code to be after the recordset, but before the update
<?php
if (!session_id()) session_start();
if(!($totalRows_rsVerify == 0)) {
$_SESSION["UserEmailVerified"] = "1";
}
?>

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...