Zen Cart Logo
Forums / Addon Sideboxes / jQuery Scrolling Sideboxes [Support Thread]

jQuery Scrolling Sideboxes [Support Thread]

Views: 79,927

Results 41 to 60 of 80
23 Jul 2017, 1:55 AM
#41
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

jQuery Scrolling Sideboxes [Support Thread]

As to overrides, if your YOUR_TEMPLATE folder has a "jscript" folder, then all lookups to template_default for "jscript" files will be completely ignored, and only your YOUR_TEMPLATE/jscript folder will be used.
So, it's quite possible that if this plugin relies on such files then yes you'd need to put those into YOUR_TEMPLATE instead of template_default.

But strictly speaking, for all the "sidebox" files (module and template), you don't strictly have to use an override folder, if you want the feature to apply regardless of which template you're using.

23 Jul 2017, 12:16 PM
#42
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,102
Plugin Contributions:
56

Re: jQuery Scrolling Sideboxes [Support Thread]

DrByte:

As to overrides, if your YOUR_TEMPLATE folder has a "jscript" folder, then all lookups to template_default for "jscript" files will be completely ignored, and only your YOUR_TEMPLATE/jscript folder will be used.
So, it's quite possible that if this plugin relies on such files then yes you'd need to put those into YOUR_TEMPLATE instead of template_default.

But strictly speaking, for all the "sidebox" files (module and template), you don't strictly have to use an override folder, if you want the feature to apply regardless of which template you're using.
Thanks, DrByte; you hit the nail on the head. I need to update the plugin's distribution to ensure that there's a copy of the /jscript/jscript_sidebox_slider.js file in the /YOUR_TEMPLATE/jscript directory. No need to move all other files out of template-default.

While I'm at it, I noticed that the readme doesn't indicate that you'll have to use the Layout Box controller to enable/place the sideboxes so I'll get that squished, too.

Thanks, @dbltoe, for the report and persistence in getting the issue corrected.

23 Jul 2017, 1:48 PM
#43
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,102
Plugin Contributions:
56

Re: jQuery Scrolling Sideboxes [Support Thread]

I've just submitted v2.0.0 of the plugin for review. This version:

  • Drops support for Zen Cart versions prior to 1.5.5.
  • Includes a template-override folder (YOUR_TEMPLATE) version of the jQuery script that performs the scrolling.
  • Removes the plugin's default jQuery load; your active template is "presumed" to include jQuery at this point!
  • Updates the readme to note that, like with all sideboxes, the Layout Boxes Controller must be run as part of the plugin's installation.
    I'll post back here once the update is available from the Zen Cart plugins.
25 Jul 2017, 12:19 PM
#44
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,102
Plugin Contributions:
56

Re: jQuery Scrolling Sideboxes [Support Thread]

v2.0.0 is now available for download.

22 Apr 2018, 5:21 AM
#45
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,830
Plugin Contributions:
17

Re: jQuery Scrolling Sideboxes [Support Thread]

I've decided that nothing in life is absolute. I've got several sites working with this mod and one that won't cooperate. The other sites are mostly using the same mods with two using exactly the same mods.

On the other sites, the sideboxes shuffle through the proper items. On russianradiantsaDOTcom, the images do not change until a page change is done. The images flicker at the appointed time but do not change.

I've verified files, file placement, etc but still no image change.

:frusty:

22 Apr 2018, 11:15 AM
#46
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,102
Plugin Contributions:
56

Re: jQuery Scrolling Sideboxes [Support Thread]

I don't know if this is the issue, but ... I compared that site to the one that was having issues with EMP. The differences that I saw were that on the site that's having the jQuery Scrolling Sideboxes issue:

  1. The console-log shows mixed-content loading blocked on a couple of .woff files.
  2. There's a stray </div> just above the parse-time-display HTML comment

My best guess is that both of those are playing into the root-cause of the site's issue.

22 Apr 2018, 2:54 PM
#47
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,830
Plugin Contributions:
17

Re: jQuery Scrolling Sideboxes [Support Thread]

Turns out the stray div ships out-of-the-box in the responsive classic template. Both sites had it as both cloned the responsive_classic before modification.

I'll investigate the other further.

23 Apr 2018, 10:40 PM
#48
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,830
Plugin Contributions:
17

Re: jQuery Scrolling Sideboxes [Support Thread]

dbltoe:

Turns out the stray div ships out-of-the-box in the responsive classic template. Both sites had it as both cloned the responsive_classic before modification.

I'll investigate the other further.:blush:
Turns out the extra </div> was actually the closing div for the MainWrapper. Might need it there after all. Continuing the look.

26 Apr 2019, 6:52 PM
#49
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,102
Plugin Contributions:
56

Re: jQuery Scrolling Sideboxes [Support Thread]

