Jump to content
MrManchot

[Free Module] Block Instagram

Recommended Posts

Block Instagram : Display Instagram pics from an account

The module is available here : https://github.com/MrManchot/blockinstagram

The "master" branch will only be compatible with 1.7
I set up a "1.6.x" branch to maintain 1.6 compatibility

To make it easier, here are the download links:

 

"Source code (zip)", one will get a file named "blockinstagram-1.2.4.zip". Inside, there is a folder named "blockinstagram-1.2.4". To make the import facilities of Prestashop work, one has to unpack it, rename the folder to "blockinstagram" and zip it as "blockinstagram.zip".

 

Please use this module instead : https://boutique.comonsoft.com/gb/free-prestashop-modules/18-instagram-latest-picture-block.html

It use the Instagram API, and is fully compatible 1.6/ 1.7

 

Hope it may help you :)

Edited by MrManchot (see edit history)
  • Like 4
  • Thanks 1
  • Haha 1

Share this post


Link to post
Share on other sites

Hello,

 

Thank you for your post.

It's not working for me. I can't see the module after upload the zip.

Any help?

  • Thanks 1

Share this post


Link to post
Share on other sites

Hello,

 

Sorry for the delay.

 

@Felipe_CN What is your problem ?

 

@OTOKO : The file is in the correct path : /modules/blockinstagram/blockinstagram.php ? What is your Prestashop version ?

 

You should see that in the BO :

 

ZrVi9Q9.png

  • Like 1

Share this post


Link to post
Share on other sites

Hello,

 

Sorry for the delay.

 

@Felipe_CN What is your problem ?

 

@OTOKO : The file is in the correct path : /modules/blockinstagram/blockinstagram.php ? What is your Prestashop version ?

 

You should see that in the BO :

 

ZrVi9Q9.png

Hi! I solved the problem. After I upload the zip file, the module didn't appears in prestashop modules (modules > modules). So I went in my FTP and upload manually all the files that was in the zip file in to a new folder  named "blockinstagram"  (.../modules/blockinstagram) and now it appears on my prestashop desktop and works perfectly!

  • Like 1

Share this post


Link to post
Share on other sites

Hi Mr Manchot.

 

When i upload the zip, prestashop 1.6.1 tell me: "the module has been added" 

 

But i see nothing in the BO and nothing in the file /modules/.

I tried 2 times without success.

 

Thank you

Share this post


Link to post
Share on other sites

Hi MrManchot,

 

I think I found the reason why the module is not showing up:

 

Apparently, Prestashop does not like folder names with a dash in it. I unpacked the archive, renamed the folder from "blockinstagram-master" to "blockinstagram" and packed it again as "blockinstagram.zip". Then it was added correctly and visible in the modules list in the back office.

 

Kind regards,

 

Florian

  • Like 1

Share this post


Link to post
Share on other sites

I really like your module, it is exactly what I was looking for. Would you be interested in a German translation as a thank you?

 

Kind regards,

 

Florian

Share this post


Link to post
Share on other sites

Yes you should use "blockinstagram" as folder name !

 

@Florian yes it would be great, Can you send me your translation name :)

  • Like 2

Share this post


Link to post
Share on other sites

There you go, see attachment. I have used the non-formal way of saying "Follow us on" (in German "Folge uns bei" instead of the formal "Folgen Sie uns bei"), but feel free to change that.

 

And concerning the file and folder name, maybe you could give advice similar to this in your very first post:

 

When someone visits your GitHub page, clicks "Clone or download", and then "Download ZIP", one will get a file named "blockinstagram-master.zip". Inside, there is a folder named "blockinstagram-master". To make the import facilities of Prestashop work, one has to unpack it, rename the folder to "blockinstagram" and zip it as "blockinstagram.zip".

 

 

Kind regards,

 

Florian

de.php

  • Like 1

Share this post


Link to post
Share on other sites

I need anyone's help in customizing just a small thing.

 

I have downloaded and installed this Instagram module and its working perfect without any issues.

However, I don't want to have image size option in its module configuration. Can you please provide only the modified files for this change?
Also, I didn't understand the purpose of function "imagickResize". Is this function (or method) still needed if we remove the image size option?

