TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

March 28, 2024, 08:20:19 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,104
  • Total Topics: 21,212
  • Online today: 152
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 152
  • Total: 153
  • tino

Video carousel in article

Started by jernatety, November 03, 2019, 12:41:34 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

@rjen

It must something in the combination of either SMF or Tinyportal with the script and IOS.

Your demo site ( https://www.idesignsmf.com/index.php/page,youtube_video_carousel.html ) works fine on my IPhone  :-\
Running Latest TP on SMF2.1 at: www.fjr-club.nl

lurkalot

Wonder if it's because TP uses a lower version of jQuery.  I don't actually understand this stuff though or how it works, so probably barking up the wrong tree. I'm guessing the slider script calls the correct version directly.

@rjen

I guess it is possible: we have had issues before with multiple Jquery calls in the same page. Also not my area of expertise...
Running Latest TP on SMF2.1 at: www.fjr-club.nl

Mick

Mike, that looks like a broken image path?

lurkalot

Quote from: Mick on December 26, 2019, 01:50:14 PM
Mike, that looks like a broken image path?

Thanks Mick.  That's my problem though, not sure where to obtain the image path for a soundcloud track.  Everything on their site appears to be encrypted. I must be lookin in the wrong place I guess.  I could upload a custom one and point to it, but I thought it should pick something up from that site automatically.

Mick

Mike,... I don't use Soundcloud at all but did some digging for ya. It seems Soundcloud doesnt screentshot videos for video preview like YouTube does. So painfully one would have to screetnshot the artist and upload the pic to the server. I created a folder inside the unitegallery folder so I could add these pics.

Have a look at this code..

<img alt="Sound Cloud Track"
src="https://www.idesignsmf.com/Themes/pixel/unitegallery/vid-image-preview/godsmack.png"
        data-type="soundcloud"
        data-image="https://www.idesignsmf.com/Themes/pixel/unitegallery/vid-image-preview/godsmack.png"
data-trackid="252613001"
        data-description="This gallery can play a soundcloud track">


Checkout the demo... last video on the carousel.
https://www.idesignsmf.com/index.php/page,youtube_video_carousel.html

lurkalot

Thanks Mick. Looks good.  Shame it won't grab the images automatically, but that's not the end of the world.  If I use this part of it I'll probably ask the owner for an appropriate image to go with their track.  Great to see that it works though.  8)

Mick

Quote from: lurkalot on December 26, 2019, 04:44:42 PM
Thanks Mick. Looks good.  Shame it won't grab the images automatically, but that's not the end of the world.  If I use this part of it I'll probably ask the owner for an appropriate image to go with their track.  Great to see that it works though.  8)
Sounds good  ;)

Mick

Man! I could turn this thing into a mod. I did a slider mod for SMF years ago. Same concept. All entries made in admin. One could just paste the tiny script bit into a block for those that use portals while hiding the carousel from the boardindex itself.  :hmm:

lurkalot

Quote from: Mick on December 26, 2019, 04:50:41 PM
Man! I could turn this thing into a mod. I did a slider mod for SMF years ago. Same concept. All entries made in admin. One could just paste the tiny script bit into a block for those that use portals while hiding the carousel from the boardindex itself.  :hmm:

Mick, yes a mod sounds good for those who don't run a portal, or don't like doing things manually.  I think something like this would make a nice plugin for TP as well, not sure how we'd do that though.