SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 25, 2012, 03:53:32 am

Login with username, password and session length
Members
Total Members: 10071
Latest: cdavidson012
Stats
Total Posts: 28687
Total Topics: 4977
Online Today: 51
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 60
Total: 60
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] 2 Go Down Print
Author Topic: <p> in messages  (Read 1557 times)
raffo
Newsletter Pro Customer
Newbie
*****
Offline Offline

Posts: 11


View Profile
« 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
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« 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
Code:
    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
Newsletter Pro Customer
Newbie
*****
Offline Offline

Posts: 11


View Profile
« 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
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #3 on: August 14, 2011, 02:54:21 pm »

Should be this file themes/default/ManageNews.template.php
Logged
raffo
Newsletter Pro Customer
Newbie
*****
Offline Offline

Posts: 11


View Profile
« Reply #4 on: August 15, 2011, 09:16:34 am »

sorry, but it isn't there... Sad
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #5 on: August 15, 2011, 09:19:35 am »

That file should be there in 2.0 final double check....
Logged
raffo
Newsletter Pro Customer
Newbie
*****
Offline Offline

Posts: 11


View Profile
« 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
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #7 on: August 15, 2011, 09:34:33 am »

My fault actually in Sources/ManageNews.php
Logged
raffo
Newsletter Pro Customer
Newbie
*****
Offline Offline

Posts: 11


View Profile
« 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
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #9 on: August 15, 2011, 09:47:26 pm »

Updated file attached
Logged
raffo
Newsletter Pro Customer
Newbie
*****
Offline Offline

Posts: 11


View Profile
« Reply #10 on: August 15, 2011, 10:09:57 pm »

thanks... finally it works... Smiley
Logged
raffo
Newsletter Pro Customer
Newbie
*****
Offline Offline

Posts: 11


View Profile
« 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
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« 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
Newsletter Pro Customer
Newbie
*****
Offline Offline

Posts: 11


View Profile
« Reply #13 on: August 17, 2011, 03:13:38 pm »

here it's... Smiley

thanks!
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #14 on: August 17, 2011, 03:19:57 pm »

File attached
Logged
Pages: [1] 2 Go Up Print 
« previous next »
Jump to:  

Recent
[May 24, 2012, 08:02:50 am]

[May 24, 2012, 04:11:41 am]

[May 21, 2012, 08:54:11 am]

[May 20, 2012, 11:06:52 am]

[May 20, 2012, 05:58:11 am]

[May 19, 2012, 06:16:58 pm]

[May 19, 2012, 05:42:37 pm]

[May 18, 2012, 03:08:38 pm]

[May 17, 2012, 06:07:46 pm]

[May 17, 2012, 02:22:07 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.16 | SMF © 2006-2011, Simple Machines LLC
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 0.261 seconds with 20 queries.