Jump to content
thirty bees forum

Warning about homeslider update to 2.1.0


Recommended Posts

Posted

Hi everyone, 

We have just released homeslider v2.1.0

This module fixes long-standing issue with deleting slider images during updates. From now on, images will not be stored inside module directory, but instead inside global /img/homeslider/ directory. That way, they will survive module updates.

Note: that if you update to this version using automated system (tbupdater), you will still loose your slides images (because they are not yet moved). To prevent this, you need to download the homeslider zip package and install it manually

https://github.com/thirtybees/homeslider/releases

  • Like 3
Posted

Hi, I have updated the module. First with the automatic update, and then as recommended, I have uninstalled it and I have installed the one I downloaded from the page they say, but since the first update, the images are not seen in addition to having modified the size of the slider box to very large. Any suggestions?

Thanks

Posted
8 hours ago, Oncle said:

Hi, I have updated the module. First with the automatic update, and then as recommended, I have uninstalled it and I have installed the one I downloaded from the page they say, but since the first update, the images are not seen in addition to having modified the size of the slider box to very large. Any suggestions?

Thanks

If you updated first by automatic update, then it wiped out your slides. You will have to upload them again.

Slider box size can be set in module settings page. Set 'Maximum image' width to 799 to achieve the same sizes as were default in previous version.

Posted

Please note

niara theme (and probably other themes as well) comes with its own override for homeslider template. This template still display images from /modules/homeslider/images/ directory, which is not correct after update to 2.1.0.

After you update to version 2.1.0, you will have to update your theme override file as well.

Check if your theme contains file /themes/<theme>/modules/homeslider/homeslider.tpl. If the file exists, try to modify it. You can take an inspiration from the the fix for niara theme: https://github.com/thirtybees/niara/commit/15e5338e628fca184a339d6cde66c961bfeb8169 

or simply download this version and use it to replace the one in your theme: 

https://raw.githubusercontent.com/thirtybees/niara/15e5338e628fca184a339d6cde66c961bfeb8169/modules/homeslider/homeslider.tpl

or delete the override file completely. That way, the template that comes with the module will be used.

Posted

OK. I have repositioned the images from the module settings. I see with FTP that the images are uploaded to the img/homeslider folder, but they still do not appear.

Posted
5 minutes ago, Oncle said:

OK. I have repositioned the images from the module settings. I see with FTP that the images are uploaded to the img/homeslider folder, but they still do not appear.

Read my response above. Your theme probably have override template file

Posted

Hi Oncle,

I just followed the procedure that Datakick discriped with modifying homeslider.tpl and it works fine for me. I am using the Niara theme.

The images are still shown at the right side of the screen though.

Thank you Datakick for the advice 🙂

Posted
Just now, Michael J said:

Hi Oncle,

I just followed the procedure that Datakick discriped with modifying homeslider.tpl and it works fine for me. I am using the Niara theme.

The images are still shown at the right side of the screen though.

Thank you Datakick for the advice 🙂

If you reinstalled the module, you might want to try to lower 'Maximum image' width settings. In previous versions the default was 799. That could fix your issue.  

If you run multistore, be aware that this settings is per store. Update it in each one of them separately.

Posted
Hace 13 horas, Datakick dijo:

Tenga en cuenta

El tema Niara (y probablemente otros temas también) viene con su propia plantilla Override for HomesLider. Esta plantilla sigue mostrando imágenes del directorio /modules/homeslider/images/, que no es correcto después de actualizar a 2.1.0.

Después de actualizar a la versión 2.1.0, también deberá actualizar el archivo de anulación del tema.

Comprueba si tu tema contiene el archivo /themes/<theme>/modules/homeslider/homeslider.tpl. Si el archivo existe, intente modificarlo. Puedes inspirarte en el tema de la solución para niara: https://github.com/thirtybees/niara/commit/15e5338e628fca184a339d6cde66c961bfeb8169 

O simplemente descargue esta versión y úsela para reemplazar la de su tema:

https://raw.githubusercontent.com/thirtybees/niara/15e5338e628fca184a339d6cde66c961bfeb8169/modules/homeslider/homeslider.tpl

o elimine el archivo de anulación por completo. De esa manera, se utilizará la plantilla que viene con el módulo.

Perfecto Datakick, funciona correctamente con el comentario. Al parecer los escritos estaban cruzados y no lo he visto hasta hoy, que es cuando lo he solucionado. ¡Gracias!

Posted

