Adarq.org

Introduction Area => News, Announcements, & Suggestions => Topic started by: adarqui on March 23, 2016, 03:51:14 am

Title: instagram embedding fixed?
Post by: adarqui on March 23, 2016, 03:51:14 am
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!
Title: Re: instagram embedding fixed?
Post by: vag on March 23, 2016, 05:35:25 am
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:
Title: Re: instagram embedding fixed?
Post by: ChrisM on March 23, 2016, 06:54:22 am
I dont know what that means but... Yay! :)
Title: Re: instagram embedding fixed?
Post by: adarqui on March 23, 2016, 03:16:12 pm
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:
Title: Re: instagram embedding fixed?
Post by: adarqui on March 23, 2016, 03:16:20 pm
I dont know what that means but... Yay! :)

ha
Title: Re: instagram embedding fixed?
Post by: vag on March 23, 2016, 03:43:29 pm
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:
Title: Re: instagram embedding fixed?
Post by: gukl on March 23, 2016, 03:54:20 pm
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
Title: Re: instagram embedding fixed?
Post by: adarqui on March 23, 2016, 06:11:36 pm
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%?