Results 1 to 10 of 85

Hybrid View

  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    Default Re: News Box Manager v2.0.0 [Support Thread]

    Since the default template (/includes/templates/template_default/tpl_more_news_default.php) simply echos the 'content' you provide for the article, I'm going to guess that you're using an HTML editor in the admin to produce that content.

    You can correct those added <br />'s by turning off the HTML editor (reverting to 'Text') to remove those unwanted HTML additions.

  2. #2
    Join Date
    Jul 2011
    Posts
    22
    Plugin Contributions
    1

    Default Re: News Box Manager v2.0.0 [Support Thread]

    Quote Originally Posted by lat9 View Post
    Since the default template (/includes/templates/template_default/tpl_more_news_default.php) simply echos the 'content' you provide for the article, I'm going to guess that you're using an HTML editor in the admin to produce that content.

    You can correct those added <br />'s by turning off the HTML editor (reverting to 'Text') to remove those unwanted HTML additions.
    Thanks for such a speedy response.

    You are correct, I'm using ckeditor. However, from the editor, you can see the source code that it creates. There are no <br/>'s there. Thinking that it might be uploading something different to the server, I looked there. Again found no <br/>'s

    Below is same example as before copied straight from the server data field:

    <p>Every penny raised helps us make a difference to people affected by cancer</p>

    <ul>
    <li>When: Friday 28th September</li>
    <li>Where: Our Machinery Department</li>
    <li>Time: 10:00am - 2:00pm</li>
    </ul>

    <p><strong>If you are in our area, please call in to enjoy a cuppa and a chat!</strong></p>

    As I mentioned, it works properly in the other two pages.

    It's certainly got me scratching my head!

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    Default Re: News Box Manager v2.0.0 [Support Thread]

    Darn it, it's the more_news page's header that's adding those. I'll get that corrected, too.

    Open /includes/modules/pages/more_news/header.php.php and find
    Code:
        $news_title = nl2br($news_box_query->fields['news_title']);
        $news_content = nl2br($news_box_query->fields['news_content']);
    Change those lines, removing the call to nl2br (which converts any new-line characters to <br />'s):
    Code:
        $news_title = $news_box_query->fields['news_title'];
        $news_content = $news_box_query->fields['news_content'];
    I'll get that logged and updated on the plugin's GitHub repository.

    Update: https://github.com/lat9/news_box_manager/issues/8
    Last edited by lat9; 28 Sep 2018 at 04:38 PM.

  4. #4
    Join Date
    Jul 2011
    Posts
    22
    Plugin Contributions
    1

    Default Re: News Box Manager v2.0.0 [Support Thread]

    Thanks Lat9, It works like a dream, no more <br />'s anywhere!!

  5. #5
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    Default Re: News Box Manager v2.0.0 [Support Thread]

    No problem, @honda-crunch; thanks for letting me know!

  6. #6
    Join Date
    May 2009
    Posts
    1,254
    Plugin Contributions
    3

    Default Re: News Box Manager v2.0.0 [Support Thread]

    Hi
    I have downloaded, but not installed it yet.

    Is there a way to have the following accessible to members only
    News Archive page
    More News page

    and have only the following visible to all
    Latest News sidebox
    Latest News centerbox

    I guess there is some coding involved, do you think it might be a good feature in case?

  7. #7
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    Default Re: News Box Manager v2.0.0 [Support Thread]

    @keneso, I've created this GitHub issue so I remember your request.

 

 

Similar Threads

  1. v150 Testimonial Manager Support Thread (for ZC v1.5.x)
    By countrycharm in forum All Other Contributions/Addons
    Replies: 262
    Last Post: 26 Jun 2025, 10:42 AM
  2. Link Manager 3.0 Support Thread
    By clydejones in forum Addon Sideboxes
    Replies: 1987
    Last Post: 6 Aug 2021, 02:56 PM
  3. Testimonial Manager Support Thread
    By clydejones in forum All Other Contributions/Addons
    Replies: 1500
    Last Post: 4 Feb 2021, 04:12 PM
  4. Download File Manager Support Thread
    By balihr in forum All Other Contributions/Addons
    Replies: 24
    Last Post: 17 Aug 2017, 10:32 PM
  5. Poll Manager Support Thread
    By boudewijn in forum Addon Sideboxes
    Replies: 148
    Last Post: 27 Jan 2016, 09:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg