• Welcome to Simple Machines Community Forum. Please login or sign up.
October 23, 2021, 09:24:40 PM

News:

SMF 2.1 RC4 has been released! Try it out and help us test! :) Read more.


[Deprecated, use Aeva] YouTube BBCode v2.6

Started by Nao 尚, September 27, 2007, 05:51:05 PM

Previous topic - Next topic

karlbenson

v2.1 is now available.
Various changes, but the main one being I've merged my [ytplaylist] mod with it. (and i'm discontinuing that as a separate mod)

(Mysql only) If you have had my [ytplaylist] mod previously installed, then you might want to use my conversion script to convert [ytplaylist] to [youtube] bbcode.
Upload it via ftp to your directory where SMF runs from. Put your forum in maintenance mode, and then point to it in your browser.


2.1 - 31st January 2008
o Support for YouTube Playlist links
o Optimized preg and rewrote regex
o Changed max size supported to 780px
o Now builds the object based on browser

karlbenson

2.2 - 21st February 2008
o Added &rel=1 to all embed links as YouTube seesm to require it now.

Minare

How to hide videos from guests in this mod ?

I want a text to appear asking them to register to watch the video.

This is possible but dunno how to do, any ideaz ?

Thanks for the mod.
O güzel Râsulu Yesrip yolunda
Hicret coşkusuyla aramalısın
Ayrılık Anne'den Baba'dan Yâr'dan
Ezelden geçerek kavuşmalısın

http://www.meryemce.biz

Sincere

Hello Karl

I spent more than 3 hours reading and trying to find a solution on my own to make this mod work on my site, without success

I'd appreciate any help

as you can see the mod was applied successfully. but the youtube videos do not appear while the BBC tag itself appear in plain text.

http://talkaboutislam.com/forums/index.php/topic,1000000.0.html

the theme I am using is Harsem's (which does not have its own  Post.template.php)

I even manually modified the default theme post.template.php

nothing helped. 
Do you need a special mod for your smf forums? contact me for a quote.

karlbenson

Admin > Posts & Topics >
Bulletin Board Code 'tab'
Is YouTube bbcode enabled?

If its not listed, then the edit wasn't properly made to Sources/Subs.php

Sincere

Quote from: karlbenson on March 09, 2008, 07:02:09 AM
Admin > Posts & Topics >
Bulletin Board Code 'tab'
Is YouTube bbcode enabled?

If its not listed, then the edit wasn't properly made to Sources/Subs.php


The package was installed successfully. You should now be able to use whatever functionality it adds or changes; or not be able to use functionality it removes.


how can I manually change subs.php?
or for smf1.1.4 can you just give me a modified copy of Subs.php ???



Do you need a special mod for your smf forums? contact me for a quote.

karlbenson

It looks like your missing the important of the mod.
The chunk that goes in Subs.php

Use a package parser like
http://www.adrevenueshare.com/parser

And it will tell you the edits.
Make sure ALL the edits are done :)

Sincere

Quote from: karlbenson on March 09, 2008, 07:24:49 AM
It looks like your missing the important of the mod.
The chunk that goes in Subs.php

Use a package parser like
http://www.adrevenueshare.com/parser

And it will tell you the edits.
Make sure ALL the edits are done :)


Solved! thank you

Do you need a special mod for your smf forums? contact me for a quote.

karlbenson

[Mod]

2.3 - 18th March 2008
o Ensured compatible with SMF 2.0 Beta 3 Public
o Added Polish language strings (Thanks to Nolt)

djpaddystudio7

hi try to add a functionality to provide a download link to your youtube mod. I have tried it but not successfully. I think you would be able to do that. just look what i am trying to do here http://www.simplemachines.org/community/index.php?topic=229433.0

MissyNL

Hi!

Do you know if i also can put the button into the quick reply list? I have installed the Enhanced Quick Reply Box 2.0.2 MOD.
Sorry for my poor English, but i think it's probably better then your Dutch :)

