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>
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', '/');
Re: News Box Manager v3.0.0 [Support Thread]
Quote:
Originally Posted by
swguy
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)?
Re: News Box Manager v3.0.0 [Support Thread]
Quote:
Originally Posted by
swguy
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
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
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.
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:
Quote:
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?
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
Re: News Box Manager v3.0.0 [Support Thread]
Quote:
Originally Posted by
lat9
'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. :)
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