Guestbook Comment Notification

Permalink
I need to change the link in the notification email sent when anyone comments on the post.

Any help will be highly appreciated.

 
VPenkov replied on at Permalink Reply
VPenkov
Hi.

Have a look inside your /concrete/mail/ directory.
You're gonna find a few files there. Copy whatever you want to change to your /mail/ directory (which is initially empty), and then change it.

In the end you should have two files:
/concrete/mail/block_guestbook_notification.php - which is the original one, and
/mail/block_guestbook_notification.php - which is the one you modified. Concrete5 will work with the second one.

Inside block_guestbook_notification.php you will find a variable $guestbookURL. It is defined inside /concrete/core/controllers/blocks/guestbook.php, line 171, and just fetches the URL of the post. If you need to work with that, please do post precisely what you are trying to do so I can give you more precise instructions.
Samirraut34 replied on at Permalink Reply
Thanks for your reply.

I a using multiple domain plugin so all the customization is controlled from the main domain.
The guestbook block is added in one of the website, so when the user comments from that website the link in the notification has the domain of that website and not the main domain that's the reason the link is not opening. so i need to change the link to open with main domain.
VPenkov replied on at Permalink Best Answer Reply
VPenkov
Oh, you are on the wrong forum, then.

Before proceeding, try to copy the whole /concrete/mail/ folder's content to your /mail/ folder. This _might_ do something.

Probably not, though.
Anyway, the "Multiple Domains" plugin author seems to be very responsive so you should go on the plugin's page here:http://www.concrete5.org/marketplace/addons/multiple-domains/...

On the right of your screen you're going to find a few links - go to the "Forum" or "Support" link there and notify him about the problem you are experiencing.

He should be overriding some core code in his plugin, and since I don't have the plugin myself, I am unable to assist you any further.
VPenkov replied on at Permalink Reply
VPenkov