Thank you - I'm going to try this out with the Westminster_New template :-)
Thank you - I'm going to try this out with the Westminster_New template :-)
I've just submitted v3.0.1 to the Zen Cart moderators for review and will post back here when it's available for download.
This release contains changes associated with the following GitHub issues:
#9: Correct PHP error on 'news_archive' redirect. Already included in the initial v3.0.0 download.
#10: Correct MySQL error on initial install.
Hi Cindy - I just love this plugin - many thanks for creating it!!
just a couple of things;
1. article title doesn't show as bold (see image below) - on hover it does go blue for link - .css indicates it should be bold - how to adjust?
2. in includes/languages/english/extra_definitions/news_box_manager_defines.php ..... can I replace the BOX_HEADING_NEWS_BOX', 'Latest News' text with an image? I have created the image but not sure how to make it render - tried replacing the text with a link to the image but it wouldn't work for me, likely wrong code.
I also tried adding a row in the stylesheet_news_box_manager.css with a background image in lieu of the above - but again it didn't renderIf you can assist that would be great - if I should be posting this in another thread for assistance then please say soCode:#newsscrollbox ol { margin: 0; padding: 0; list-style-position: inside; } #moreNewsDefault .news_header { font-weight: bold; padding-right: 0.3em; } #moreNewsDefault .newsContent { padding: 0.3em 0; } #news-table { display: table; border-collapse: collapse; width: 100%; margin: 0.8em 0; } .image-row { display: table-row; border: 1px solid #00BFFF; background-image: url(/images/latestnews.png); background-repeat: no-repeat; width: 100%; height: 75px; } .news-row { display: table-row; border: 1px solid #00BFFF; } .news-heading { font-weight: bold; } .news-cell { display: table-cell; padding: 0.5em; border: 1px solid #00BFFF; }
cheers, Mike
Attachment 18760
Last edited by shags38; 19 Dec 2019 at 05:06 AM.
Mike, a link to the site (via PM if you desire) would help me help you for these styling/page-layout type questions.
Hi Cindy, thanks for your quick reply - here is the site https://www.dazzlerscliponearrings.com.au - ideally adding a blank full length table row above the existing top row, so an integral part of the table, into which the existing heading of 'Latest News' would be placed instead of consuming (more) space on the page and such that an image can be inserted in lieu of the text .... so it makes a single element when loaded on the page, in lieu of 2 lines of text (and resultant 2 rows of white space) plus table. The to view all articles click view all text could be incorporated in the same row block as the article title (this part I have been able to do).
Maybe to make that result less 'blocky' possibly have top and side borders of the 'new' top row have their own css lines so that the borders could be #FFFFFF
cheers, Mike
Last edited by shags38; 19 Dec 2019 at 11:36 PM.
Mike, for the article title showing in bold, try updating the css to include
The title is the very first anchor directly present in a news-cell class element.Code:.news-cell > a:first-child { font-weight: bold; }
I'm still looking at the other styling question.
Great, perfecto! Thanks a lot. No, it wasn't partial installation. I had only set of files connected to an old database, just updated the file and uploded those two missing ones, matter of minutes, press the button, and voila. What means "non-blank "News Title" and "News Content" in ALL of your store's languages". Do I obliged to publish news in all of my 3 languages? Hire translator? They are all busy these days reading "Transcript".![]()
Hello,
I've tried to install this add-on, v3.0.2, for the first time on my test site, hopefully according to the instructions (I did not have a tpl_index_default.php file yet, so all the files in the add-on could be copied as-is, I merely ensured they had correct ownership and permissions on my linux system).
The problem is that the DB initialization did not seem to work, so although the Admin menus for the add-on all appear fine, and I have the ability to create articles, which I did: a single Type 1 article in both English and Japanese (my two site languages). Unfortunately, when I activate the sidebox for New Type 1 in order to actually display on storefront, I get a "An error appeared, please refresh page" type of error in the location where the sidebox should appear.
Interestingly, no debug log is produced. However, when I set strict debugging, the on-page warning turns into the very clear indication that the DB tables were not created as expected:
Obviously, something went wrong, but I am unsure what best to do to fix the situation.Code:1146 Table 'zencartshoptest.TABLE_BOX_NEWS_CONTENT' doesn't exist in: [SELECT nc.news_title, nc.news_content, n.* FROM TABLE_BOX_NEWS_CONTENT nc INNER JOIN TABLE_BOX_NEWS n ON n.box_news_id = nc.box_news_id AND nc.languages_id = 3 WHERE n.news_status = 1 AND now() >= n.news_start_date AND (n.news_end_date IS NULL OR now() <= n.news_end_date) ORDER BY n.news_start_date DESC, n.box_news_id DESC LIMIT 5]
I also noticed that there was a file in the add-on not listed in the HTML instructions:
and that there was no observer in my ADMIN/classes directory yet, so that meant the new addition of a directory in my ADMIN folder.Code:YOUR_ADMIN/includes/classes/observers/NewsBoxManagerAdminObserver.php
Any other information required, please ask. I will wait before uninstalling and trying to re-install.
Zen Cart 1.5.6c modified for Japanese language support. Upgraded incrementally from initial 1.5.5d. Currently planning direct upgrade to 2.1.0
Hi lat9,
I did a comparison of the files described in the docs folder of the add-on for News Box Manager v3.0.2, and what files are actually included.
I think the main problem might be an incorrectly-named definition file? Not sure about the mismatch of the various files, so will wait for confirmation.
As listed in docs
(I marked as OK if the described files were actually there)
OK: /includes/classes/observers/auto.news_box_manager_metatags.php
Does not exist---wrong Name?: /includes/extra_datafiles/news_box_manager_file_database_names.php
OK: /includes/languages/english/all_articles.php
OK: /includes/languages/english/article.php
OK: /includes/languages/english/extra_definitions/news_box_manager_defines.php
OK: /includes/modules/news_box_format.php
OK: /includes/modules/pages/all_articles/header_php.php
OK: /includes/modules/pages/article/header_php.php
OK: /includes/modules/pages/more_news/header_php.php
OK: /includes/modules/pages/news_archive/header_php.php
OK: /includes/modules/sideboxes/news_box_sidebox.php
OK: /includes/templates/template_default/sideboxes/tpl_news_box_sidebox.php
Does not exist: /includes/templates/template_default/sideboxes/tpl_news_box_sidebox2.php
OK: /includes/templates/template_default/templates/tpl_modules_news_box_format.php
OK: /includes/templates/template_default/templates/tpl_all_articles_default.php
OK: /includes/templates/template_default/templates/tpl_article.php
OK: /includes/templates/YOUR_TEMPLATE/css/stylesheet_news_box_manager.css
OK: /includes/templates/YOUR_TEMPLATE/templates/tpl_index_default.php
OK: /YOUR_ADMIN/news_box_manager.php
OK: /YOUR_ADMIN/includes/auto_loaders/config.news_box_manager.php
OK: /YOUR_ADMIN/includes/extra_datafiles/news_box_manager_file_database_names.php
OK: /YOUR_ADMIN/includes/extra_datafiles/news_box_manager_sanitization.php
OK: /YOUR_ADMIN/includes/init_includes/init_news_box_manager_admin.php
OK: /YOUR_ADMIN/includes/languages/english/news_box_manager.php
OK: /YOUR_ADMIN/includes/languages/english/extra_definitions/news_box_manager_menu_name.php
Files existing but not described in docs:
/YOUR_ADMIN/news_box_manager1.php
/YOUR_ADMIN/news_box_manager2.php
/YOUR_ADMIN/news_box_manager3.php
/YOUR_ADMIN/news_box_manager4.php
/YOUR_ADMIN/includes/classes/observers/NewsBoxManagerAdminObserver.php
/YOUR_ADMIN/includes/functions/news_box_manager_functions.php
/YOUR_ADMIN/includes/init_includes/init_news_box_manager_install.pph
/YOUR_ADMIN/includes/init_includes/init_news_box_manager_update.php
Possibly wrong name?: /includes/extra_datafiles/news_box_file_database_names.php
/includes/modules/sideboxes/news_box_sidebox2.php
/includes/templates/YOUR_TEMPLATE/jscript/jscript_sidebox_slider.js
Zen Cart 1.5.6c modified for Japanese language support. Upgraded incrementally from initial 1.5.5d. Currently planning direct upgrade to 2.1.0