That would explain it! Set those Category values to be different to get the sideboxes to display different content.
v1.5.7b PHP 7.3 responsive classic template news box manager v3.1.0 dazzlers clip on earrings
Hi Cindy,
please refer to the screenshot - when news_box_sidebox.php is activated the content also appears on the home page in mobile, at the top of the page before the <h1> tag.
Configuration settings for sidebox are left/right >ON, Left selected, single column status set to OFF.
It is consitent on Chrome, Firefox and I.E - this same problem was posted here https://www.zen-cart.com/showthread....40#post1377140 a while back and because it persisted I deleted News Box Manager plugin and only re-installed yesterday. All other aspects of the function of News Box are fine, no other problems. I reported originally that the content was in the header but it may actually be in the home page - (using 'inspect' in Google Chrome responsive it shows that it is in navCatTabsWrapper ?? - the grey background behind 'Latest News (view all) is consistent with my categories tabs background in the header (in desktop view)
I've checked template files that I thought would have a bearing on placement on the home page (tpl_index_default, tpl_home_page and tpl_categories_index_default, tpl_header) but am not seeing any stray code.
Any thoughts on this??
cheers,
Mike
![]()
Mike, you'll need to edit your RC-template clone's version of /jscript/jscript_responsive_framework.php, adding the News Box Manager's sidebox(es) to the list of hidden elements:
Code:$('#documentcategories').css({'display': 'none', 'visibility': 'hidden' }); $('#categories').css({ 'display': 'none', 'visibility': 'hidden' }); $('#whatsnew').css({ 'display': 'none', 'visibility': 'hidden' }); $('#manufacturers').css({'display': 'none', 'visibility': 'hidden' }); $('#reviews').css({ 'display': 'none', 'visibility': 'hidden' }); $('#featured').css({ 'display': 'none', 'visibility': 'hidden' }); $('#information').css({ 'display': 'none', 'visibility': 'hidden' }); $('#moreinformation').css({ 'display': 'none', 'visibility': 'hidden' }); $('#bannerbox').css({ 'display': 'none', 'visibility': 'hidden' }); $('#ezpages').css({ 'display': 'none', 'visibility': 'hidden' }); $('#recordcompanies').css({ 'display': 'none', 'visibility': 'hidden' }); $('#musicgenres').css({ 'display': 'none', 'visibility': 'hidden' }); $('#bannerboxall').css({ 'display': 'none', 'visibility': 'hidden' }); $('#search').css({ 'display': 'none', 'visibility': 'hidden' }); $('#bannerbox2').css({ 'display': 'none', 'visibility': 'hidden' }); $('#bestsellers').css({ 'display': 'none', 'visibility': 'hidden' }); $('#specials').css({'display': 'none', 'visibility': 'hidden' }); $('#whosonline').css({ 'display': 'none', 'visibility': 'hidden' }); $('#orderhistory').css({ 'display': 'none', 'visibility': 'hidden' }); $('#manufacturerinfo').css({ 'display': 'none', 'visibility': 'hidden' }); $('#productnotifications').css({ 'display': 'none', 'visibility': 'hidden' }); $('#currencies').css({ 'display': 'none', 'visibility': 'hidden' }); $('#languages').css({ 'display': 'none', 'visibility': 'hidden' }); $('#shoppingcart').css({ 'display': 'none', 'visibility': 'hidden' }); $('#newsboxsidebox').css({ 'display': 'none', 'visibility': 'hidden' });
I'm not seeing anything in the code or news box tables; I've since turned off the 2nd sidebox as it's not needed yet. Here's a screenshot (same at link) to see my current settings and two different problems:
https://rosestarstudio.com/gallery/n...2021-05-23.png
Problem 1:
nb-t1 is populated correctly
nb-dates is populated correctly
nb-content is not populated correctly
Nothing stands out in the code for populating nb-content with
in tpl_news_box_sidebox.phpCode:$news_sidebox_content = zen_trunc_string($news_content);
Problem 2:
Truncated news_content shows even though I have both sideboxes set to GridTitleDate only (instead of GridTitleDateDesc). I’m unable to temporarily mask problem #1 while still showing post dates.
Last edited by RoseStar; 23 May 2021 at 07:30 PM. Reason: Link issue
Two file changes needed to provide the required variable clean-up for the multi-use formatting scripts:
1. /includes/modules/news_box_format. Change line 80 to read
2. /includes/sideboxes/news_box_sidebox.php. Change line 83 to readCode:unset($news_info, $news_and_clause, $max_news_items);
Code:unset($news_sidebox_num, $news_and_clause, $max_news_items);
Bookmarks