The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Disable YouTube autoplay?
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?
|
#2
|
||||
|
||||
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) Personally, if it really got annoying I would just modify our "no spamming" rule to include autoplaying and hand out a few warnings. |
#3
|
||||
|
||||
Create a plugin using:
$text = str_replace("&autoplay=1", "&autoplay=0", $text); |
#4
|
||||
|
||||
Quote:
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? |
#5
|
||||
|
||||
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. |
#6
|
||||
|
||||
Easy thing to do would be to add it to your styles replacement variables.
|
#7
|
||||
|
||||
Nope, replacements didn't work, I inputted &autoplay=1 and &autoplay=0, but nothing changed, even for new posts.
|
#9
|
||||
|
||||
That one worked, thanks~
|
#10
|
||||
|
||||
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.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|