Skip to main content
Recent Posts
2
Theme development / Re: Click to expand quote
Last post by radu81 -
Just a test

QuoteLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco

QuoteLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

QuoteLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

QuoteLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Looks fine to me, the "More" button is now displayed only if there is something more to display. Great!
4
Feature Discussion / Re: Video Embed's
Last post by Spuds -
I'm sure you are sad to see this come to an end, but here it is ... Instagram 

Code: [Select]
https://www.instagram.com/tv/CbiFqgQDcVe/?hl=en
https://www.instagram.com/p/CdgNEWRjpiu/

This is really the same as FB, same API restrictions, signup demands,  and all the rest.  The only difference is that Instagram seems to be portrait and FB (at least videos) are not.   Honestly not sure that is 100% or even 50% true as w/o an account I can't rummage around and see what crap is being posted, yes my loss indeed.

So here are the vids only showing the logo which are clickable to load the content.

https://www.instagram.com/tv/CbiFqgQDcVe/?hl=en
https://www.instagram.com/p/CdgNEWRjpiu/

Yea no set of video posts is complete w/o a *cough* funny cat video.
5
Feature Discussion / Re: Video Embed's
Last post by Spuds -
How about some twitter, the place for open discussion on topics that most don't give a darn about, or a place to be the ultimate narcissist.

Code: [Select]
https://twitter.com/Interior/status/463440424141459456

Twitter is a bit funny in the API.  You do not seem to be able to make a call directly from JS due CORS restrictions:boom:  So instead we have to make an API call from your site server to get the embed code and then display that.

An alternative would be to do a click and load, much like the facebook post above.  But as an experiment I set up the server call to get and show the embed, and as a bonus its a lazy load, so it will not fetch until its in the viewport.  Now someone may say you can just put loading=lazy on the tag, well no you can't as the tag is rendered by the script thats in in the embed, ha!

So here is Twitter, will show the twitter logo until the post is in frame and then it will fetch the tweet (which may or may not even have a video in it, its a tweet embed)

https://twitter.com/Interior/status/463440424141459456
https://twitter.com/KatieWoolard/status/1525298113241567238

6
Feature Discussion / Re: Video Embed's
Last post by Spuds -
Did you think this was over ... nope, next is facebook.

Code: [Select]
https://www.facebook.com/revistapegn/videos/10153713928657635/
https://www.facebook.com/facebook/videos/10153231379946729

I decided to only support video embeds, not posts or timelines or any of the other stuff.  Honestly I'm surprised the video embed works at all. 

Facebook really Really REALLY wants you to join, so even as a developer you need to go the Full Monty with them to get any access.  You can not get a preview image without getting an app id and then using their graph API and a bunch of other stuff.  They changed oembed and it requires an app_id as well.  That would mean each admin would have to get their own app id as well. 

So no preview, only the old FB logo (or if one wants the limp infinity).  It seems to behave as it should but I have done almost no testing as I don't have a FB account and most pages I go to demand I log in, like now, right now!

https://www.facebook.com/revistapegn/videos/10153713928657635/
https://www.facebook.com/facebook/videos/10153231379946729

7
Feature Discussion / Re: Video Embed's
Last post by Spuds -
Oh, you want more? of course you do, its the internet, so here is tiktok, remember YOU asked for this.
Code: [Select]
https://www.tiktok.com/@sassysoundsasmr/video/7091443256378248494?enter_from=video_detail&is_copy_url=1&is_from_webapp=v1
https://www.tiktok.com/@the.mcfarlands/video/7003480282145852677?_t=8RvxobUnrVS&_r=1

https://www.tiktok.com/@sassysoundsasmr/video/7091443256378248494?enter_from=video_detail&is_copy_url=1&is_from_webapp=v1
https://www.tiktok.com/@the.mcfarlands/video/7003480282145852677?_t=8RvxobUnrVS&_r=1

Supposedly those are funny. 

Important notes, at least with TT we can usually grab a preview image which is nice.   They seem to all be in portrait which make sense as its designed for mindless phone consumption which beats having to interact with humons. 

I chose to show the preview in 16/9 so some cropping will occur but it take up a lot less vertical room this way.  Once you click on the image it will flip to a 9/16 portrait mode and the page will reflow.  We really don't know the size of the embed itself, one could set a max size but its really not the best in my testing as the video can really narrow down with all the other content that comes on in,