In which directory is that latestnews.png file (noting that it should be present in the template's /images sub-directory for use by the CSS)?
In which directory is that latestnews.png file (noting that it should be present in the template's /images sub-directory for use by the CSS)?
Hi Cindy - it is in /images folder - so I move it to my_template/images folder ........ then in includes/languages/english/extra_definitions/news_box_manager_defines.php I replaced the text 'Latest News' with <img src="includes/templates/westminster_new/images/latestnews.png" alt="latest news"> .... and all is good! So thank you.
I am now going to try to insert a smaller image in the NEWS_BOX_HEADING_TITLE row .... wish me luck
many thanks,
Mike
cheers,
Mike
Last edited by shags38; 21 Dec 2019 at 02:34 PM.
Hi Cindy - inserting an image in that row was easy enough (once I had the image in the right folder)
So I do not expect you to spend time on re-styling the layout of your plugin for me - putting me in the right direction will be helpful so that I can attempt to make some modifications myself (note that I said 'attempt') - it will help me to learn. So to that end if I want to negate the 'article dates' column altogether and instead include a date block within the article title row/line what files should I be looking at to make such modifications? essentially where can I modify the table layout?
again many thanks for your assistance,
cheers Mike
Mike, the common formatting is provided by /includes/templates/template_default/template/tpl_modules_news_box_format.php, so you can make a template-override copy and make your changes there.
Many thanks for that Cindy - haven't played with it yet but will soon.
One more quick one - side box heading for news box shows [MORE] and when using Inspect Element [MORE] is the link anchor text in <h3 class="leftBoxHeading" id="newsboxsideboxHeading"><a href="https://www.dazzlerscliponearrings.com.au/index.php?main_page=news_archive"> [more]</a></h3> .... I have tried admin/tools/developer and gone through all files associated with the plugin and I cannot find where to change that anchor text (looks a bit strange as a heading in the sidebox).
A belated Merry Christmas to you and yours and Happy New Year also- hope 2020 is a good one for you.
cheers,
Mike
Those definitions are present in /includes/languages/english/extra_definitions/news_box_manager_defines.php.
Thanks for your kind wishes, but it wasn't my holiday. Have a safe and happy new year.
Thanks Cindy - I was remiss in not providing more detail in my previous post - any entries in BOX_HEADING_NEWS_BOX or TEXT_ALL_NEWS or TEXT_NEWS_BOX_INFO render as headings on the home page as well as altering the sidebox heading - I don't want any headings on the page however I would like to have the heading in the sidebox be something different to [MORE]. I even changed TEXT_LINK_MORE from 'More …' to 'Latest News' but that hasn't changed anything. (hence why I was trying to specifically find this in developer <h3 class="leftBoxHeading" id="newsboxsideboxHeading"><a href="https://www.dazzlerscliponearrings.com.au/index.php?main_page=news_archive"> [more]</a></h3>)
I appreciate your help with this - there is no rush on this 'minor' aesthetic adjustment - when, and only when, you get a free moment
Below is my current /includes/languages/english/extra_definitions/news_box_manager_defines.php and images showing news box on home page and then the sidebox;
Attachment 18777Code:define ('BOX_HEADING_NEWS_BOX', ''); define ('TEXT_LINK_MORE', 'Latest News'); define ('TEXT_TRAIL_STR', '…'); define ('TEXT_ALL_NEWS', ''); define ('NEWS_DATE_SEPARATOR', ' - '); define ('NEWS_BOX_HEADING_TITLE', '<img src="includes/templates/westminster_new/images/latestupdates.png"> ... for more news click <a href="https://www.dazzlerscliponearrings.com.au/index.php?main_page=news_archive"><i><u>View All</i></u></a>'); define ('NEWS_BOX_HEADING_DATES', 'Article Date(s)'); define ('TEXT_NEWS_BOX_INFO', '');
Attachment 18776
cheers,
Mike
p.s. my apologies for my assumption re the holiday - no offence intended
Last edited by shags38; 30 Dec 2019 at 11:10 PM.
Mike, I'll need to rethink the sidebox vs. customized centerbox configuration that you're looking for.
I've just submitted v3.0.2 of News Box Manager - v3 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 issue:
#11: Correct PHP warning on all_articles page.
Now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2264
Bookmarks