- b2evolution CMS Support Forums
- b2evolution Support
- General Support
- [1.10.2] Notification email content is screwy
1 sparky672 Jul 19, 2007 20:29
My b2evolution Version: 1.10.2
The notification email is screwed up a little bit.
The line in the email containing the long link to the comment runs right into the first line of the comments so it always looks like this...
Notification Email wrote:
Blog: Blog Name
Post: Post Title
Author: TESTER (IP: 0.0.0.0)
Email: test@test.com
Url: test.com
Comment: [u]http://www.yourdomain.com/blogs/index.php?
blog=5&p=41&more=1&c=1&tb=1&pb=1#c47
This[/u] is the comment<br />
itself & it includes all HTML tags<br />
& I think it looks bad.<br />Edit/Delete: etc. etc.
Notice how the comments are crammed up under the link and the word "This" becomes part of the URL. Ugly.
Here is the solution:
In this file...
../blogs/inc/MODEL/comments/_comment_class.php
Find this line...
T_('Comment').': '.str_replace('&', '&', $this->get_permanent_url( 'pid' ))."\n" // We use pid to get a short URL and avoid it to wrap on a new line in the mail which may prevent people from clicking
Replace with this line...
T_('Comment').': '.str_replace('&', '&', $this->get_permanent_url( 'pid' ))."\n\n" // We use pid to get a short URL and avoid it to wrap on a new line in the mail which may prevent people from clicking
=> Notice the "\n" was replaced with "\n\n" which puts a blank line between the link and the comments.
:?: It would also be nice to remove all the HTML tags since the email notification comes in as text but I don't know how to do that.