Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12374
Latest: LevelLord
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 40213
Total Topics: 7083
Most Online Today: 45
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 44
Total: 44

Author Topic: <p> in messages  (Read 7630 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: 15106
    • 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: 15106
    • 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: 15106
    • 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: 15106
    • 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: 15106
    • 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: 15106
    • 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: 15106
    • 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
4294 Views
Last post March 27, 2008, 07:08:11 pm
by SMFHacks
2 Replies
3004 Views
Last post December 06, 2009, 10:22:17 pm
by SMFHacks
1 Replies
3592 Views
Last post December 20, 2010, 08:50:15 pm
by SMFHacks
5 Replies
24298 Views
Last post June 30, 2013, 09:05:55 am
by Nicole
1 Replies
1075 Views
Last post March 07, 2017, 12:52:53 pm
by SMFHacks

+- Recent Topics

Download System Lite by Rock Lee
June 03, 2020, 07:34:24 pm

Font question by SMFHacks
May 27, 2020, 08:15:26 am

Error message with latest SMF 2.1 Github build by Hatshepsut
May 25, 2020, 01:43:26 am

smfblog not working on 2.0.17 by tech9
May 20, 2020, 01:44:34 pm

Copyright removal by stbc
May 18, 2020, 01:27:57 am

Mod Verified User i can't square the image by Rock Lee
May 07, 2020, 07:56:10 pm

SMF4Mobile 2.0 released for SMF 2.0.x by SMFHacks
May 06, 2020, 12:13:14 pm

SMF Social Login Pro - Discontinued? by Nicole
May 02, 2020, 05:47:04 pm

Likes by SMFHacks
April 30, 2020, 09:50:35 pm

Upgrade Issue - by SMFHacks
April 28, 2020, 12:40:13 pm

Powered by EzPortal