Black Friday & Cyber Monday 2019 Sale: Up to 40% OFF Storewide & Extra Gift
0
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum

We are here to serve :)

Our support team is currently online to solve your issues.

Our support team is currently offline

Our support heroes might not be around this hour. Please expect some delays.

Our support is available from

Monday - Friday 8am - 5:30pm GMT+7

Your time: 00:00:00
Our time: 00:00:00

Welcome, Guest

Yt K2 Slideshow II
(1 viewing) (1) Guest
  • Page:
  • 1
  • 2

TOPIC: Yt K2 Slideshow II

Yt K2 Slideshow II 7 years, 1 month ago #4996

Hello Everyone,

Yt K2 Slideshow II gives 2 options to display content under 'General Settings - Item Type'': 1. Category and 2. Item Ids.

I have selected 'Category' so the images will be continuously updated as we upload news during the day.

I was expecting the module to show ONLY articles WITH PICTURES, but it displays all articles. Consequently, articles without a image will show a broken image. See the website:

- sjwn25.csn2011go.com.

How can I make Yt K2 Slideshow II show only the article with IMAGE?

Please advise.

Sunny regards,

Willem

Re: Yt K2 Slideshow II 7 years, 1 month ago #5029

  • loitt
  • OFFLINE
  • Platinum Boarder
  • Posts: 2222
  • Karma: 48
Hi Willem S.A. Da Costa Gomez,

Please go to "your_site/modules/mod_yt_k2_slideshowii/assets/yt_k2slideshowii.php", finding:

function update($items){		
		$tmp = array();
		
		foreach ($items as $key => $item) {
			if (!isset($item['sub_title'])) {
				$item['sub_title'] = $this->cutStr($item['title'], $this->max_title);
			}
			if (!isset($item['sub_main_content'])) {
				$item['sub_main_content'] = $this->cutStr($item['content'], $this->max_main_description);
			}
			if (!isset($item['sub_normal_content'])) {
				$item['sub_normal_content'] = $this->cutStr($item['content'], $this->max_normal_description);
			}
			if (!isset($item['thumb']) && $item['img'] != '') {
				$item['thumb'] = $this->processImage($item['img'], $this->thumb_width, $this->thumb_height, $item['id']);
                
			} else {
				$item['thumb'] = '';
			}
            if($this->imagesource == 1){
                $item['thumb'] = $item['img'];
            }
            if($item['thumb'] == ""){
                if($this->themes == 'theme5'){
                    $item['small_thumb'] = JURI::base()."modules/mod_yt_k2_slideshowii/assets/no_images.png";
                }
            }else{

                $item['small_thumb'] = $this->processImage($item['img'], $this->small_thumb_width, $this->small_thumb_height, $item['id']);

            }
            
			$tmp[] = $item;
            
            
		}
		
		return $tmp;				
	}



change to


function update($items){		
		$tmp = array();
		
		foreach ($items as $key => $item) {
			if (!isset($item['sub_title'])) {
				$item['sub_title'] = $this->cutStr($item['title'], $this->max_title);
			}
			if (!isset($item['sub_main_content'])) {
				$item['sub_main_content'] = $this->cutStr($item['content'], $this->max_main_description);
			}
			if (!isset($item['sub_normal_content'])) {
				$item['sub_normal_content'] = $this->cutStr($item['content'], $this->max_normal_description);
			}
			if (!isset($item['thumb']) && $item['img'] != '') {
				$item['thumb'] = $this->processImage($item['img'], $this->thumb_width, $this->thumb_height, $item['id']);
                
			} else {
				$item['thumb'] = '';
			}
            if($this->imagesource == 1){
                $item['thumb'] = $item['img'];
            }
            if($item['thumb'] == ""){
                if($this->themes == 'theme5'){
                    $item['small_thumb'] = JURI::base()."modules/mod_yt_k2_slideshowii/assets/no_images.png";
                }
            }else{

                $item['small_thumb'] = $this->processImage($item['img'], $this->small_thumb_width, $this->small_thumb_height, $item['id']);

            }
            
	  if(!empty($item['thumb'])){
				$tmp[] = $item;
            }
            
		}
		
		return $tmp;				
	}



Thanks
Ticket System | Join our Clubs to download our extensions and templates
The following user(s) said Thank You: CSN2011

Re: Yt K2 Slideshow II 7 years, 1 month ago #5046

It works: Thank You!

So K2 Slider / Yt K2 Slideshow II 7 years, 1 month ago #5102

Hello Everyone,

I have the same issue with articles WITHOUT pictures in Editor's choice, that is So K2 Slider, as with Yt K2 Slideshow II.

See website: sjwn25.csn2011go.com/

Please advise.

Sunny regards,

Willem

Re: So K2 Slider / Yt K2 Slideshow II 7 years, 1 month ago #5106

  • loitt
  • OFFLINE
  • Platinum Boarder
  • Posts: 2222
  • Karma: 48
Hi Willem S.A. Da Costa Gomez,

I see that k2 slider module is normal now.

Could you please explain your mean again?

Thanks
Ticket System | Join our Clubs to download our extensions and templates

Re: So K2 Slider / Yt K2 Slideshow II 7 years, 1 month ago #5116

Dear SA Supporter,

Please look at the fourth "picture" from the left.

Thank you!

Willem
  • Page:
  • 1
  • 2
Time to create page: 0.42 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.
Black Friday & Cyber Monday 2019 Sale: Up to 40% OFF Storewide & Extra Gift

Suggested Posts

(/)
Result not found!

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes