My contact form works well within my gallery, however the message field has this in it every time someone will want to contact me: This message refers to <a href="http://www.hansonartists.com/albums/1">this page</a>.
Any ideas how to get rid of this error simply?
Regards,
Tseyigai
Posts: 814
That's not really an error. It's pre-filled in the form to advise the admin of where the user was commenting from.
You could edit the following code in: <gallerydir>/modules/contactowner/contactowner.php from this:
to this: (this will not pre-fill for the root album, but will for inside any subalbums)
Or just comment out the line with the "This message refers..." instead if you don't want it to pre-fill at all.
Note: Untested at this point...
Posts: 47
thanks, will give that a try.
Posts: 47
Nah, that doesn't work. I tried taking out the "This message refers to and then nothing was visible to send. Then I tried eliminating the This message refers to and left the " and then it's back to where it was before. Should I try to edit any of the <a href=\"" . url::abs_site("{$item->id}") . "\">this page</a>.";
?
thanks,Tseyigai
}
Posts: 814
Just put a '//' in the front of that line to comment it out. Then you should be fine.
Posts: 47
So,do you simply mean this line? $email_body = "This message refers to <a href=\"" . url::abs_site("{$item->id}") . "\">this page</a>."; and then put the // in front of it?
Thanks
Posts: 47
It worked. thanks.