Webmastersite.net
Register Log In

Problems with e-mail
Problems with the edit link sent out in e-mails

Comments on Problems with e-mail

mrferrier
Beginner

Usergroup: Customer
Joined: Mar 13, 2005
Location: Providence, RI

Total Topics: 3
Total Comments: 7
Posted Mar 17, 2005 - 3:13 AM:

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?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Mar 18, 2005 - 8:34 AM:

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?
mrferrier
Beginner

Usergroup: Customer
Joined: Mar 13, 2005
Location: Providence, RI

Total Topics: 3
Total Comments: 7
Posted Mar 18, 2005 - 3:50 PM:

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?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Mar 18, 2005 - 7:57 PM:

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?
mrferrier
Beginner

Usergroup: Customer
Joined: Mar 13, 2005
Location: Providence, RI

Total Topics: 3
Total Comments: 7
Posted Mar 22, 2005 - 12:29 AM:

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

Thanks again,
Michael
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Mar 22, 2005 - 6:28 PM:

admin/linkchecks.php line 308 is currently
 mail($thislink->email, $subject, $message, "From: ". $settings->email);
and needs to be changed to
 sendemail($thislink->email, $subject, $message, "From: ". $settings->email);
mrferrier
Beginner

Usergroup: Customer
Joined: Mar 13, 2005
Location: Providence, RI

Total Topics: 3
Total Comments: 7
Posted Mar 24, 2005 - 12:26 PM:

Thanks for the solution, I've made the change. Incidentally it was line 304 in my code, not 308.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.