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

0 Members and 1 Guest are viewing this topic.

adarqui

  • Administrator
  • Hero Member
  • *****
  • Posts: 34034
  • who run it.
  • Respect: +9112
    • 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: 6059
  • Respect: +3838
    • 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:
Target training paces (min/km), calculated from 5K PR 22:49 :
Easy run : 5:48
Tempo run : 4:50
VO2-max run :4:21
Speed form run : 4:02

---

it's the biggest trick in the run game.. go slow to go fast. it doesn't make sense until it smacks you in the face and you're like ....... wtf?

ChrisM

  • Hero Member
  • *****
  • Posts: 1880
  • Respect: +1370
    • 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: 34034
  • who run it.
  • Respect: +9112
    • 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: 6059
  • Respect: +3838
    • 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:
Target training paces (min/km), calculated from 5K PR 22:49 :
Easy run : 5:48
Tempo run : 4:50
VO2-max run :4:21
Speed form run : 4:02

---

it's the biggest trick in the run game.. go slow to go fast. it doesn't make sense until it smacks you in the face and you're like ....... wtf?

gukl

  • Hero Member
  • *****
  • Posts: 1950
  • Respect: +1614
    • 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: 34034
  • who run it.
  • Respect: +9112
    • 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%?