Gossamer Forum
Home : Products : Links 2.0 : Customization :

add site email confirm

Quote Reply
add site email confirm
When I add a site and then rebuild, I do not receive an email that contains the information I added plus ID number, etc. The information gets added to the database and I am able to view the new listing, but no email to confirm that it has been added to the database.

Quote Reply
Re: add site email confirm In reply to
hi
search for

# Notify visitors automatically when their links are validated?
$db_email_add = 1;

# Notify visitors automatically when their links are modified?
$db_email_modify = 1;

in your links.cfg be sure to set this to 1

bye
gregor


Quote Reply
Re: add site email confirm In reply to
Thanks for your quick reply. I fixed it and have received all the information by email after validation, except for the ID number for that particular submission. How do I go about to remedy this?

Quote Reply
Re: add site email confirm In reply to
Hello...

In your email_add.txt file (or any of the others) just add a field like this:

Thank you for visiting our site. We've added the following link into
our directory:
Code:
Title : <%Title%>
URL : <%URL%>
Category : <%Category%>
Description : <%Description%>
Contact Name : <%Contact Name%>
Contact Email: <%Contact Email%>
ID # : <%ID%>

You can see your new listing at:
Just add the tag <%ID%> and the script will parse it for you.

Hope this helps! Smile

Jeremy Kerr
------------------------------
http://www.indianawebsites.com
Quote Reply
Re: add site email confirm In reply to
Hi Jeremy,

I added the ID tag to my email_add.txt file but when I received the email after validation, the email says 'Unknown Tag: Category'. Here is my email_add.txt:

Thank you for visiting our site. We've added the following link into
our directory:

Title : <%Title%>
URL : <%URL%>
Category : <%Category%>
Description : <%Description%>
Contact Name : <%Contact Name%>
Contact Email: <%Contact Email%>
ID # : <%ID%>

Please save this information in order to make future modifications to your link submission.

You can see your new listing at:

For some reason, the script is not recognizing the ID tag...


Quote Reply
Re: add site email confirm In reply to
Do you have a field called Category in your links.def file??

Regards,

Eliot Lee
Quote Reply
Re: add site email confirm In reply to
Yes, there is that field. Here is what I have in my link.drf file:

# Definition of your database file.
%db_def = (
ID => [0, 'numer', 5, 8, 1, '', ''],
Title => [1, 'alpha', 40, 75, 1, '', ''],
URL => [2, 'alpha', 40, 75, 1, 'http://', '^http|news|mailto|ftp'],
Date => [3, 'date', 15, 15, 1, \&get_date, ''],
Category => [4, 'alpha', 0, 150, 1, '', ''],
Description => [5, 'alpha', '40x3', 500, 0, '', ''],
'Contact Name' => [6, 'alpha', 40, 75, 1, '', ''],
'Contact Email' => [7, 'alpha', 40, 75, 1, '', '.+@.+\..+'],
Hits => [8, 'numer', 10, 10, 1, '0', '\d+'],
isNew => [9, 'alpha', 0, 5, 0, 'No', ''],
isPopular => [10, 'alpha', 0, 5, 0, 'No', ''],
Rating => [11, 'numer', 10, 10, 1, 0, '^[\d\.]+$'],
Votes => [12, 'numer', 10, 10, 1, 0, '^\d+$'],
ReceiveMail => [13, 'alpha', 10, 10, 1, 'Yes', 'No|Yes']
);


Quote Reply
Re: add site email confirm In reply to
I have it working now....thanks everyone for your help.

Quote Reply
Re: add site email confirm In reply to
For others who may experience the same problem, it would be nice if you post the solution that you found.

Regards,

Eliot Lee