vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   BB Code Enhancements - Disable Related Videos in youtube embeds (https://vborg.vbsupport.ru/showthread.php?t=276865)

Zachery 01-11-2012 11:00 PM

Disable Related Videos in youtube embeds
 
1 Attachment(s)
Step 1: Upload the new bbcode_video_vbulletin.xml to your forumroot/includes/xml/ directory
Step 2: Enable debug mode by adding the following code to your config file:
PHP Code:

$config['Misc']['debug'] = 1

Add this right after

PHP Code:

<?php
/*======================================================================*\
|| #################################################################### ||
|| # vBulletin 4.1.8
|| # ---------------------------------------------------------------- # ||
|| # All PHP code in this file is ?2000-2011 vBulletin Solutions Inc. # ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| #################################################################### ||
\*======================================================================*/

So it should look like

PHP Code:

<?php
/*======================================================================*\
|| #################################################################### ||
|| # vBulletin 4.1.8
|| # ---------------------------------------------------------------- # ||
|| # All PHP code in this file is ?2000-2011 vBulletin Solutions Inc. # ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| #################################################################### ||
\*======================================================================*/
$config['Misc']['debug'] = 1;

Then, login to the admincp on your forums, there is a rebuild drop down, expand it and click rebuild video bbcode.

You should also clear out the post cache in the maintenance section.


AdminCP > Maintenance > Update Counters > Rebuild Post cache

After you rebuild, remove or comment out the debug line.

RobbieZ 01-12-2012 08:44 PM

Nice idea!

I do find myself scrolling through other videos in the youtube embed on sites.

v123shine 01-13-2012 11:12 AM

Good idea :)

Mr_Running 01-14-2012 04:34 AM

Thanks for sharing. :)

DAMINK 01-15-2012 01:38 AM

Great idea and thanks for the share.
I also love to scroll through other videos when on youtube.
But on my forum i dont see a need for that so glad to use this hack.

Successfulsteps 01-15-2012 05:06 AM

tagged

GRE 03-15-2012 05:18 AM

Can we make it work in the cms as well?
It doesn't function in articles.

PakStarTv.com 03-15-2012 11:52 AM

demo or screen shot plz ............................?

GRE 04-18-2012 03:41 PM

Thanks it works fine, just needed to clear cms cache to make it work for the cms as well.

After 4.1.12 update you just need to do all these again :(

Zachery 04-18-2012 09:47 PM

Sadly yes, you could modify the template, or you could mark the file not writeable. Which means it wouldn't get uploaded.


All times are GMT. The time now is 10:04 PM.

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.01038 seconds
  • Memory Usage 1,735KB
  • 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
  • (3)bbcode_php_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