SMFHacks.com

Newsletter Pro => Support => Topic started by: raffo on August 14, 2011, 04:57:18 am

Title: <p> in messages
Post by: raffo on August 14, 2011, 04:57:18 am
Is there a way to disable the <p> for every newsletter?!?

I prefer to use the <br> when i finish a line.
Title: Re: <p> in messages
Post by: SMFHacks on August 14, 2011, 08:29:17 am
You would need to modify the code for tinymce add this to the tinymce optin in the news.template.php file
Code: [Select]
    force_p_newlines : false,
    force_br_newlines : true,
    convert_newlines_to_brs : false,
    remove_linebreaks : true,   
If you need to help attach the template file.
Title: Re: <p> in messages
Post by: raffo on August 14, 2011, 01:37:33 pm
i just can't find this file...

i use SMF 2.0 Final
Title: Re: <p> in messages
Post by: SMFHacks on August 14, 2011, 02:54:21 pm
Should be this file themes/default/ManageNews.template.php
Title: Re: <p> in messages
Post by: raffo on August 15, 2011, 09:16:34 am
sorry, but it isn't there... :(
Title: Re: <p> in messages
Post by: SMFHacks on August 15, 2011, 09:19:35 am
That file should be there in 2.0 final double check....
Title: Re: <p> in messages
Post by: raffo on August 15, 2011, 09:20:52 am
nope, the file is there, but the code isn't inside the file...
Title: Re: <p> in messages
Post by: SMFHacks on August 15, 2011, 09:34:33 am
My fault actually in Sources/ManageNews.php
Title: Re: <p> in messages
Post by: raffo on August 15, 2011, 09:07:29 pm
unfortunately, in this file there isn' the code you wrote, neither a similar code...

i attach you the file...
Title: Re: <p> in messages
Post by: SMFHacks on August 15, 2011, 09:47:26 pm
Updated file attached
Title: Re: <p> in messages
Post by: raffo on August 15, 2011, 10:09:57 pm
thanks... finally it works... :)
Title: Re: <p> in messages
Post by: raffo on August 17, 2011, 10:15:34 am
one more thing: it works in the tiny inside the section "news and newsletter", but if i edit the message from the section "newsletter pro" it returns with the <p> behavior

what do i need to change more?
Title: Re: <p> in messages
Post by: SMFHacks on August 17, 2011, 11:09:27 am
I think the Sources/NewsPro2.php file if you need fix just attach it.
Title: Re: <p> in messages
Post by: raffo on August 17, 2011, 03:13:38 pm
here it's... :)

thanks!
Title: Re: <p> in messages
Post by: SMFHacks on August 17, 2011, 03:19:57 pm
File attached
Title: Re: <p> in messages
Post by: raffo on August 17, 2011, 10:38:38 pm
Thanks, it works! :)