View Full Version : Disable YouTube autoplay?
ElfenLied1337
10-10-2011, 11:40 PM
Hopefully a small & easy question, but some of my users have found that autoplay can be enabled using the BBCode YouTube tags. Is there any way to disable this?
Videx
10-14-2011, 08:11 PM
You mean automatically remove the "&autoplay=1" from the end of a link? I've never seen anything like that, but I imagine it wouldn't be too difficult to write such a mod.
Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
Personally, if it really got annoying I would just modify our "no spamming" rule to include autoplaying and hand out a few warnings.
midnz
10-15-2011, 12:24 AM
Create a plugin using:
$text = str_replace("&autoplay=1", "&autoplay=0", $text);
Emeralda
06-05-2012, 08:12 PM
Create a plugin using:
$text = str_replace("&autoplay=1", "&autoplay=0", $text);
Nothing happened, people can still autoplay videos >.<
I've added it to postbit_display_complete hook, since yeah, I was kinda guessing. By the way, are there any hooks that would work more globally for such things?
Emeralda
06-06-2012, 08:19 PM
Anyone at all knows how to use that plugin? >.<
I'm not letting this die in the ocean of forgotten threads so easily, the issue is way too annoying.
Zachery
06-06-2012, 09:37 PM
Easy thing to do would be to add it to your styles replacement variables.
Emeralda
06-07-2012, 10:47 AM
Nope, replacements didn't work, I inputted &autoplay=1 and &autoplay=0, but nothing changed, even for new posts.
Zachery
06-07-2012, 11:03 AM
Try
&autoplay=1 to nothing
Emeralda
06-07-2012, 12:15 PM
That one worked, thanks~
Videx
06-07-2012, 03:48 PM
That one worked, thanks~While it's fresh in your mind, it might be a good idea to post a noob level step by step for future searchers. They'll never be able to follow that long back and forth.
Emeralda
06-07-2012, 03:58 PM
While it's fresh in your mind, it might be a good idea to post a noob level step by step for future searchers. They'll never be able to follow that long back and forth.
Admin cp > Styles and Templates > Replacement Variable Manager > [Add New Replacement Variable] next to your style > &autoplay=1 / O
http://img193.imageshack.us/img193/8330/e35724254e7f4a4187d59d6.png
Thanks very much for the noob level step by step - Can someone do this for people aspiring to noob level?
I have a mod that auto parses youtube links and some members annoy the life out of others by having them autoplay.
Auto Youtube-Link Parser (https://vborg.vbsupport.ru/showthread.php?t=261296)
http://twistsnturns.net/showthread.php?19971-Tonight-s-dinner&styleid=30
Following the above instructions this is what I've done and it does not prevent it happening:
https://vborg.vbsupport.ru/external/2012/09/19.jpg
This has actually become a bit of a nuisance on the forum..
Can some kind soul advise, please?
Videx
09-18-2012, 09:37 PM
This has actually become a bit of a nuisance on the forum..
Can some kind soul advise, please?Did you try what Emerelda posted - replacing it with no text at all? Or am I just reading that wrong? No, Zach above says to 'nothing'.
Did you try what Emerelda posted - replacing it with no text at all? Or am I just reading that wrong? No, Zach above says to 'nothing'.
Thanks very much for trying to help.
I thought she means change 1 to 'nothing' - oops.
I did try changing it to nothing at all and the videos still autoplay.
What a silly thing for YT to introduce :(
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.