|
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.
|
|
|
|
|
Logged
|
|
|
|
|
SMFHacks
|
 |
« Reply #1 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 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.
|
|
|
|
|
Logged
|
|
|
|
|
raffo
|
 |
« Reply #2 on: August 14, 2011, 01:37:33 pm » |
|
i just can't find this file...
i use SMF 2.0 Final
|
|
|
|
|
Logged
|
|
|
|
|
SMFHacks
|
 |
« Reply #3 on: August 14, 2011, 02:54:21 pm » |
|
Should be this file themes/default/ManageNews.template.php
|
|
|
|
|
Logged
|
|
|
|
|
raffo
|
 |
« Reply #4 on: August 15, 2011, 09:16:34 am » |
|
sorry, but it isn't there... 
|
|
|
|
|
Logged
|
|
|
|
|
SMFHacks
|
 |
« Reply #5 on: August 15, 2011, 09:19:35 am » |
|
That file should be there in 2.0 final double check....
|
|
|
|
|
Logged
|
|
|
|
|
raffo
|
 |
« Reply #6 on: August 15, 2011, 09:20:52 am » |
|
nope, the file is there, but the code isn't inside the file...
|
|
|
|
|
Logged
|
|
|
|
|
SMFHacks
|
 |
« Reply #7 on: August 15, 2011, 09:34:33 am » |
|
My fault actually in Sources/ManageNews.php
|
|
|
|
|
Logged
|
|
|
|
|
raffo
|
 |
« Reply #8 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...
|
|
|
|
|
Logged
|
|
|
|
|
SMFHacks
|
 |
« Reply #9 on: August 15, 2011, 09:47:26 pm » |
|
Updated file attached
|
|
|
|
|
Logged
|
|
|
|
|
raffo
|
 |
« Reply #10 on: August 15, 2011, 10:09:57 pm » |
|
thanks... finally it works... 
|
|
|
|
|
Logged
|
|
|
|
|
raffo
|
 |
« Reply #11 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?
|
|
|
|
|
Logged
|
|
|
|
|
SMFHacks
|
 |
« Reply #12 on: August 17, 2011, 11:09:27 am » |
|
I think the Sources/NewsPro2.php file if you need fix just attach it.
|
|
|
|
|
Logged
|
|
|
|
|
raffo
|
 |
« Reply #13 on: August 17, 2011, 03:13:38 pm » |
|
here it's...  thanks!
|
|
|
|
|
Logged
|
|
|
|
|
SMFHacks
|
 |
« Reply #14 on: August 17, 2011, 03:19:57 pm » |
|
File attached
|
|
|
|
|
Logged
|
|
|
|
|