Introduction Area > News, Announcements, & Suggestions

instagram embedding fixed?

(1/2) > >>

adarqui:
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: ---$pattern = '#(http|https)://(|(.+?).)instagram.com/(?:p/)?((.+?){10})(|(\?|/)(.+?))#i';

--- End code ---

to:


--- Code: ---$pattern = '#(http|https)://(|(.+?).)instagram.com/(?:p/)?((.*))\/#i';
--- End code ---

seemed to fix it..

pc!

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

ChrisM:
I dont know what that means but... Yay! :)

adarqui:

--- Quote from: 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:

--- End quote ---

done. how's it look now?

 :highfive:

adarqui:

--- Quote from: ChrisM on March 23, 2016, 06:54:22 am ---I dont know what that means but... Yay! :)

--- End quote ---

ha

Navigation

[0] Message Index

[#] Next page

Go to full version