I'm familiar with Prestashop code so you can explain in technical language.

  • Confused 1

Share this post


Link to post
Share on other sites

@MrManchot im new with prestashop, i installed module in localhost and works perfetcly but in my server doesnt works, any help?

The module is not working, or you cant' see it ?

 

Activate debug mode, for to read errors: https://www.prestashop.com/forums/topic/224525-how-to-turn-on-error-reporting-for-debug-information-blank-page-500-internal-server-error/

  • Like 1

Share this post


Link to post
Share on other sites

The module is not working, or you cant' see it ?

 

Activate debug mode, for to read errors: https://www.prestashop.com/forums/topic/224525-how-to-turn-on-error-reporting-for-debug-information-blank-page-500-internal-server-error/

i can't see it, i print 'instagram_pics|count' and is =0 for that reason dont continue adding the template ({if isset($instagram_pics) && $instagram_pics|count > 0}...) , but i dont undesrtand why becouse in localhost works good

Share this post


Link to post
Share on other sites

i can't see it, i print 'instagram_pics|count' and is =0 for that reason dont continue adding the template ({if isset($instagram_pics) && $instagram_pics|count > 0}...) , but i dont undesrtand why becouse in localhost works good

Edited by daniellopezcano10 (see edit history)

Share this post


Link to post
Share on other sites

Hi, I have done everything yet I cannot see it in the front office. Module is instaled, set and hooked in the displayHome, yet I cannot see it when I open the page. Any ideas?

Share this post


Link to post
Share on other sites

Greate module! Good job :)
Is there a way to delete the time, and only have date on pics... Currently there is date + time.

Share this post


Link to post
Share on other sites

Hi,

I have an issue; a few days ago the module stopped working; i can't see it in the home page anymore. Nothing has been changed, it just stopped working.  I uninstalled and installed back, everything seems normal in backoffice, hook is ok but it just won't show.

Any ideas?

Share this post


Link to post
Share on other sites

nice module nut after some days it doaesn't count likes and comments .. It appears all 0.
any solution?

Share this post


Link to post
Share on other sites

Hello Panoskou,

 

Instagram have made a change in theirs JSONs.

I've corrected the module, you just have to download and update it ;)

  • Like 1

Share this post


Link to post
Share on other sites

Hello,

Well done for this module!

I would like to transplant the module to a different position but it allows me only for the Displayhome position. Is it possible to have more options ?

Thanks in advance

Share this post


Link to post
Share on other sites

MrManchot
 
Very nice work. I have installed in my page and works perfectly. I have created a Spanish translation but not all the tags show in Spanish (maybe you have upgraded the code and have new codes for the tags). These are the ones not being translated:
- Image format
- Resize in pixel
- Follow .. in Instagram
 
Anyway I am attaching it in case you would like to add it to your zip.
 
Thank you

es.php

  • Like 1

Share this post


Link to post
Share on other sites
On 30/9/2016 at 0:01 PM, selectshop.at said:

The module is not working, or you cant' see it ?

 

Activate debug mode, for to read errors: https://www.prestashop.com/forums/topic/224525-how-to-turn-on-error-reporting-for-debug-information-blank-page-500-internal-server-error/

Hi.
i installed the module but doesnt work. i will activated the debug mode and appears this error.

"Warning: file_get_contents(https://www.instagram.com/maquifit/media/): failed to open stream: Connection timed out in /home/maquifit/public_html/modules/blockinstagram/blockinstagram.php on line 178
Fatal error: Call to undefined function json_decode() in /home/maquifit/public_html/modules/blockinstagram/blockinstagram.php on line 179"

please help! :D

Share this post


Link to post
Share on other sites

Hello, after long time ago I have problem with this plugin. It doesn't show nothing in my page. Can you tell me why?

Share this post


Link to post
Share on other sites

@stevexc99 @panoskou Instagram have change all our feed data.

You just have to upgrade your module, and it will work ;)

 

  • Like 1

Share this post


Link to post
Share on other sites

There an error in blockinstagram.php file, scripts counts likes as comments, on line 243 there is:

'comments' => self::niceNumberDisplay($item->likes->count),

should be

'comments' => self::niceNumberDisplay($item->comments->count),

