close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Double opt in registration - rsVerify problem

Thread began 2/06/2014 12:04 pm by FrankJay | Last modified 2/07/2014 8:39 pm by Jason Byrnes | 2706 views | 11 replies |

FrankJay

Double opt in registration - rsVerify problem

I have worked through the tutorial several times. Each time, starting afresh.

On the section: configure the confirm page, I create the rsVerify recordset and the required parameter variables.

Moving on to the "create the update verified functionality", I create the required URL variables and then move onto update single record. When I click on the dynamic value field to expand the recordset reverify, the is no recordset listed.

Totally stumped on what the cause could be. I'm including the generated code for the user-confirm.php page.

<?php require_once('Connections/connSAWA.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}

$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
?>
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Untitled Document</title>
</head>

<body>
<p>Thank you for verifying your email address. You may now <a href="login.php">view restricted content</a>.</p>
<p>Your verification link has expired. Visit your <a href="userupdate.php">profile page</a> to send a new link.</p>
</body>
</html>
<?php
mysql_free_result($rsVerify);
?>

Another issue: creating the random string on the registration page. Point 7. Select WebAssist > Cookies > Set Session Value, the eCart dialogue box opens when wanting to perform this creation. Should it do so?

I am Using a Mac Pro, OS X ver 10.8.5. installed extensions: DB 1.1.8, DE 1.1.7 and eCart 5.0.7

Kindly advise. Thank you.

Sign in to reply to this post

Jason ByrnesWebAssist

there is no recordset code on this page.

it looks like you have deleted the recordset after creating it.

maybe it was selected in code view and you accidentally deleted it.


i see code to unset the recordset:
mysql_free_result($rsVerify);

by no code to create it.

Sign in to reply to this post

FrankJay

Repeated numerous times

Thank you for your quick response Jason.

I've re-created this page several times today. Same problem. After creating the recordset, I do not save the page, as per tutorial, before creating the update verified functionality.

Should I save the page first before moving to the next step?

Sign in to reply to this post

Jason ByrnesWebAssist

yes, save it after creating the recordset.

Sign in to reply to this post

FrankJay

I'll give it a go

I will continue in the morning and send feedback.

Thank you Jason.

Sign in to reply to this post

FrankJay

Same problem

I cleared the configuration cache file. Restarted Dreamweaver, recreated the user-confirm.php page from scratch.

Created the rs Verify recordset and the variables. See screenshot. As soon as I click the OK button and before saving my page, the recordset code is not inserted and remains the same as my first post.

Started all over again but this time I created the reVerify recordset without the variables, click OK. Exactly the same problem.

What next?

Sign in to reply to this post

Jason ByrnesWebAssist

when you installed extensions:
DB 1.1.8, DE 1.1.7 and eCart 5.0.7

what was the install order?

eCart should be installed first. try uninstalling Data Bridge then reinstalling it


aslo what version of DW?

Sign in to reply to this post

FrankJay

Follow up report

I'm using Dreamweaver CS6.

The sequence of installation: eCart, DE, DB

I uninstalled all WA extensions and then reinstalled.

Deleted all the double opt in files and started again.

Completed registration and redirected to register-confirm.php.

Confirmed that the data had been added to the database.

Received verify email and was redirected to user-confirm.php.

I noticed in the browser URL: http://www.fit8test.co.za/was/user-confirm.php?id=360&randomString=z53mj2s4tx&email=info@fwj.co.za

Text displayed on page: Your verification link has expired. Visit your profile page to send a new link.

Clicked the link "profile page" and redirected to userupdate.php

Text displayed on this page:

"Your email hasn't been verified. Please click here and we will email you a new link.
No record found."

I then clicked on the "click here" link.

URL in browser; http://www.fit8test.co.za/was/userupdate.php?send=true

No verify email received to my inbox.

I am including my files. Please have a look and advise where I'm missing it.

Much appreciated

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

Jason ByrnesWebAssist

on the user-confirm.php page, the run time variable for the paramrandomString parameter in the rsVerify recordset is set to:
$_GET['ri_SubscriberRandomString']


the variable in the email is named randomString
randomString=z53mj2s4tx

the run time value should be set to:
$_GET['randomString']


to troubleshoot the user update page, add the following code in the body and post back the results:

<?php var_dump($_SESSION); echo("<br />".$query_SecurityAssistriSubscribers); ?>

Sign in to reply to this post

FrankJay

Implemented

Thanks Jason
Set run time value to: $_GET['randomString']
Success, emailVerified updated record to 1 in db



when i clicked log in link, i'm not redirected and stay on login.php with "you have been logged in"

thanks

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...