I can't upload the images. I've altered the homeslider.tpl in the Community Theme Default according to your changes to Niara:

Quote

{if $page_name =='index'}
  {if isset($homeslider_slides)}
    <div id="homepage-slider" class="col-xs-12">
      {if isset($homeslider_slides[0]) && isset($homeslider_slides[0].sizes.1)}{capture name='height'}{$homeslider_slides[0].sizes.1}{/capture}{/if}
      <ul id="homeslider"{if isset($smarty.capture.height) && $smarty.capture.height} style="max-height:{$smarty.capture.height}px;"{/if}>
        {foreach from=$homeslider_slides item=slide}
          {if $slide.active}
            {if isset($slide.imageUrl)}
              {$slideImageUrl = $slide.imageUrl}
            {else}
              {$slideImageUrl = "`$smarty.const._MODULE_DIR_`homeslider/images/`$slide.image`"}
            {/if}
            <li class="homeslider-container">
              <a href="{$slide.url|escape:'html':'UTF-8'}" title="{$slide.legend|escape:'html':'UTF-8'}">
                <img  class="img-responsive"
                       src="{$link->getMediaLink($slideImageUrl)|escape:'htmlall':'UTF-8'}"
                      {if isset($slide.size) && $slide.size} {$slide.size}{/if}
                      alt="{$slide.legend|escape:'htmlall':'UTF-8'}"
                      style="width: 100%; height: 100%"
                >
              </a>
              {if isset($slide.description) && trim($slide.description) != ''}
                <div class="homeslider-wrapper hidden-xs">
                  <div class="homeslider-description">{$slide.description}</div>
                </div>
              {/if}
            </li>
          {/if}
        {/foreach}
      </ul>
      <div id="homeslider-pager">
        <span>{l s='More offers:' mod='homeslider'}</span>
        <span id="homeslider-pages"></span>
      </div>
    </div>
  {/if}
{/if}

 

There is no Homeslider folder in the img folder.

I can see the name of the img file in the database but I can't find the file anywhere 😞

Posted
55 minutes ago, Marta said:

I can't upload the images. I've altered the homeslider.tpl in the Community Theme Default according to your changes to Niara:

There is no Homeslider folder in the img folder.

I can see the name of the img file in the database but I can't find the file anywhere 😞

Did you update the module manually, or automatically? If automatically, all your existing images were wiped out. You will have to re-upload them, and they should be stored inside /img/homeslider directory (if it's writeable)

Posted

There is no such a directory. I updated automatically. When I'm trying to upload the images as usual nothing is happening.

image.thumb.png.8b0bab3d673e8723356abbcb75c67598.png

And then:

image.thumb.png.be3be98a85dffe03777ddab79185d2ec.png

There is no image.

Posted

your /img/ directory is probably not writeable, so module failed to create subdirectory homeslider inside it. You might need to create this subdirectory manually (via ftp, for example), and set correct permission for it

Posted
28 minutes ago, the.rampage.rado said:

For me when uploading the images everything is fine. They simply not show up in FO. No errors during installation, upload of files, in Error log. The images are in the img/homeslider/ folder.

Did you check /themes/<theme>/modules/homeslider/homeslider.tpl override inside your theme, as described in one of the posts above?

Posted
1 hour ago, datakick said:

Did you check /themes/<theme>/modules/homeslider/homeslider.tpl override inside your theme, as described in one of the posts above?

Thank you! I've missed that.

Now the image shows but I had to transplant it to displayHome in order to appear over the other modules. Otherwise it hooked to displayTop and this made a second column, shifting my displayHome hook to the right.

Now it shows like that over my Revolution:

image.thumb.png.247aca116c3c757bf9526f9161966c07.png

Posted

i do have the same issue with the them-configurator module. I always get an error when uploading an image. "An error occurred during the image upload."

  • 2 weeks later...
Posted (edited)

If you are using the default theme you have to delete the homeslider.tpl in the  theme to get it to work.   What you get if you use the edit from github is the pictures appear but it pushes the icons down below the slider rather than where they usually are on the side.  The github edit works in the Community theme.  Deleting the homeslider.tpl in the Community Theme does not work as it distorts the images.  Is there some way to preserve the theme configuration rather than having to reconfigure it every time you change themes? Yes, The best solution I have found so far is is to copy all the images to a different folder you create for the purpose in file manager, and or download all of them. If you have already done the theme or slider upgrade and lost all the images, is to copy the images from a similar store, if you have one or upload them in mass through the file manager.

Edited by Joint Systems
update

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...