You can see demo in action here

Edited by vkmaxx (see edit history)

Share this post


Link to post
Share on other sites
6 hours ago, vkmaxx said:

There an error in blockinstagram.php file, scripts counts likes as comments, on line 243 there is:


'comments' => self::niceNumberDisplay($item->likes->count),

should be


'comments' => self::niceNumberDisplay($item->comments->count),

You can see demo in action here

 

 

Thank you, I have correct this bug ;)

Share this post


Link to post
Share on other sites
1 minute ago, isnob46 said:

hi,this module was working very good untile yesterday,today dont show instagram image,why?

 

Try to re-generate your access token, sometime for some security reasons Instagram reset your access token

  • Like 1

Share this post


Link to post
Share on other sites
2 minutes ago, ets-soft said:

 

Try to re-generate your access token, sometime for some security reasons Instagram reset your access token

yeah! i just change instagram account and back to old account and now work good! ty :)

Share this post


Link to post
Share on other sites

Thank you for this module! Can we have an option for displaying the images in a carousel/slider instead of rows?

Share this post


Link to post
Share on other sites

Hi, for no reason my instagram module stopped working. So I tried download again the module, add in the prestashop by ftp server and it doesn't show in my modules list to install and configure it. Any ideas?

Share this post


Link to post
Share on other sites

@MrManchot Thank you so much for this awesome Instagram module and it works fine for me. 

Is it possible to assign this module to new page namely "gallery" to show all instagram images.

Now I see only home page content in module position option.

Anyone help me to find a solution.

Best regards,

Vijay

Share this post


Link to post
Share on other sites

The module stop worked..did the instagram change the response json??

 

thanks

Share this post


Link to post
Share on other sites
On 3/14/2018 at 5:54 PM, MrManchot said:

Yes, Instagram change it again !

I just correct it : https://github.com/MrManchot/blockinstagram/releases/tag/1.2.2

Hi,
I just uploaded this version, but still doens't show the instagram pictures.
Would you help, please?
Thanks

http://world.maria-bianca.com
image.thumb.png.de283987830ed0a27be5b8d5cea2ffb5.png

Edited by patriciapwm (see edit history)

Share this post


Link to post
Share on other sites

Se instala bien esa versión, pero luego no me muestra nada en el home. Es obligatorio tener la función de PHP activa ?

Share this post


Link to post
Share on other sites
12 hours ago, MrManchot said:

 

Hello,

Please use the 1.2.2 release : https://github.com/MrManchot/blockinstagram/releases

The version 2.0.0 is not an "open" verion

ok thanks.can i change the dimension of the module?i want it to be smaller.i make photos look smaller but i want alla the module shorter

Edited by giotas123 (see edit history)

Share this post


Link to post
Share on other sites

Hi! Though it works perfect, would there be a possibility to change displayed column number. Currently, instagram displays 3 columns, but module has 4, so, if you have some pictures set to display in order, it shows a bit different in the web. Though, I really, really love your app! Great work!

Site that it's active: stroller24.com

Share this post


Link to post
Share on other sites

A nouveau, le module ne s'affiche plus en page d’accueil.
Je l'ai dé-installé/re-installé mais comme je ne sais pas si cela vient vraiment de moi ou plutôt instagram. Quelqu'un d'autre à un souci avec ?

Share this post


Link to post
Share on other sites

Hallo,

i have 1.7.3.0 version and images are not shown,
I have not error. In B. O.

the module seems ok and configurable.
I tried to see the source code of my page and no instagram links appears .

the cache is clean.
thank you

Share this post


Link to post
Share on other sites

Hello,

Yes, Instgram change it again... I'm sorry but for the moment I've the time to work on it at every change...

Share this post


Link to post
Share on other sites
Le 14/04/2018 à 4:10 AM, nonsoloargenti a dit :

Hallo,

i have 1.7.3.0 version and images are not shown,
I have not error. In B. O.

the module seems ok and configurable.
I tried to see the source code of my page and no instagram links appears .

the cache is clean.
thank you

For version 1.7, there is this module!

Link

Share this post


Link to post
Share on other sites
Il y a 9 heures, tdsoft a dit :

