Gossamer Forum
Home : Products : Links 2.0 : Customization :

Several mods like Anthrotech.

Quote Reply
Several mods like Anthrotech.
Hi all:

I have been seeing the file add.html of vlib.Anthrotech.com and there are some things (mods) that are brilliant, but me not how to make it work in Links2.

1. - option of selecting related webs.

2. - field to repeat the countersign and the mail address.

3. - option of suggesting a category in the same form.

4. - and lastly the option Preview.

Somebody... does know where to find those mods?

Thanks you in advance.

Carlos
Quote Reply
Re: Several mods like Anthrotech. In reply to
Thank you another time, Eliot.

I know that many of the mods used in Anthrotech are included in the Section of Resources and in the Forum, but I am not expert in computer science and I put a lot of interest to learn, but neither I am very good with the English and for that reason everything gets complicated...

About the second question:

Quote:
2. - field to repeat the countersign and the mail address.


I am not good with the programming in perl, you can tell me if I only need to add a field more, or I need to make some change more

Thank you again, Thank you, Thank you... Smile
Quote Reply
Re: Several mods like Anthrotech. In reply to
 
Quote:
1. - option of selecting related webs.

If you mean related categories, it is Loopy's Multiple Categories Mod, which is linked MANY times in this forum and in the Discussion Forum...Search for Loopy.

Quote:
2. - field to repeat the countersign and the mail address.

Not very hard if you know anything about Perl.

Wink

Quote:
3. - option of suggesting a category in the same form.

I provided codes to do this recently in this forum in the last three days. And Ian also wrote a Topic regarding this issue about two and half months ago...Search the forum!

Quote:
4. - and lastly the option Preview.

This is the Add Confirmation Mod, which is located in the Resource Center...Search the Resource Center, or look in the Modification section of LINKS.

This is the last time I am going to post the following statement....

Eighty five percent of the Modifications I use in my LINKS directory can be found in this Forum and in the Resource Center! Search both to find the codes you need and want.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.


Quote Reply
Re: Several mods like Anthrotech. In reply to
Okay...for the email verification field...this is what I have done...

1) Add the following codes in the sub process_form routine in the add.cgi file:

Code:
unless ($in{'Contact Email'} eq $in{'Email2'}) {
$message .= "<li>Your Email fields do not match.</li><BR>";
}
if ($message) {
chomp($message);
&site_html_add_failure($message);
return;
}

AFTER the following codes:

Code:
$status = &validate_record(%in);

2) Then add the following codes in your add.html template file:

Code:
Verify E-mail Address: <input type="text" name="Email2" size="40">

3) Then add the following codes in your add_error.html template file:

Code:
Verify E-mail Address: <input type="text" name="Email2" value="<%Email2%>" size="40">

Pretty easy to do...if you understand Perl.

Wink

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.


Quote Reply
Re: Several mods like Anthrotech. In reply to
Thanks again: Smile Smile Smile

it is the same process for the password field validation?
Quote Reply
Re: Several mods like Anthrotech. In reply to
Just a note,
Quote:
quote:
--------------------------------------------------------------------------------

3. - option of suggesting a category in the same form.

--------------------------------------------------------------------------------

I provided codes to do this recently in this forum in the last three days. And Ian also wrote a Topic regarding this issue about two and half months ago...Search the forum!

That would be Ian Conza (I think that is it) and not me Wink Just in case your searchin' for it

Smile
thanks,
Ian

Quote Reply
Re: Several mods like Anthrotech. In reply to
 
Quote:
it is the same process for the password field validation?

If you have a password field, then yes.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.


Quote Reply
Re: Several mods like Anthrotech. In reply to
Yes, good observation... Wink

I work with password mod

Thanks again, Smile
Quote Reply
Re: Several mods like Anthrotech. In reply to
You're welcome.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.


Quote Reply
Re: Several mods like Anthrotech. In reply to
Stupid me, sorry now works!

I have put the same message... X-(


I have been able to install the mod to confirm the email address and the password, but the problem is that first one appears me and later the other one. That is to say: if the user makes a mistake when confirming his email and his password, the page of error display only the error of the Email and after correcting it, like to the user he is not warned, the error page appears but now display the password error.

How can I make that both appear at the same time, if by the process is required?

This is my code in add.cgi

Code:
# Validate the form input..
$status = &validate_record(%in);
unless ($in{'Contact Email'} eq $in{'Email2'}) {
$message .= "<strong class=error><ul><li>La dirección Email introducida y la verificación no coinciden.</ul></strong>";
}
if ($message) {
chomp($message);
&site_html_add_failure($message);
return;
}
unless ($in{'Password'} eq $in{'Pass2'}) {
$message .= "<strong class=error><ul><li>La dirección Email introducida y la verificación no coinciden.</ul></strong>";
}
if ($message) {
chomp($message);
&site_html_add_failure($message);
return;
}

if ($status eq "ok") {

thanks another time,

Carlos


[This message has been edited by Nomada (edited April 19, 2000).]
Quote Reply
Re: Several mods like Anthrotech. In reply to
uh...your problem is that you are using duplicate codes that shouldn't be using!

*sigh*

Here are the codes that you need to use:

Code:
unless ($in{'Contact Email'} eq $in{'Email2'}) {
$message .= "<strong class=error><ul><li>La dirección Email introducida y la verificación no coinciden.</ul></strong>";
}
unless ($in{'Password'} eq $in{'Pass2'}) {
$message .= "<strong class=error><ul><li>La dirección Email introducida y la verificación no coinciden.</ul></strong>";
}
if ($message) {
chomp($message);
&site_html_add_failure($message);
return;
}

See the difference.

BTW: Here is a simple translation of the following codes:

Code:
if ($message) {
chomp($message);
&site_html_add_failure($message);
return;
}

IF there are error $message(s), then put them on a separate line and send the user to the failed screen with the error messages printed.

Wink

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.


Quote Reply
Re: Several mods like Anthrotech. In reply to
Yes Eliot, I've made this way the first time, but like it had put the same message

Code:
$message .= "<strong class=error><ul><li>La dirección Email introducida y la verificación no coinciden.</ul></strong>";}unless ($in{'Password'} eq $in{'Pass2'}) { $message .= "<strong class=error><ul><li>La dirección Email introducida y la verificación no coinciden.</ul></strong>";

And appeared 2 times email error...

For that reason I have modified the code to leave it such and like it was before making that change and for that reason duplicate appears... But I have been able to solve it for myself (I go learning)... although not without your help Wink

Thanks you

Carlos
Quote Reply
Re: Several mods like Anthrotech. In reply to
Right...

You need to replace the following line:

Code:
$message .= "<strong class=error><ul><li>La dirección Email introducida y la verificación no coinciden.</ul></strong>";

in the Password error codes with your own codes...

I thought that you would figure that out more easily...I guess I was wrong.

Wink

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.