I've just submitted v2.1.0 to be reviewed by the plugin moderators and will post back when it's available for download (https://www.zen-cart.com/downloads.php?do=file&id=1909).

This version "refactors" the plugin's files per PSR2 styling and provides additional "sanitization" needed for more recent versions of PHP and MySQL and is compatible with Zen Cart 1.5.5 and 1.5.6 variants.

26 Apr 2019, 8:46 PM
#50
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,830
Plugin Contributions:
17

Re: jQuery Scrolling Sideboxes [Support Thread]

Could be a glitch in includes/modules/sideboxes/specials_scrolling.php. Am getting```
[26-Apr-2019 20:38:34 UTC] PHP Parse error: syntax error, unexpected '{' in /home/******/public_html/155_new/includes/modules/sideboxes/specials_scrolling.php on line 10

[26-Apr-2019 20:38:34 UTC] Request URI: /155_new/index.php?main_page=index, IP address: 216.177.186.199
--> PHP Parse error: syntax error, unexpected '{' in /home/******/public_html/155_new/includes/modules/sideboxes/specials_scrolling.php on line 10.

27 Apr 2019, 11:46 AM
#51
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,102
Plugin Contributions:
56

Re: jQuery Scrolling Sideboxes [Support Thread]

dbltoe:

Could be a glitch in includes/modules/sideboxes/specials_scrolling.php. Am getting```
[26-Apr-2019 20:38:34 UTC] PHP Parse error: syntax error, unexpected '{' in /home/******/public_html/155_new/includes/modules/sideboxes/specials_scrolling.php on line 10

[26-Apr-2019 20:38:34 UTC] Request URI: /155_new/index.php?main_page=index, IP address: 216.177.186.199
--> PHP Parse error: syntax error, unexpected '{' in /home/******/public_html/155_new/includes/modules/sideboxes/specials_scrolling.php on line 10.

Of course, I validated each of these ... except the specials.  I'll get another point-release going.  Thanks, as always, for keeping me honest.
27 Apr 2019, 12:09 PM
#52
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,102
Plugin Contributions:
56

Re: jQuery Scrolling Sideboxes [Support Thread]

I've just submitted v2.1.1 for review, correcting that parse-error introduced in v2.1.0.

27 Apr 2019, 4:27 PM
#53
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,830
Plugin Contributions:
17

Re: jQuery Scrolling Sideboxes [Support Thread]

Was just hoping the new files would cure the non-changing images on one site. Will try the new file.

I'm sure you don't get told enough how those of us ZCers appreciate your work on our behalf.

Used to have a sign on my desk that said, "Pobody's Nerfect!" It's my mantra!

27 Apr 2019, 4:40 PM
#54
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,830
Plugin Contributions:
17

Re: jQuery Scrolling Sideboxes [Support Thread]

No more errors but, the images still do not change.:frusty:

Think I'll be going to a new install test site.

27 Apr 2019, 6:27 PM
#55
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,102
Plugin Contributions:
56

Re: jQuery Scrolling Sideboxes [Support Thread]

dbltoe:

No more errors but, the images still do not change.:frusty:

Think I'll be going to a new install test site.
Make sure that the jscript_side_box_slider.js is present in the site's active template's /jscript sub-directory and that there are no console-logs (indicating that there's a jQuery conflict/issue).

2 May 2019, 5:09 PM
#56
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,830
Plugin Contributions:
17

Re: jQuery Scrolling Sideboxes [Support Thread]

Seems that there is a php error in putting the new files together. Includes/templates/template_default/sideboxes/tpl_specials_scrolling.php line 16$content .= '<a href="' . zen_href_link(zen_get_info_page($ss_pid), 'cPath=' . zen_get_generated_category_path_rev($scrolling_specials->fields["master_categories_id"]) . "&products_id=$ss_pid"]) . '">' . zen_image(DIR_WS_IMAGES . $scrolling_specials->fields['products_image'], $ss_pname, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);should be```
$content .= '<a href="' . zen_href_link(zen_get_info_page($ss_pid), 'cPath=' . zen_get_generated_category_path_rev($scrolling_specials->fields["master_categories_id"]) . ["&products_id=$ss_pid"]) . '">' . zen_image(DIR_WS_IMAGES . $scrolling_specials->fields['products_image'], $ss_pname, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);

2 May 2019, 5:13 PM
#57
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,830
Plugin Contributions:
17

Re: jQuery Scrolling Sideboxes [Support Thread]

The above gets the images to change on a new install with demo items. I get the exact same console readings from the new and the old although the old never changes the image. :frusty:

I'll slowly add other mods to see when it breaks.

2 May 2019, 7:48 PM
#58
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,102
Plugin Contributions:
56

Re: jQuery Scrolling Sideboxes [Support Thread]

Actually, the change should be to remove those brackets:

$content .= '<a href="' . zen_href_link(zen_get_info_page($ss_pid), 'cPath=' . zen_get_generated_category_path_rev($scrolling_specials->fields['master_categories_id']) . "&products_id=$ss_pid") . '">' . zen_image(DIR_WS_IMAGES . $scrolling_specials->fields['products_image'], $ss_pname, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);

This is staged on the plugin's GitHub repository for a v2.1.2 release.

1 Jun 2019, 6:44 PM
#59
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,102
Plugin Contributions:
56

Re: jQuery Scrolling Sideboxes [Support Thread]

I've just submitted v2.1.2 to the Zen Cart Plugins for review, correcting the issue that @dbltoe identified in post #56. I'll update this thread when the plugin is available for download.

10 Jun 2019, 5:33 PM
#60
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,102
Plugin Contributions:
56

Re: jQuery Scrolling Sideboxes [Support Thread]

lat9:

I've just submitted v2.1.2 to the Zen Cart Plugins for review, correcting the issue that @dbltoe identified in post #56. I'll update this thread when the plugin is available for download.
Now available for download: https://www.zen-cart.com/downloads.php?do=file&id=1909