Zen Follower
- Join Date:
- May 2010
- Posts:
- 145
- Plugin Contributions:
- 0
News Box Manager v3.0.0 [Support Thread]
I guess we can consider it "fixed". :) If it starts malfunctioning again I'll letcha know. :)
Thank-you all for your time. :)
Views: 31,831
Zen Follower
I guess we can consider it "fixed". :) If it starts malfunctioning again I'll letcha know. :)
Thank-you all for your time. :)
Zen Follower
Is there a way to add (or change) the pagination in the admin panel? I'm up to 50+ articles and scrolling to the bottom to insert a new one every time is a bit taxing.
It would be nice if I could at least set it to only display 25 or so at a time?
Administrator
DragonLady:
Is there a way to add (or change) the pagination in the admin panel? I'm up to 50+ articles and scrolling to the bottom to insert a new one every time is a bit taxing.
It would be nice if I could at least set it to only display 25 or so at a time?
The admin pagination uses the value in Configuration :: Maximum Values :: Admin Search Results Per Page.
Zen Follower
lat9:
The admin pagination uses the value in Configuration :: Maximum Values :: Admin Search Results Per Page.
Aha! I didn't realize that pertained to the news box. Thank-you sooo much! That is very helpful.
Zen Follower
I really enjoy this mod, however none of the articles seem to be searchable thru the web search function on my site, and I don't have a contents page with it. Is there a way to set these options up? I have all the keywords in, however they don't appear to be searchable.
I have 6 categories for mine, and currently 64 articles across those categories.
Elemi
The Art of Bespoke Aromatherapy
https://www.AmorAromatherapy.co.nz
Totally Zenned
Thank you
Totally Zenned
v 3.2.1
Not an issue, or a least not a big one.
I set in the admin profile for a limited admin access the [all types] to be accessed, but when going to tool > News Box Manager [all types] i get:
Sorry, your security clearance does not allow you to access this resource.
Please contact your site administrator if you believe this to be incorrect.
Sorry for any inconvenience.
If I select in the admin profile the type 1/2/3/4 they are accessable, yet the all types is not.
What am I missing?
Administrator
keneso:
v 3.2.1
Not an issue, or a least not a big one.
I set in the admin profile for a limited admin access the [all types] to be accessed, but when going to tool > News Box Manager [all types] i get:
Sorry, your security clearance does not allow you to access this resource.
Please contact your site administrator if you believe this to be incorrect.
Sorry for any inconvenience.
>
> If I select in the admin profile the type 1/2/3/4 they are accessable, yet the all types is not.
> What am I missing?
Probably nothing. It'll take me a bit to research your issue.
Totally Zenned
Don't take it the wrong way and I apologize in advance for my ignorance but:
What s the difference between this plugin and the EZ pages?
Both can be displayed in sideboxes and have similar options except for the Meta details....
Are the articles stored in the database as well?
Can be php code be used within the content of articles?
Would the use of "articles" be better as opposed to have a separate blog ( using wordpress on a subdomain or similar)
I am just trying to understand the pros/cons of this plugin.
Thank you
Administrator
nicksab:
Don't take it the wrong way and I apologize in advance for my ignorance but:
What s the difference between this plugin and the EZ pages?
Both can be displayed in sideboxes and have similar options except for the Meta details....
Are the articles stored in the database as well?
Can be php code be used within the content of articles?
Would the use of "articles" be better as opposed to have a separate blog ( using wordpress on a subdomain or similar)
I am just trying to understand the pros/cons of this plugin.
Thank you
Point taken, the differences are
Totally Zenned
lat9:
Point taken, the differences are
- The sidebox displays the latest news.
- The articles can be displayed in a front-page centerbox.
- Separate integration with SitemapXML.
Thank you lat9
I didn't know about the centerbox and would have to experiment a bit more with it.
Not sure if it can be done ( and I haven t been able to do it) but can the articles be arranged in a certain way:
For example:
sideboxe displays main article ( or should i say topic )
Once "topic" is clicked , it brings up the article page which also incorporate "extract" of related articles....
"Topic" page would similar to a table content of other related articles.
I understand that the article could have link integrated to achieve this but I was hoping for a more automated way ( probably beyond the scope of the plugin)
Zen Follower
Hi
Can someone who is using this plugin share their web url with me so I can see it in action?
PM me if you prefer, thanks.
Administrator
royaldave:
Hi
Can someone who is using this plugin share their web url with me so I can see it in action?
PM me if you prefer, thanks.
I use it on my website; see my message footer.
Totally Zenned
Back again.
Zen Cart 2.1.0
News Box Manager 3.2.1
Testing the insertion of a new "news", and get this message:
"WARNING: An Error occurred, please let us know! If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you entered valid data."
The log reports:
[25-Jun-2025 11:54:15 Europe/London] Request URI: /path_to_admin_dir/index.php?cmd=news_box_manager1&action=insert&nType=1, IP address: 93.48.151.7, Language id 2
#0 /path_to_admin_dir/news_box_manager.php(107): zen_debug_error_handler()
#1 /path_to_admin_dir/news_box_manager1.php(12): require('/home3/tesoreri...')
#2 /path_to_admin_dir/index.php(16): require('/home3/tesoreri...')
--> PHP Warning: Undefined array key "news_status" in /path_to_admin_dir/news_box_manager.php on line 107.
If it can help I do have the admin_dir/includes/languages/italian/lang.news_box_manager.php
The steps:
check > enabled
dates > blank
Italian title > titolo
Italian content > contenuto
English title > title
English content > content
metatags > blank
however did try also with metatags
Having only Italian users the real title and content are inserted in the Italian fields whereas for the English using only "placeholder" single words.
Administrator
@keneso, find this section (lines 539-545) of /admin/news_box_manager.php
<div class="form-group">
<?= zen_draw_label(TEXT_NEWS_STATUS, 'news_status', 'class="col-sm-3 control-label"') ?>
<div class="col-sm-9 col-md-6">
<label class="radio-inline"><?= zen_draw_radio_field('news_status', '1', ($nInfo->news_status === '1')) . TEXT_ENABLED ?></label>
<label class="radio-inline"><?= zen_draw_radio_field('news_status', '0', ($nInfo->news_status === '0')) . TEXT_DISABLED ?></label>
</div>
</div>
and make the highlighted change
<div class="form-group">
<?= zen_draw_label(TEXT_NEWS_STATUS, 'news_status', 'class="col-sm-3 control-label"') ?>
<div class="col-sm-9 col-md-6">
<label class="radio-inline"><?= zen_draw_radio_field('news_status', '1', ($nInfo->news_status === '1')) . TEXT_ENABLED ?></label>
<label class="radio-inline"><?= zen_draw_radio_field('news_status', '0', ($nInfo->news_status [B]!== '1'[/B])) . TEXT_DISABLED ?></label>
</div>
</div>
Does that correct the issue?
Totally Zenned
Thanks, but no joy. Same Warning.
Administrator
I just installed v3.2.2-beta1 (storefront change only) on a local zc210 site. Added a new article with no error logs.
The change I suggested above ensures that one of the Enabled/Disabled radio-buttons is selected when the insert-entry form is displayed.
Totally Zenned
Yes, I noticed that, but like said I had checked it anyway, and for some reason is returning the warning.
I noticed that the error log has been generated for the attempts done by a limited admin, whereas not generated for the power admin, getting that by the reported time of the erro logs.
Administrator
keneso:
Yes, I noticed that, but like said I had checked it anyway, and for some reason is returning the warning.
I noticed that the error log has been generated for the attempts done by a limited admin, whereas not generated for the power admin, getting that by the reported time of the erro logs.
Hmm, interesting. For the limited admin's profile, are any of the "News Box Manager" scripts enabled in the "Tools" menu?
Totally Zenned
Let me make it more interesting. ;)
Only the type1 is enabled for the limited.
Anyhow I got the same warning from power admin.
Now some more details:
I enabled "all types", and disabled the "type1, type2, type3, type4".
And the "all types" cannot be access with the security clearance message, prompting to contact site admin.
I enabled them all "all types, type1, type2, type3, type4"
"type1, type2, type3, type4" can be accessed, but "all types" would again display the security clearance message.
I apologize as I thought the diffrent log files would contain same error (actually warning), I had opened two only, I now opened them all and can see different line reference in 7 of them as opposed to the two I reported in previous post.
So instead of posting the error log file I posted the content of the warning one, and the lack of the power admin is the warning type, while it does generate the error type.
To be clear in previous post I posted the content of:
myDEBUG-adm-20250625-115415-048278-warning.log
The content of the:
myDEBUG-adm-20250625-123458-778999-error.log
Is the following, and save the IP the content is the same for both limited, and power admin:
[25-Jun-2025 22:29:01 Europe/London] Request URI: /path_to_zen_cart_admin/index.php?cmd=news_box_manager1&action=insert&nType=1, IP address: 2.234.145.206, Language id 2
#0 [internal function]: zen_debug_error_handler()
#1 /path_to_zen_cart/zen-210/includes/classes/db/mysql/query_factory.php(733): trigger_error()
#2 /path_to_zen_cart/zen-210/includes/classes/db/mysql/query_factory.php(678): queryFactory->show_error()
#3 /path_to_zen_cart/zen-210/includes/classes/db/mysql/query_factory.php(307): queryFactory->set_error()
#4 /path_to_zen_cart/zen-210/includes/functions/database.php(134): queryFactory->Execute()
#5 /path_to_zen_cart_admin/news_box_manager.php(112): zen_db_perform()
#6 /path_to_zen_cart_admin/news_box_manager1.php(12): require('/home3/tesoreri...')
#7 /path_to_zen_cart_admin/index.php(16): require('/home3/tesoreri...')
--> PHP Fatal error: MySQL error 1364: Field 'box_news_id' doesn't have a default value :: INSERT INTO box_news (news_start_date, news_end_date, news_content_type, news_status, news_added_date) VALUES ('2025-06-25 00:00:00', null, '1', '1', now()) ==> (as called by) /path_to_zen_cart/zen-210/includes/functions/database.php on line 134 <== in /path_to_zen_cart/zen-210/includes/classes/db/mysql/query_factory.php on line 733.
On another error file there is one less line
[25-Jun-2025 16:24:43 Europe/London] Request URI: /path_to_zen_cart_admin/index.php?cmd=news_box_manager&action=insert, IP address: 2.234.145.206, Language id 2
#0 [internal function]: zen_debug_error_handler()
#1 /path_to_zen_cart/zen-210/includes/classes/db/mysql/query_factory.php(733): trigger_error()
#2 /path_to_zen_cart/zen-210/includes/classes/db/mysql/query_factory.php(678): queryFactory->show_error()
#3 /path_to_zen_cart/zen-210/includes/classes/db/mysql/query_factory.php(307): queryFactory->set_error()
#4 /path_to_zen_cart/zen-210/includes/functions/database.php(134): queryFactory->Execute()
#5 /path_to_zen_cart_admin/news_box_manager.php(112): zen_db_perform()
#6 /path_to_zen_cart_admin/index.php(16): require('/home3/tesoreri...')
--> PHP Fatal error: MySQL error 1364: Field 'box_news_id' doesn't have a default value :: INSERT INTO box_news (news_start_date, news_end_date, news_content_type, news_status, news_added_date) VALUES ('2025-06-25 00:00:00', null, '1', '1', now()) ==> (as called by) /path_to_zen_cart/zen-210/includes/functions/database.php on line 134 <== in /path_to_zen_cart/zen-210/includes/classes/db/mysql/query_factory.php on line 733.
Again apologies for the confusion.
Tell staff why this post should be reviewed.