PDA

View Full Version : BB Code Enhancements - Disable Related Videos in youtube embeds


Zachery
01-11-2012, 11:00 PM
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:
$config['Misc']['debug'] = 1;

Add this right after


<?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
/*================================================= =====================*\
|| ################################################## ################## ||
|| # 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.

dizzynation
01-21-2013, 08:03 AM
Yes! Been looking for something like this for a while!

Was just about to install then I realized it said 4.1

Does this work for 4.2?

[EDIT] Voted 5 stars just because Zach is awesome!

dizzynation
03-09-2013, 11:45 PM
2 months later... Anyone?

Zachery
03-11-2013, 12:45 AM
Should work, worst that happens is you try and it doesn't :)

paulket
12-19-2013, 12:52 PM
Should work, worst that happens is you try and it doesn't :)

Tried and it does not.

Mr_Running
12-20-2013, 02:45 AM
Works on 4.2.2 :)

webmaster74
02-01-2015, 01:41 AM
it is a great idea. I wish it goes out of Beta.

MrD
08-01-2015, 10:25 AM
Hi,
after Upgrade to 4.3.2 the Mod not Running.
I Change the original xml, with this mod.
Turn on Debug Mode
Clear and Rebuild Cache
Turn off Debug Mode

I see the Video but at the end i see related Videos eg the other Videos from the User.
I mean, that an VB 4.2.2 only the original Video are Displayed at the End.

Zachery
08-02-2015, 03:14 PM
Did you clear the post cache or try it on a new video?

MrD
08-03-2015, 08:43 AM
Yes,
i clear all Cache and the Video are new.

MrD
11-19-2015, 10:49 AM
Any News?