Advertisement

Adjust code for video

For Joomla! 5.x Coding related discussions, you could also use: http://groups.google.com/group/joomla-dev-general

Moderators: ooffick, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
munchman0912
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Sun Mar 31, 2024 4:54 am

Adjust code for video

Post by munchman0912 » Mon Sep 09, 2024 9:47 am

Hi all, sorry I am a novice at anything coding, but I have a custom module that is set up for displaying an image (code in screenshot) , but I would like to change for a video but am clueless. I am hoping I just adjust the image reference code here somehow and someone can explain.

The vid is hosted and does play if i insert path, but has no vid play controls and just loops endlessly

any help appreciated and apologies if this is a ridiculous request.

TIA, Ben
You do not have the required permissions to view the files attached to this post.

Advertisement
User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44548
Joined: Sat Apr 05, 2008 9:58 pm

Re: Adjust code for video

Post by Webdongle » Mon Sep 09, 2024 10:35 am

http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

munchman0912
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Sun Mar 31, 2024 4:54 am

Re: Adjust code for video

Post by munchman0912 » Mon Sep 09, 2024 10:49 am

Thanks Webdongle, no ive got allvideo etc. Playing a video isnt an issue it's coding the output of this particular module for video because its default state is image and as such the vid isnt behaving itself in the front end.

The image code here in the css needs adjusting, im just a caveman when it comes to this. I think it may be simple for someone that knows what they are looking at

SharkyKZ
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3052
Joined: Fri Jul 05, 2013 10:35 am
Location: Parts Unknown

Re: Adjust code for video

Post by SharkyKZ » Mon Sep 09, 2024 11:18 am


munchman0912
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Sun Mar 31, 2024 4:54 am

Re: Adjust code for video

Post by munchman0912 » Mon Sep 09, 2024 11:32 am

thanks SharkyKZ - this code im replacing isnt just a path (in fact, I cant see a path at all). Because it's a custom module this isnt just a vid tag/path I need to adjust. I somehow need to code the output of this part of the module as video instead of image. If it were into an article youd be spot on and Im up to that...just dont know how to deal with this pice of code from the module. It's possible it's not generic and template specific.

Just hoping someone spots something obvious or puts me out of my misery if it cant be done simply.

SharkyKZ
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3052
Joined: Fri Jul 05, 2013 10:35 am
Location: Parts Unknown

Re: Adjust code for video

Post by SharkyKZ » Mon Sep 09, 2024 12:44 pm

You still need to update the layout to use <video> tag. To my understanding, $helper->get('intro-img') returns path to video and you're trying to display it inside <img> tag.

Advertisement

Post Reply

Return to “Joomla! 5.x Coding”