We’re with you. JoomShaper is offering a 20% Discount on all plans due to the impact of COVID-19.

Support Online : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

Slideshow Addon creates duplicate hash in address

Featured Lock Resolved Bug
This addon creates a duplicate hash in the address of the background image. This causes the background image to display (or not) depending on which browser you use. If you are having issues getting a background image to load, check this out.

Consistency in programming would fix this. However, in the absence of that, here is the fix:
Locate the file named /components/com_sppagebuilder/addons/js_slideshow/site.php
Make a backup, just in case.

On or around line 493 of this file, you'll see (line numbers don't match up here):

if(isset($item_value->slider_img) && $item_value->slider_img){
if(strpos($item_value->slider_img, "http://") !== false || strpos($item_value->slider_img, "https://") !== false){
$output .= '<div class="sp-background" style="background-image: url('/.$item_value->slider_img.');"></div>';
} else {
$output .= '<div class="sp-background" style="background-image: url('/. JURI::base() . '/' . $item_value->slider_img .');"></div>';
}
}


On line 497 is the issue:

JURI::base() . '/' . $item_value

Remove '/' .
Your code should now look like:

JURI::base() . $item_value


Use at your own risk.

Attachments (1)

  • more-free-beta-testing.png
    more-free-beta-testing.png 3.4 KB

2 Answers

Paul Frankowski - Staff

More than a month ago #Permalink
Hi,
thanks a lot, we will investigate it soon.

Paul Frankowski - Staff

More than a month ago #Permalink
p.s.
I got quick feedback after posting, that we already fixed it, it will be presented in next SPPB update.


There are no replies made for this post yet.
Be one of the first to reply to this post!

124

Templates

330958

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us