I sent out dozens of e-mails recently letting people know their reciprocal links were missing. Later I found out there were two problems with these e-mails:
1) The link that is included in the e-mail to let a person edit their site information, looked like this in the e-mail:
So I would expect the {DIRURL} to be replaced with that directory?
2) Once an edit link like that has been put together correctly, it goes to an edit page. However when the edit page is submitted, the changes are ignored and this error message appears:
"You did not complete all of the required fields."
The same error message appears when I try to edit a site in the admin page, even though all of the fields are filled. I tried altering each field a bit and then resubmitting, to no avail.
One possible cause for this. As described in the forum, I removed the Link Type menu from my suggestlink.tpl template, and replaced it with a hidden field rith the value "recip". Site submuission works fine. I notice that the edit site page has no Link Type menu... but the source for the page also has no hidden field for the link type. Why isn't the link type menu showing up on edit page? Should it be? If it's not there do I need to add it to a template for the edit page? What template is the edit page based on?
Thank you for the reply. I was able to solve the "You did not complete all of the required fields." problem by turning on 'can edit all details' permissions for the Admin usergroup (I imagine it was turned off by default because I upgraded from an early version of WSN Links that didn't have that option.)
There is still the problem of {dirurl} not being replaced with the directory URL value in outgoing e-mails. Yes, I do have Enable E-mail Queue turned on, and Number of emails to send at a time from queue is set to 10. Any idea why {dirurl} would not be getting replaced in the e-mails?
I was able to solve the "You did not complete all of the required fields." problem by turning on 'can edit all details' permissions for the Admin usergroup
You should stop requiring whatever field that is, so that non-admins can edit too.
As for {DIRURL}, I don't see how that would happen. E-mailed myself a test to check. Did you send these emails through the 'send emails' option, or through the automated emails in the link checker?
As for {dirurl}, I don't see how that would happen. E-mailed myself a test to check. Did you send these emails through the 'send emails' option, or through the automated emails in the link checker?
They were sent as automated e-mails in the link checker.
Here is an example of what was sent (I received this example myself, and I know that they all went out with this problem because I see the text in replies that I received to the automated e-mails):
For your link Play Free Online Games, no reciprocal link was found at the URL play-free-online-games.com/...products_and_services.html which you have listed your reciprocal link being at. If the link is at a different URL, please update the reciprocal link URL for this link: {DIRURL}/admin/edit.php?action=link&field=id&condition=equals&fieldvalue=1356
Comments on Problems with e-mail
Beginner
Usergroup: Customer
Joined: Mar 13, 2005
Location: Providence, RI
Total Topics: 3
Total Comments: 7
I sent out dozens of e-mails recently letting people know their reciprocal links were missing. Later I found out there were two problems with these e-mails:
1) The link that is included in the e-mail to let a person edit their site information, looked like this in the e-mail:
{DIRURL}/admin/edit.php?action=link&field=id&condition=equals&fieldvalue=1387
My "Directory URL" under "System Configuration" is correctly set to:
http://www.link-exchange.ws/link-exchange
So I would expect the {DIRURL} to be replaced with that directory?
2) Once an edit link like that has been put together correctly, it goes to an edit page. However when the edit page is submitted, the changes are ignored and this error message appears:
"You did not complete all of the required fields."
The same error message appears when I try to edit a site in the admin page, even though all of the fields are filled. I tried altering each field a bit and then resubmitting, to no avail.
One possible cause for this. As described in the forum, I removed the Link Type menu from my suggestlink.tpl template, and replaced it with a hidden field rith the value "recip". Site submuission works fine. I notice that the edit site page has no Link Type menu... but the source for the page also has no hidden field for the link type. Why isn't the link type menu showing up on edit page? Should it be? If it's not there do I need to add it to a template for the edit page? What template is the edit page based on?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Are you using the email queue, or did you turn it off?
I notice that the edit site page has no Link Type menu
The default template does for admins, or any other group with 'can edit all details' permissions.
What template is the edit page based on?
It's labeled 'Edit Link' in your template editor.
"You did not complete all of the required fields."
So what fields have you selected to require in your settings?
Beginner
Usergroup: Customer
Joined: Mar 13, 2005
Location: Providence, RI
Total Topics: 3
Total Comments: 7
Thank you for the reply. I was able to solve the "You did not complete all of the required fields." problem by turning on 'can edit all details' permissions for the Admin usergroup (I imagine it was turned off by default because I upgraded from an early version of WSN Links that didn't have that option.)
There is still the problem of {dirurl} not being replaced with the directory URL value in outgoing e-mails. Yes, I do have Enable E-mail Queue turned on, and Number of emails to send at a time from queue is set to 10. Any idea why {dirurl} would not be getting replaced in the e-mails?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
I was able to solve the "You did not complete all of the required fields." problem by turning on 'can edit all details' permissions for the Admin usergroup
You should stop requiring whatever field that is, so that non-admins can edit too.
As for {DIRURL}, I don't see how that would happen. E-mailed myself a test to check. Did you send these emails through the 'send emails' option, or through the automated emails in the link checker?
Beginner
Usergroup: Customer
Joined: Mar 13, 2005
Location: Providence, RI
Total Topics: 3
Total Comments: 7
They were sent as automated e-mails in the link checker.
Here is an example of what was sent (I received this example myself, and I know that they all went out with this problem because I see the text in replies that I received to the automated e-mails):
Thanks again,
Michael
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
admin/linkchecks.php line 308 is currently and needs to be changed to
Beginner
Usergroup: Customer
Joined: Mar 13, 2005
Location: Providence, RI
Total Topics: 3
Total Comments: 7
Thanks for the solution, I've made the change. Incidentally it was line 304 in my code, not 308.