vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Disable YouTube autoplay? (https://vborg.vbsupport.ru/showthread.php?t=271805)

ElfenLied1337 10-10-2011 11:40 PM

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?

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)

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

Quote:

Originally Posted by midnz (Post 2257338)
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

&amp;autoplay=1 to nothing

Emeralda 06-07-2012 12:15 PM

That one worked, thanks~

Videx 06-07-2012 03:48 PM

Quote:

Originally Posted by Emeralda (Post 2337431)
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.


All times are GMT. The time now is 02:27 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00993 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete