Jump to content

[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,

 

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
  • 2 weeks later...

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

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
  • 4 weeks later...

@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
  • 1 month later...
  • 2 months later...

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
  • 1 month later...

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
  • 3 weeks later...
  • 5 weeks later...
  • 2 weeks later...

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
  • 2 months later...

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
  • 3 months later...
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

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
  • 5 weeks later...
  • 4 weeks later...

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
  • 1 month later...
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
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
  • 3 weeks later...

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
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

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
  • 4 weeks later...

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

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
  • 1 month later...

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
  • 2 weeks later...
  • 2 months later...
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
  • 2 months later...

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
  • 2 months later...
Dnia 2.01.2019 o 12:31 PM, YitongM napisał:

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

Hi, 

I found in file: csoft_instagramfeeds.php  

# Use in *.tpl : {hook h='blockInstagram' mod='csoftInstagramFeeds'}
    # Work only if not hook on displayHome

I set up transplant to: csoftInstagramFeeds and write hook in my tpl file but it dosen`t work.  Maybe You or someone else will resolve this problem with this tiny help.

 

I have just found another plugin instagram feed: 

https://waterthemes.com/prestashop-modules/82-instagram-prestashop-module.html

And it works fine. You can manage where plugin You want to appear. 

 

Edited by abramovvicz
found new info (see edit history)

Share this post


Link to post
Share on other sites
  • 1 month later...

Some of  the above do not work. I have been working with https://www.poptop.uk.com/ for a long time and I like the result by the result. After cleaning, advertisers will be more willing to give you orders and you will increase the attractiveness of your account for people😊


 

 
Edited by lisaalisa (see edit history)

Share this post


Link to post
Share on other sites
  • 4 weeks later...