Page 14 of 15 FirstFirst ... 412131415 LastLast
Results 131 to 140 of 149
  1. #131
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,183
    Plugin Contributions
    124

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

    If your news comes out on the storefront side showing html tags:

    <p>Bla bla bla</p><p>We are pleased to announce ...

    This means the plugin was installed without admin sanitization rules, so when you show it on the storefront, you will have to use something like:

    <div class="news-content"><?php echo htmlspecialchars_decode(stripslashes($news_content)); ?></div>

    In includes/templates/template_default/templates/tpl_article_default.php instead of just

    <div class="news-content"><?= $news_content ?></div>
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  2. #132
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,183
    Plugin Contributions
    124

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

    In 1.5.8+/PHP8+, going to admin/news_box_manager1.php (or 2, 3, or 4) will fail because the underlying language file defines are not pulled in.

    Change

    require DIR_WS_LANGUAGES . $_SESSION['language'] . '/lang.news_box_manager.php';

    to:

    global $languageLoader;
    $languageLoader->loadExtraLanguageFiles(DIR_WS_LANGUAGES, $_SESSION['language'], FILENAME_NEWS_BOX_MANAGER . '.php', '/');
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #133
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,197
    Plugin Contributions
    90

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

    Quote Originally Posted by swguy View Post
    If your news comes out on the storefront side showing html tags:

    <p>Bla bla bla</p><p>We are pleased to announce ...

    This means the plugin was installed without admin sanitization rules, so when you show it on the storefront, you will have to use something like:

    <div class="news-content"><?php echo htmlspecialchars_decode(stripslashes($news_content)); ?></div>

    In includes/templates/template_default/templates/tpl_article_default.php instead of just

    <div class="news-content"><?= $news_content ?></div>
    That begs the question: How did the plugin get installed without its distributed sanitization rules (admin/includes/extra_datafiles/news_box_manager_sanitization.php)?

  4. #134
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,197
    Plugin Contributions
    90

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

    Quote Originally Posted by swguy View Post
    In 1.5.8+/PHP8+, going to admin/news_box_manager1.php (or 2, 3, or 4) will fail because the underlying language file defines are not pulled in.

    Change

    require DIR_WS_LANGUAGES . $_SESSION['language'] . '/lang.news_box_manager.php';

    to:

    global $languageLoader;
    $languageLoader->loadExtraLanguageFiles(DIR_WS_LANGUAGES, $_SESSION['language'], FILENAME_NEWS_BOX_MANAGER . '.php', '/');
    See this GitHub issue for resolution forthcoming in v3.2.1: https://github.com/lat9/news_box_manager_v3/issues/39

  5. #135
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,197
    Plugin Contributions
    90

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

    v3.2.1 of News Box Manager v3 is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2264

    This release contains changes associated with the following GitHub issues:

    #36: article page, breadcrumbs don't include current article name
    #37: SitemapXML addition: Fatal error due to missing $
    #39: Correct type-specific admin tools language loading

  6. #136
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,183
    Plugin Contributions
    124

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

    > That begs the question: How did the plugin get installed without its distributed sanitization rules (admin/includes/extra_datafiles/news_box_manager_sanitization.php)?

    This is a great question. Here's the answer: some of the Perfectus templates come bundled with an incomplete copy of this plugin.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  7. #137
    Join Date
    May 2010
    Posts
    145
    Plugin Contributions
    0

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

    https://alchemycabinet.com
    2.0.1
    Lotsoplugins

    I installed this recently and mostly love it.
    It seems to be working on the front end of the shop, but on the back end it's throwing errors:

    Code:
    [01-Sep-2024 03:50:16 UTC] Request URI: /index.php?main_page=all_articles, IP address: MY IP, Language id 1
    #0 /includes/templates/MY TEMPLATE/templates/tpl_all_articles_default.php(114): zen_debug_error_handler()
    #1 /includes/templates/MY TEMPLATE/common/tpl_main_page.php(178): require('/home/alchem44/...')
    #2 /index.php(94): require('/home/PATH/...')
    --> PHP Warning: Undefined array key "news_content" in /includes/templates/MY TEMPLATE/templates/tpl_all_articles_default.php on line 114.
    The errors appear when I hit the "view all" link on the front page, or the "news" link on the breadcrumb trail on the invidual article pages.
    Help?

  8. #138
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,197
    Plugin Contributions
    90

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

    Yep, if you've configured the storefront listings to show no content (only title and date); GitHub issue created for tracking: https://github.com/lat9/news_box_manager_v3/issues/40

  9. #139
    Join Date
    May 2010
    Posts
    145
    Plugin Contributions
    0

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

    Quote Originally Posted by lat9 View Post
    Yep, if you've configured the storefront listings to show no content (only title and date); GitHub issue created for tracking: https://github.com/lat9/news_box_manager_v3/issues/40
    'kay...so how and where do I fix that?

    On the News Box Manager page there isn't any field or prompt asking what to display -or not.
    Is it the "content length" option under configuration? I assumed that meant the limit to the size of content of an article? Increasing that number from the default "0" to "100" doesn't seem to change anything on the front page or on the "all articles" page; nor has it stopped the errors from appearing.

    Thanks again for your help. :)

  10. #140
    Join Date
    May 2010
    Posts
    145
    Plugin Contributions
    0

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

    Or, maybe...just maybe I spoke too soon.
    Changing content length to 100 and changing from "list" back to the default "table" under configuration may have fixed the problem. I'm scared to jinx it by posting too soon but don't want to waste anyone's time looking for an issue that has been fixed. o.O

 

 
Page 14 of 15 FirstFirst ... 412131415 LastLast

Similar Threads

  1. v151 Log Manager [Support Thread]
    By lat9 in forum All Other Contributions/Addons
    Replies: 9
    Last Post: 19 Oct 2023, 11:44 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. v154 News Box Manager v2.0.0 [Support Thread]
    By lat9 in forum All Other Contributions/Addons
    Replies: 84
    Last Post: 19 Jan 2021, 04:17 PM
  5. Poll Manager Support Thread
    By boudewijn in forum Addon Sideboxes
    Replies: 148
    Last Post: 27 Jan 2016, 09:53 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR