Author Topic: instagram embedding fixed?  (Read 2518 times)

0 Members and 1 Guest are viewing this topic.

adarqui

  • Administrator
  • Hero Member
  • *****
  • Posts: 30918
  • who run it.
  • Respect: +7590
    • View Profile
    • Email
instagram embedding fixed?
« on: March 23, 2016, 03:51:14 am »
+5
turned out to be a regex issue with the instagram plugin.. it was hardcoded to accept '10 chars' of the instagram slug, but some are 11 etc.. so that's why it was breaking.

Code: [Select]
$pattern = '#(http|https)://(|(.+?).)instagram.com/(?:p/)?((.+?){10})(|(\?|/)(.+?))#i';

to:

Code: [Select]
$pattern = '#(http|https)://(|(.+?).)instagram.com/(?:p/)?((.*))\/#i';
seemed to fix it..

pc!

vag

  • Hero Member
  • *****
  • Posts: 5027
  • Respect: +2768
    • View Profile
Re: instagram embedding fixed?
« Reply #1 on: March 23, 2016, 05:35:25 am »
+1
Works fine in windows 10 / firefox.

It may still be too big though, and my screen here is 1920x1080, i imagine it is still gigantic in smaller resolutions. Maybe use 50% ?

gj anyway  :highfive:
woot

ChrisM

  • Hero Member
  • *****
  • Posts: 1804
  • Respect: +1251
    • View Profile
Re: instagram embedding fixed?
« Reply #2 on: March 23, 2016, 06:54:22 am »
+1
I dont know what that means but... Yay! :)
Insert motivational quote here...

adarqui

  • Administrator
  • Hero Member
  • *****
  • Posts: 30918
  • who run it.
  • Respect: +7590
    • View Profile
    • Email
Re: instagram embedding fixed?
« Reply #3 on: March 23, 2016, 03:16:12 pm »
0
Works fine in windows 10 / firefox.

It may still be too big though, and my screen here is 1920x1080, i imagine it is still gigantic in smaller resolutions. Maybe use 50% ?

gj anyway  :highfive:

done. how's it look now?

 :highfive:


vag

  • Hero Member
  • *****
  • Posts: 5027
  • Respect: +2768
    • View Profile
Re: instagram embedding fixed?
« Reply #5 on: March 23, 2016, 03:43:29 pm »
+2
Works fine in windows 10 / firefox.

It may still be too big though, and my screen here is 1920x1080, i imagine it is still gigantic in smaller resolutions. Maybe use 50% ?

gj anyway  :highfive:

done. how's it look now?

 :highfive:



I have made a terrible mistake!!!
MAKE IT BIGGER AGAIN!!!

:lololol:
woot

gukl

  • Hero Member
  • *****
  • Posts: 1608
  • Respect: +1146
    • View Profile
Re: instagram embedding fixed?
« Reply #6 on: March 23, 2016, 03:54:20 pm »
+1
Works fine in windows 10 / firefox.

It may still be too big though, and my screen here is 1920x1080, i imagine it is still gigantic in smaller resolutions. Maybe use 50% ?

gj anyway  :highfive:

done. how's it look now?

 :highfive:



I have made a terrible mistake!!!
MAKE IT BIGGER AGAIN!!!

:lololol:

 :D

adarqui

  • Administrator
  • Hero Member
  • *****
  • Posts: 30918
  • who run it.
  • Respect: +7590
    • View Profile
    • Email
Re: instagram embedding fixed?
« Reply #7 on: March 23, 2016, 06:11:36 pm »
0
Works fine in windows 10 / firefox.

It may still be too big though, and my screen here is 1920x1080, i imagine it is still gigantic in smaller resolutions. Maybe use 50% ?

gj anyway  :highfive:

done. how's it look now?

 :highfive:



I have made a terrible mistake!!!
MAKE IT BIGGER AGAIN!!!

:lololol:

25%?