Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Validation String

Quote Reply
Validation String
Has anyone else had a bunch of users that couldn't figure out the validation string? Here are some comments I've gotten:
"Too long, forget it. I'm not typing that in"
"Your validation code doesn't work"

The majority can't make the code work. When I try it I can make it work just fine. It believe what they are doing is cutting and pasting the code in, but leaving a space at the front or the end.
It would be nice if the message had a link they could just click on without entering anything. Something like:

http://wwww.mywonderfulsite/links/cgi-bin/admin/validate?3423479374234977

Another option would be to auto truncate the spaces in the string when they submit. That alone would eliminate a lot of complaints.

Quote Reply
Re: Validation String In reply to
You can easily add the validation string...

1) Add the following codes in the signup script (users.cgi):

Code:

if ($IN->param('code')) {
&validate_user($in,$dynamic);
}


Then in the email-validate.txt file, add the following text:

Code:

To validate your account, click on the following link:

http://www.yourdomain.com/cgi-bin/links/users.cgi?code=<%code%>

Or you can type in the following validation code:

<%code%>

via the following web page:

http://www.yourdomain.com/cgi-bin/links/users.cgi?validate=1


Don't really need a "plugin" for this type of code hack.

Regards,

Eliot Lee
Quote Reply
Re: Validation String In reply to
Again, you need:

if ($IN->param('code')) {
&validate_user($in,$dynamic);
}


not

if ($IN->('code')) {
&validate_user($in,$dynamic);
}









Installs:http://wiredon.net/gt
FAQ:http://wiredon.net/gt/download.shtml

Quote Reply
Re: Validation String In reply to
Thanks for pointing out my error, P A U L!

Regards,

Eliot Lee
Quote Reply
Re: Validation String In reply to
No problem E L I O T

Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com

Quote Reply
Re: Validation String In reply to
The other thing you could do with the code, is what I posted probably a year back for Links 1.1x

Use the rewrite engine, and shorten the click-code to

http://yourdomain.com/validate?<%code%>

Makes it alot easier to click, and doesn't get cut in small windows. Or, you could just make it really clear to enter only the code, no leading or trailing spaces, ... or you could also trim out the leading and trailing spaces in the script by adding:

$code = $IN->param('code');
$code =~ s/ //g;
$IN->param('code', $code);

Which, for clarity, will remove spaces.

Many ways to go do it.

PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum
Quote Reply
Re: [Heckler] Validation String In reply to
When I add the code:



if ($IN->param('code')) {
&validate_user($in,$dynamic);
}




to the users.cgi it causes the normal validation , user.cgi?validate=1 to come up with a "404 page not found", thisalso causes other calls to users.cgi to come up with the same error. I've triedto put it in different locations in the file with no success. What could I bedoing wrong?



In Reply To:
You can easily add the validation string...

1) Add the following codes in the signup script (users.cgi):

Code:

if ($IN->param('code')) {
&validate_user($in,$dynamic);
}


Then in the email-validate.txtfile, add the following text:

Code:

To validate your account, click on the following link:

http://www.yourdomain.com/cgi-bin/links/users.cgi?code=<%code%>

Or you can type in the following validation code:

<%code%>

via the following web page:

http://www.yourdomain.com/cgi-bin/links/users.cgi?validate=1


Don't really need a "plugin" for thistype of code hack.

Regards,

Eliot Lee
Quote Reply
Re: [OnlineMlm] Validation String In reply to
Hi,

You can do this without modification of code by entering:

http://yoursite/cgi-bin/links/user.cgi?validate_user=1&code=<%code%>

in the template. I'll modify future versions so it removes leading and trailing white space to prevent cut and paste errors.

Cheers,

Alex
--
Gossamer Threads Inc.