Is it working for Prestashop 1.7.3?

It seems to me not, personally, I use this one on my 1.7.3.0

link

Share this post


Link to post
Share on other sites

Again is broken... 

I don't understand how it works and why and when it stop working :) and when it goes back.... :) enigma for me....

Share this post


Link to post
Share on other sites

Instagram changes something, then in module the gets no pictures and main IF is false:

{if isset($instagram_pics) && $instagram_pics|count > 0}

witch leads to no pictures :(

Quote

To continuously improve Instagram users' privacy and security, we are accelerating the deprecation of Instagram API Platform, making the following changes effective immediately. We understand that this may affect your business or services, and we appreciate your support in keeping our platform secure. 

These capabilities will be disabled immediately (previously set for July 31, 2018 or December 11, 2018 deprecation). The following will be deprecated according to the timeline we shared previously:

  • Public Content - all remaining capabilities to read public media on a user's behalf on December 11, 2018
  • Basic - to read a user’s own profile info and media in early 2020

 

Instagram is owned by Facebook, because of FB problems they are changing privacy settings for other platforms....

Edited by vkmaxx (see edit history)

Share this post


Link to post
Share on other sites

sorry everyone,
By previous versions use of a middleman to retrieve JSON so they have not been stable,
I have completed the new version and more stable.
But they do not know how to up.

Share this post


Link to post
Share on other sites
1 hour ago, nhockoyhl said:

This is a complete repair module, you can use and test, then let me know, thank you very much.

Looking forward to hearing from you.

 

blockinstagram-1.2.4.zip

Crashed my sites both FE and BO. /Module.php(1361) : eval()'d code:
syntax error, unexpected 'use' (T_USE)

/modules/blockinstagram/blockinstagram.php:
Interface 'PrestaShop\PrestaShop\Core\Module\WidgetInterface' not found

Thanks!

Edited by DoGGoD (see edit history)

Share this post


Link to post
Share on other sites
19 hours ago, DoGGoD said:

Crashed my sites both FE and BO. /Module.php(1361) : eval()'d code:
syntax error, unexpected 'use' (T_USE)

/modules/blockinstagram/blockinstagram.php:
Interface 'PrestaShop\PrestaShop\Core\Module\WidgetInterface' not found

Thanks!

Are you using PS 1.7?

Share this post


Link to post
Share on other sites
18 hours ago, yannfanch said:

Idem pour moi en 1.6.18

oh no,
sorry,
This module works on 1.7

Share this post


Link to post
Share on other sites

Hello everybody,

Sorry guys, I haven't time to deal with the module lately.
To make it simple, the "master" branch will only be compatible with 1.7
I set up a "1.6.x" branch to maintain 1.6 compatibility

To make it easier, here are the download links:

Edited by MrManchot (see edit history)
  • Thanks 1

Share this post


Link to post
Share on other sites

Hi,

Here is the error I get when I install the module and try to go to the homepage of my site.

Thank for your help

insta.PNG

Share this post


Link to post
Share on other sites

Hi have tried but this appears:

[PrestaShop] Fatal error in module file :/home/flybaby/public_html/lojaonline/classes/module/Module.php(1361) : eval()'d code:
syntax error, unexpected 'use' (T_USE)

 

now, every time I go to modules sections this message appears. Any help?

Share this post


Link to post
Share on other sites
10 hours ago, Prestashop Addict said:

If you are looking for a free Instagram feed module compatible with 1.6 and 1.7 versions test this one.

 

Hi ! Nice job ;)

I had initially created the module because it was almost impossible to get an Instagram API key at the time. It seems resolved and your method is clearly the best. If have edit the first message of the topic, to propose your module instead.

On the other hand, even if it's not important at all, you could have mentioned somewhere that you were "inspired" by my module.

Have a good day

Edited by MrManchot (see edit history)

Share this post


Link to post
Share on other sites

Hello! Thank you so much! It works perfectly!

But how can I hook it before footer? Because when I try to hook it to displayFooterBefore, it's not in the list. Do I need to add some code somewhere for it to show the displayFooterBefore? Thank you!

image.png.82c661aa6129778cf1439ee636360f4c.png

Share this post


Link to post
Share on other sites