Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Difference between Contact_Name and Contact Name etc?

Quote Reply
Difference between Contact_Name and Contact Name etc?
I have been adding a few mods and have noticed that on some of my forms I receive 'Unknown Tag' message on different forms using the <%Contact Name%> and <%Contact Email%> tags. (Please note the use of the under_score character).

During modification of a link on one form I have to use the above, and on the other I have to use <%Contact_Name%> and <%Contact_Email%>.

Could someone explain to me what is happening here and why for the same process some forms work and others dont?

I am using the password/modify mod (and is working fine after a few changes).


Thanks,




------------------
Clint
----------------------------------
www.AffiliatesDirectory.com
Proud Supporter of Links SQL
----------------------------------






[This message has been edited by Clint (edited March 31, 2000).]
Quote Reply
Re: Difference between Contact_Name and Contact Name etc? In reply to
Hi,

Which templates are causing which errors. There should be cross compatibility between "Contact Email" and "Contact_Email."

If it's not working, it's a left over bug.
Quote Reply
Re: Difference between Contact_Name and Contact Name etc? In reply to
The modify.html template 'requires' <%Contact_Email%> and <%Contact_Name%>. (I also note in the email_del.txt if I don't use the underscore character I receive an 'unknown tag' error.

I am using an initial template for modification - namely modify_first.html, which just uses the ID and password. Then modify.html is called and if I don't use the underscore characters I receive an 'unknown tag' error.

The funny thing is in modify_error.html and modify_success.html templates I don't need to use the underscore character.

It probably doesn't mean much as all is working, I just found it a little confusing.

Regards,



------------------
Clint
----------------------------------
www.AffiliatesDirectory.com
Proud Supporter of Links SQL
----------------------------------




Quote Reply
Re: Difference between Contact_Name and Contact Name etc? In reply to
In the original code of Links SQL, Contact_Name is used in mySQL database, and <%Contact Name%> is used in all the templates. So in order to pass the correct value from the templates to mySQL database, you have to pass the value of <%Contact Name%> to Contact_Name in your add.cgi or modify.cgi.

To keep it simple, use <%Contact Name%> in all your templates.

Then look for the following lines in modify.cgi (or your mod):
Code:
# Backward compatibility..
$links->{'Contact_Name'} = $in->param('Contact Name');
$links->{'Contact_Email'} = $in->param('Contact Email');

If your mod doesn't have someting like above, you should add them in.


[This message has been edited by Fortune (edited March 31, 2000).]
Quote Reply
Re: Difference between Contact_Name and Contact Name etc? In reply to
Mmmm ... I've had a look at modify.cgi and those two lines are still in there.

I suppose the important thing is that it is working - all the info is certainly going into the dababase correctly and is also able to be modifed correctly.

Regards,



------------------
Clint
----------------------------------
www.AffiliatesDirectory.com
Proud Supporter of Links SQL
----------------------------------




Quote Reply
Re: Difference between Contact_Name and Contact Name etc? In reply to
I am not sure if you are using the Modify only with password from http://www.adeva.de/modify.htm.

If yes, try to change(in sub main of modify.cgi):
Code:
&site_html_modify_form ( { %$rec, Category => $category, %in }, $dynamic);
to:
Code:
$rec->{'Contact Name'} = $rec->{'Contact_Name'};
&site_html_modify_form ( { %$rec, Category => $category, %in }, $dynamic);
So you can use <%Contact Name%> in modify.html.
Quote Reply
Re: Difference between Contact_Name and Contact Name etc? In reply to
I'll give it a try. No doubt I have to duplicate the same thing for Contact_Email?

Regards,



------------------
Clint
----------------------------------
www.AffiliatesDirectory.com
Proud Supporter of Links SQL
----------------------------------




Quote Reply
Re: Difference between Contact_Name and Contact Name etc? In reply to
You should always try and use Contact_Name and Contact_Email. I added some support for 'Contact Name' and 'Contact Email' in add and modify to make the Links 2.0 templates compatible with Links SQL. However, any new changes you are doing, just use the underscore. =)

Cheers,

Alex