Page 1 of 1

Bookmarks and email

Posted: Mon Sep 26, 2005 4:28 pm
by gigicop
Hi all!
I'm using Bookmark 1.3.1 with CMSMS 0.10 and it really works fine.
The only problem that I have is that, when I receive a message concerning a new bookmark submitted by a visitor, all the fields of the form are empty. Here is what what the message contains:

A new bookmark has been submitted.

Title:
Url:
Summary:

Title, URL and summary are not displaied in the message.
It's not really a problem because I can see these details in the control panel, but I would like to find a solution.
I'm sure that I'm doing something wrong, but what?
Thanks.

Gigi

Re: Bookmarks and email

Posted: Mon Sep 26, 2005 6:25 pm
by Akrabat
Looks like there's a bug in the code :)

Try editing lines 1341 to 1343 and changing from:

Code: Select all

				$body .= "Title: {$parameters[$module_id.'title']}\n";
				$body .= "Url: {$parameters[$module_id.'url']}\n";
				$body .= "Summary: {$parameters[$module_id.'summary']}\n";
to

Code: Select all

				$body .= "Title: {$parameters[$id.'title']}\n";
				$body .= "Url: {$parameters[$id.'url']}\n";
				$body .= "Summary: {$parameters[$id.'summary']}\n";
Of course, this is only from a code inspection, I haven't actually tested it !

Re: Bookmarks and email

Posted: Mon Sep 26, 2005 9:09 pm
by gigicop
Thank you very much for your message!
I think I did everything correctly, but it didn't work. I'll check more carefully and try again with the original file. In fact I translated it into italian, and I could have damaged it. Anyway I had the same problem with the original file as well.
Thank you again.
Bye.

Gigi

Re: Bookmarks and email

Posted: Thu Mar 22, 2007 9:49 am
by peugeot-304
Ths solution does work on my site:
Just edit following lines:

1395 $body .= $this->Lang("title"). ": {$parameters[$module_id.'bookmark_title']}\n";
1396 $body .= $this->Lang("url").": {$parameters[$module_id.'bookmark_url']}\n";
1397 $body .= $this->Lang("summary").": {$parameters[$module_id.'bookmark_summary']}\n";


Kind regards
Dieter