Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 12411
Latest: PabloWatts
New This Month: 1
New This Week: 1
New Today: 0
Stats
Total Posts: 39948
Total Topics: 7033
Most Online Today: 77
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 32
Total: 32

Author Topic: <p> in messages  (Read 7432 times)

0 Members and 1 Guest are viewing this topic.

Offline raffo

  • Pretty Urls SEO Pro
  • Newbie
  • *****
  • Posts: 13
    • View Profile
<p> in messages
« 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.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14978
    • View Profile
Re: <p> in messages
« 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: [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.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline raffo

  • Pretty Urls SEO Pro
  • Newbie
  • *****
  • Posts: 13
    • View Profile
Re: <p> in messages
« Reply #2 on: August 14, 2011, 01:37:33 pm »
i just can't find this file...

i use SMF 2.0 Final

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14978
    • View Profile
Re: <p> in messages
« Reply #3 on: August 14, 2011, 02:54:21 pm »
Should be this file themes/default/ManageNews.template.php
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline raffo

  • Pretty Urls SEO Pro
  • Newbie
  • *****
  • Posts: 13
    • View Profile
Re: <p> in messages
« Reply #4 on: August 15, 2011, 09:16:34 am »
sorry, but it isn't there... :(

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14978
    • View Profile
Re: <p> in messages
« Reply #5 on: August 15, 2011, 09:19:35 am »
That file should be there in 2.0 final double check....
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline raffo

  • Pretty Urls SEO Pro
  • Newbie
  • *****
  • Posts: 13
    • View Profile
Re: <p> in messages
« Reply #6 on: August 15, 2011, 09:20:52 am »
nope, the file is there, but the code isn't inside the file...

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14978
    • View Profile
Re: <p> in messages
« Reply #7 on: August 15, 2011, 09:34:33 am »
My fault actually in Sources/ManageNews.php
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline raffo

  • Pretty Urls SEO Pro
  • Newbie
  • *****
  • Posts: 13
    • View Profile
Re: <p> in messages
« 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...

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14978
    • View Profile
Re: <p> in messages
« Reply #9 on: August 15, 2011, 09:47:26 pm »
Updated file attached
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline raffo

  • Pretty Urls SEO Pro
  • Newbie
  • *****
  • Posts: 13
    • View Profile
Re: <p> in messages
« Reply #10 on: August 15, 2011, 10:09:57 pm »
thanks... finally it works... :)

Offline raffo

  • Pretty Urls SEO Pro
  • Newbie
  • *****
  • Posts: 13
    • View Profile
Re: <p> in messages
« 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?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14978
    • View Profile
Re: <p> in messages
« Reply #12 on: August 17, 2011, 11:09:27 am »
I think the Sources/NewsPro2.php file if you need fix just attach it.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline raffo

  • Pretty Urls SEO Pro
  • Newbie
  • *****
  • Posts: 13
    • View Profile
Re: <p> in messages
« Reply #13 on: August 17, 2011, 03:13:38 pm »
here it's... :)

thanks!

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14978
    • View Profile
Re: <p> in messages
« Reply #14 on: August 17, 2011, 03:19:57 pm »
File attached
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
4106 Views
Last post March 27, 2008, 07:08:11 pm
by SMFHacks
2 Replies
2926 Views
Last post December 06, 2009, 10:22:17 pm
by SMFHacks
1 Replies
3511 Views
Last post December 20, 2010, 08:50:15 pm
by SMFHacks
5 Replies
20986 Views
Last post June 30, 2013, 09:05:55 am
by Nicole
1 Replies
1004 Views
Last post March 07, 2017, 12:52:53 pm
by SMFHacks

+- Recent Topics

hashTags only used by admins, but visible to everyone? by SMFHacks
December 04, 2019, 11:08:35 am

Responsive Layout by Matthias
November 30, 2019, 03:05:57 pm

Secure connection failed Pretty Url Pro by Rock Lee
November 26, 2019, 10:44:23 am

Black Friday Sale Week 2019 by SMFHacks
November 23, 2019, 04:47:56 pm

German Translation missing in SMF 2.1R1 by SMFHacks
November 19, 2019, 02:38:42 pm

Unread items issue by SMFHacks
November 19, 2019, 10:07:32 am

Update detect mobile mode PHP5 to PHP7 by Rock Lee
November 16, 2019, 07:18:13 pm

PHP error by davejo
November 12, 2019, 12:09:47 pm

Message Editor Pro Issues by SMFHacks
November 06, 2019, 09:58:33 pm

most popular categories doesnt work by fussilet
November 02, 2019, 02:51:42 pm

Powered by EzPortal