karlbenson

techically it is possiblel Lafemme.

You need to add the same line that was added to Post.template.php to Display.template.php

MissyNL

thanks karlbenson,

it works great!
Sorry for my poor English, but i think it's probably better then your Dutch :)

dpino

April 20, 2008, 01:09:14 AM #113 Last Edit: April 20, 2008, 01:14:13 AM by dpino
Ok I've looked everywhere on here (besides this thread) and just can't figure it out so after 3+ hours trying to figure it out I'm asking.

I'm having the usual "button won't display" problem. I'm running 1.4 with the Black Day layout. I've added the .gif to all folders including other themes that aren't even used. I've gone through all manual installations I could find except one.

./Sources/Subs-Editor.php
Find: [Select]
'flash' => array('code' => 'flash', 'before' => '[flash=200,200]', 'after' => '[/flash]', 'description' => $txt['flash']),
Add Before: [Select]
'youtube' => array('code' => 'youtube', 'before' => '[youtube]', 'after' => '[/youtube]', 'description' => $txt['youtube']),




My default folder does not contain a subs-editor.php file nor do any others. This may be a 2.0 fix but I'm not sure what's what right about now. Would there be another place to put this? I've added:

In file Themes/[your theme]/Post.template.php
Find: 'flash' => array('code' => 'flash',
Add before:

'youtube' => array('code' => 'youtube', 'before' => '[youtube]', 'after' => '[/youtube]', 'description' => $txt['youtube']),


which I believe is the code to show the button but it's not showing. If I'm not mistaken this would be the 1.4 code I'd need but...

Hopefully it's an easy fix or something I've missed - don't like not being able to figure it out myself...  :-[

Should add that it seems to be running fine using [youtube] - just have to do it the long way.

karlbenson

To add the button

For SMF 2.0 beta 2 and above you edit
Sources/Subs-editor.php
(if your using a 1.x theme with 2.x, you may need to edit as 1.x, although I haven't tried)

For SMF 1.1.x (and SMF 2.0 Beta 1 and below)
Themes/default/Post.template.php

You'll need to edit that same file in each theme. However if your custom theme does not contain a custom Post.template.php, then SMF will use the one in the default theme (so you won't need to make that edit)

THE BRA1N

QuoteInstall Actions
Installations actions for "YouTube BBCode":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

Powered by SMF 2.0 Beta 3.1 Public | SMF © 2006–2008, Simple Machines LLC

Any idea why I'm getting this error? I have downloaded and uploaded it several different times to no avail.

johnnydev

Hey there!  Great mod for sure :)

Here is a quick question, can i add the (=en&rel=0) to this mod some how so i can make sure the "related videos" dont show when the video is done playing...

Here is the whole embed code

<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/KOh7I5XqP2c&hl=en&rel=0"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/KOh7I5XqP2c&hl=en&rel=0" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object>

karlbenson

Open Subs.php

There are 4 instances of &rel=1
You can replace each one with &rel=0

johnnydev

You are the greatest!  I really appreciate the prompt reply!

sipko

I cannot get the YouTube BBCode to install; no apply mod shows up. I deleted the Auto Embed Video Clips thinking that was the problem, but the mod still didn't install. You can see the other mods below in case a mod is conflicting.


1.     YouTube BBCode      2.3      [ List Files ]  [ Delete ]
2.    Users Online Today    1.5.2    [ Uninstall ] [ List Files ] [ Delete ]
3.    Auto Embed Video Clips    2.2    [ Uninstall ] [ List Files ] [ Delete ]
4.    AvatarOnBoard    2.0    [ Uninstall ] [ List Files ] [ Delete ]
5.    Bookmarks    2.0    [ Uninstall ] [ List Files ] [ Delete ]

Any suggestions on how I can get this to work? I'm using 2.0 Beta 3.1.

Advertisement: