Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 297
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 270
Total: 270

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

0 Members and 1 Guest are viewing this topic.

Offline raffo

  • Member
  • *
  • 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: 16436
    • 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

  • Member
  • *
  • 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: 16436
    • 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

  • Member
  • *
  • 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: 16436
    • 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

  • Member
  • *
  • 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: 16436
    • 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

  • Member
  • *
  • 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: 16436
    • 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

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

Offline raffo

  • Member
  • *
  • 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: 16436
    • 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

  • Member
  • *
  • 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: 16436
    • 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
5709 Views
Last post March 27, 2008, 07:08:11 pm
by SMFHacks
2 Replies
4573 Views
Last post December 06, 2009, 10:22:17 pm
by SMFHacks
1 Replies
4701 Views
Last post December 20, 2010, 08:50:15 pm
by SMFHacks
5 Replies
31466 Views
Last post June 30, 2013, 09:05:55 am
by Nicole
1 Replies
2057 Views
Last post March 07, 2017, 12:52:53 pm
by SMFHacks

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal