Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 05/20/2021 in all areas

  1. 1 point
    Owl Sauron

    Jssor Slider

    Ok... had a few mins free and took a look at it and found the problem. Its with the number of installed languages you have on the shop. It will show the HTML Text for each language for the same slide generating (slide * languages) slides. Since i wont use any HTML Text on the banner i simply did a "quick fix" for the header module as: Edit file "tpl_cm_header_jssor.php" replacing from line 5 to 16 the following code: " $banner_query = tep_db_query("select a.advert_id, a.advert_url, a.advert_image, ai.advert_html_text from advert a left join advert_info ai using(advert_id) where advert_group = '" . MODULE_CONTENT_HEADER_JSSOR_SLIDER_GROUP . "' and status = 1"); if (($cnt = tep_db_num_rows($banner_query)) > 0) { while ($banner = tep_db_fetch_array($banner_query)) { if (tep_not_null($banner['advert_image'])) { $imgArray[] = tep_image('images/' . $banner['advert_image'], $banner['advert_html_text'], '','','u="image"'); $txtArray[] = $banner['advert_html_text']; } else { $imgArray[] = $banner['advert_html_text']; } " with: " $banner_query = tep_db_query("select advert_id, advert_url, advert_image from advert where advert_group = '" . MODULE_CONTENT_HEADER_JSSOR_SLIDER_GROUP . "' and status = 1"); if (($cnt = tep_db_num_rows($banner_query)) > 0) { while ($banner = tep_db_fetch_array($banner_query)) { if (tep_not_null($banner['advert_image'])) { $imgArray[] = tep_image('images/' . $banner['advert_image'], '', '','','u="image"'); } " its just an headsup so you dont waste time looking for the bug and can fix the problem when you update the module but might be handy for someone else in the meanwhile. Tested on Phoenix 1.0.8.0 PHP 7.0
×