Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Nao 尚 on September 27, 2007, 05:51:05 PM

Title: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: Nao 尚 on September 27, 2007, 05:51:05 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=936)


THIS MOD IS DEPRECATED. USE AEVA (http://custom.simplemachines.org/mods/index.php?mod=977) INSTEAD.

YOUTUBE BBCODE v2.6
Updated by Nao (http://custom.simplemachines.org/mods/index.php?action=profile;u=13794)
Created By Karl Benson (http://custom.simplemachines.org/mods/index.php?action=profile;u=63186)

Support Topic (http://www.simplemachines.org/community/index.php?topic=197280.0) | Donate (http://smf-media.com/community/index.php?action=treasury)

Compatibility
For SMF 1.1.x and SMF 2.x (MySQL only)

Introduction
Embed Youtube videos into posts with the use of [youtube][/youtube] bbcode.

It's the ultimate friendly YouTube mod for BBCode addicts, supporting various link formats (including Playlist links), safely and securely parsing the information for the piece of mind of forum admins.
It is, however, severely outdated when compared with its successor, Aeva, which has support for many more video websites and many more options.

So, if you want to be able to directly post YouTube URLs without tags and still have them embedded, I would recommend upgrading to Aeva or Aeva Media (http://custom.simplemachines.org/mods/index.php?mod=977). Check its package file to find a conversion script inside it. It also converts tags from many other older mods such as [ytplaylist] or Google Video BBCode, etc.
Just extract the conversion script via FTP to your directory where SMF runs from. Put your forum in maintenance mode, and then point to it in your browser.

Features
o Adds a BBCode Button to Insert [youtube][/youtube] bbcode.
o Supports standard YouTube videos and YouTube playlists
- Standard: eg http://www.youtube.com/watch?v=FJ2UzCZiKgT
- Playlist: eg http://www.youtube.com/view_play_list?p=595A40209CB17411
o Supports links from YouTube's global site, and several localized sites (if you need support for all localised sites, use Aeva instead)
> Global (with or without www.) | Brasil | France | India | Ireland | Israel | Italia | Japan | Nederland | Polska | Espana | United Kingdom
> Australia | Hong Kong | Mexico | New Zealand | Deutsche | Canada | Russia | Taiwan | South Korea
o Supports various formats
- YouTube Page url
- Direct Embed url
- ID only
o Specify sizes (Optional)
- eg [youtube=425,350][/youtube]
- Defaulting to default YouTube sizes if not specified
- Size Protection to prevent embedding videos larger than 780px or less than 100px
o Safe from a security standpoint
- Properly validates/sanitizes/parses the video id before including it in the url
- Disables script access (allowScriptAccess="never")
o Alternative link and/or text provided for
- Invalid video id/links
- Printer friendly versions
- Disabled bbcoded
- Disabled flash
o Supports the following languages (both in ISO and UTF modes)
- English, British, Brazilian, French, German, Italian, Polish, Portuguese, Spanish, Swedish and Turkish.

Installation

Any previous versions of this mod need to be uninstalled prior to installing this version.

Installation slightly varies depending on SMF version.

SMF 1.1.1 to 1.1.4 & SMF 2.0 Beta 1
Installing the mod will only fully install the mod on the SMF Default Core Theme.
For all other themes which have a custom Post.template.php a manual edit will be required to add the BBCode Button.
(SMF 2.0 Beta 1 Only) You can choose to have the SMF Package Manager attempt* to perform the manual edit on all themes.

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

You will also need to place a copy of the youtube.gif in each of your themes bbc image folders (eg Themes/{themename}/images/bbc)

If you're using a language different than the ones supported this mod (listed above), then you will need to add the following to the Modifications.{language}.php for each theme (The language folder can be found eg Themes/{themename}/languages/)

FIND
?>
ADD BEFORE (and translate as necessary the language strings)
$txt['youtube'] = 'YouTube';
$txt['youtube_invalid'] = '#Invalid YouTube Link#';


SMF 2.0 Beta 2 / Beta 3 / Beta 3 Public / RC 1
Since SMF 2.0 Beta 2, the BBCode buttons have been moved from the templates and into the source files.
Therefore no manual edits will normally be required. Installing the mod will automatically install it on ALL themes.

However you will still need to place a copy of the youtube.gif in each of your themes bbc image folders (eg Themes/{themename}/images/bbc)

And if your using a language different than the ones supported this mod (listed above), then you will need to add the following to the Modifications.{language}.php for each theme (The language folder can be found eg Themes/{themename}/languages/)

FIND
?>
ADD BEFORE (and translate as necessary the language strings)
$txt['youtube'] = 'YouTube';
$txt['youtube_invalid'] = '#Invalid YouTube Link#';


Useful Links
Manual Installation Of Mods (http://docs.simplemachines.org/index.php?topic=402)
How Do I Modify Files? (http://www.simplemachines.org/community/index.php?topic=24110.0)

Support
Please use the modification thread for support with this modification.
(Please don't ask me to do the edits for you)

Changelog
2.6 - 5th February 2010
o Ownership given to Nao
o Updated readme and description
o Added French Language (translated by Nao)
o Added support for SMF 2.0 RC2 (eh, finally...?)
2.5 - 24th April 2009
o Ownership given to Runic
o Added Dutch Language (translated by Tom Te Selle)
2.4 - 5th October 2008
o Ensured compatible with SMF 2.0 Beta 4 and SMF 1.1.6
o Added YouTube FullScreen parameter (so player shows full screen button)
o Fixed encoded ampersands as &
o Added Support for YouTube India (in), South Korea (kr) and Israel (il)
o Moved all language strings into a single file [languagestrings.xml] (save repetition) in the package
2.3 - 18th March 2008
o Ensured compatible with SMF 2.0 Beta 3 Public
o Added Polish language strings (Thanks to Nolt)
2.2 - 21st February 2008
o Added &rel=1 to all embed links as YouTube seesm to require it now.
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
Title: Re: YouTube BBCode
Post by: karlbenson on September 29, 2007, 09:48:36 PM
Troubleshooting

Blank Button - The Icon is Missing
Are you using the SMF default core theme? If the answer is NO.
You will also need to place a copy of the youtube.gif in each of your themes bbc image folders (eg Themes/{themename}/images/bbc)

No YouTube Button whatsoever
Are you using the SMF default core theme? If the answer is NO.
This mod only installs onto the SMF default core theme (and any theme without a custom Post.template.php)
You need to perform a manual edits listed by the mod (listed under Manual Edits)

Text is Appearing at the top of the page
The language strings were not inserted correctly by SMF due to a possiblel issue with the language file.
Its easy to fix.
open Themes/default/languages/Modifications.english.php

Move ?> to the very bottom (nothing below, not even a newline or space)
Move <?php to the very top (nothing above, not even a newline or space)

(make sure there are no spaces or new lines before or after those bits)
If your using utf8 language set you may also need to do it for Themes/default/languages/Modifications.english-utf8.php

"The message body was left empty." Error Message
Note: Due to a problem/bug in SMF.  If you make a post with only a [youtube] video in it, you will get an "empty message" error because there is no actual content to the post.
However I have posted a Mod to Fix (http://custom.simplemachines.org/mods/index.php?mod=987) the issue for ALL other video clip embed/type mods.

Already have an old YouTube mod installed?
If you currently use the old YouTube mods by Yakuza, Marlon, Gantman or Daniel Marquard, you are recommended to uninstall those and install this mod instead because those older mods have a 'potential' xss vulnerabilty as they don't validate/parse the data.
Most likely until that old mod is uninstalled, it will prevent this mod automatically installing via the package manager.

Undefined index: youtube
You are missing the language strings for that theme and/or language.

You need to add to your Modifications.{language}.php in each Themes language files

$txt['youtube'] = 'YouTube';
$txt['youtube_invalid'] = '#Invalid YouTube Link#';

If your using utf8, you may also need to add the strings to Modifications.{language}-utf8.php
Title: Re: YouTube BBCode
Post by: Sakae on September 30, 2007, 03:24:08 PM
Wonderful job, Karl. Running great in my SMF 1.1.4.

This mod does exactly what a Youtube BBCode should do - no numbers at bbcode ("youtube,420,510" or something like that - I never paid attention at those numbers) and works with http://br.youtube.com.

Here's the translation to brazilian-utf8.

$txt['youtube'] = 'YouTube';
$txt['youtube_invalid'] = '#Link do Youtube inv&aacute;lido!#';


Also portuguese and brazilian:

$txt['youtube'] = 'YouTube';
$txt['youtube_invalid'] = '#Link Youtube inválido!#';


Best regards
Title: Re: YouTube BBCode
Post by: Haunted on October 02, 2007, 04:31:24 PM
EXCELLENT mod!  Thank you!
Title: Re: YouTube BBCode
Post by: tsmalmbe on October 05, 2007, 04:59:21 PM
Dpenst work for me. Installs OK, but when I use the tag, I just get an "empty" player. If I click the player, it tkaes me to youtube and says video not availanle. I I press reply, Iget the previre pciture of the vidfeo - immediately. Cannot play it thogh.
Title: Re: YouTube BBCode
Post by: karlbenson on October 05, 2007, 05:02:43 PM
I believe this happens when the youtube video has been removed/deleted.

Do you have the url of the youtube video your trying to add?
Title: Re: YouTube BBCode
Post by: tsmalmbe on October 05, 2007, 05:41:55 PM
Yes it is my own video, and it works in my blog.

Strangely enough, the video works when I add the size-parameters to the youtube-tag.

edit: Ok it only worked because I have the video-url hardcoded in the Subs for debuggin purpose.

If I look at the html-source (I have modeed the youtube-tag in subs, because the original code is a little broken also), it looks just like the source in my blog. But it doesn't play.
Title: Re: YouTube BBCode
Post by: tsmalmbe on October 05, 2007, 05:51:10 PM
My subs. Moved all the html-code to one row, because it was not being printed to the html-page. Also ripped the parameters straight from my blog, because I know for sure the exact URL works there. This has to be the wierdest thing.

1. I open the blogpage, view the source, copy the URL, paste it in a new tab, and the video is shown fullsized in the browser
2. I open the forumpost, view the source, verify that it is EXACLTY the smae as the one in the blog (using Ultraedit), paste it in a new tab, and the video is not shown.


array(
'tag' => 'youtube',
'type' => 'unparsed_content',
'content' => '<object type="application/x-shockwave-flash" width="450" height="350" data="http://www.youtube.com/v/$1" id="ltVideoYouTube"><param name="movie" value="http://www.youtube.com/v/$1" /><param name="wmode" value="transparent" /><param name="allowScriptAcess" value="sameDomain" /><param name="quality" value="best" /><param name="bgcolor" value="#FFFFFF" /><param name="FlashVars" value="playerMode=embedded" /></object>',
'validate' => create_function('&$tag, &$data, $disabled', '
// JUST A VIDEO ID?
if (preg_match(\'#^([0-9A-Za-z-_]{11})#i\', trim($data), $matches)) {
$data = $matches[1];
} else {
// FULL URL? MATCH A VALID STORE
if (preg_match(\'#^http://(www.|uk.|fr.|ie.|it.|jp.|pl.|es.|nl.|br.|)youtube.com/(watch\?v=|v/)([0-9A-Za-z-_]{11})(.*?)#i\', trim($data), $matches)) {
$data = $matches[3];
} else {
global $txt;
$tag[\'content\'] = $txt[\'youtube_invalid\'];
return;
}
}
'),
'disabled_content' => '<a href="$1" target="_blank">$1</a>',
            ),


Title: Re: YouTube BBCode
Post by: tsmalmbe on October 05, 2007, 05:54:23 PM
This is the URL generated byu my blogpage:
<object type="application/x-shockwave-flash" width="450" height="350" data="http://www.youtube.com/v/nns_37mxLV8" id="ltVideoYouTube"><param name="movie" value="http://www.youtube.com/v/nns_37mxLV8" /><param name="wmode" value="transparent" /><param name="allowScriptAcess" value="sameDomain" /><param name="quality" value="best" /><param name="bgcolor" value="#FFFFFF" /><param name="FlashVars" value="playerMode=embedded" /></object>


This is the URL generated by the youtube-tag:
<object type="application/x-shockwave-flash" width="450" height="350" data="http://www.youtube.com/v/nnS_37mxLV8" id="ltVideoYouTube"><param name="movie" value="http://www.youtube.com/v/nnS_37mxLV8" /><param name="wmode" value="transparent" /><param name="allowScriptAcess" value="sameDomain" /><param name="quality" value="best" /><param name="bgcolor" value="#FFFFFF" /><param name="FlashVars" value="playerMode=embedded" /></object>
Title: Re: YouTube BBCode
Post by: karlbenson on October 05, 2007, 05:58:01 PM
that video doesnt work at all in my browser.
(direct link in the browser)
Title: Re: YouTube BBCode
Post by: tsmalmbe on October 05, 2007, 06:05:19 PM
But: if you look at the video from here

http://blog.kontrollrummet.com/tsmalmbes-blog/live/2007/09/07/jethro-tull-live

you can see it, exactly with the URL i posted above.

I've tested this with Mozilla and IE6.

If you load my blogpage, and then retrieve the URL from there, and paste it - it will work.

Here it is: http://www.youtube.com/v/nnS_37mxLV8

Do you see a difference?
Title: Re: YouTube BBCode
Post by: karlbenson on October 05, 2007, 07:03:33 PM
I'll do some testing.

Although when I made the I did test in IE6/IE7/Opera and Firefox.
Title: Re: YouTube BBCode
Post by: asdas2 on October 05, 2007, 10:55:19 PM
can i request for a same mod for Metacafe please
www.metacafe.com
Title: Re: YouTube BBCode
Post by: Krysia on October 05, 2007, 11:51:34 PM
Do you have a screenshot available to upload of the BBC code tag graphic(s) and how it would appear in a post?
Title: Re: YouTube BBCode
Post by: Krysia on October 05, 2007, 11:56:10 PM
Also, is there a setting with this mod to determine which groups (for example) would be permitted to use the BBC code for embedding YouTube vids?
Title: Re: YouTube BBCode
Post by: karlbenson on October 06, 2007, 09:59:37 AM
No, there is not a setting to determine which groups can embed youtube vids.

Its either enable or disable the bbcode.
I'll add a screenshot later.
Title: Re: YouTube BBCode
Post by: tsmalmbe on October 07, 2007, 10:41:36 AM
I was able to find one prob. It was with the ANTI-SHOUT mod that breaks links. I've removed that mod now. Now I get a preview-picture of the video, but still am not able to play it, for some really really peculiar reason.
Title: Re: YouTube BBCode
Post by: karlbenson on October 07, 2007, 01:07:55 PM
@asdas2 ~ I have started/nearly finished a metacafe one, however it will be a while before its approved (maybe weeks)

@ tsmalmbe ~ Does the play button appear.  The youtube flash player button is sometimes a bit dodgy and you have to click it more than once to get it to play.

@ Krysia ~ Sorry for not posting before now, I've tested and tested and still am not able to reproduce the bug you report.  However I have tweaked the flash code and fixed a minor issue with sizes and hope to upload version 1.2 later tonight.
Title: Re: YouTube BBCode
Post by: tsmalmbe on October 07, 2007, 01:14:31 PM
Quote from: karlbenson on October 07, 2007, 01:07:55 PM
@ tsmalmbe ~ Does the play button appear.  The youtube flash player button is sometimes a bit dodgy and you have to click it more than once to get it to play.

Several hours of tedious debugging... I have now found that the problem goes away if I comment out the following line:
<link rel="stylesheet" type="text/css" href="http://forum.malmberg.fi/smf/Themes/Musiconica/style.css?fin11" />

Also, if I remove the DIV that the OBJECT is inside, the problem goes away.

I use the Musiconica-template...
Title: Re: YouTube BBCode
Post by: karlbenson on October 07, 2007, 01:24:01 PM
the div isnt added by the youtube mod.

Probably smf itself, so i don't think i'd be able to remove that myself.
Title: Re: YouTube BBCode
Post by: tsmalmbe on October 07, 2007, 01:28:26 PM
Yes, I know that the DIV is from the template. The problem isn't the DIV per se, but rather the stylesheet. If I remove

overflow: auto;

from the .post-style in the stylesheet, your mod starts to work.

One of the most confusing debugging sessions ever. Now I have to find out what really changes if I remove that line from the stylesheet.
Title: Re: YouTube BBCode
Post by: karlbenson on October 07, 2007, 03:16:24 PM
I've now uploaded v1.2 which has some minor improvements.

- Tweaked the object html code
- Fixed size protection adjustments bug (so if a user selected [youtube=1100000,800] it would resize both to default rather than just one)
Title: Re: YouTube BBCode
Post by: tsmalmbe on October 07, 2007, 03:41:06 PM
How did you tweak it?  Here's my suggestion.

I could actually not find a difference between Musiconica and the default style.css, so although removing stuff from the style.css solved the problem, that was not a proper fix. So how did I resolve it? I close the div, an reopen it after the video. Also, everything related to the object has to be on one line in Subs.php to render properly.

'content' => '</div><object type="application/x-shockwave-flash" width="450" height="350" data="http://www.youtube.com/v/$1" id="ltVideoYouTube"><param name="movie" value="http://www.youtube.com/v/$1" /><param name="wmode" value="transparent" /><param name="allowScriptAcess" value="sameDomain" /><param name="quality" value="best" /><param name="bgcolor" value="#FFFFFF" /><param name="FlashVars" value="playerMode=embedded" /></object><div class=post">',

AND

'content' => '</div><object type="application/x-shockwave-flash" width="$2" height="$3" data="http://www.youtube.com/v/$1" id="ltVideoYouTube"><param name="movie" value="http://www.youtube.com/v/$1" /><param name="wmode" value="transparent" /><param name="allowScriptAcess" value="sameDomain" /><param name="quality" value="best" /><param name="bgcolor" value="#FFFFFF" /><param name="FlashVars" value="playerMode=embedded" /></object><div class="post">',
Title: Re: YouTube BBCode
Post by: karlbenson on October 07, 2007, 03:57:32 PM
Being on more than one line shouldn't affect it. (in fact nice html should be tabbed out)
However that said, the tweak which I copied from my other bbcode make makes it to appear on one line. (even though its shown on multiple lines in the subs.php)

I thought of doing a <close></open> hack myself, however it would affect ajax editing.
The div is there for a reason (and that css line).

I believe it just means that sometimes you have to click to focus on the clip and then again to make it play. (as far as I'm aware all the other embed mods will also have the same issue)
Title: Re: YouTube BBCode
Post by: tsmalmbe on October 07, 2007, 04:06:21 PM
Quote from: karlbenson on October 07, 2007, 03:57:32 PM
Being on more than one line shouldn't affect it. (in fact nice html should be tabbed out)
However that said, the tweak which I copied from my other bbcode make makes it to appear on one line. (even though its shown on multiple lines in the subs.php)

Well, the version I installed a couple of days ago had the html split on several lines in subs.php, but only the first line was rendered. I agree that html per se should be nice, not on one line.

Quote from: karlbenson on October 07, 2007, 03:57:32 PM
I thought of doing a <close></open> hack myself, however it would affect ajax editing.
The div is there for a reason (and that css line).

I believe it just means that sometimes you have to click to focus on the clip and then again to make it play. (as far as I'm aware all the other embed mods will also have the same issue)

Care to elaborate on the ajax-issue? Did I unknowingly break something, when I added the close/open -tags? I could not get the vids to play, no matter how much I focused. Tested with Moz/IE/FF.
Title: Re: YouTube BBCode
Post by: karlbenson on October 07, 2007, 04:33:03 PM
I believe that the id tag on the <div> is used for the ajax modify(quick edit) and your hack is likely to break it.
In otherwords the <div> is there for a reason.

In IE7, Firefox 2.0.07/ Opera the youtube videos all play for me (with both the earlier versions of this mod and also the  new one)
Title: Re: YouTube BBCode
Post by: tsmalmbe on October 07, 2007, 04:50:52 PM
Well, it has to be the Musiconica-template itself that is screwing this up for me somehow. That is the only differing factor as far as I can see.
Title: Re: YouTube BBCode
Post by: Krysia on October 07, 2007, 06:43:56 PM
Quote@ Krysia ~ Sorry for not posting before now, I've tested and tested and still am not able to reproduce the bug you report.  However I have tweaked the flash code and fixed a minor issue with sizes and hope to upload version 1.2 later tonight.
I reported a bug?
Title: Re: YouTube BBCode
Post by: asdas2 on October 07, 2007, 07:50:37 PM
Quote from: karlbenson on October 07, 2007, 01:07:55 PM
@asdas2 ~ I have started/nearly finished a metacafe one, however it will be a while before its approved (maybe weeks)

@ tsmalmbe ~ Does the play button appear.  The youtube flash player button is sometimes a bit dodgy and you have to click it more than once to get it to play.

@ Krysia ~ Sorry for not posting before now, I've tested and tested and still am not able to reproduce the bug you report.  However I have tweaked the flash code and fixed a minor issue with sizes and hope to upload version 1.2 later tonight.



Thankz karlbenson i m waitng for it
Title: Re: YouTube BBCode
Post by: karlbenson on October 07, 2007, 08:14:53 PM
Krysia  lol maybe not :)

I probably meant tsmalmbe.  Its just I was in a rush to fix the bug as I had something else to do.  Must have c+p'd the wrong name ;)

Asda2.  ~ Metacafe one will be submitted to SMF Customize area in an hour or so (once I've done some testing).  Although it will not be available for download until smf approves it.
Title: Re: YouTube BBCode
Post by: Kays on October 08, 2007, 04:32:10 PM
Hi, nice mod. It even works if "search=" is left in the url.

I have run across a bit of a funky problem though (SMF 1.1.4).  If a post or edit is submited when there are only the youtube tags and no other text I'll get a "The message body was left empty." error. Add a smilie to the message and it's happy.
Title: Re: YouTube BBCode
Post by: karlbenson on October 08, 2007, 06:20:46 PM
yeah you must have some other content in the post besides the youtube tag.  Thats required by smf not by this mod.
Title: Re: YouTube BBCode
Post by: Kays on October 08, 2007, 10:01:48 PM
Thanks. :)

You know, that after using the boards for over two years now, I've never noticed that. I'm assuming the same applies to all BBC tags then.
Title: Re: YouTube BBCode
Post by: karlbenson on October 08, 2007, 10:05:28 PM
I'm unsure whether it applies to most bbc tags

Off hand I'm unsure whether its all of them.
Title: Re: YouTube BBCode
Post by: Kays on October 08, 2007, 10:32:17 PM
Well not all, color= is regularly used for a whole post. I would of thought that it would apply the the img, code and quote tags. But it doesn't. I just checked.
Title: Re: YouTube BBCode
Post by: falguni1 on October 14, 2007, 10:05:09 AM
I am using this mod and it works smoothly
Title: Re: YouTube BBCode
Post by: The Kruzzen Guy on October 14, 2007, 04:42:46 PM
I installed the mod and I don't have post.template.php in my other themes, i dont use the original theme that comes with SMF, I use 1.1.4 version and have installed latest version of your mod. When I test mod out in forum...i get nothing but "click to activate control" and then after click, nothing is there.

See it at:
http://forum.kruzzen.com/index.php?topic=867.0

If its on my end, the issue, I apologise. Thanks.
Title: Re: YouTube BBCode
Post by: karlbenson on October 14, 2007, 06:56:05 PM
@ The Kruzzen Guy
You don't appear to be using my YouTube Mod
but either
http://custom.simplemachines.org/mods/index.php?mod=390
or the other one which was recently removed from SMF site for security reasons.

I can tell this because the html embed code doesnt match that used by my mod.

The reason why its not working at the moment is because the one you are using ONLY works with the id of the video whereas a complete youtube url has been entered.

I would recommend uninstalling the one you have installed and grab a latest copy of mine from
http://custom.simplemachines.org/mods/index.php?mod=936
Title: Re: YouTube BBCode
Post by: EgAr on October 15, 2007, 07:15:35 PM
Hi
for spanish  and  spanish_es

$txt['youtube'] = 'YouTube';
$txt['youtube_invalid'] = '#Link de YouTube Inválido#';




for spanish-utf8 and spanish_es-utf8

$txt['youtube'] = 'YouTube';
$txt['youtube_invalid'] = '#Link de YouTube Inv&aacute;lido#';



Saludos   :D
Title: Re: YouTube BBCode
Post by: karlbenson on October 15, 2007, 07:19:35 PM
muchas gracias

:)
Title: Re: YouTube BBCode v1.3
Post by: karlbenson on October 16, 2007, 12:16:12 AM
Ok everyone, I've have now uploaded v1.3 [mod] (http://custom.simplemachines.org/mods/index.php?mod=936)

It contains many improvements

1.3 - 16th October 2007
o Added Spanish/Spanish-utf8 Support (Thanks to EgAr)
o Added Spanish_es/Spanish_es-utf8 Support (Thanks to EgAr)
o Added Brazilian/Brazilian-utf8 Support (Thanks to Softcore)
o Added Portuguese/Portuguese-utf8 Support (Thanks to Softcore)
o Added support for embed player url
o Improved security of mod by denying script access (allowScriptAccess="never")
o Removes excess whitespace/carriage returns
o Fixed bug where youtube bbcode was disabled it produced an invalid partial url
o Added support for when YouTube & url bbcode tags are disabled to showing 'friendly alternative'
o Disables Youtube for 'printer friendly' pages, showing a 'friendly alternative' instead.


If you currently use the old YouTube mods by Yakuza, Marlon, Gantman or Daniel Marquard, you are recommended to uninstall those and install this mod instead because those older mods have a 'potential' xss vulnerabilty (http://sirdarckcat.blogspot.com/2007/09/universal-youtube-mods-xss-explained-in.html) as they don't validate/parse the data.
No versions of my YouTube mod are vulnerable, however v1.3 contains many minor fixes and improvements, so it is worth uninstalling an old version and installing v1.3
Title: Re: YouTube BBCode v1.3
Post by: aussieholden on October 17, 2007, 06:51:52 AM
Ok I have installed this mod the install was ok but when I use the tages nothing shows up blank ?

I added the code as I am using the ApolloBB theme I get no icon for the youtube tags ?
Title: Re: YouTube BBCode v1.3
Post by: karlbenson on October 17, 2007, 10:51:50 AM
Does it work on the default theme? or is it just when you use the apollo theme?
Title: Re: YouTube BBCode v1.3
Post by: aussieholden on October 18, 2007, 11:43:31 AM
Quote from: karlbenson on October 17, 2007, 10:51:50 AM
Does it work on the default theme? or is it just when you use the apollo theme?

Yep works on the Defult theme everything is in place.
Title: Re: YouTube BBCode v1.3
Post by: karlbenson on October 18, 2007, 12:39:30 PM
Have you performed the manual edit for each theme?

Have you copied youtube.gif into EACH themes images/bbc/ folder
Title: Re: YouTube BBCode v1.3
Post by: hobox on October 18, 2007, 01:03:18 PM
Nice Mod. But if I want to use liveleak and other flash movie sites, how difficult is it to expand on this to include them as well?

For swedish and swedish-utf8

$txt['youtube'] = 'YouTube';
$txt['youtube_invalid'] = '#Ogiltig YouTube länk#';
Title: Re: YouTube BBCode v1.3
Post by: karlbenson on October 18, 2007, 02:06:23 PM
Thanks for the language strings.

This mod is just youtube.

HOWEVER,
I do have another mod which supports some other flash movie sites.
http://custom.simplemachines.org/mods/index.php?mod=977
But without the need for bbcode, it automatically converts posted links to embedded videos.
At the moment it does not support LiveLeak.  However you catch me in the middle (right at this very moment) of updating the mod to include a dozen or more video clip sites. (including Live Leak)
Title: Re: YouTube BBCode v1.3
Post by: hobox on October 19, 2007, 04:05:53 AM
Great, I'll check it out
Title: Re: YouTube BBCode v1.3
Post by: Filipina on October 23, 2007, 11:10:28 PM
Hi I have a question.  I think I have one of the youtube MODS that need to be removed in place of this one.  I get these errors when trying to unistall.... any ideas on what i should do?  Thanks

Uninstall Actions "YouTube BBC Tag (XHTML Compliant)":
Installing this package will perform the following actions:  Type Action Description
1. Execute Modification ./Sources/Subs.php Test failed
2. Execute Modification ./Themes/default/Post.template.php Test failed
3. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
4. Delete File ./Themes/default/images/bbc/youtube.gif

i am running the latest default theme
Title: Re: YouTube BBCode v1.3
Post by: karlbenson on October 24, 2007, 10:59:56 AM
Unfortunately you will need to manually remove that mod.

If you don't feel comfortable with doing that yourself you could always post a free or paid request in the help wanted section for someone to do it for you.
Title: Re: YouTube BBCode v1.3
Post by: Filipina on October 25, 2007, 11:39:12 PM
ok thanks for the response
Title: Re: YouTube BBCode v1.3
Post by: iPivot on October 26, 2007, 07:34:37 PM
For v1.3, what files need to be writable, for it to install.
Title: Re: YouTube BBCode v1.3
Post by: nick09 on October 28, 2007, 05:32:40 PM
i get this when i try to install it:

(http://i23.tinypic.com/s2yxyt.png)
Title: Re: YouTube BBCode v1.3
Post by: karlbenson on October 28, 2007, 06:48:21 PM
@ipivot
subs.php
post.template.php
and the folder Themes/default/images/bbc/

@ nick09
That is an issue your your smf install or your server, and not related to this mod.

either
your chmod permissions those files altered by this mod are not set to 777
or your server is running php in safe mode.

I would recommend you check your chmod permissions of the files at the top of this post and that the Packages folder is also set to 777 and make sure your php is not running in php safe mode.

If you still cannot resolve the issue please create a topic in the General Supports forum rather than this topic as it is not mod-specific but a general issue with your smf installation/server.
Title: Re: YouTube BBCode v1.4
Post by: karlbenson on October 29, 2007, 02:20:36 PM
I have now uploaded v1.4

1.4 - 29th October 2007
o Consolidated 2.0 beta 1 and 1.1.x versions into single mod
o Added Swedish/Swedish-utf8 Support (Thanks to Hobox)
o Added Turkish/Turkish-utf8 Support (Thanks to Cakal93)
o Added support for more YouTube localised versions
- Australia, Hong Kong, Mexico, New Zealand
Title: Re: YouTube BBCode v1.4
Post by: jc1104 on October 30, 2007, 03:43:06 PM
I'm not too smart with coding and stuff like that but our forums use Dilber MC theme.  We're not able to upload the youtube bbc because of window's file permissions.  Tried chmoding, changing permissions in admin, etc.  So the only way possible is manual edit but I'm not sure where I edit.  There's no post.php and that's where I need help, thanks.
Title: Re: YouTube BBCode v1.4
Post by: karlbenson on October 30, 2007, 05:00:53 PM
First, fully install the mod manually or automatically onto the default theme.

Once you've done that you can think about installing it onto other themes.
if your Dilber MC theme doesnt have its own Post.template it will use the one from the default theme, so you won't need to do an edit.
All you would have to do then is drop a copy of the youtube.gif into the following folder in EVERY theme.
Themes/{themename}/images/bbc/
Title: Re: YouTube BBCode v1.4
Post by: jc1104 on October 30, 2007, 06:47:37 PM
Thanks.  Just one more question, how would I install it manually?
Title: Re: YouTube BBCode v1.4
Post by: karlbenson on October 31, 2007, 09:11:28 AM
See Manual Installation of mods
http://docs.simplemachines.org/index.php?topic=402.msg531#msg531
Title: Re: YouTube BBCode v1.4
Post by: Lutious on October 31, 2007, 04:13:02 PM
This mod is wicked cool.  I love how it will take virtually anything you throw between the tags and it can pull the video id out.  Very nicely done, and I'm sure my users will thank you for the ease of use.

I have one issue, however.  While the mod appears to work fine, I end up with a text string at the top of every page.  I have uninstalled and reinstalled with the same issue.  I'm not sure if one of my other mods is causing some code to be misplaced or what.  I'm kind of a newb, so help is appreciated.

Upon install, the following line is at the very top of every page:
$txt['youtube'] = 'YouTube'; $txt['youtube_invalid'] = '#Invalid YouTube Link#';

My setup:
Forum version: SMF 1.1.4
Theme: DilberMC
Mods: SMF Arcade v2.0.11
         Dilber MC v1.1
         YouTube BBCode v1.4
         Fix Message Empty Error For Embed Video Mods v1.0
         SMF Shoutbox v1.16b
Title: Re: YouTube BBCode v1.4
Post by: karlbenson on October 31, 2007, 04:21:56 PM
open Modifications.english.php

Move ?> to the very bottom
Move <?php to the very top

(make sure there are no spaces or new lines before or after those bits)
Title: Re: YouTube BBCode v1.4
Post by: Lutious on October 31, 2007, 04:33:16 PM
Perfect!  Thank you very much for your help!  This was the number one request on my forums.
Title: Re: YouTube BBCode v1.4
Post by: karlbenson on October 31, 2007, 04:49:47 PM
Thanks.

Good luck with the mod.

If you want to use other video clip sites aswell. checkout my Auto Embed Video Clips mod.
Title: Re: YouTube BBCode v1.4
Post by: Lord Belial on November 07, 2007, 10:59:19 AM
Please help. I'm new to smf and i still dont know how to work this:

QuoteInstallation
Simply install the package to install this modification on the Default theme.

This version is for compatible with SMF 1.1.x
and with SMF 2.0 Beta 1 (which is currently available to Charter Members).

i did all the manual instalation, but how do i run the install.xml? where do i install it? i have search all the forums but no luck. this is my first mod I would me installing  :'( like i said, I did the manual installment "youtube.gif" and the add before codes ect ect. I just need to get it working  :([/b]
Title: Re: YouTube BBCode v1.4
Post by: Dragooon on November 07, 2007, 11:03:36 AM
It can be installed like any other mod, See http://docs.simplemachines.org/index.php?board=49.0;sort=subject if you don't know how to install mods.
And KarlBenson is away due to technical problems with his Computer/Internet.
Title: Re: YouTube BBCode v1.4
Post by: edi67 on November 08, 2007, 10:07:25 AM
nice one
Title: Re: YouTube BBCode v1.4
Post by: Harvester on November 09, 2007, 10:46:46 AM
I have the code installed and working well it seems BUT if I make a post and just put the youtube link:
[youtube]http://www.youtube.com/watch?v=kg4bcaIXKHU [/youtube]
I get told: "The message body was left empty." and i cant make the post without adding something more to the message.
Why is it doing this and how can it be made not to do this?
Please help
Title: Re: YouTube BBCode v1.4
Post by: nick09 on November 09, 2007, 04:02:31 PM
karl made a fix for it of what i know.

he answered it in the mod forum.
Title: Re: YouTube BBCode v1.4
Post by: photoshop on November 14, 2007, 09:13:14 AM
Nice mod..I have instaled today...now I have in admin panel errors:  :o

8: Undefined index: youtube
File: /home/------/public_html/---------/Themes/default/languages/Post.croatian.php (eval?)
Line: 778

please help me..Is this ok...what to do!? :-[

Title: Re: YouTube BBCode v1.4
Post by: DarthNuno on November 14, 2007, 04:09:15 PM
I've just install the mod, but it doesn't work  :(
There's no utube icon when I'm doing a new post and the tag ( ex :
)  doesn't work too ...

I'm running 1.1.4 & my packages :

Browse Packages
Modification Packages
Mod Name Version 
1. Auto Embed Video Clips 1.3   [ Uninstall ] [ List Files ] [ Delete ] 
2. YouTube BBCode 1.4   [ Uninstall ] [ List Files ] [ Delete ] 

Any idea ? Tx
Title: Re: YouTube BBCode v1.4
Post by: photoshop on November 14, 2007, 04:44:26 PM
(http://i17.tinypic.com/89r5gna.png)
icon in my forum look like this!
:o

but it works..whith erors in admin panel!
:-\
Title: Re: YouTube BBCode v1.4
Post by: hobox on November 16, 2007, 11:59:32 AM
Quote from: photoshop on November 14, 2007, 09:13:14 AM
Nice mod..I have instaled today...now I have in admin panel errors:  :o

8: Undefined index: youtube
File: /home/------/public_html/---------/Themes/default/languages/Post.croatian.php (eval?)
Line: 778

please help me..Is this ok...what to do!? :-[



You should read the first post more carefully

Quote from: karlbenson on September 27, 2007, 05:51:05 PM
If your using a language different than the ones supported this mod (listed below), then you will need to add the following to the Modifications.{language}.php for each theme (The language folder can be found eg Themes/{themename}/languages/)

FIND
?>
ADD BEFORE (and translate as necessary the language strings)
$txt['youtube'] = 'YouTube';
$txt['youtube_invalid'] = '#Invalid YouTube Link#';

Title: Re: YouTube BBCode v1.4
Post by: VeNoM27 on November 17, 2007, 05:20:48 PM
I'm using default theme and smf 1.1.4.
I install the mod but when I try to use it I get in the message: "
and it doesn't work.

How do I fix this?
Title: Re: YouTube BBCode v1.4
Post by: photoshop on November 18, 2007, 09:09:12 AM
Quote from: hobox on November 16, 2007, 11:59:32 AM
Quote from: photoshop on November 14, 2007, 09:13:14 AM
Nice mod..I have instaled today...now I have in admin panel errors:  :o

8: Undefined index: youtube
File: /home/------/public_html/---------/Themes/default/languages/Post.croatian.php (eval?)
Line: 778

please help me..Is this ok...what to do!? :-[



You should read the first post more carefully

Quote from: karlbenson on September 27, 2007, 05:51:05 PM
If your using a language different than the ones supported this mod (listed below), then you will need to add the following to the Modifications.{language}.php for each theme (The language folder can be found eg Themes/{themename}/languages/)

FIND
?>
ADD BEFORE (and translate as necessary the language strings)
$txt['youtube'] = 'YouTube';
$txt['youtube_invalid'] = '#Invalid YouTube Link#';


Thx


there is another one too:
http://custom.simplemachines.org/mods/index.php?mod=977
Title: Re: YouTube BBCode v1.4
Post by: karlbenson on November 18, 2007, 12:51:04 PM
Hey Photoshop.

This mod doesnt contain Croatian language strings.
You will need to add the language strings to Modifications.croatian.php AND possibly Modifications.croatian-utf8.php if your using utf8. and convert as necessary.

My Auto Embed clips mod does NOT contain any language strings whatsoever.

I've added many of the common questions/issues with this mod to a mini-troubleshoot post
http://www.simplemachines.org/community/index.php?topic=197280.msg1257211#msg1257211
Title: Re: YouTube BBCode v1.4
Post by: karlbenson on November 21, 2007, 09:49:09 PM
@VeNoM27
Do you still have the issue?
If so
whats your forum url?
What is the youtube that you are tryign to add?
Title: Re: YouTube BBCode v1.4
Post by: DarthNuno on November 22, 2007, 02:20:12 PM
Quote from: DarthNuno on November 14, 2007, 04:09:15 PM
I've just install the mod, but it doesn't work  :(
There's no utube icon when I'm doing a new post and the tag ( ex :
)  doesn't work too ...

I'm running 1.1.4 & my packages :

Browse Packages
Modification Packages
Mod Name Version 
1. Auto Embed Video Clips 1.3   [ Uninstall ] [ List Files ] [ Delete ] 
2. YouTube BBCode 1.4   [ Uninstall ] [ List Files ] [ Delete ] 

Any idea ? Tx


I'm still not able to uninstall this package :-(

Here's the error message :


!!Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
Uninstall Actions
Uninstall Actions "YouTube BBCode":
Installing this package will perform the following actions:  Type Action Description
1. Execute Modification ./Sources/Subs.php Test failed
2. Execute Modification ./Themes/default/Post.template.php Test failed
3. Execute Modification ./Themes/default/languages/Modifications.english.php Test failed
4. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Skipping file
5. Execute Modification ./Themes/default/languages/Modifications.english_british.php Skipping file
6. Execute Modification ./Themes/default/languages/Modifications.english_british-utf8.php Skipping file
7. Execute Modification ./Themes/default/languages/Modifications.brazilian.php Skipping file
8. Execute Modification ./Themes/default/languages/Modifications.brazilian-utf8.php Skipping file
9. Execute Modification ./Themes/default/languages/Modifications.portuguese.php Skipping file
10. Execute Modification ./Themes/default/languages/Modifications.portuguese-utf8.php Skipping file
11. Execute Modification ./Themes/default/languages/Modifications.spanish.php Skipping file
12. Execute Modification ./Themes/default/languages/Modifications.spanish-utf8.php Skipping file
13. Execute Modification ./Themes/default/languages/Modifications.spanish_es.php Skipping file
14. Execute Modification ./Themes/default/languages/Modifications.spanish_es-utf8.php Skipping file
15. Execute Modification ./Themes/default/languages/Modifications.spanish_es-utf8.php Skipping file
16. Execute Modification ./Themes/default/languages/Modifications.turkish.php Skipping file
17. Execute Modification ./Themes/default/languages/Modifications.turkish-utf8.php Skipping file
18. Execute Modification ./Themes/default/languages/Modifications.swedish.php Skipping file
19. Execute Modification ./Themes/default/languages/Modifications.swedish-utf8.php Skipping file
20. Delete File ./Themes/default/images/bbc/youtube.gif 



PLease help :-/
Title: Re: YouTube BBCode v1.4
Post by: karlbenson on November 28, 2007, 07:25:59 PM
DarthNuno.

Was the youtube mod the last mod which you installed?
If not, the code to undo might not be the same.

You may have to manually uninstall the mod.

If you don't feel comfortable or don't know how to yourself, I would recommended placing a [free] or [paid] request in the Help Wanted forum for someone to sort it out for you.
Title: Re: YouTube BBCode v1.5
Post by: karlbenson on November 28, 2007, 07:30:02 PM
1.5 - 29th November 2007
o Added support for Deutsche YouTube localised version (de.youtube.com)
Title: Odp: YouTube BBCode v1.6
Post by: karlbenson on December 04, 2007, 04:00:26 PM
1.6 - 4th December 2007
o Added support for Youtube new-style rss links
o Increased efficiency of regex/preg_match
Title: Re: YouTube BBCode v1.7
Post by: karlbenson on December 07, 2007, 12:03:28 AM
1.7 - 7th December 2007
o Added support for YouTube Canada
For the full changelog for previous versions please see changelog.txt
Title: Re: YouTube BBCode v1.7
Post by: AllMassive on December 08, 2007, 05:44:54 PM
Hi karlbenson

I get errors during uninstallation of 1.5 and 1.7 - smf 1.1.4 tells me that i do have error's in my Subs.php.
Installation works like a charm.

But i dont have any errors there  ::)
I checked the install.xml and reverted  those changes by hand - everything should have been fine.

I have no idea whats causes this.
Title: Re: YouTube BBCode v1.7
Post by: karlbenson on December 08, 2007, 06:33:03 PM
By errors do you mean it tells you it won't uninstall, or do you mean errors in your error log (including if your usign daniel 15's error mod, it tells you there are errors ,but none can be found in your error log)
Title: Re: YouTube BBCode v1.7
Post by: AllMassive on December 08, 2007, 10:43:59 PM
It just tells me that i am unable to uninstall the changes made in Subs.php.
In cases like that i upload any Mod to a Package-Parser (http://www.smfhacks.com/packageparser/package.php) and try to investigate - if this doesn't work - like with this 1.5/1.7, i'm looking into the install.xml for the needed changes.
But even reviewing it manually i don't see any errors - of course i am able to remove it manually, but everything seems alright in the XML.

For.ex.: I just install your YouTube-Mod - then after testing some posts i uninstall it and then there's that error, that the Uninstaller can't remove the changes made in Subs.php.
Just 10 Minutes ago the installer was able to add it correctly into the Subs.php - but uninstalling causes a Failure.
Even after removing it manually i could reinstall it without any error - just the uninstall part doesn't work.
I don't know how to describe it else . ..
Title: Re: YouTube BBCode v1.7
Post by: Matthew Schenker on December 30, 2007, 08:07:14 AM
Quote from: karlbenson on October 31, 2007, 04:49:47 PM
If you want to use other video clip sites aswell. checkout my Auto Embed Video Clips mod.

I'm trying to organize the way my forum does videos, and I'm planning to use your modifications.  But I'm a little confused.

With the "Auto Embed" modification, is there any reason to also run the "YouTube BBCode" modification?  Doesn't the "Auto Embed" modification take care of all possible youtube videos?

Thanks!
Title: Re: YouTube BBCode v1.7
Post by: karlbenson on December 30, 2007, 08:34:28 AM
If you've already got
bbcoded links on the forum (because you've had ANY youtube bbcode mod installed in the past) you may want to install this mod to take care of those links.

Any normal youtube links posted into your posts will get converted into youtube clips with my auto embed mod. But it won't convert any youtube bbcoded links.
Title: Re: YouTube BBCode v1.7
Post by: Con on January 03, 2008, 01:50:18 PM
I've just installed this mod onto my forum, but it never actually installed it. Yet when I try to remove it from the packages list, it says 'test failed' on all 3 actions. Should I just go on with it anyway or something else?
Title: Re: YouTube BBCode v1.7
Post by: karlbenson on January 03, 2008, 02:01:59 PM
Did it say success on all the parts when you tried to install it (on the 'test screen').

Did it gives errors and you went ahead anyway?
Title: Re: YouTube BBCode v1.7
Post by: Con on January 04, 2008, 03:32:37 AM
It did say that weird enough..
Title: Re: YouTube BBCode v1.7
Post by: karlbenson on January 04, 2008, 04:16:11 PM
try manually uninstalling using the package parser
http://modparser.dev.dansoftaustralia.net/

If the edits aren't contained within your files, then it was never installed in the first place.
Title: Re: YouTube BBCode v1.7
Post by: Con on January 05, 2008, 09:16:54 AM
Quote from: karlbenson on January 04, 2008, 04:16:11 PM
try manually uninstalling using the package parser
http://modparser.dev.dansoftaustralia.net/

If the edits aren't contained within your files, then it was never installed in the first place.
Thanks! turned out it wasn't installed, yet it still said it was in the packages list. but with that link, I manually added it all.

I bookmarked that site, it'll come in handy in the future for sure!
Title: Re: YouTube BBCode v1.8
Post by: karlbenson on January 11, 2008, 08:55:14 PM
Upped 1.8

1.8 - 12th January 2008
o New improved readme
o Added Support for YouTube Russia & Taiwan
o Some other minor tweaks
Title: Re: YouTube BBCode v1.8
Post by: edi67 on January 12, 2008, 03:07:14 PM
Italian Translation Karl ;)
$txt['youtube'] = 'YouTube';
$txt['youtube_invalid'] = '#Link YouTube non valido#';
Title: Re: YouTube BBCode v1.8
Post by: karlbenson on January 12, 2008, 10:46:59 PM
1.9 - 13th January 2008
o Added Italian/Italian-utf8 (Thanks to Edi67)
Title: Re: YouTube BBCode v1.9
Post by: karlbenson on January 19, 2008, 12:25:16 AM
I have reuploaded this mod and screenshots for it.

I am in the process of doing it for ALL my other mods aswell.  Please bear with me.
Title: Re: YouTube BBCode v1.9
Post by: karlbenson on January 23, 2008, 05:31:01 PM
2.0 - 22nd January 2008
o Added support for SMF 2.0 Beta 2
o Added <noembed> tags
o Tweaked the regex slightly
For the full changelog for previous versions please see changelog.txt
Title: Re: YouTube BBCode v2.0
Post by: ionic1984 on January 25, 2008, 12:27:51 PM
hello karlbenson,

your mod is really nice but i got one big buggin problem. the youtubelinks work fine but if someone posts a link starting with http:// the link completely dissapears. if link without http:// is posted, it works fine.

http://www.googl.de  <- everything dissaperas u cant see no letters
www.google.de <- works fine

any idea what to do ?


i use the default theme and smf 1.1 rc3 german language


thanks a lot
Title: Re: YouTube BBCode v2.0
Post by: karlbenson on January 25, 2008, 02:16:20 PM
are you sure this is with the youtube mod? or is it my auto embed video clips?
Title: Re: YouTube BBCode v2.0
Post by: ionic1984 on January 26, 2008, 07:14:31 AM
i have tried both of them, but after removing the packages the failure still exists :/
Title: Re: YouTube BBCode v2.0
Post by: karlbenson on January 26, 2008, 07:23:14 AM
what other mods do you have installed?
Title: Re: YouTube BBCode v2.1
Post by: karlbenson on January 31, 2008, 11:25:47 AM
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 (http://custom.simplemachines.org/mods/index.php?mod=936) 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
Title: Re: YouTube BBCode v2.1
Post by: karlbenson on February 20, 2008, 07:59:58 PM
2.2 - 21st February 2008
o Added &rel=1 to all embed links as YouTube seesm to require it now.
Title: Re: YouTube BBCode v2.2
Post by: Minare on February 26, 2008, 08:24:49 PM
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.
Title: Re: YouTube BBCode v2.2
Post by: Sincere on March 09, 2008, 06:31:21 AM
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. 
Title: Re: YouTube BBCode v2.2
Post by: 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
Title: Re: YouTube BBCode v2.2
Post by: Sincere on March 09, 2008, 07:21:36 AM
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 ???



Title: Re: YouTube BBCode v2.2
Post by: 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 :)
Title: Re: YouTube BBCode v2.2
Post by: Sincere on March 09, 2008, 07:46:47 AM
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

Title: Re: YouTube BBCode v2.3
Post by: karlbenson on March 18, 2008, 08:04:53 AM
[Mod] (http://custom.simplemachines.org/mods/index.php?mod=936)

2.3 - 18th March 2008
o Ensured compatible with SMF 2.0 Beta 3 Public
o Added Polish language strings (Thanks to Nolt)
Title: Re: YouTube BBCode v2.3
Post by: djpaddystudio7 on March 20, 2008, 06:19:46 AM
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
Title: Re: YouTube BBCode v2.3
Post by: MissyNL on March 26, 2008, 06:04:39 PM
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.
Title: Re: YouTube BBCode v2.3
Post by: karlbenson on March 26, 2008, 07:19:17 PM
techically it is possiblel Lafemme.

You need to add the same line that was added to Post.template.php to Display.template.php
Title: Re: YouTube BBCode v2.3
Post by: MissyNL on March 27, 2008, 07:07:28 AM
thanks karlbenson,

it works great!
Title: Re: YouTube BBCode v2.3
Post by: dpino on April 20, 2008, 01:09:14 AM
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.
Title: Re: YouTube BBCode v2.3
Post by: karlbenson on April 20, 2008, 01:14:40 PM
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)
Title: Re: YouTube BBCode v2.3
Post by: THE BRA1N on May 06, 2008, 02:17:24 AM
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.
Title: Re: YouTube BBCode v2.3
Post by: johnnydev on May 09, 2008, 04:36:58 PM
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>
Title: Re: YouTube BBCode v2.3
Post by: karlbenson on May 09, 2008, 04:39:03 PM
Open Subs.php

There are 4 instances of &rel=1
You can replace each one with &rel=0
Title: Re: YouTube BBCode v2.3
Post by: johnnydev on May 09, 2008, 05:04:49 PM
You are the greatest!  I really appreciate the prompt reply!
Title: Re: YouTube BBCode v2.3
Post by: sipko on May 24, 2008, 11:45:16 AM
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.
Title: Re: YouTube BBCode v2.3
Post by: karlbenson on May 24, 2008, 11:53:50 AM
IIRC it might be related to CHMOD permissions of the files packages attempt to modify.
Double check them for the files this mod alters.

Are there any errors in your error log?

FYI, the mod should work/compatible with my auto embed mod. I use both together on all my sites.
Title: Re: YouTube BBCode v2.3
Post by: sipko on May 24, 2008, 12:09:20 PM
"Are there any errors in your error log?"

Yes. I am getting a ton of these errors:

8: Undefined index: id_member
Apply Filter: Only show the errors from this file
File: /home/xxx/public_html/boards/Sources/Security.php
Line: 226
Title: Re: YouTube BBCode v2.3
Post by: karlbenson on May 24, 2008, 12:10:20 PM
This mod doesn't alter that file.
So although you should find/resolve that issue, its not related to this mod.
Title: Re: YouTube BBCode v2.3
Post by: sipko on May 24, 2008, 12:32:38 PM
Thanks for your help. I can't figure out how to fix this; so I'm having forum members click above the youtube video button to go to the youtube site. That will work for now.
Title: Re: YouTube BBCode v2.3
Post by: THE BRA1N on May 26, 2008, 03:02:37 AM
from SMF parser for 2.0 beta 3.1..

An Error Has Occurred!
Sorry, but this modification does not appear to be compatible with the selected version.

Tried uploading it manually but no apply mod link appears as has been previously stated. I dont know why  the mod page says this is compatible with 2.0 B 3.1.

Title: Re: YouTube BBCode v2.3
Post by: jezzb on June 19, 2008, 08:18:46 AM
I have the same problem as the user "The Bra1n".

Any suggestions are welcome.

Thanks, Jezz
Title: Re: YouTube BBCode v2.3
Post by: edi67 on July 01, 2008, 07:53:43 AM
nice mod i will use this in alternative to other
Title: Re: YouTube BBCode v2.3
Post by: GeroZ on July 24, 2008, 10:02:31 AM
Works fine for me, with just one execption: I can't make playlists to embed correctly. The player looks like a playlist, plays the first clip from the playlist - but won't skip to the next one. It doesn't show the clips from the playlist, but after playing the first clip, it shows the similar clips.

I don't have any other mods installed besides YTBBCode in SMF 1.1.5 - if that helps.
Title: Re: YouTube BBCode v2.3
Post by: jezzb on July 25, 2008, 03:20:01 AM
Hi GeroZ: But we are using SMF 2.0 beta 3.1. I did not have any problems in version 1.1.5.

Regards
Jezzb
Title: Re: YouTube BBCode v2.3
Post by: M@nNiak on July 25, 2008, 05:26:13 AM
Nice One i will try it!
tx   ;D
Title: Re: YouTube BBCode v2.3
Post by: olabaz on July 25, 2008, 09:09:52 PM
K I'm using version 1.1.5 of these forums and I have a question about this mod:
http://custom.simplemachines.org/mods/index.php?mod=936
I am downloading
YouTube_BBCode_v2.3.zip
When I upload this to the server it says there's an error and not to install.  Am I doing this wrong?

Can someone please tell me the exact instructions to installing this on a theme that's in a folder called dn?


The theme is the theme called Darknight, I installed in in a folder called dn.  The errors I'm getting are.

1. Execute Modification install-1.1.x.xml Modification parse error
2. Execute Modification - Modification parse error

I'm installing this through the  package manager on the forums.
Title: Re: YouTube BBCode v2.3
Post by: karlbenson on July 26, 2008, 04:47:57 PM
Its an issue with chmod permissions.

Chmod the Packages folder to 777
then create a folder inside it called temp
and chmod that to 777.

Then trying installing again.
Title: Re: YouTube BBCode v2.3
Post by: olabaz on July 26, 2008, 06:08:39 PM
K thanks, now I have it installed but if I do
the video doesn't come out.  It just comes out exactly like that.
Title: Re: YouTube BBCode v2.3
Post by: DistantJ on July 27, 2008, 05:32:14 AM
Is there any way to mod this so that if somebody pastes the embed code for a YT video instead of the video # or URL, it works for that too? Lots of new users seem to make that mistake on my forum.
Title: Re: YouTube BBCode v2.3
Post by: karlbenson on July 27, 2008, 06:00:21 AM
The mod doesn't support the embed code version.
Title: Re: YouTube BBCode v2.3
Post by: jezzb on July 27, 2008, 01:53:59 PM
to KarlBenson: Does this work on SMF 2.0 beta 3.1 now please?

Thanks
Jezz
Title: Re: YouTube BBCode v2.3
Post by: olabaz on July 27, 2008, 03:50:06 PM
NVM I got it working, sorry didn't know how to install mods lol :)  Great MOD thanks karl
Title: Re: YouTube BBCode v2.3
Post by: karlbenson on July 27, 2008, 04:49:00 PM
@jezzb 
It should do yes.
Title: Re: YouTube BBCode v2.3
Post by: bran8464 on July 28, 2008, 05:38:50 AM
it works fine for me on 1.1.5. Thank you for solving what has been a problem for us and I am sure members will all say thanks to you also  because my site is all about creating vids with machinima:

Freedom Island (http://www.noodiebooties.com/69)
Title: Re: YouTube BBCode v2.3
Post by: n00dle on July 29, 2008, 12:01:17 AM
I get this error at the top of my page

$txt['youtube'] = 'YouTube'; $txt['youtube_invalid'] = '#Invalid YouTube Link#';

how can i fix this?
Title: Re: YouTube BBCode v2.3
Post by: olabaz on July 29, 2008, 11:24:06 AM
Quote from: n00dle on July 29, 2008, 12:01:17 AM
I get this error at the top of my page

$txt['youtube'] = 'YouTube'; $txt['youtube_invalid'] = '#Invalid YouTube Link#';

how can i fix this?

I don't know if this makes any sense but I had a similar problem somewhere else.

Make sure the end of the file where that is located is "?>" without the quotes.
Title: Re: YouTube BBCode v2.3
Post by: shelzmike on August 01, 2008, 08:00:06 PM
Hey all - i  have this mod installed and it works correctly and everything. The button is there; however, the youtube image is not on it - it is just the placeholder image on top of the button. So it seems this is just a simple path error, does anyone a.) know where the image is supposed to be, and b.) where to fix the code for this. Thanks!

Mike
Title: Re: YouTube BBCode v2.3
Post by: shelzmike on August 01, 2008, 08:25:29 PM
I figured it out. The image was in the themes/default/images/bbc folder - just moved it to the correct folder and now it works!
Title: Re: YouTube BBCode v2.3
Post by: vlado85 on August 12, 2008, 09:07:20 AM
Hi im Vladimir, sorry for my English.

I have problems with installation mod You Tube BBCode 2.3

I trace direction...

1) install YouTube BBCode v2.3.zip packet
2) edit Post.template.php
3) edit Modifications.serbian-utf8.php
4) upload icon

results is work You Tube Buton, but still nothing:

(http://xs130.xs.to/xs130/08332/01436.jpg)

(http://xs130.xs.to/xs130/08332/02568.jpg)

I have custom theme, has it been problem?

Title: Re: YouTube BBCode v2.3
Post by: karlbenson on August 12, 2008, 09:08:58 AM
Double-check that the edits were successfully installed into Sources/Subs.php when the mod installed.

I'm guessing that they haven't been. (for whatever reason).
Title: Re: YouTube BBCode v2.3
Post by: vlado85 on August 12, 2008, 09:14:53 AM
Quote from: karlbenson on August 12, 2008, 09:08:58 AM
Double-check that the edits were successfully installed into Sources/Subs.php when the mod installed.

I'm guessing that they haven't been. (for whatever reason).
Yes i open that file, but i see nothing, this is complex for me.  :(
Title: Re: YouTube BBCode v2.3
Post by: karlbenson on August 12, 2008, 09:20:00 AM
Double-check all the edits as listed
http://custom.simplemachines.org/mods/index.php?action=parse;mod=936;attach=58997;smf_version=1.1.5
were made correctly by the installer.
Sometimes for whatever reason the process might not work (usually chmod permissions of the file)

If ALL the edits are made correctly
- admin > posts and topics > bulletin board code > check that youtube bbcode is enabled/checked.
- are there any errors in your smf error log
Title: Re: YouTube BBCode v2.3
Post by: vlado85 on August 12, 2008, 09:33:31 AM
Yes its work... Big thanks, and greatings from Serb Republic...
Title: Re: YouTube BBCode v2.3
Post by: Guns on August 13, 2008, 01:49:59 PM
Hi Karl,
I love the mod and have it working 90% and need a little hand actually getting it to play the video.
I am running 1.1.5 and I have made sure that the relevant code is where it is meant to be according to the instructions.
I am using the babylon theme but it doesn't have it's own theme page and uses the default.
youtube appears in the subs and is checked but no matter what I do I can't get video to actually play.
The video shows on the post and even shows an image from the video but as soon as you click on play it says "We're sorry this video is no longer available" but it is a I just watched it prior to trying the mod out.

The website with the issues is http://www.4hd.net/community/index.php/topic,63.0.html and you should be able to see it as a guest.
Can you please take a look and see what you think the issue could be.
I am not worried about there being no youtube button as for now I'd like to keep this facility for admin to post videos but I don't have an issue with members posting them.

Any assistance would be gratefully received.

Guns
Title: Re: YouTube BBCode v2.3
Post by: karlbenson on August 13, 2008, 02:38:05 PM
That video is not allowed to be embedded.

If you view the link at youtube you'll see that it states.
"Embedding disabled by request"

That video cannot be embedded anywhere other than at youtube.
Title: Re: YouTube BBCode v2.3
Post by: AbsoluteZer0 on August 20, 2008, 01:14:50 PM
Great mod, it works just fine on my 1.1.4... Well, almost, the mod itself works great, but after auto installing it, I see this at the top of my forum now:

Quote$txt['youtube'] = 'YouTube'; $txt['youtube_invalid'] = '#Invalid YouTube Link#';

Do you know why it does that? And how I might be able to fix it? Thanks. :)
Title: Re: YouTube BBCode v2.3
Post by: karlbenson on August 20, 2008, 01:17:08 PM
For some reason there must have been an issue with your Modification.english.php file.
Maybe space or tabs after the ?> at the end of the file.

Therefore.
Open Themes/default/languages/Modifications.english.php
and
Themes/default/languages/Modifications.english-utf8.php (if your using utf8)

And move ?> right to the very bottom. Make sure there are no lines or tabbing or spaces after it.
Title: Re: YouTube BBCode v2.3
Post by: AbsoluteZer0 on August 20, 2008, 01:30:17 PM
Yeah, I see it's out of place, this is what I have here at the end:

Quote// Help
$txt['arcade_max_scores_help'] = 'Maximum scores that will be stored per member. (0 means unlimited)';
$txt['arcade_membergroups_help'] = 'These groups will be allowed to play and view highscores. Others will not see this game, only used if permission mode will use game permissions.';?>
$txt['youtube'] = 'YouTube';
$txt['youtube_invalid'] = '#Invalid YouTube Link#';

The ?> isn't at the end, but when I moved it, like this:


Quote// Help
$txt['arcade_max_scores_help'] = 'Maximum scores that will be stored per member. (0 means unlimited)';
$txt['arcade_membergroups_help'] = 'These groups will be allowed to play and view highscores. Others will not see this game, only used if permission mode will use game permissions.';
$txt['youtube'] = 'YouTube';
$txt['youtube_invalid'] = '#Invalid YouTube Link#';
?>

It doesn't seem to change anything... Could it be because I'm using a custom theme? I looked in the theme's language files though and couldn't find anything wrong with it though. (Come to think of it, I didn't even find the word youtube in it...) So I assumed that it's just using the same as the default.


Never mind, fixed it, I had to edit the utf8 one as well, it's fixed now. Thanks for the help!  :D
Title: Re: YouTube BBCode v2.3
Post by: karlbenson on August 20, 2008, 01:43:06 PM
Are you using any other language than english?
if so that languages Modifications.{language}.php will also need fixing aswell.
Are you using english-utf8? if so you need to do it to the utf8 version aswell.

ctrl+f5 to force refresh.

P.S If you using SMF 1.1.4, you need to upgrade to SMF 1.1.5 ASAP due to a vulnerability which has been fixed.
Title: Re: YouTube BBCode v2.3
Post by: AbsoluteZer0 on August 20, 2008, 03:35:35 PM
Quote from: karlbenson on August 20, 2008, 01:43:06 PM
Are you using any other language than english?
if so that languages Modifications.{language}.php will also need fixing aswell.
Are you using english-utf8? if so you need to do it to the utf8 version aswell.

ctrl+f5 to force refresh.

P.S If you using SMF 1.1.4, you need to upgrade to SMF 1.1.5 ASAP due to a vulnerability which has been fixed.

Yeah, it was the utf-8, it's fixed now. And if I upgrade, will it mess with the mods and themes I already have?
Title: Re: YouTube BBCode v2.3
Post by: karlbenson on August 20, 2008, 03:41:54 PM
If you upgrade INSIDE smf, it shouldn't mess up any mods/themes.
If you had to use an upgrade package from smf downloads, then you would lose your mods/themes.

Remember to backup database and all files first.
Title: Re: YouTube BBCode v2.3
Post by: WX on August 20, 2008, 07:08:51 PM
I've attempted this mod before on another site and it worked perfectly.

Although I'm having some troubles adding it to another site www.flash-deck.com

The youtube button works, it shows the data


I've added the code to the language folder Modifications.english.php

but the code does not recognize what its suppose to do.

http://www.flash-deck.com/forum/index.php?topic=331.0
Title: Re: YouTube BBCode v2.3
Post by: karlbenson on August 20, 2008, 07:19:22 PM
Double-check the edit that smf was supposed to make to Sources/Subs.php to add the youtube support.
Title: Re: YouTube BBCode v2.3
Post by: WX on August 20, 2008, 07:22:02 PM
what would I be checking for / adding to the subs.php ?

I've opened it.

Thanks for your assistance by the way.
Title: Re: YouTube BBCode v2.3
Post by: karlbenson on August 20, 2008, 07:47:10 PM
http://custom.simplemachines.org/mods/index.php?action=parse;mod=936;attach=58997;smf_version=1.1.5
Title: Re: YouTube BBCode v2.3
Post by: WX on August 20, 2008, 09:36:11 PM
After a while of attempts I got it working :)

Thanks

It seems when i copied the 2nd piece of code.

"array( 'tag' => 'youtube', 'type' => 'unparsed_content', 'validate' => cr ....."

It pastes as 1 line of code.

Thanks again for your help.
Title: Re: YouTube BBCode v2.3
Post by: ddarrell on August 21, 2008, 09:56:56 PM
This installed flawlessly, and is very nice.

Thanks,

darrell
Title: Re: YouTube BBCode v2.3
Post by: ianus on August 28, 2008, 11:52:57 AM
Greetings!

It seems that this (YouTube BBCode v2.3 (http://www.simplemachines.org/community/index.php?topic=197280.0)) mod isn't compatible with the Integrate Lightbox (http://www.simplemachines.org/community/index.php?topic=233637.0).

The IE wont open a thread which contains a youtube movie when the lightbox mod is installed.

I noticed this error when I try to show a thread which has an youtube video inside.
Screenshot is attached.

You can try this thread
http://www.firopolis.de/smf/index.php?topic=2.msg3
(I won't stay forever. Is only a test environment created for this error.)

This only happens with the IE.
I tried it with IE Version 6 under XP and IE Version 7 under Vista.
(Both with "normal" secure settings and an insecure as possible.)
Firefox 2 show the thread correct.
Haven't tested Firefox 3 or Opera.

I noticed this error in my active board, SMF1.1.4. (lightbox 1.5, latetest Tube mod)
While trying to find the problem, I have manually checked the source code of the files which are changed by mods.
After that I run a clean installation of SMF 1.1.5 and installed the mods I want to use via the package manager. ( Always the latest versions for 1.1.x)
The lightbox mod is the latest in a (short) row and I can reproduce the error now.

After deinstallation of the lightbox, my IE is showing a youtube movie as expected, new installation breaks the thread again ... and so on.
If this mod and the lightbox are installed and one of the other mods are deinstalled, the error is still there.
The lightbox mod is working as expected.

Why I write here and not there?
I think both mods are affected in the same way, but I don't want to post in both threads.
I know that both mod haven`t the same author (meanwhile). But maybe karlbenson and  quake101 are still having some contact. So I hope both could find a solution.
And imho karlbenson still knows more about the lightbox mod than quake101 about this mod.

So I decided to post here and hope that somebody can give me a hint.

Thanks in advance.
Title: Re: YouTube BBCode v2.3
Post by: deafpositive on September 12, 2008, 11:14:07 PM

Blank Button - The Icon is Missing
Are you using the SMF default core theme? If the answer is NO.
You will also need to place a copy of the youtube.gif in each of your themes bbc image folders (eg Themes/{themename}/images/bbc)

My answer is "YES" do I still need to do this?
Title: Re: YouTube BBCode v2.3
Post by: karlbenson on September 13, 2008, 10:09:07 AM
You'll only need to do it if the icon is missing.

If the mod isn't functioning as its meant to
- check each of the edits manually that it was performed correctly
- check for errors in your smf error log
Title: Re: YouTube BBCode v2.3
Post by: Bobn on September 13, 2008, 04:48:02 PM
Hi,

Installed the mod, button shows, it generates the code but it shows the code in the post, no your tube vid. Do I have to enable bcc or something?? Using version 1.6

Title: Re: YouTube BBCode v2.3
Post by: karlbenson on September 13, 2008, 06:08:27 PM
I suspect that the edit wasn't correctly made by smf to Subs.php

Either grab the edit you need to make from inside the Mod package directly, or look at the list of edits on the mod-site
(select your version, then hit submit).

It might be worth checking all the edits, but i suspect its the one to Subs.php which didn't work (and this is the most important one)
Title: Re: YouTube BBCode v2.3
Post by: Bobn on September 13, 2008, 08:37:43 PM
Hi,

I get a screen "FTP information required" to install teh mod. I enter the info and get this error:

QuoteSome of the files the package manager needs to modify are not writable. This needs to be changed by logging into FTP and using it to chmod or create the files and folders. Your FTP information may be temporarily cached for proper operation of the package manager.
550 /forum: No such file or directory

The forum is in the /forum dir
Title: Re: YouTube BBCode v2.3
Post by: karlbenson on September 13, 2008, 08:50:12 PM
You'll have to edit the files manually then.

Get the edits via the mod site, then via ftp, edit each file, making the change as directed
Title: Re: YouTube BBCode v2.3
Post by: Bobn on September 13, 2008, 08:52:09 PM
Quote from: karlbenson on September 13, 2008, 08:50:12 PM
You'll have to edit the files manually then.

Get the edits via the mod site, then via ftp, edit each file, making the change as directed

Hi,

Do you offer to change the files for a fee?
Title: Re: YouTube BBCode v2.3
Post by: karlbenson on September 13, 2008, 09:34:57 PM
I'm not available for hire full stop.

Doing this edits is relatively simple.
If you're using english, and the default core theme, theres only three edits to make in fact

http://custom.simplemachines.org/mods/area51/index.php?action=parse;mod=936;attach=58997;smf_version=1.1.6
Title: Re: YouTube BBCode v2.3
Post by: Bobn on September 13, 2008, 09:39:04 PM
Quote from: karlbenson on September 13, 2008, 09:34:57 PM
I'm not available for hire full stop.

Doing this edits is relatively simple.
If you're using english, and the default core theme, theres only three edits to make in fact

http://custom.simplemachines.org/mods/area51/index.php?action=parse;mod=936;attach=58997;smf_version=1.1.6

Hi,

Im using the default theme so I

Edidted 'flash' => array('code' => 'flash',

Edidted this ./Sources/Subs.php

Edidted this ./Themes/default/Post.template.php

And put the gif in the correct folder still nothing.
Title: Re: YouTube BBCode v2.3
Post by: Bobn on September 14, 2008, 10:10:10 AM
Still here?
Title: Re: YouTube BBCode v2.3
Post by: karlbenson on September 14, 2008, 02:02:19 PM
any errors in your error log?
Title: Re: YouTube BBCode v2.3
Post by: Bobn on September 14, 2008, 02:07:06 PM
Quote from: karlbenson on September 14, 2008, 02:02:19 PM
any errors in your error log?

No, The forum has the you tube image, gives the  [youtube} blah blah [/youtube}  in the message but when you post it just displays the BBC code


I tried re installing using the mod control. It asked for FTP info. I finally figured out it needed  the path to be httpdocs/forum . It produced this error:

QuoteInstalling this package will perform the following actions:  Type Action Description
1. Execute Modification install-1.1.x.xml Modification parse error
2. Execute Modification - Modification parse error
3. Extract File ./Themes/default/images/bbc/youtube.gif

Also default warning:

Quote!!Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

Also Error Log:

Quotehttp://www.jamestownceilidhband.com/forum/index.php?action=packages;sa=install;package=YouTube_BBCode_v2.3.zip 
8: Undefined index: package_readme
File: /home/jamestownceilidhband.com/httpdocs/forum/Sources/Packages.php
Line: 292
Title: Re: YouTube BBCode v2.3
Post by: Bobn on September 14, 2008, 05:23:36 PM
Got It THanks,

Title: Re: YouTube BBCode v2.3
Post by: sabby on September 15, 2008, 09:08:35 PM
Hey, terrific mod you have here. I have to ask, are there any plans on updating it for 1.1.6? I'm asking because this is the only reason why I haven't updated yet. lol Thanks
Title: Re: YouTube BBCode v2.3
Post by: Bobn on September 15, 2008, 09:21:02 PM
Quote from: sabby on September 15, 2008, 09:08:35 PM
Hey, terrific mod you have here. I have to ask, are there any plans on updating it for 1.1.6? I'm asking because this is the only reason why I haven't updated yet. lol Thanks

I just installed it on 1.6 works fine
Title: Re: YouTube BBCode v2.3
Post by: sabby on September 15, 2008, 09:45:26 PM
Quote from: Bobn on September 15, 2008, 09:21:02 PM
Quote from: sabby on September 15, 2008, 09:08:35 PM
Hey, terrific mod you have here. I have to ask, are there any plans on updating it for 1.1.6? I'm asking because this is the only reason why I haven't updated yet. lol Thanks

I just installed it on 1.6 works fine
Thanks for the info! I guess I'll go ahead and update then. :)
Title: Re: YouTube BBCode v2.3
Post by: feelingshehides on September 15, 2008, 09:51:57 PM
Great Mod! Works without problems
Title: Re: YouTube BBCode v2.3
Post by: deafpositive on September 15, 2008, 11:25:34 PM
I got something like

Parse error: syntax error, unexpected ',' in /home/deafkli6/public_html/Sources/Subs.php on line 1490
Title: Re: YouTube BBCode v2.3
Post by: deafpositive on September 15, 2008, 11:26:47 PM
Parse error: syntax error, unexpected ',' in /home/deafkli6/public_html/Sources/Subs.php on line 1490

thanks goodness for back up files
Title: Re: YouTube BBCode v2.3
Post by: karlbenson on September 16, 2008, 05:44:02 PM
Have you managed to fix it?

Were you doing the edit manually?
Title: Re: YouTube BBCode v2.3
Post by: deafpositive on September 16, 2008, 06:14:23 PM
No, It not working and I was using FTP to fix it
I will review it again. 
I just kind of gave up yesterday and just adding link there.
Title: Re: YouTube BBCode v2.3
Post by: karlbenson on September 16, 2008, 06:50:20 PM
I've not had anyone else have any issues with mod.
Title: Re: YouTube BBCode v2.3
Post by: deafpositive on September 16, 2008, 07:26:59 PM
I think the problem is
/home/deafkli6/public_html/Sources/Subs.php on line 1490

where home shouldn't be there.
I wlll look at it later tonight
Title: Re: YouTube BBCode v2.3
Post by: ianus on September 18, 2008, 04:25:43 AM
Greetings!

I don`t want to be obtrusive, but I really need some help.
Error description can be found here:
http://www.simplemachines.org/community/index.php?topic=197280.msg1680258#msg1680258

The translation of the error, see attached image, is maybe Failure to open http: //url operation aborted.

If you need more informations, or if my description isn`t complete, please let me know.
Title: Re: YouTube BBCode v2.3
Post by: karlbenson on September 18, 2008, 10:29:38 AM
Apologies for not giving a reply earlier Ianus.

Unfortunately I've got no idea of how to fix it.  It would appear to be an issue with lightbox and possibly some of the javascript.
However I've got both installed  (my older version of lightbox) on my test forum without any issues.

Even though I was the original author of the lightbox mod, in fact, the javascript comes from lightbox and is pretty much unedited.

Suggestions:
Either uninstall the lightbox or uninstall the youtube mod.
Whilst there isn't an alternative for lightbox, there are several other 'lightbox' type libraries on the net (Greybox, Thickbox), but are not in mod format.

if you don't feel comfortable doing that, then uninstall the youtube mod and checkout my auto embed video/audio clips mod. ;)
Title: Re: YouTube BBCode v2.3
Post by: deafpositive on September 23, 2008, 01:05:58 AM
Quote from: karlbenson on September 16, 2008, 06:50:20 PM
I've not had anyone else have any issues with mod.
okay

Im working on them now let see how it goes

the installation seem to be  for SMF 1.1.1 to 1.1.4 & SMF 2.0 Beta 1

but I have  SMF 1.1.6 
now Im confused.

Title: Re: YouTube BBCode v2.3
Post by: karlbenson on September 23, 2008, 08:51:00 AM
This mod should work on any 1.1.x or 2.x version
Title: Re: YouTube BBCode v2.3
Post by: ianus on September 24, 2008, 03:58:32 AM
Greetings!

Thanks for your suggestions.
I like to have both mods installed, so I have to figure out another solution.

First I have installed your Auto Embed Video/Audio Clips (http://custom.simplemachines.org/mods/index.php?mod=977) mod.
This is working as aspected. Like your other mods, it is perfect.

But I don`t like this solution. I prefer to use bbcode because sometimes somebody want to give only a link but don`t want to show the movie, because of copyrights for example. Than I have to explain (again and again) that it`s necessary to use [nobbc].

Than I have switched from Integrate Lightbox 1.6 (http://www.simplemachines.org/community/index.php?topic=233637.0) from quake101 to your Integrate Lightbox 1.4 (http://custom.simplemachines.org/mods/index.php?mod=1019).
Well, this version is working together with the YouTube mod!

I think, it's time to ask quake101 now.
It's OK for me to run the 1.4 Version at the moment, but having the future in mind (and smf2), it will become necessary to use a later version again.


So, thanks for your kind reply and thanks for your fantastic modifications.
Title: Re: YouTube BBCode v2.4
Post by: karlbenson on October 05, 2008, 06:31:53 PM
v2.4 - 5th October 2008
o Ensured compatible with SMF 2.0 Beta 4 and SMF 1.1.6
o Added YouTube FullScreen parameter (so player shows full screen button)
o Fixed encoded ampersands as &amp;
o Added Support for YouTube India (in), South Korea (kr) and Israel (il)
o Moved all language strings into a single file [languagestrings.xml] (save repetition) in the package
Title: Re: YouTube BBCode v2.4
Post by: rad1701 on October 08, 2008, 08:12:32 PM
Is there a code or a way to embed the HIGH QUALITY version of Youtube videos?  I searched a bit and it seems in things like Wordpress if you add this code to the end of the Youtube link:  &ap=%2526fmt%3D18  then it shows the HQ version.  I tried adding that with your Mod on my SMF 1.1.6 forum but it still played the low qual. clip.  Any tips on a way to do this?? 
Title: Re: YouTube BBCode v2.4
Post by: tyhgdgh on November 06, 2008, 08:21:34 PM
is there a way to make it use embed codes, instead of the URL?
Title: Re: YouTube BBCode v2.4
Post by: timduda on November 07, 2008, 12:15:30 PM
I installed it properly, the icon is there, when i press the icon i get ytube opening and closing brackets-but when i put the youtube link inside and post it there's no video....just the code as it was in the post>
I'm using 1.1.6

Thanks
Title: Re: YouTube BBCode v2.4
Post by: sombra on November 08, 2008, 08:47:03 PM
great mod.

working great in smf version 2.0.4

but i got a question its normal to have this errors on the log

http://.net/index.php?action=admin;area=packages;sa=install;package=youtube_bbcode_v2.4.zip
Apply Filter: Only show the errors with the same message
2: fopen(/home/..../public_html/Sources/Subs.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
Apply Filter: Only show the errors from this file
File: /home/..../public_html/Sources/Subs-Package.php
Line: 2410


http://.net/index.php?action=admin;area=packages;sa=install;package=youtube_bbcode_v2.4.zip
Apply Filter: Only show the errors with the same message
2: fopen(/home/.../public_html/Sources/Subs-Editor.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied


http://.net/index.php?action=admin;area=packages;sa=install;package=youtube_bbcode_v2.4.zip
Apply Filter: Only show the errors with the same message
2: fclose(): supplied argument is not a valid stream resource
Apply Filter: Only show the errors from this file
File: /home/.../public_html/Sources/Subs-Package.php
Line: 2417
Title: Re: YouTube BBCode v2.4
Post by: sombra on November 13, 2008, 12:09:25 PM
5 days nobody alive here :o
Title: Re: YouTube BBCode v2.4
Post by: Gadget.. on December 01, 2008, 08:22:17 PM
Thank you for the Mod, I got it all to work after manual installation!
Title: Re: YouTube BBCode v2.4
Post by: gemigene on December 04, 2008, 07:36:08 PM
Nice mod but if a member replies to comment on the video using "Quote", you also get the video in the reply, is there a way to prevent this?

Cheers,
Gene
Title: Re: YouTube BBCode v2.4
Post by: Nao 尚 on December 10, 2008, 02:52:29 AM
Could someone in the team please update the 1st post in the topic, and the mod page, to specify that support for this mod was dropped? (And NO, I'm not taking over this one... It has no use, it looks like an afterthough, a stripped-down version of Aeva...)

To everyone: you should turn to Aeva (http://custom.simplemachines.org/mods/index.php?mod=977), which was created by the same author. This mod is still being supported. It allows you to disallow the embedding of videos inside quotes, and the use of the original embed html, among other things.
Title: Re: YouTube BBCode v2.4
Post by: gemigene on December 10, 2008, 11:39:15 AM
Quote from: Nao 尚 on December 10, 2008, 02:52:29 AM
Could someone in the team please update the 1st post in the topic, and the mod page, to specify that support for this mod was dropped? (And NO, I'm not taking over this one... It has no use, it looks like an afterthough, a stripped-down version of Aeva...)

To everyone: you should turn to Aeva (http://custom.simplemachines.org/mods/index.php?mod=977), which was created by the same author. This mod is still being supported. It allows you to disallow the embedding of videos inside quotes, and the use of the original embed html, among other things.

Hi Nao,

I discovered AEVA after I posted my question.

Maybe a moderator should close this thread?

Cheers,
Gene
Title: Re: YouTube BBCode v2.4
Post by: fyndler on December 11, 2008, 04:21:12 AM
Hi when i try to install this it only says

Some of the files the package manager needs to modify are not writable. This needs to be changed by logging into FTP and using it to chmod or create the files and folders. Your FTP information may be temporarily cached for proper operation of the package manager.

I put in my ftp setting and it just says
Session verification failed. Please try logging out and back in again, and then try again.

I have setted chmod 755 on the files :/
Title: Re: YouTube BBCode v2.4
Post by: Nao 尚 on December 11, 2008, 05:04:11 AM
Lol...This mod is not supported...Use Aeva instead...

(I'm still requesting for a moderator to possibly edit the topic's first post and indicate that this mod has been superceded by Aeva... Thanks ;))
Title: Re: YouTube BBCode v2.4
Post by: Phat^Trance on December 22, 2008, 03:50:57 PM
is it possible to add the high quality videos with this mod?
Title: Re: YouTube BBCode v2.4
Post by: Nao 尚 on December 22, 2008, 05:36:14 PM
The Youtube bbcode mod will do nothing more than Aeva already does... (It actually does much less, I believe?)
And I'm working on the HQ stuff. It should already work for 90% of existing videos. The only problems happen with videos that only have a HQ version (no normal quality). HD video isn't available either (IIRC), but I'll be working on it, too.

Still, I don't think the Youtube bbcode does any of this...
Title: Re: YouTube BBCode v2.4
Post by: Relyana on December 26, 2008, 11:29:53 AM
Quote from: Nao 尚 on December 11, 2008, 05:04:11 AM
Lol...This mod is not supported...Use Aeva instead...

No one took over this mod ?    :o

The other mod (aevac) never worked out for me .... I can't even think about upgrading to smf 2.0.x without the youtube mod. I'd lose more than 1.000 videolinks  :(



Title: Re: YouTube BBCode v2.4
Post by: searchgr on December 27, 2008, 12:45:30 PM
How can i change the youtube dimensions to 640 X 505 ?
Title: Re: YouTube BBCode v2.4
Post by: Nao 尚 on December 28, 2008, 03:53:00 PM
Quote from: Relyana on December 26, 2008, 11:29:53 AM
Quote from: Nao 尚 on December 11, 2008, 05:04:11 AM
Lol...This mod is not supported...Use Aeva instead...

No one took over this mod ?    :o
Yes. Just like no one wanted to take over Aeva... Because it requires too much support and it's complicated to implement.

QuoteThe other mod (aevac) never worked out for me ....
Then why don't you go over there and ask for help? Or just try the latest version? Aeva 5.1.25 seems to be working for everyone who had issues before.

QuoteI can't even think about upgrading to smf 2.0.x without the youtube mod. I'd lose more than 1.000 videolinks  :(
I'm afraid there's no solution for the youtube mod...

@searchgr> Use Aeva and wait until I implement some easy way to do it ;)
Just back from my holidays...
Title: Re: YouTube BBCode v2.4
Post by: Relyana on December 28, 2008, 04:21:28 PM
Quote from: Nao 尚 on December 28, 2008, 03:53:00 PM
Yes. Just like no one wanted to take over Aeva... Because it requires too much support and it's complicated to implement.

Is not like I do not appreciate your work ... I do but the aeva mod is so HUGE .... I honestly believe that less is better sometimes and this is just the case. So many useless videosites in there. I'm using the Embedded Media Field module for Drupal and I love the way they implemented the videolinks. Still smf is so much easier to work with but that doesn't mean that I love adding tons of cods just for the sake of having additional features. I just love Karl's Youtube mod.
It would be better if people could get the codes for the videosites of their choice in a specific thread and just keep the more popular/requested videosites in the mod. It would make your life so much easier as a modder as well I believe. Just my 0,02 $.   :)

Quote from: Nao 尚 on December 28, 2008, 03:53:00 PM
Then why don't you go over there and ask for help? Or just try the latest version? Aeva 5.1.25 seems to be working for everyone who had issues before.
I promise I'll give it a go as soon as smf 2.0 RC1 will be released.  ;)

Quote from: Nao 尚 on December 28, 2008, 03:53:00 PM
I'm afraid there's no solution for the youtube mod...
Never say never.  I might decide to keep the mod with or without support for it.  :P
Title: Re: YouTube BBCode v2.4
Post by: Nao 尚 on December 29, 2008, 08:53:07 AM
Quote from: Relyana on December 28, 2008, 04:21:28 PM
Is not like I do not appreciate your work ... I do but the aeva mod is so HUGE .... I honestly believe that less is better sometimes and this is just the case. So many useless videosites in there.
Err, did you ever test recent versions?
Aeva allows you to disable websites manually. You can also choose to enable only "popular sites" (i.e. these places were most videos are, like YouTube, DailyMotion, Imeem, etc.), and disable the rest. You can even enable YouTube and disable everything else (just click "Check all" on every section once or twice, to make sure it's unchecked, and then simply check the one and only website you want to enable).
Then hit "Save" and the new Aeva-Generated-Sites.php file (which is used by Aeva to load the site list) will only contain YouTube, and thus will be as fast and as simple as the YouTube BBCode mod.
Then you can add more sites in the admin area as simply as you enabled YouTube, if anyone starts posting videos than are not from YouTube.

QuoteI'm using the Embedded Media Field module for Drupal and I love the way they implemented the videolinks.
I don't know what this does.

QuoteStill smf is so much easier to work with but that doesn't mean that I love adding tons of cods just for the sake of having additional features. I just love Karl's Youtube mod.
He also completely rewrote Aevac (now Aeva) to address the one thing you're talking about -- the difficulty of dealing with so many sites ;)
And I'm doing my best to make it even better and simpler.

QuoteIt would be better if people could get the codes for the videosites of their choice in a specific thread and just keep the more popular/requested videosites in the mod.
It's already being discussed in the Aeva topic...

QuoteIt would make your life so much easier as a modder as well I believe.
Not really. First of all, no one seems eager to submit new code. So I'm doing it all. Second of all, I actually find it enjoyable to add new sites myself.

Quote
Quote from: Nao 尚 on December 28, 2008, 03:53:00 PM
Then why don't you go over there and ask for help? Or just try the latest version? Aeva 5.1.25 seems to be working for everyone who had issues before.
I promise I'll give it a go as soon as smf 2.0 RC1 will be released.  ;)
It also works on SMF 1.1.x...

Quote
Quote from: Nao 尚 on December 28, 2008, 03:53:00 PM
I'm afraid there's no solution for the youtube mod...
Never say never.  I might decide to keep the mod with or without support for it.  :P
Well at least I can only offer my opinion: I'll never take over the YouTube mod because it would make my life more complicated, and it already is complicated enough as it is. I put the emphasis on YouTube compatibility and I'm currently working on improving YouTube embeds -- adding full Widescreen support as well as HD. This won't be in the YouTube BBCode mod, so it's really your decision in the end, but you have the facts now.
Title: Re: YouTube BBCode v2.4
Post by: ianus on January 06, 2009, 07:42:31 AM
Greetings!

Quote from: Nao 尚 on December 10, 2008, 02:52:29 AMCould someone in the team please update the 1st post in the topic, and the mod page, to specify that support for this mod was dropped?

I would like to see a verification.
Not long ago there was an update: v2.4 - 5th October 2008 (http://www.simplemachines.org/community/index.php?topic=197280.msg1738191#msg1738191)
and I know other mods thread of karlbenson and he seems to leaf a message if he plan to stop support.
Title: Re: YouTube BBCode v2.4
Post by: Nao 尚 on January 06, 2009, 11:39:34 AM
Karl left the SMF community a few days after he posted "final" updates to Aevac and the YouTube bbcode.
Read his farewell message here:
http://www.simplemachines.org/community/index.php?topic=268542.0
He went back online last month to help me with the transition and officially call me new maintainer for Aeva.
He still comes by from time to time, under a new name (he doesn't keep it hidden, but I won't post it here and will let himself be known if he wants to). Still, he gave up all of his mods at once, if that's what you wanted to know. Including YouTube BBC, obviously.
Since I have no plans to take over YTBBC, and I don't think anyone will take over (especially with Aeva still being supported), I think it's safe to say you should update to Aeva.

I don't know about the exact history, but I think the YTBBC mod was born out of a need for the SMF community to embed YouTube videos, and given the sudden popularity of the mod, Karl devised a new, improved way of embedding videos. So, basically, Aeva is the successor to YTBBC, and it works better. You can keep YTBBC installed, or uninstall it and run the script that Karl wrote to convert YTBBC links to regular (Aeva-powered) links. (You can find this script on the Aeva topic, read the last pages. Or just click on my name, then "Show contributions", then "Attachments"... It should be the first file to come up.)
Title: Re: YouTube BBCode v2.4
Post by: ianus on January 06, 2009, 04:34:36 PM
Not the kind of response I like to read. It makes me sad to hear that such a decent fellow quit from the community so completely. I will miss him and hope, that something stunning has happend and he can enjoy his life.

Anyway, thanks for your answer. It's not what I hoped for but appreciated.
May both of you have a lot of fun an success with everything you do.
Title: Re: YouTube BBCode v2.4
Post by: Nao 尚 on January 07, 2009, 07:29:12 AM
Quote from: ianus on January 06, 2009, 04:34:36 PM
Not the kind of response I like to read. It makes me sad to hear that such a decent fellow quit from the community so completely.
Well he hasn't totally quit it -- he just quit his former involvements. He still loves SMF and loves a good challenge like I do. I guess he just got caught into a spiral of making more and more mods and having to support them (he made nearly 50 mods all in all). It didn't leave him with any spare time. He was also a SMF tester, team member and a huge community collaborator. Basically, in 2008, I consider I worked very hard for the community, but he probably did twice what I did. I can understand he would want to give everything up at once, and start living a safe life again.

QuoteAnyway, thanks for your answer. It's not what I hoped for but appreciated.
May both of you have a lot of fun an success with everything you do.
Thanks.
Just wait until I implement that frigging aeva tag now, eheh ;)
Title: Re: YouTube BBCode v2.4
Post by: tittiger on January 13, 2009, 07:36:29 AM
Works with some links such as this:

http://www.youtube.com/watch?v=lyRwhRLKtxE

But not in this form:

http://video.google.com/videoplay?docid=-5949034802461518010&q=greenhouse+conspiracy+site%3Avideo.google.com&total=3&start=0&num=10&so=0&type=search&plindex=0

and I can not get Google to give me a cleaner URL for the video. In the format of the first URL

with the latter syntax I get  "#Invalid YouTube Link#"

Thanks,
Joe
Title: Re: YouTube BBCode v2.4
Post by: Nao 尚 on January 13, 2009, 08:13:16 AM
The YouTube BBCode mod has been abandoned by its author.
(34th time's a charm.)

It will never show you anything else than youtube.com videos.

If you want to have access to more video websites, with no need for useless tags on each of them, use Aeva (http://www.simplemachines.org/community/index.php?topic=200401.0). I'm currently working on adding custom video sizes and widescreen support (nice for YouTube I guess). Will be ready this week I think.
Title: Re: YouTube BBCode v2.4
Post by: tittiger on January 13, 2009, 01:25:25 PM
Thanks very much my friend. I am waiting in anticipation. 

I am confused however which of the 5 mods listed is the one to DL. 

Is v5.1.36 the version for SMF 1.1.7 with Subs-Aeva-Sites the as yet unreleased next version?

Thanks again,
Joe


Title: Re: YouTube BBCode v2.4
Post by: Nao 尚 on January 13, 2009, 05:20:31 PM
Aeva 5.1.36 is the file you want, yes.
Subs-Aeva-Sites.php is just the latest version of the site list. It's used internally by Aeva to always get the latest up to date site list, even if you're not updating Aeva itself. (That's a feature I've been implementing yesterday. It's not yet fully tested but my first tests are working.)
Title: Re: YouTube BBCode v2.4
Post by: searchgr on January 14, 2009, 04:54:08 AM
Most Popular Mods
1. Ad Management mod
2. YouTube BBCode

The No.2 most popular mod is not supported anymore! Great!
Title: Re: YouTube BBCode v2.4
Post by: Nao 尚 on January 14, 2009, 05:51:12 AM
Oh my... When are people going to read what I'm saying?

YouTube BBCode used to be #5 on that list, while Aeva had been #1 for weeks (months?). When Aeva dropped last weekend from #1 and disappeared from the list (due to my changing some of the download links), I guess some users relied on this mod instead (not knowing about Aeva) and that's how it went up to #2.

Again: Aeva is the successor to YouTube BBCode. And it's supported.

(35th's a charm. Maybe.)
Title: Re: YouTube BBCode v2.4
Post by: jofgav on January 24, 2009, 07:22:04 AM
Awesome, will check out Aeva!
Title: Re: YouTube BBCode v2.4
Post by: karlbenson on January 24, 2009, 07:33:47 AM
Quote from: searchgr on January 14, 2009, 04:54:08 AM
2. YouTube BBCode
The No.2 most popular mod is not supported anymore! Great!

Well, anyone interested in taking over development of the mod should send a pm to
http://www.simplemachines.org/community/index.php?action=profile;u=1
Title: Re: YouTube BBCode v2.4
Post by: Nao 尚 on January 24, 2009, 09:47:28 AM
Quote from: regularexpression on January 24, 2009, 07:33:47 AM
Well, anyone interested in taking over development of the mod should send a pm to
http://www.simplemachines.org/community/index.php?action=profile;u=1
Just to be clear: if anyone takes over development, they won't have authorization to use any code from Aeva.
You can implement Widescreen, HD and everything you like in your tags, but you *can't* use the code/implementation I've written for Aeva to support these. (Unless you have permission from me, of course.)

-- Being my usual wicked witch, but you know you love it.
Title: Re: YouTube BBCode v2.4
Post by: drhamad on January 29, 2009, 05:33:34 PM
Having a problem.  I installed it on 2.0rc1 (by hand).  As far as I can tell, there's just 2 edits to Subs.php and one to Subs-Editor.php.  And of course the text string and the graphic upload.  Nothing appears in the post window.  What am I missing?
Title: Re: YouTube BBCode v2.4
Post by: Nao 尚 on January 29, 2009, 06:21:59 PM
Quote from: drhamad on January 29, 2009, 05:33:34 PM
What am I missing?
The fact that this mod is no longer supported, and that you should use its replacement instead?
Hint: it's mentioned in every single post of the last two pages or so.
Title: Re: YouTube BBCode v2.4
Post by: drhamad on January 29, 2009, 10:29:43 PM
Quote from: Nao 尚 on January 29, 2009, 06:21:59 PM
Quote from: drhamad on January 29, 2009, 05:33:34 PM
What am I missing?
The fact that this mod is no longer supported, and that you should use its replacement instead?
Hint: it's mentioned in every single post of the last two pages or so.

Which is apparently not approved for download?
Title: Re: YouTube BBCode v2.4
Post by: Nao 尚 on January 30, 2009, 01:56:36 AM
What?

http://custom.simplemachines.org/mods/index.php?mod=977
http://custom.simplemachines.org/mods/index.php?action=download;mod=977;id=83984
Title: Re: YouTube BBCode v2.4
Post by: drhamad on January 30, 2009, 11:33:31 AM
Quote from: Nao 尚 on January 30, 2009, 01:56:36 AM
What?

http://custom.simplemachines.org/mods/index.php?mod=977
http://custom.simplemachines.org/mods/index.php?action=download;mod=977;id=83984

Manual install instructions
Title: Re: YouTube BBCode v2.4
Post by: ianus on January 30, 2009, 12:02:10 PM
Here you go...
http://custom.simplemachines.org/mods/index.php?action=parse;mod=977;attach=83984;smf_version=2.0_Beta_4

You have to look for the mod, not for the subs.
Title: Re: YouTube BBCode v2.4
Post by: searchgr on February 23, 2009, 10:02:24 AM
Can anybody update this mod? I only use youtube videos for my forum.
Title: Re: YouTube BBCode v2.4
Post by: karlbenson on February 23, 2009, 10:27:20 AM
In the next few days I might try to find new authors for all of my mods which are still without author.

Although it took weeks/months to find new authors last time.
Title: Re: YouTube BBCode v2.4
Post by: Nao 尚 on February 23, 2009, 10:28:41 AM
Quote from: searchgr on February 23, 2009, 10:02:24 AM
Can anybody update this mod?
Can anybody put this mod into "abandoned" state? ::) It's been nearly 5 months since it's been given up, and a month since Karl last asked for someone to take over. And no, I'm still not doing it. My life's been disastrously Aeva-centric for too long already.
The closest thing I could do, is add optional support for the youtube tag inside Aeva 6. To ease transition between this mod and Aeva.

QuoteI only use youtube videos for my forum.
Of course my biased suggestion, as you may have read above... :D
Install Aeva, run the YT->Aeva conversion script to remove the [youtube] tags, and disable everything but YT in the site list. (Although I don't see why would anyone do that but it's up to you.)
Say hello to widescreen, HD and more. (v6.0 coming this week.)

Oh, that's post #1969... The year of the Crimson King...
Title: Re: YouTube BBCode v2.4
Post by: drhamad on February 23, 2009, 03:02:33 PM
Nao, where is this conversion script?

Thank you.
Title: Re: YouTube BBCode v2.4
Post by: Nao 尚 on February 23, 2009, 04:42:09 PM
See attachment. :)
Works for most bbcodes (youtube, veoh, dailymotion, etc.)
Title: Re: YouTube BBCode v2.4
Post by: drhamad on February 23, 2009, 05:08:59 PM
Thanks.
Title: Re: YouTube BBCode v2.4
Post by: searchgr on February 24, 2009, 01:58:56 AM
Nao, does your mod has the same code with the embeded videos of Karl? I have experienced problems with that mod, that's why i don't use it. My server created core dump files becuse of that mod and this is the reason that i use the youtube mod.

Please read here: http://www.simplemachines.org/community/index.php?topic=265441.msg1681796#msg1681796
Title: Re: YouTube BBCode v2.4
Post by: Nao 尚 on February 24, 2009, 02:34:45 AM
I fixed the core dump bug soon after I took over Aeva's development. Was one of my first priorities ;)
To be specific, it was due to the "disable embedding in quotes" feature which, when enabled, would sometimes crash (or at least generate errors in the log) when showing complicated multi-level quotes. As soon as I was able to reproduce on my site, I worked on it for a day and then figured out a replacement for the "king of regex" which Karl had taken from php.net and which was actually very buggy :)

Oh sorry, I suppose you don't care about *how* I fixed it ;)
Title: Re: YouTube BBCode v2.4
Post by: searchgr on February 24, 2009, 03:38:31 AM
This is very interesting. Yes, the problem was appearing when i quoted some specific texts.
I will try AEVA.

Is there any conflict between aeva and youtube mod?
Title: Re: YouTube BBCode v2.4
Post by: Nao 尚 on February 24, 2009, 05:27:10 AM
Nope. You can have both running. Still, I'd recommend to uninstall YTBBC and run the upgrade script I posted above.
Title: Re: YouTube BBCode v2.4
Post by: searchgr on February 24, 2009, 05:51:38 AM
How can i run it? Upload it to the main directory and go to www.mypage.com/convert_old_video_bbcodes.php ?
Title: Re: YouTube BBCode v2.4
Post by: Nao 尚 on February 24, 2009, 06:10:06 AM
You got it.
Title: Re: YouTube BBCode v2.4
Post by: netco on March 01, 2009, 02:43:25 AM
it doesnt work with WYSIWYG editor
just work with bbc
Title: Re: YouTube BBCode v2.4
Post by: Nao 尚 on March 01, 2009, 04:16:31 AM
Well it's been abandoned, what would you expect anyway?
And why would you install this at all, when you're already using Aeva? ;)
Title: Re: YouTube BBCode v2.4
Post by: karlbenson on March 01, 2009, 08:09:31 AM
Well it works with the wysiwyg in as much as it smf prevents it from being turned into a flash object inside the wysiwyg.
(that would be bad)
Title: Re: YouTube BBCode v2.4
Post by: Neverhurry on March 21, 2009, 04:46:37 PM
Hello, is it possible to change the default size? thank you.
Title: Re: YouTube BBCode v2.4
Post by: zinkox on April 03, 2009, 12:12:35 PM
Hi

Today I wanted to add a new video, but it seems it doen't work anymore. Also all the old videos do not work anymore.

Any info on that?

Thanks :)
Title: Re: YouTube BBCode v2.4
Post by: Nao 尚 on April 03, 2009, 02:00:23 PM
Use Aeva + its YTBBC->Aeva conversion script.
Title: Re: YouTube BBCode v2.4
Post by: R.Bourne on April 11, 2009, 07:53:35 AM
Quote from: Nao 尚 on March 01, 2009, 04:16:31 AM
Well it's been abandoned, what would you expect anyway?
And why would you install this at all, when you're already using Aeva? ;)

Sir, anytime someone posts a question here, I feel dizzy seeing your reply similar to above. Enough already ... your message received and well understood!

We need a simple MOD to allow our subscribers link to their favorite youtube movies. Nothing more nothing less. I found this one which did the job, however, later on I chose yours ... up to version 5.xx!

A few min ago, I finally decided to upgrade to your 6.xx which I was shocked to see a senseless link to your web site right under each and every youtube movies!!!

I uninstalled it fully and completely in less than 3 minutes!

Reason? Well, there are thousands MODS for SMF. If everyone of these so talented developers wanted to add a link to their own sites, can you imagine what would happen?!!! A complete mess!

OPEN SOURCE is all about playing fair. That, we understand. And, my friend, that is exactly why I uninstalled your MOD. I have over 50 other MODS installed to enhance my forum. I can assure you that without those MODS my forum was dead! While I truly appreciate your hard work creating your version, however it is just not fair for me to allow your link show up on my forum the WAY you like it.

FYI to others, this MOD may have a few limitations but it works as designed and it DOES its job. If you have problems, almost 99% there is a chance that your custom themes need a modification here or there.
Title: Re: YouTube BBCode v2.4
Post by: Nao 尚 on April 11, 2009, 08:45:19 AM
Admin > Modifications/Features > Aeva > Check "Show copyright in footer".

Gone are the links in every post. No need to yell at me...

I spent hundreds, if not thousands of hours working on Aeva, all for free, and I felt I at least deserved some credit.
Aeva is the best mod of its kind, including all other forum software, and all video embedding software. Even YouTube doesn't allow you to choose more than "low quality" and "high quality" on their website -- Aeva provides you with every available quality type, and even stores your preference in a cookie. Enough said.
You want to use it? Good for you. Accept the link. If you don't want it to show up everywhere, fine by me, show it in the footer, it'll be less obvious. That's what that option is for. It'll only show on pages with videos in them anyway. If you really don't want a link anywhere, then reinstall v5.2 -- it's still available on the mod site for now. It's not like I'm tricking anyone into adding a link to my site. Gosh.

As for the YTBBC mod, it lacks many, many features in Aeva. Install Aeva, disable all websites except for YouTube: you still get ten times more functionality than YTBBC. At one point I thought of taking over YTBBC and going the "Aeva light" route, but in the end I felt it was unneeded. My philosophy is -- when a tag can't be done with, then use it at any rate. If it can be avoided, then don't implement one. Video URLs don't need a tag.
Title: Re: YouTube BBCode v2.4
Post by: R.Bourne on April 11, 2009, 10:24:16 AM
I was not yelling at you, Sir! I was only disappointed!

Click here ---> http://custom.simplemachines.org/mods/index.php?action=search;type=0-;sort=downloads;desc

Allow me to translate the situation here! Your MOD has been downloaded over 80,000 times! It's top number 4 on the list of all available MODs on SMF world.

Let's look closer! There are about 180,000 forum members here. Less than half of all these guys downloaded your MOD! You still don't feel it's enough people know your name? Only God knows how many unregistered SMF users are out there and how many thousands more use your MOD! Fair enough?

Now, you still want more credit? From who else?! My forum is not up yet but I promise you that whoever visits there, they honestly don't care about "who" / "where" / "how"! It would only make them confused what this link is all about: LQ | HQ | by Avea?!! And, we have to post a new FAQ to explain to them what is going on!

Your MOD is cool! No doubt. It saves people one extra click and provides a great experience for users not to leave the forum for watching a 2 min video. For that, I sincerely thank you ... and surely the other 80,552 (...and counting!) feel the same.

------------
P.S. I buy a new car exactly every 3 years. Almost always, the first thing I do is getting rid of the license plate frame which shows where I bought my car! I am not going to advertise the dealership to everyone on the streets. But, certainly I recommend them to those who would be interested to know!
Title: Re: YouTube BBCode v2.4
Post by: Nao 尚 on April 12, 2009, 05:26:27 PM
Quote from: R.Bourne on April 11, 2009, 10:24:16 AM
Let's look closer! There are about 180,000 forum members here. Less than half of all these guys downloaded your MOD!
Actually, you're miscalculating...
I've released 26 different versions of Aeva. Karl himself released 24 versions of Aevac 1 through 4. That's a total of 50 releases. Do you think 80.000 people downloaded only one of these releases and stayed with it? Nah, I don't think so... Actually, if you have a look at the numbers, Aeva itself gets about 3.000 downloads a month per version (if the version stays current for all that time). So there are probably 5.000 to 10.000 users in total (even counting the users who installed it once and forgot it), maybe 2.000 regular users (ie who update regularly), and that's all.

QuoteYou still don't feel it's enough people know your name? Only God knows how many unregistered SMF users are out there and how many thousands more use your MOD! Fair enough?
Unregistered SMF users still have to download the mod through the mod page, and it still increases the download counter (ask SleePy if you don't believe me).

QuoteNow, you still want more credit? From who else?! My forum is not up yet but I promise you that whoever visits there, they honestly don't care about "who" / "where" / "how"! It would only make them confused what this link is all about: LQ | HQ | by Avea?!! And, we have to post a new FAQ to explain to them what is going on!
Then use the "Show in footer" option. No one reads footers. I just felt I could offer myself the pleasure of NOT setting this by default. After all, the "by Aeva" notice only appears on YouTube videos (with lookups enabled) and on sites where titles are enabled (or all sites if you enabled "always attempt to retrieve title"). While with the footer notice, it appears on every page with an Aeva video (although not as prominently). You get to choose.

QuoteP.S. I buy a new car exactly every 3 years. Almost always, the first thing I do is getting rid of the license plate frame which shows where I bought my car!
lol, me too.
Title: Re: YouTube BBCode v2.4
Post by: R.Bourne on April 12, 2009, 06:58:35 PM
Thank you for your reply. :)

As a good SMF citizen, it's not my intention to ignore MOD developer's hard work by getting rid of their signatures / links. Everyone out there has every right to expect some kind of compensation for their work. That, I understand.

But, take my forum for example. Currently, I have over 51 MODs (and counting!!!) to do what most other forums do! I need each and every one of them. But right now, at the bottom of each and every page there are 4 links including SMF itself that point to MOD / Theme developers' own sites! One of these guy's site actually is not even active anymore! Those links used to overlap each other and or go over the designated space because of my theme itself! There is not enough room, believe it or not! Not to mention, since I really want my forum to be perfect in any way possible, I've spent a great deal of time just to take care of these little issues.

Now, imagine if all the other 50 something MOD developers wanted to add a link here! What a mess!!! So, although I'd love to have your MOD back, this signature issue is the show-stopper.

In short, I don't have any other choice but using a similar MOD, which certainly is not be as perfect as yours, but it gets the job done.

Honestly, this should be a heads up for all MOD developers who think it would be a good idea to add a link to their  own sites. They should think twice. And, I'd suggest SMF engineers should come up with some kind of standards for this.
Title: Re: YouTube BBCode v2.4
Post by: Nao 尚 on April 12, 2009, 07:35:24 PM
Quote from: R.Bourne on April 12, 2009, 06:58:35 PM
But, take my forum for example. Currently, I have over 51 MODs (and counting!!!) to do what most other forums do!
I only have a dozen and I'm happy with that... 51 mods, you're calling for problems.

QuoteI need each and every one of them. But right now, at the bottom of each and every page there are 4 links including SMF itself that point to MOD / Theme developers' own sites!
What are the other links?

QuoteNow, imagine if all the other 50 something MOD developers wanted to add a link here! What a mess!!! So, although I'd love to have your MOD back, this signature issue is the show-stopper.
That's illogical. First you don't want my link in your videos. Then you don't want my link in your footer (but you perfectly accept 4 other links there). I'm giving you two possibilities and you don't want any. Then you say you'll be using a "similar mod", but there are NO similar mods. Aeva is the only one of its kind. You could simply be using v5.2.x which doesn't have the links at all. At least you'd be getting 75% of the functionality, lol.

Anyway-- it feels like you're trying to find a way around what you've been saying earlier. I don't have time for this.

QuoteHonestly, this should be a heads up for all MOD developers who think it would be a good idea to add a link to their  own sites. They should think twice.
Uh. You should think twice about people whose work you use, and who spend hundreds of hours working indirectly for you, requesting nothing in return. If you don't like that, don't use their mods. *And*, don't start talking aggressively to them like you did yesterday with me.
Title: Re: YouTube BBCode v2.4
Post by: R.Bourne on April 12, 2009, 09:32:34 PM
Yes, 50 something critical MODs and that's why over 6 people have been working on this project since July 2008! Trust me on that. Once you truly want to use SMF to start a real forum, this number is very low. Please keep in mind that SMF 2.xx makes up for its many shortcomings and a few of our MODs wouldn't be necessary. However, in our case, it's too late to start everything from scratch.

In any case, back to our topic, you seem don't want to get my point here!

First of all, we both are hijacking this thread! Yes, I am as guilty as yourself. You, however, started it first. While you don't have anything to do with this MOD, you've kept getting involved encouraging people (aggressively) NOT to use this one!

Second, yes you got that right! I don't want to have any more link to individuals web sites on my forum. As I said, one main link to SMF site is more than enough. The rest? There is no point. IF really necessary, those extra links for plugins / extensions and etc, must exist in ADMIN related pages and that's all.

Again, there is no point or benefit to end-user's experience while browsing a forum, which provides completely different services, to know who or where a link to youtube, for example, comes from.

My 2 cents!
Title: Re: YouTube BBCode v2.4
Post by: bloc on April 13, 2009, 05:28:49 AM
Quote from: R.Bourne on April 12, 2009, 09:32:34 PM
Yes, 50 something critical MODs and that's why over 6 people have been working on this project since July 2008! Trust me on that. Once you truly want to use SMF to start a real forum, this number is very low. Please keep in mind that SMF 2.xx makes up for its many shortcomings and a few of our MODs wouldn't be necessary. However, in our case, it's too late to start everything from scratch.

In any case, back to our topic, you seem don't want to get my point here!

First of all, we both are hijacking this thread! Yes, I am as guilty as yourself. You, however, started it first. While you don't have anything to do with this MOD, you've kept getting involved encouraging people (aggressively) NOT to use this one!

Second, yes you got that right! I don't want to have any more link to individuals web sites on my forum. As I said, one main link to SMF site is more than enough. The rest? There is no point. IF really necessary, those extra links for plugins / extensions and etc, must exist in ADMIN related pages and that's all.

Again, there is no point or benefit to end-user's experience while browsing a forum, which provides completely different services, to know who or where a link to youtube, for example, comes from.

My 2 cents!

Sorry for jumping in lol, but I fully agreed on this statement. Its ridiculous when you have to tolerate not only SMF copyright(which should be there, seeing as its the engine thats running the whole show) but also countless other mods and even themes.

I have had some thinking about my own mod, TinyPortal, around this, and come to the conclusion that copyright might be better served as a separate page. I also create SMF themes and leave credit link to it on theme itself, but that too, is not something that a major site would want to have visible.

What other mod and even theme developers do, is of course their choice, but I personally will change it. For smaller sites that ok, but bigger sites will be reluctant to use it if no other options are available and in the longer run that will hurt more than benefit.

"Optional" could for example be a simple page called from ?action=credits, where it lists up all contributors with links 'n all, that would be a much more tidy way of actually giving credit where credit is due - but not gagging the site in links either. 
Title: Re: YouTube BBCode v2.4
Post by: R.Bourne on April 13, 2009, 06:08:05 AM
Quote from: Bloc on April 13, 2009, 05:28:49 AM
Sorry for jumping in lol, but I fully agreed on this statement. Its ridiculous when you have to tolerate not only SMF copyright(which should be there, seeing as its the engine thats running the whole show) but also countless other mods and even themes.

I have had some thinking about my own mod, TinyPortal, around this, and come to the conclusion that copyright might be better served as a separate page. I also create SMF themes and leave credit link to it on theme itself, but that too, is not something that a major site would want to have visible.

What other mod and even theme developers do, is of course their choice, but I personally will change it. For smaller sites that ok, but bigger sites will be reluctant to use it if no other options are available and in the longer run that will hurt more than benefit.

"Optional" could for example be a simple page called from ?action=credits, where it lists up all contributors with links 'n all, that would be a much more tidy way of actually giving credit where credit is due - but not gagging the site in links either.

Bloc, thank you for your comments and understanding. :)

Yes, I really like your suggestion. I have no problem to have a separate page only to give credit to each and every MOD / Themes developers on our forum. Indeed, this is the best and very professional way for both the forum admins as well as the MOD developers.
Title: Re: YouTube BBCode v2.4
Post by: bloc on April 13, 2009, 07:21:20 AM
Indeed, I been adding links for some years now and it served me well..but in the bigger picture, its better IMO with a centralized apge. Search engines too will pick up on that, so its not like its removing the exposure either too much.

And perhaps, just perhaps, it will lessen the amount of people trying to circumvent the links, once they realize they are kept in one place only.
Title: Re: YouTube BBCode v2.4
Post by: Nao 尚 on April 13, 2009, 09:18:46 AM
Quote from: R.Bourne on April 12, 2009, 09:32:34 PM
Yes, 50 something critical MODs and that's why over 6 people have been working on this project since July 2008! Trust me on that. Once you truly want to use SMF to start a real forum, this number is very low.
I've always been maintaining my forums alone. They add up to about 300k posts in total. I just appoint moderators for them, more as rewards than as a real need. The technical side is all handled by me. Whenever I don't like something, I tweak it myself. Then I apply diff patches for SMF updates and it works fine, I don't have to update my custom changes.

QuoteFirst of all, we both are hijacking this thread! Yes, I am as guilty as yourself. You, however, started it first. While you don't have anything to do with this MOD,
I beg to differ... Aeva is basically a spin-off from YTBBC. Karl kept YTBBC around because he feared some people would not like the BBC-free alternative that Aevac offered. In the end it turned out to be useless. There's just a need to communicate on what Aeva(c) changes, what it does better, etc. That's what I set out to do when I took over Aeva. I nearly took over YTBBC as well but I felt I'd rather educate than try to sell a dumbed-down version of Aeva to people who wouldn't listen. Anyway.

Quoteyou've kept getting involved encouraging people (aggressively) NOT to use this one!
I'm always amused by how little people would read of a topic before posting on it. Most of the time, they ask for a feature which is already in Aeva, and the latest post in the topic mentions that. So I end up having to point that out again.

QuoteSecond, yes you got that right! I don't want to have any more link to individuals web sites on my forum. As I said, one main link to SMF site is more than enough. The rest? There is no point. IF really necessary, those extra links for plugins / extensions and etc, must exist in ADMIN related pages and that's all.
Can you explain me why there hasn't been a single (single!) remark about the very visible "SMF Media Gallery 1.5" link in all SMG pages? It's yet another widely mod that I work on. And the original reason why I figured I could add a link to Aeva, too.

And again: feel free to use Aeva 5.2 instead.

Quote from: Bloc on April 13, 2009, 05:28:49 AM
Sorry for jumping in lol, but I fully agreed on this statement. Its ridiculous when you have to tolerate not only SMF copyright(which should be there, seeing as its the engine thats running the whole show) but also countless other mods and even themes.
So, just because you don't agree with me, I should remove the link? Silly, silly me.

QuoteI have had some thinking about my own mod, TinyPortal, around this, and come to the conclusion that copyright might be better served as a separate page.
Yeah... But you still have to link at that page, eh? So in the end it's exactly the same issue.

QuoteFor smaller sites that ok, but bigger sites will be reluctant to use it if no other options are available and in the longer run that will hurt more than benefit.
Anyone can contact me and ask me for authorization to remove the credit. Just like they can remove the SMF credit if they have authorization. I'm not pointing a gun at anyone's head. I'm not forcing anyone to use Aeva 6 (which has the links). I'm not even forcing anyone to use Aeva at all, lol. And so far, only this user has been complaining about the Aeva links. Others have shared some concern, but they've always found a preferred choice between the "per-video" links and "per-page" links.

Quote"Optional" could for example be a simple page called from ?action=credits, where it lists up all contributors with links 'n all, that would be a much more tidy way of actually giving credit where credit is due - but not gagging the site in links either.
That's something you'll have to implement in SMF, as a SMF developer. If it ever happens, and it's clearly linked in every page, then yes, I'll consider putting a copyright notice over there instead.
But, again: the Aeva link only appears when Aeva is called. That is, if you don't have any video on your page, you won't see the link. The same can't be said about all other mods, because they hardcode their link into the SMF core template. It's another matter to discuss.
Title: Re: YouTube BBCode v2.4
Post by: bloc on April 13, 2009, 09:54:00 AM
You missing the point, Nao. I would certainly be glad for just ONE link instead of multiple. And just because your mod(s) only displays the copyright when its used, many don't - as you say.

I am also not suggesting this for SMF, it would not be done until for along time anyway, as we are in RC stages. This would be for TP/Themes of mine, I am pondering on the best way of doing it.


If tables were turned, if I were a site owner building the next blogger.com using SMF and a few mods, does the credit belong to SMF+mods..or to myself for adding content, vision and maintenace...? Thats a legitimate question and while it may not be relevant for many smaller sites, SMF IS getting better known and we should take that into account.

If credits are collected it makes for better exposure of them, less "illegal" removals and an understanding of boths sides needs, IMHO.
Title: Re: YouTube BBCode v2.4
Post by: Nao 尚 on April 13, 2009, 10:56:36 AM
Quote from: Bloc on April 13, 2009, 09:54:00 AM
If tables were turned, if I were a site owner building the next blogger.com using SMF and a few mods, does the credit belong to SMF+mods..or to myself for adding content, vision and maintenace...?
Doing the next blogger/etc is no easy task. Adding 357 mods on your website is much easier than having to program them all. My very own noisen.com represents about 2 years of work, and it's still far from being complete. My philosophy is: if you don't want to reinvent the wheel, at least invest some time into the mods you're going to add. That way, you'll "deserve" their integration and removing the copyright notices etc. That's how I got started on PrettyURLs, SMG and Aeva, at least. Now I wouldn't appreciate seeing a "competitor" website use my work with nothing in exchange -- and not even show the credits. So, basically, you're entitled to your opinion, I'm entitled to mine. I don't use portals so I wouldn't know what your policy is on TP btw.
Title: Re: YouTube BBCode v2.4
Post by: bloc on April 13, 2009, 02:12:30 PM
Not all will be developing the things themselves, thats why we exist in the first place: that people like to use what we create.

I cannot take the credit if someone use TP to create a high-profile site, only be content and happy my tool was helping that happen. Therefore its wrong from my point of view, to plaster the TP credit on every page, it should be enough with just one spot, easily found of course. Admittedly its a bit late to say this..but in my small defense SMF and also TP wasn't so big as now lol. :)
Title: Re: YouTube BBCode v2.4
Post by: edi67 on April 13, 2009, 04:03:23 PM
Work perfectly with youtube video HQ and not and in RC1 :) great as usually our good Karl
Title: Re: YouTube BBCode v2.4
Post by: R.Bourne on April 14, 2009, 12:33:25 AM
Quote from: edi67 on April 13, 2009, 04:03:23 PM
Work perfectly with youtube video HQ and not and in RC1 :) great as usually our good Karl

RC1 you mean SMF 2, I think.

Yes, it's been working great on my 1.1.8 as well and so far has passed our internal testing. I haven't had a chance to set up a test server for SMF 2.xx though :-[
Title: Re: YouTube BBCode v2.4
Post by: edi67 on April 14, 2009, 03:32:52 AM
Quote from: R.Bourne on April 14, 2009, 12:33:25 AM
Quote from: edi67 on April 13, 2009, 04:03:23 PM
Work perfectly with youtube video HQ and not and in RC1 :) great as usually our good Karl

RC1 you mean SMF 2, I think.

Yes, it's been working great on my 1.1.8 as well and so far has passed our internal testing. I haven't had a chance to set up a test server for SMF 2.xx though :-[

sure i means version 2
Title: Re: YouTube BBCode v2.4
Post by: R.Bourne on April 14, 2009, 03:52:48 AM
Quote from: edi67 on April 14, 2009, 03:32:52 AM
sure i means version 2

Thanks :)
Title: Re: YouTube BBCode v2.4
Post by: Nao 尚 on April 14, 2009, 07:58:37 AM
@edi> What do you mean?

Quote from: Bloc on April 13, 2009, 02:12:30 PM
Not all will be developing the things themselves, thats why we exist in the first place: that people like to use what we create.
I don't think we are defined by what we create, or what we are successful at.
I certainly don't want to be remembered as "the guy who created the best mahjongg solitaire game ever." I'm more than that.

I worked on Aeva because I felt it deserved to be taken over. Then I worked on it because it was great fun. I worked on SMG because I wanted a gallery system and thought this one was the most promising. I didn't work on it for congratulations or anything. The fact that SMG is not compatible with every single server setup doesn't kill me. The fact that people don't like SMG or Aeva (I'm talking about this very topic BTW) doesn't kill me either. I'd say what annoys me is people who judge the book by its cover. You know -- just like people who say Aeva sucks because it has a copyright notice in it, or those who say I'm a genius because I made Kyodai Mahjongg. Sure. What next?

(I think I've just posted my most pointless message of the week. W00t for me.)
Title: Re: YouTube BBCode v2.4
Post by: bloc on April 14, 2009, 08:11:07 AM
Everyone can do that lol, work on what you like, leave it for other stuff you like..I meant that you could create the worlds best blog system, but it would be pointless if you have no audience.

At least if you actually want people to use it . And in that light you would not "exist" if people didn't need what you develop. ;)
Title: Re: YouTube BBCode v2.4
Post by: Nao 尚 on April 14, 2009, 10:02:27 AM
Quote from: Bloc on April 14, 2009, 08:11:07 AM
Everyone can do that lol, work on what you like, leave it for other stuff you like..
I never let anything aside until it was finished (or could be considered finished). It's a shame when someone does that, I think.

QuoteI meant that you could create the worlds best blog system, but it would be pointless if you have no audience.
It's not pointless. It's there for people to use if they want to. Rather that, than having to compromise and go fully commercial. (Well, if you can afford to remain non-commercial, of course.)

QuoteAt least if you actually want people to use it . And in that light you would not "exist" if people didn't need what you develop. ;)
You have a strange way of seeing things.
Title: Re: YouTube BBCode v2.4
Post by: bloc on April 14, 2009, 10:50:28 AM
Quote from: Nao 尚 on April 14, 2009, 10:02:27 AM
You have a strange way of seeing things.

Yes, so I've been told lmao. :)
Title: Re: YouTube BBCode v2.4
Post by: TheListener on April 24, 2009, 04:32:20 PM
This feature is brilliant.

Is there any way that guests viewing a clip added to the portal can be blocked from viewing it? Would I be better to ask at the simple portal site?
Title: Re: YouTube BBCode v2.4
Post by: R.Bourne on April 24, 2009, 11:22:02 PM
Quote from: TheListener on April 24, 2009, 04:32:20 PM
This feature is brilliant.

Is there any way that guests viewing a clip added to the portal can be blocked from viewing it? Would I be better to ask at the simple portal site?

We switched to this one and very happy. I am not sure but you may want to ask your question there as a general concern on how to block certain posts from showing up on Simple Portal.

Good luck
Title: Re: YouTube BBCode v2.4
Post by: Daggers on April 25, 2009, 03:31:59 AM
Tried to install the latest version of this for RC1 but came up with a 'modification parse error'

I tracked this down to your package-info.xml

<modification>install-2.0.beta2.xml</modification>

it should read..

<modification>install-2.0.rc1.xml</modification>

;)
Title: Re: YouTube BBCode v2.4
Post by: ɔɔɔɔɔɔuɥoɾ on April 26, 2009, 01:14:42 PM
nice simple mod, thanks, but im having one problem

im reluctant to install because I get this error

1. Execute Modification --  install-2.0.beta2.xml --  Modification parse error
2. Execute Modification --  install-2.0.beta2.xml --  Modification parse error

all the rest of the files pass the test though

any ideas?
Title: Re: YouTube BBCode v2.4
Post by: Deaks on April 26, 2009, 02:12:01 PM
hmm ill look at it now :)
Title: Re: YouTube BBCode v2.4
Post by: Deaks on April 26, 2009, 02:18:50 PM
sorry my mistake updated the package was a typo :)
Title: Re: YouTube BBCode v2.4
Post by: ɔɔɔɔɔɔuɥoɾ on April 26, 2009, 02:20:40 PM
yea, i got the new package, trysson sent it to me, thanks for the speedy fix :)
Title: Re: YouTube BBCode v2.5.1
Post by: Deaks on April 26, 2009, 02:22:15 PM
great :)

Glad your happy
Title: Re: YouTube BBCode v2.5.1
Post by: TDNY on April 30, 2009, 08:51:43 PM
Thanks for the great mod and the updates/ support.
Am I supposed to have enable/disable  or other option/ permission buttons somewhere? I have youtube checked off on the bbc code list and the mod works fine. I just need to be sure it is encrypting the links and is secure as stated.
I have the default core 1.1.8 Thanks
TD
Title: Re: YouTube BBCode v2.5.1
Post by: Deaks on May 01, 2009, 06:42:43 AM
at the current date the mod is secure with no known exploits
Title: Re: YouTube BBCode v2.5.1
Post by: TDNY on May 01, 2009, 06:49:13 AM
Quote from: Runic on May 01, 2009, 06:42:43 AM
at the current date the mod is secure with no known exploits

Thanks Runic,
Are there any settings/ option buttons I'm supposed to have or is everything in the software? The only thing I'm seeing is the word youtube on the BBcode list page.
TD
Title: Re: YouTube BBCode v2.5.1
Post by: Magicjax on May 07, 2009, 01:39:09 PM
Forgive my ignorance. This is my first attempt to install a mod here.

The first line of instructions says:

Quote
FIND
Code: [Select]
         'flash' => array('code' => 'flash',
ADD BEFORE
Code: [Select]
         'youtube' => array('code' => 'youtube', 'before' => '
', 'description' => $txt['youtube']),

Now I understand the concept here (Find a line in the code then add a line before it). But it it doesn't tell me what file to "Find" the line in.

I guess I need a "for dummies" explanation. :)

Can anyone walk me through it? Thanks for your time.
Title: Re: YouTube BBCode v2.5.1
Post by: Deaks on May 07, 2009, 04:02:11 PM
that would in your Post.template.php file located in your themes folder
Title: Re: YouTube BBCode v2.5.1
Post by: 58tbird on May 13, 2009, 11:53:30 AM
I tried installing the convert_ytplaylist_bbcode.php file, but I got this error:
QuoteThe package manager currently allows only these file types: zip, tgz, tar.gz.

Is this file needed for anything?  The mod seems to work fine otherwise.
Title: Re: YouTube BBCode v2.5.1
Post by: Deaks on May 13, 2009, 12:08:48 PM
no that file is not needed to work with this mod
Title: Re: YouTube BBCode v2.5.1
Post by: 58tbird on May 22, 2009, 08:52:22 PM
Okay - thank you Runic  :)
Title: Re: YouTube BBCode v2.5.1
Post by: dotcomguy on July 05, 2009, 03:08:07 AM
Quote from: TDNY on April 30, 2009, 08:51:43 PM
I have youtube checked off on the bbc code list and the mod works fine.

When I tried this then it just showed the youtube url instead of the actual video in the post. I'd like to be the only one on my forum to be able to use this mod but I haven't found a way to do it. Anyone know how? I thought if I uncheck it in the bbc list (post and topics/bbc) then the button won't show up for others (which it doesn't) but it also doesn't work for admins either if it's unchecked. Thanks!
Title: Re: YouTube BBCode v2.5.1
Post by: Nao 尚 on July 05, 2009, 04:42:05 AM
dotcom, if you're an admin, just disable any similar mod (aeva, ytbbc) and use the [html] tag to embed video code.
Or use Aeva (I don't know about the ytbbc internals) and modify the Subs.php stuff to call aeva_parse_bbc2() only if ($user_info['is_admin']) (just one line to add, piece of cake), or $user_info['id'] == your_user_id. If you do that, only you will be able to view embeds, rather than a link. Or you can do it before the call to aeva_onposting(), meaning everyone will be able to view embeds, but only for *your* posted links.
Title: Re: YouTube BBCode v2.5.1
Post by: dotcomguy on July 06, 2009, 12:46:18 AM
I'm not very good with coding; could you tell me where in the subs.php I should put that? The first html option wouldn't work since others would be able to add videos too. I'm not the admin but the global moderator so I think the code $user_info['id'] == your_user_id would work and the last part you said "before the call to aeva_onposting(), meaning everyone will be able to view embeds, but only for *your* posted links." is exactly what I need.

Ideally I would like to be able to have the bbc permission based so I could add video, photos, etc. and no one else could. I see there's a mod that does that but it hasn't been updated in a long time.

Thanks for your help!

I'm running 1.1.9 by the way.
Title: Re: YouTube BBCode v2.5.1
Post by: Nao 尚 on July 06, 2009, 03:41:25 AM
Quote from: dotcomguy on July 06, 2009, 12:46:18 AM
I'm not very good with coding; could you tell me where in the subs.php I should put that? The first html option wouldn't work since others would be able to add videos too. I'm not the admin but the global moderator so I think the code $user_info['id'] == your_user_id would work
Yes, it would work... As long as you replace your_user_id with your id, of course ;)

    if ($user_info['id'] == 1)

is equivalent to if ($user_info['is_admin']) (if you only have one admin, of course.)

If I remember correctly, the code for the entire moderator family would be if ($user_info['is_mod'])

Quoteand the last part you said "before the call to aeva_onposting(), meaning everyone will be able to view embeds, but only for *your* posted links." is exactly what I need.
Then that's it. :)

QuoteIdeally I would like to be able to have the bbc permission based so I could add video, photos, etc. and no one else could. I see there's a mod that does that but it hasn't been updated in a long time.
I don't think that mod would help much.
So, as I said -- search for the call to aeva_onposting() in Subs.php (after you installed Aeva, of course), and add that line before it.

QuoteI'm running 1.1.9 by the way.
It should be behaving the same way as in SMF2.
Title: Re: YouTube BBCode v2.5.1
Post by: dotcomguy on July 08, 2009, 05:15:35 AM
Do you mean the sources/Subs-Aeva.php file to add that code? I tried searching in sources/Subs.php and couldn't find aeva_onposting() but did find it in Subs-Aeva.php.

function aeva_onposting($input)
{
   global $modSettings, $context, $sites, $sourcedir;

   // Exit if all three are disabled:
   // - Lookups (retrieve final URL, check whether embeds are allowed, etc.)
   // - Fix embed HTML (when n00bs try to post the full embed code rather than just the URL)
   if (empty($modSettings['aeva_fix_html']) && empty($modSettings['aeva_lookups']))
      return $input;

   $array = array(
      // bbc => retain
      'code' => true,
      'html' => true,
      'php' => true,
      'noembed' => true,
   );

So I would add the code...

$user_info['id'] == username

Somewhere in this part of the code in the Subs-Aeva.php then? I'm sorry for all the questions, like I said I'm not good with coding. Thanks.
Title: Re: YouTube BBCode v2.5.1
Post by: Nao 尚 on July 08, 2009, 06:05:16 AM
Sorry, meant Post.php. You have to do that twice:

Search for
global $sourcedir;
@include_once($sourcedir . '/Subs-Aeva.php');
if (function_exists('aeva_onposting'))
$_POST['message'] = aeva_onposting($_POST['message']);
}


Replace with
global $sourcedir, $user_info;
@include_once($sourcedir . '/Subs-Aeva.php');
if (function_exists('aeva_onposting') && $user_info['is_mod'])
$_POST['message'] = aeva_onposting($_POST['message']);
}


I would recommend leaving the $user_info out from the "global" line on the first occurrence though, as it's already globaled and I'm not sure it's not going to "forget" its settings once it's declared again. I don't think so, though, but if you're having trouble, remove the ", $user_info".
Title: Re: YouTube BBCode v2.5.1
Post by: gregh on July 17, 2009, 12:22:01 PM
I just installed this into a clean 2.0 RC1-2, it says it installed fine, but the button doesn't appear and the gif files wasn't copied over. I am using the default theme.
Title: Re: YouTube BBCode v2.5.1
Post by: Rostam on July 17, 2009, 06:56:03 PM
I tried to upload and install it on RC1.2 and it didnt work. the test failed. I hope you provide a new version for SMF 2.0 RC1.2, TIA
Title: Re: YouTube BBCode v2.5.1
Post by: gregh on July 19, 2009, 12:24:20 PM
any tips on getting this running onto SMF 2.0 RC1.2?? The youtube.gif is there in the correct folder, but I'm not what else I need to manually do to get this running?

Cheers,

Greg
Title: Re: YouTube BBCode v2.5.1
Post by: Nao 尚 on August 06, 2009, 10:34:51 AM
Runic transferred the mod's ownership to me.
I warned him that I would end up turning it into an "Aeva Lite for YouTube" but that didn't seem to bother him, so that's probably what I'll do in the near future ;)
Title: Re: YouTube BBCode v2.5.1
Post by: Teerapat on October 22, 2009, 07:59:47 AM
This is translation to thai and thai-utf8

$txt['youtube'] = 'ใส่ยูทูบ';
$txt['youtube_invalid'] = '#YouTube Link ไม่ถูกต้อง!#';
Title: Re: YouTube BBCode v2.5.1
Post by: Nao 尚 on October 22, 2009, 08:31:06 AM
Shh!! Don't bump the topic! Or people will notice I'm not updating this to Aeva Lite like I promised ;)
Title: Re: YouTube BBCode v2.5.1
Post by: Teerapat on October 22, 2009, 09:43:24 AM
Quote from: Nao/Gilles on October 22, 2009, 08:31:06 AM
Shh!! Don't bump the topic! Or people will notice I'm not updating this to Aeva Lite like I promised ;)

:) Thank you. :)
Title: Re: YouTube BBCode v2.5.1
Post by: Guardian ekiM on November 10, 2009, 02:08:01 PM
I have my YouTube code installed in my forums on my website.
The YouTube code is working with [youtube][/youtube]; however, the button isn't showing up. I placed the youtube.gif file in my theme/images/bbc for the theme I have running, but I'm still not seeing the YouTube button.

Please advise.
Title: Re: YouTube BBCode v2.5.1
Post by: Nao 尚 on November 10, 2009, 05:18:16 PM
Right click on the place where the button is supposed to show up, and copy the URL... Then upload the file so that it appears at this place ;)
Title: Re: YouTube BBCode v2.5.1
Post by: Guardian ekiM on November 12, 2009, 02:10:10 PM
Quote from: Nao/Gilles on November 10, 2009, 05:18:16 PM
Right click on the place where the button is supposed to show up, and copy the URL... Then upload the file so that it appears at this place ;)

I did what you said. The youtube.gif is in the same folder, but it's still not showing up as a bbcode button.

Quote from: karlbenson on September 29, 2007, 09:48:36 PM
No YouTube Button whatsoever

You need to perform a manual edits listed by the mod (listed under Manual Edits)

Where do I find this and how do I do this!?
Title: Re: YouTube BBCode v2.5.1
Post by: Nao 尚 on November 12, 2009, 02:53:49 PM
Please attach a zipped HTML copy of your post page.
Title: Re: YouTube BBCode v2.5.1
Post by: Guardian ekiM on November 12, 2009, 03:07:44 PM
My post page? What do you mean?



I looked in the theme and found no Post page; however, I did find a Post.template.php in the default theme.

See Attached.

Title: Re: YouTube BBCode v2.5.1
Post by: Nao 尚 on November 12, 2009, 03:14:46 PM
The page where you're supposed to see your button.
Title: Re: YouTube BBCode v2.5.1
Post by: Guardian ekiM on November 12, 2009, 03:17:17 PM
Edited my previous post and accidentally attached it twice...
Title: Re: YouTube BBCode v2.5.1
Post by: Nao 尚 on November 12, 2009, 05:21:17 PM
I'm asking for the page in context, not for the template... I need to see your URLs within the file...
Title: Re: YouTube BBCode v2.5.1
Post by: Guardian ekiM on November 12, 2009, 05:52:13 PM
If you're talking about my website Forums, it's located at:
http://dnxgames.com/forums

Also, I've noticed the YouTube button isn't working with the core theme for 2.0 RC2 either as shown here

http://test.rmxd.net/forums_smf
Title: Re: YouTube BBCode v2.5.1
Post by: Nao 尚 on November 12, 2009, 06:44:25 PM
RC2 I don't know, I haven't been playing with this mod ever since it was transferred to me. I'm trying to figure out whether I should turn it into an Aeva Lite (basically, Aeva + YouTube only, no sitelist), or Aeva Lite (as described) + the YouTube button. I don't like adding buttons for simply embedding an URL... Plus, it would conflict with Aeva Media (the upcoming merging of Aeva and SMG, which will allow Aeva to benefit from many new features inherited from SMG.)

As for your forum -- again, I need a copy of your file. I don't want to open an account just to test... Or send me an account that can post on your forum.
Title: Re: YouTube BBCode v2.5.1
Post by: Guardian ekiM on November 12, 2009, 07:15:34 PM
Quote from: Nao/Gilles on November 12, 2009, 06:44:25 PM
As for your forum -- again, I need a copy of your file. I don't want to open an account just to test... Or send me an account that can post on your forum.

As for the file that you keep mentioning, I have NO IDEA what the heck you're talking about. Meanwhile, I'll send you account information via PM for each site so you can check it out.
Title: Re: YouTube BBCode v2.5.1
Post by: Guardian ekiM on November 12, 2009, 07:47:32 PM
I think I'll just download Aeva package instead since it supports 2.0 RC2.

Thanks anyway...
Title: Re: YouTube BBCode v2.5.1
Post by: Nao 尚 on November 13, 2009, 05:24:37 AM
I'm all for it. I see no reason to use a mod that only supports YouTube. Plus, with Aeva you're getting many more features.
Title: Re: YouTube BBCode v2.5.1
Post by: Guardian ekiM on November 13, 2009, 12:35:50 PM
Aeva ROCKS!!! Awesome mod, mate!
Title: Re: YouTube BBCode v2.5.1
Post by: Nao 尚 on November 13, 2009, 12:47:47 PM
Eheh, thanks.
May I ask why you tried to install this mod before going the Aeva road?
Title: Re: YouTube BBCode v2.5.1
Post by: Nao 尚 on November 14, 2009, 04:57:13 PM
Err... What's that?
Title: Re: YouTube BBCode v2.5.1
Post by: leftezi on November 15, 2009, 01:21:09 AM
Quote from: Inter on November 14, 2009, 03:03:01 PM
8)

Thanks.   :)
Works fine with SMF 2.0 RC2 and Curve theme. Even the button is installed automatically.
Title: Re: YouTube BBCode v2.5.1
Post by: Nao 尚 on November 15, 2009, 05:55:33 AM
Why do you need a button in the first place?

Does anyone read my posts?!
Title: Re: YouTube BBCode v2.5.1
Post by: leftezi on November 15, 2009, 08:34:25 AM
You don't have to explain to inexperienced users what to do to embed a youtube video in their messages. You just say "push the button and paste the code".
Title: Re: YouTube BBCode v2.5.1
Post by: Nao 尚 on November 15, 2009, 09:52:44 AM
You just say "Paste the code" and that's all...
The button is pretty useless now with Aeva being around for quite some time.
Title: Re: YouTube BBCode v2.5.1
Post by: Yahmez on November 24, 2009, 11:01:33 PM
Hey Nao... Thanks for this mod, and the Media Gallery too. It's one of my favorite. It's cool that you are merging the Avea mod W/ SMG... I'm looking forward to it.

I have one question for you though. I am looking at removing the YouTube BBC mod and install AVEA, and I know when I do I will be left with hundreds or thousands of posts with non functional youtube links in them. Is there a simple way to remove the [youtube] codes from all of the posts?

I saw your conversion script and looked at it, can I edit it to simply delete the bbc without replacing anything? I'm no programmer but I think I might be able to figure that out. Anyways thanks again.
Title: Re: YouTube BBCode v2.5.1
Post by: Nao 尚 on November 25, 2009, 12:45:27 PM
Aeva supposedly successfully ignores youtube tags when installed, IIRC. (If I'm wrong, please tell me because I've never looked into it.)
Also, as you mentioned, there's Karl's conversion script (aeva_convert_old_bbcodes.php)
Just use it :) You don't need to rename anything, it deals with all tag names.
Title: Re: YouTube BBCode v2.5.1
Post by: Yahmez on November 27, 2009, 11:59:57 PM
Thanks for the reply!
I used Karl's script and it worked perfectly. Avea is working well too. Kudos.
Title: Re: YouTube BBCode v2.5.1
Post by: gm112 on December 15, 2009, 04:50:59 AM
Minimal changes required to get this thing running on RC2 :P.


1) Copy install-2.0.rc1.xml, paste it.
2) Rename the copied version install-2.0.rc2.xml.
3) In install-2.0.rc2.xml, go to the very bottom. Find:
  <file name="$sourcedir/Subs-Editor.php">
<operation>
<search position="after"><![CDATA[ 'flash' => array('code' => 'flash', 'before' => '[flash=200,200]', 'after' => '[/flash]', 'description' => $txt['flash']),]]></search>
<add><![CDATA[
'youtube' => array('code' => 'youtube', 'before' => '[youtube]', 'after' => '[/youtube]', 'description' => $txt['youtube']),
]]></add>
</operation>
</file>


4) Replace that code with:
<file name="$sourcedir/Subs-Editor.php">
<operation>
<search position="after"><![CDATA[
array(
'image' => 'flash',
'code' => 'flash',
'before' => '[flash=200,200]',
'after' => '[/flash]',
'description' => $txt['flash']
),
]]></search>
<add><![CDATA[
array(
'image' => 'youtube',
'code' => 'youtube',
'before' => '[youtube]',
'after' => '[/youtube]',
'description' => $txt['youtube']
),
]]></add>
</operation>
</file>


5) Save the file, package it as a zip, and upload. Enjoy! =)

Someone may have already upped a fix, and that's fine :P. I just wanted to contribute to the community a bit.. (should release some of his own creations as mods..)
Title: Re: YouTube BBCode v2.5.1
Post by: Nao 尚 on December 15, 2009, 06:53:13 AM
I would release a RC2 version, but I'm not sure it's worth spending time on it when I have plans to rewrite the mod to use a minimal Aeva engine...
Title: Re: YouTube BBCode v2.5.1
Post by: Arantor on December 15, 2009, 07:01:04 AM
People do like using [youtube] at times. Can come in handy on some types of forum where they don't explicitly want auto linkage.
Title: Re: YouTube BBCode v2.5.1
Post by: Nao 尚 on December 15, 2009, 07:13:59 AM
I don't know... Probably needs being discussed.
I think it's better to not require any tag around the YT urls. Feels more natural to me.
Title: Re: YouTube BBCode v2.5.1
Post by: Arantor on December 15, 2009, 07:16:02 AM
Then you would need to think about a converter for all the folks who've used this one (me included)
Title: Re: YouTube BBCode v2.5.1
Post by: Nao 尚 on December 15, 2009, 09:08:47 AM
There's already a converter script... It was written by Karl. It's both in the YTBBC page and in the Aeva package, I believe. I may include it in the admin area at some point. No time to deal with all of this for now, though.
Title: Re: YouTube BBCode v2.5.1
Post by: backend on December 16, 2009, 11:49:10 AM
This mod is no longer working, not sure why? I would assume it has to do with the SMF update to 1.1.2.

Can anyone help on fixing this please? I just don't see any video, it is blank. I cant uninstall it either.

thank you
Title: Re: YouTube BBCode v2.5.1
Post by: kai920 on December 16, 2009, 12:33:02 PM
Quote from: backend on December 16, 2009, 11:49:10 AM
This mod is no longer working, not sure why? I would assume it has to do with the SMF update to 1.1.2.


I hope you mean 1.1.11!
Title: Re: YouTube BBCode v2.5.1
Post by: backend on December 17, 2009, 09:22:26 PM
Quote from: kai920 on December 16, 2009, 12:33:02 PM
Quote from: backend on December 16, 2009, 11:49:10 AM
This mod is no longer working, not sure why? I would assume it has to do with the SMF update to 1.1.2.

Yes sorry that is what I meant :)

What do you think is the better way to go?

1-Remove this mod and reinstall it again? (I hope this won't create any problems for all the Youtube clips that have already been posted)

or


2-Try to apply the manual edits for the new SMF version?



Thanks a lot


I hope you mean 1.1.11!
Title: Re: YouTube BBCode v2.5.1
Post by: backend on December 17, 2009, 10:34:40 PM
I think I got to the bottom of this:

When the video has a size specified (by default, the youtube bbc, gives it a width and length) the video doesn't show.

So I have to modify the following line in post.template.php

'youtube' => array('code' => 'youtube', 'before' => '[youtube=425,350]', 'after' => '[/youtube]', '

to remove the sizes.


But the problem is, what about all the other hundreds of videos that are already posted with a size specified??? how can I change those?

my solution is merely a temporary work-around. I need this to work like before, where clicking the 'Youtube' BBC would give you [youtube=425,350][/youtube] and you would just insert a youtube video ID in it.

Not sure why this stopped working all of a sudden????
Title: Re: YouTube BBCode v2.5.1
Post by: Nao 尚 on December 18, 2009, 07:02:20 AM
The easy solution...?

Uninstall YTBBC
Install Aeva Media (look into the last page of the Aeva topic)
Download Aeva 7.0.706 (i.e. the older version), extract the converter script, run it.
You should be good.
Title: Re: YouTube BBCode v2.5.1
Post by: Arantor on December 18, 2009, 07:33:12 AM
/me thinks the really easy solution would be a single SQL query on the database, but maybe he's a bit warped on the whole "easy/hard" thing...
Title: Re: YouTube BBCode v2.5.1
Post by: Nao 尚 on December 18, 2009, 09:46:01 AM
Well, of course but what about very large forums?

Plus, it'd have to be a regex query... Not too comfortable with these (on SQL I mean).

Or, if the size is always the same -->

UPDATE smf_messages SET body=REPLACE(REPLACE(REPLACE(body, '[youtube]', ''), '[youtube=425,350]', ''), '[/youtube]', '') WHERE body LIKE '%youtube%';

I guess that would work...? And it could be fast, too. (I'm not sure whether it'd be faster without the WHERE clause.)
Title: Re: YouTube BBCode v2.5.1
Post by: Arantor on December 18, 2009, 09:48:24 AM
Ah, I was talking about [youtube=425,350] => [youtube] only, my bad, which is a single replace op.
Title: Re: YouTube BBCode v2.5.1
Post by: Nao 尚 on December 18, 2009, 12:04:50 PM
Oh... Right.

Then yeah, definitely, it'd be faster that way.

UPDATE smf_messages SET body=REPLACE(body, '[youtube=425,350]', '[youtube]');

(At this point, removing the WHERE is definitely faster, I guess.)
Title: Re: YouTube BBCode v2.5.1
Post by: Afro on December 27, 2009, 04:42:15 AM
DOES THIS WORK FOR 2.0 RC2 NOW
Title: Re: YouTube BBCode v2.5.1
Post by: Nao 尚 on December 27, 2009, 05:05:04 AM
YES, WITH A FEW CHANGES!
IF YOU DON'T WANT TO APPLY THEM, JUST USE AEVA! :P
Title: Re: YouTube BBCode v2.5.1
Post by: Afro on December 27, 2009, 08:11:36 AM
Quote from: Naolington on December 27, 2009, 05:05:04 AM
YES, WITH A FEW CHANGES!
IF YOU DON'T WANT TO APPLY THEM, JUST USE AEVA! :P

I USE AEVA but it would be good to have YOUTUBE bbc logo on the post page.

what changes needs  to be done ?
Title: Re: YouTube BBCode v2.5.1
Post by: Nao 尚 on December 27, 2009, 05:55:34 PM
Just read the topic.

And really, YT logo? It's soooo 2000's ;D
Title: Re: YouTube BBCode v2.5.1
Post by: Oskarlover on December 28, 2009, 08:40:55 AM
i had convert my old php fusion forum to SMF and i have lot of
and i really need to make videos work again, so can anyone upgrade to RC 2.0 2.0
Title: Re: YouTube BBCode v2.5.1
Post by: Arantor on December 28, 2009, 08:42:16 AM
As Nao said, look through the thread, I'm sure it's documented.
Title: Re: YouTube BBCode v2.5.1
Post by: Nao 尚 on December 28, 2009, 10:10:18 AM
Quote from: Oskarlover on December 28, 2009, 08:40:55 AM
i had convert my old php fusion forum to SMF and i have lot of
and i really need to make videos work again, so can anyone upgrade to RC 2.0 2.0
There's a converter script in Aeva and Aeva Media.
Title: Re: YouTube BBCode v2.5.1
Post by: Oskarlover on December 29, 2009, 05:31:33 AM
Quote from: Naolington on December 28, 2009, 10:10:18 AM
Quote from: Oskarlover on December 28, 2009, 08:40:55 AM
i had convert my old php fusion forum to SMF and i have lot of
and i really need to make videos work again, so can anyone upgrade to RC 2.0 2.0
There's a converter script in Aeva and Aeva Media.

i dint see it, can u tell me where is it?
Title: Re: YouTube BBCode v2.5.1
Post by: Nao 尚 on December 29, 2009, 06:29:20 AM
In the package zips... aeva_convert_old_bbc.php or something.
Title: Re: YouTube BBCode v2.5.1
Post by: dcmouser on December 31, 2009, 06:09:15 AM
great mod -- thank you for sharing!
Title: Re: YouTube BBCode v2.5.1
Post by: MH-MINI on January 03, 2010, 10:22:53 PM
Hi, when I'm installing this I get the following. I can still install it but the youtube BBCode button doesn't appear. But the actual bbcode works. What's causing this error?

2.     Execute Modification     ./Sources/Subs-Editor.php     Test failed
      1.    Replace    ./Sources/Subs-Editor.php    Test failed
Title: Re: YouTube BBCode v2.5.1
Post by: Arantor on January 04, 2010, 02:39:59 AM
Because the bbcode hasn't been updated for 2.0 RC2.
Title: Re: YouTube BBCode v2.5.1
Post by: leftezi on January 04, 2010, 10:35:52 PM
QuoteIn the package zips... aeva_convert_old_bbc.php or something.

I have used this "convert_old_bbc" script in a Greek forum and all Greek letters that were in posts with youtube videos are turned to question marks (?????????? ???????).
The procedure cannot be undone (undo).
Is there a solution for a such case?
Title: Re: YouTube BBCode v2.5.1
Post by: detoam on January 06, 2010, 08:16:35 AM
Quote from: MH-MINI on January 03, 2010, 10:22:53 PM
Hi, when I'm installing this I get the following. I can still install it but the youtube BBCode button doesn't appear. But the actual bbcode works. What's causing this error?

2.     Execute Modification     ./Sources/Subs-Editor.php     Test failed
      1.    Replace    ./Sources/Subs-Editor.php    Test failed

I have had the same issue. I've looked in the file to replace the code myself, but it looks a bit different. I think I know how to do, but I am worried I'll screw things up again. Can you tell me what would be the replacement code for the new 2.0 version?
Title: Re: YouTube BBCode v2.5.1
Post by: Nao 尚 on January 06, 2010, 08:39:53 AM
@leftezi> I don't know... I never used that script, really. You may want to try this. First of all, reinstall a backup. (You *did* back up your messages table before you ran the script, didn't you?) Then modify this in the script file:

$result['body'] = addslashes($result['body']);

To:

$result['body'] = mysql_real_escape_string($result['body']);

It may do the trick, as it's the same function, but it uses the character set in your database.

@detoam> http://www.simplemachines.org/community/index.php?topic=197280.msg2405986#msg2405986
Title: Re: YouTube BBCode v2.5.1
Post by: detoam on January 06, 2010, 09:19:23 AM
Thank You.
Title: Re: YouTube BBCode v2.5.1
Post by: leftezi on January 06, 2010, 10:16:49 AM
Thanks, Naolington.  :)
This was the test-forum in my home server. I have restored the database and then i used the SQL command that you wrote in post #334 and worked very good. All
inserts are removed successfully.

But if the code above (post #351) is right then this should be included in the script. It's very important for forums with other languages. I have a Greek UTF-8 forum and the Collation in the database is UTF8 general-ci.

I read in this topic here that you will not more develop in the future the YouTubeBBCode.
Is good that you give the solutions to change to Aeva but i have to say that maybe there are more people like me who don't want to install a such "heavy" mod with all this functions and options that are in Aeva. Some times people prefer light solutions with no major changes in the SMF files and database.

You wrote something about a Aeva-light version that you have in mind. Have you decided about this?

Right now i have installed the Aeva Media and testing this in my home server. It's really a great mod with many -  many options and functions, and need some research before the real installation. Maybe i will finally install this in my forum, but i still thinking that a light-version would be useful for many people.
Just my opinion.   :)

Title: Re: YouTube BBCode v2.5.1
Post by: Nao 尚 on January 06, 2010, 12:02:41 PM
Quote from: leftezi on January 06, 2010, 10:16:49 AM
Thanks, Naolington.  :)
This was the test-forum in my home server. I have restored the database and then i used the SQL command that you wrote in post #334 and worked very good. All
inserts are removed successfully.
Good.

QuoteBut if the code above (post #351) is right then this should be included in the script. It's very important for forums with other languages. I have a Greek UTF-8 forum and the Collation in the database is UTF8 general-ci.
Okay, you said it's a test server, so can you test my change? As it's precisely untested...
- Backup your current DB
- Reinstall your earlier backup (with no youtube changes)
- Apply the change to the script
- Run the script
- Check whether messages were converted correctly this time
- If yes, leave as it. If not, reinstall last good backup.
In any case, please keep me posted.

QuoteI read in this topic here that you will not more develop in the future the YouTubeBBCode.
Ah... Actually, I never worked on YTBBC at all.
Karl Benson wrote the mod.
When he left the SMF project over a year ago, he transmitted the Aeva project to me (which I rewrote a great deal), and the YTBBC project to Runic, who didn't do anything with it. After a while, Runic came to me and asked if I wanted to get the project. I said yes because it seemed logical, as YTBBC is like a subset of Aeva.
Unfortunately I never got around to accepting the idea of adding a YouTube BBC button to Aeva and never updated the YTBBC package in the end. It's still the same old version that Karl wrote back in 2008, with absolutely no changes...

QuoteIs good that you give the solutions to change to Aeva but i have to say that maybe there are more people like me who don't want to install a such "heavy" mod with all this functions and options that are in Aeva.
You know you can disable them all?

QuoteYou wrote something about a Aeva-light version that you have in mind. Have you decided about this?
No.

QuoteRight now i have installed the Aeva Media and testing this in my home server. It's really a great mod with many -  many options and functions, and need some research before the real installation. Maybe i will finally install this in my forum, but i still thinking that a light-version would be useful for many people.
I understand the request, and I myself am very much for small projects etc. But let's face it -- in real life, when I need a 'small' feature for my site, I just code it myself. Whenever I install a 'keeper', it's always a big mod. And I always install them manually, never to update them again... I know the strange feeling of seeing a mod being regularly updated when you can't afford to install it every week, too.
But I'm a man of contradiction.
Just be happy that I'm not charging for these stupid things I spend most of my time working on. ;)
Title: Re: YouTube BBCode v2.5.1
Post by: leftezi on January 06, 2010, 01:05:39 PM
Just tested.
The fix did not work. All Greek letters turned to question marks again like before.  :-\
This happens only in posts with
code

Is good that the SQL command worked. This was my first time that i gave a such command in MySQL - PhpMyAdmin and i am proud that its worked!  :D :D

You answered "NO" in my question:
QuoteYou wrote something about a Aeva-light version that you have in mind. Have you decided about this?
You mean you have not decided now or that you never have wrote something about a Aeva-light version (i am not that sure about the second part because i don't remember where i have read this).

Yes. The hand made job is good for experienced user who knows how to handle the code. I am a little bit experienced with the use but have not even the basic knowledge about Php code.  :-[

Thanks for the explanation with the story of this mods. Its good to have the whole picture about them.  ;)

I have attached a picture with a "question marked" post.
Title: Re: YouTube BBCode v2.5.1
Post by: Nao 尚 on January 06, 2010, 03:57:01 PM
Quote from: leftezi on January 06, 2010, 01:05:39 PM
Just tested.
The fix did not work. All Greek letters turned to question marks again like before.  :-\
Arghhh... :(

QuoteThis happens only in posts with
code
Question: is your forum charset in UTF8, or in ISO-8859-something? (Or even something else?)
I've reworked the file to retrieve the charset, and apply the UTF treatment to the only preg_replace in the code in case it's found.
Could you try it again, by any chance? I've attached it to the post. (It's only useful if you ARE in UTF mode, of course.)

QuoteIs good that the SQL command worked. This was my first time that i gave a such command in MySQL - PhpMyAdmin and i am proud that its worked!  :D :D
Lol, it's always a milestone... ;)

QuoteYou mean you have not decided now or that you never have wrote something about a Aeva-light version (i am not that sure about the second part because i don't remember where i have read this).
I mean it's not in my priority list for now. Aeva Media is not even available officially...
Title: Re: YouTube BBCode v2.5.1
Post by: leftezi on January 06, 2010, 05:35:58 PM
As i already wrote:
QuoteI have a Greek UTF-8 forum and the Collation in the database is UTF8 general-ci.

I have tested the new file. No success.  :(
The same question marks again.
Title: Re: YouTube BBCode v2.5.1
Post by: Nao 尚 on January 06, 2010, 06:08:21 PM
Oh, well........... :( :( :(

I guess I wasted a few hours of my life, as could be expected.

I'll PM Karl to ask him what's happening.
Title: Re: YouTube BBCode v2.5.1
Post by: leftezi on January 06, 2010, 06:19:24 PM
Not really necessary (for me) so long the MySQL command works, but still could be helpful for more unexperienced users.
Title: Re: YouTube BBCode v2.5.1
Post by: Nao 尚 on January 06, 2010, 06:23:08 PM
I'm just worried that I've never heard about this issue before not because it didn't happen, but because people didn't notice because they didn't have many posts with the youtube tag...
Title: Re: YouTube BBCode v2.5.1
Post by: akbora on January 06, 2010, 06:28:25 PM
Nao, old convert bb code converts all video  with you tube code to aeva codes?
Title: Re: YouTube BBCode v2.5.1
Post by: Nao 尚 on January 06, 2010, 06:37:25 PM
Well yes, and it always has...

There are no 'Aeva codes'. It's just the plain simple URL to the video page. Aeva turns that into a video. (Although if you want lookup features, you'll need to reedit all posts with a YT video.)
Title: Re: YouTube BBCode v2.5.1
Post by: akbora on January 06, 2010, 06:54:50 PM
You are big Nao really, because I am very very disappointed, over hundreds I have YT codes before aeva mod. Thanks a lot
Title: Re: YouTube BBCode v2.5.1
Post by: leftezi on January 06, 2010, 07:05:33 PM
QuoteI'm just worried that I've never heard about this issue before not because it didn't happen, but because people didn't notice because they didn't have many posts with the youtube tag...

Or they had no Utf8 posts other than English with YouTube videos.
Or they have edit the posts manually (if they were few)
Or they used a MySQL command to remove the [youtube] codes.
:-\

I need a little help:
I can not understand what this "lookup features" are exactly.
If someone can explain that with few words, or if there is a related link.  :)
Title: Re: YouTube BBCode v2.5.1
Post by: Nao 尚 on January 07, 2010, 03:34:06 AM
Lookup = AM will download the video page from the remote site when it's being embedded for the first time, and retrieve some information from it:
- Video title (to be shown below the video)
- In some cases, will get the actual video URL, meaning it's necessary for embedding videos from said site.
Title: Re: YouTube BBCode v2.5.1
Post by: watchman on January 13, 2010, 06:27:26 PM
i am using the default theme. do i need copy the file by ftp to install and that's it? what file exactly should it go in? i have version 1.1.11
thx
Title: Re: YouTube BBCode v2.5.1
Post by: bostonb on January 19, 2010, 07:02:36 PM
Quote from: Arantor on December 15, 2009, 07:01:04 AM
People do like using [youtube] at times. Can come in handy on some types of forum where they don't explicitly want auto linkage.

I find that that is all I want for my forums, just the simple ability to use [youtube] tags for youtube videos, nothing else.... anything else added into a mod possibly complicates things and makes me worried for future versions

it is too bad that something so universal on the net such as [youtube] tags for a forum couldn't be built into SMF automatically so that there would be no stress when upgrading
Title: Re: YouTube BBCode v2.5.1
Post by: Arantor on January 19, 2010, 07:04:13 PM
The thing is, it's far from universally desired, and in any case has required more maintenance than a core feature (not to mention that no SMF core feature is tied to any third party service, with the exception of Paid Subs / PayPal)

This mod will give you the [youtube] facility.
Title: Re: YouTube BBCode v2.5.1
Post by: bostonb on January 19, 2010, 07:20:43 PM
Quote from: Arantor on January 19, 2010, 07:04:13 PM
The thing is, it's far from universally desired, and in any case has required more maintenance than a core feature (not to mention that no SMF core feature is tied to any third party service, with the exception of Paid Subs / PayPal)

This mod will give you the [youtube] facility.

ok thanks Arantor, I was just reading through the thread and it got me scared because I don't want to go with the aeva mod and just need a simple [youtube] functionality just like most forums that use vbulletin has, I don't want all the extras, but once I start using this mod I hope it will stay relevant for all future upgrades of smf, as I can't afford any problems with my large forum
Title: Re: YouTube BBCode v2.5.1
Post by: leftezi on January 19, 2010, 07:26:37 PM
Same for me. I like simplicity.
Title: Re: YouTube BBCode v2.5.1
Post by: Arantor on January 19, 2010, 07:27:56 PM
Personally I think there's nothing simpler than just copying the basic URL and leaving it at that and having Aeva automatically turn that into the YT video, but hey, whatever works.
Title: Re: YouTube BBCode v2.5.1
Post by: leftezi on January 19, 2010, 07:30:29 PM
I mean i prefer a light mod without heavy changes and database inserts.
Title: Re: YouTube BBCode v2.5.1
Post by: bostonb on January 19, 2010, 07:33:20 PM
Quote from: Arantor on January 19, 2010, 07:27:56 PM
Personally I think there's nothing simpler than just copying the basic URL and leaving it at that and having Aeva automatically turn that into the YT video, but hey, whatever works.

you underestimate the typical forum user of today, most have no problems putting youtube tags around a video they want displayed, just as the same person might want to just post the link to the video sometimes as well


I agree with leftezi too, I only use mods that are very simple, as I need my forum to be easily upgraded and reliable for years to come
Title: Re: YouTube BBCode v2.5.1
Post by: Arantor on January 19, 2010, 07:35:40 PM
/me IS a typical forum user of today.

Actually, [youtube] isn't as simple as it can get for some people. I know plenty of folks who have trouble with the [img] tag for example.
Title: Re: YouTube BBCode v2.5.1
Post by: Jean Prado on January 19, 2010, 07:36:59 PM
Tested and Approved!
Title: Re: YouTube BBCode v2.5.1
Post by: Nao 尚 on January 20, 2010, 02:22:00 AM
Quote from: Arantor on January 19, 2010, 07:35:40 PM
/me IS a typical forum user of today.

Actually, [youtube] isn't as simple as it can get for some people. I know plenty of folks who have trouble with the [img] tag for example.
Holy +1!

@Piteel> Did you test Aeva?

@leftezi> Aeva doesn't do database changes.

@bostonb> Aeva is installed on over 6,000 forums and runs just fine for everyone, including huge forums etc.

LOL, I'm starting to love how I have to advertise a mod written with the exact same codebase ;)

PS: if you want a *small footprint* on your forum, what you need is Aeva 7.x, not Aeva Media. Both have the same functionality in terms of YouTube embedding.
Title: Re: YouTube BBCode v2.5.1
Post by: Lamarck on January 22, 2010, 07:20:26 PM
I also wanted just a bbcode tag,I hope someone make a youtube bbcode tag MOD in the future...
Title: Re: YouTube BBCode v2.5.1
Post by: Arantor on January 22, 2010, 07:27:30 PM
This thread is about such a bbcode tag, but seriously Aeva is even easier - how often have you seen users just copy/paste the URL to a Youtube video?
Title: Re: YouTube BBCode v2.5.1
Post by: Nao 尚 on January 22, 2010, 07:33:51 PM
Lamarck, you can use Aeva and use [youtube] tags in it if you want. I don't think they'll show up. They'll be useless but they'll make you feel good. ::)

Arantor, basically YTBBC was the 'original' mod, and AEVAC was its natural evolution for Karl. I think he kept supporting YTBBC because at the time, there were many different mods for different websites, but now they've all disappeared because AEVAC/Aeva is simply easier to use. At this point it's not even logical to keep the YTBBC mod around... I may very well pull the plug at some point.
Title: Re: YouTube BBCode v2.5.1
Post by: Arantor on January 22, 2010, 07:39:38 PM
Nao: Sure, the line of progression makes sense. I'm just trying to help advocate using Aeva for the average user.
Title: Re: YouTube BBCode v2.5.1
Post by: Lamarck on January 23, 2010, 11:48:26 AM
Nao,thanks for your "ironic" post,but I (like other users) don't want to install a heavy mod such as aeva media just to use youtube links.It's as simple as this,nothing more.
I'm not saying that aeva media is bad (it's a great mod),I only think that it doesn't fit what I (and others) need.
Because of that,I said that I hope someone else make a youtube mod in the future,nothing more.

So I don't need laughs,ironic comments,etc I'm just writing my point of view and expressing my needs as a simply user.

Good luck with your mod and thanks.
Title: Re: YouTube BBCode v2.5.1
Post by: Arantor on January 23, 2010, 11:55:42 AM
Actually, all the time this mod exists, no other one will - duplicates are not permitted on the mod site, generally.
Title: Re: YouTube BBCode v2.5.1
Post by: Nao 尚 on January 23, 2010, 03:07:15 PM
Lamarck, you must be such a funny guy to live with, if you won't take a little irony.
Don't forget that Aeva 7.x is still available for download (and will remain so), for people who only want the auto-embedder features... And if you just want to embed YouTube videos, go to the admin area and disable everything but YouTube. It's as simple as that, and you can enable other sites on a per-case basis...
Title: Re: YouTube BBCode v2.5.1
Post by: bostonb on January 23, 2010, 08:38:51 PM
Quote from: Lamarck on January 23, 2010, 11:48:26 AM
Nao,thanks for your "ironic" post,but I (like other users) don't want to install a heavy mod such as aeva media just to use youtube links.It's as simple as this,nothing more.
I'm not saying that aeva media is bad (it's a great mod),I only think that it doesn't fit what I (and others) need.
Because of that,I said that I hope someone else make a youtube mod in the future,nothing more.

So I don't need laughs,ironic comments,etc I'm just writing my point of view and expressing my needs as a simply user.

Good luck with your mod and thanks.

I agree with Lamarck completely

I want the ability to use [youtube] embed and nothing else, and I also want the ability for users to just post an http link to the video and have it just show up as a link, not automatically embed

simple, clean, and basic

if a user doesn't know how to use the [youtube] tags, then that is fine, his or her video will just show up as a link, and the more experienced forum users will teach them or be the ones posting videos

there is a great need for this kind of basic mod, and I am not interested in using any mod that adds any complications to this basic concept
Title: Re: YouTube BBCode v2.5.1
Post by: Arantor on January 23, 2010, 09:17:32 PM
Except that for most users that's actually more work for them to edit the rest of the link out.
Title: Re: YouTube BBCode v2.5.1
Post by: Nao 尚 on January 24, 2010, 02:51:34 AM
Quote from: bostonb on January 23, 2010, 08:38:51 PM
I want the ability to use [youtube] embed and nothing else, and I also want the ability for users to just post an http link to the video and have it just show up as a link, not automatically embed
Users can post a link, too......
[noembed]Here's my link. It won't be embedded.[/noembed]
Or... [url]Here's my link. It won't be embedded.[/url] (Only if you check "don't embed in sentences".)

Quotesimple, clean, and basic
Simple, clean and basic..... Same here.

Quoteif a user doesn't know how to use the [youtube] tags, then that is fine, his or her video will just show up as a link, and the more experienced forum users will teach them or be the ones posting videos
The exact same thing can be done with Aeva, for much less work...

Quotethere is a great need for this kind of basic mod, and I am not interested in using any mod that adds any complications to this basic concept
Even if that mod enables you to just go and forget about it? (Because that's it -- even if YouTube breaks your links one day, they'll fix themselves automatically... YTBBC doesn't do that.)
Title: Re: YouTube BBCode v2.5.1
Post by: .brian on February 04, 2010, 02:56:54 PM
If anyone needs a simple solution...


array(
'tag' => 'youtube',
'before' => '<embed src="http://www.youtube.com/v/',
'after' => '&&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed>',
),


Start a new line on 997, paste this code and have your users only paste the Video ID. Sure it requires your users to have an IQ higher than 80 but at least you won't have any issues with URL's and the like.

Example:
[youtube]VIDEOID[/youtube]

Simple, basic, does the job.
Title: Re: YouTube BBCode v2.5.1
Post by: Nao 尚 on February 04, 2010, 03:42:04 PM
It has been posted several times already in the last couple of topic pages... ::)
Title: Re: YouTube BBCode v2.5.1
Post by: .brian on February 04, 2010, 04:11:22 PM
And here's me thinking I invented electricity...  ::)
Title: Re: YouTube BBCode v2.5.1
Post by: Nao 尚 on February 04, 2010, 04:26:57 PM
Sorry, it's my fault that the mod isn't updated anyway.
Title: Re: YouTube BBCode v2.5.1
Post by: Nao 尚 on February 05, 2010, 05:10:26 AM
Brian, I thought you were posting a workaround for RC2, not an actual basic replacement for the YT tag, lol... Anyway--

Need volunteers to test v2.6! Adds support for RC2.
Title: Re: YouTube BBCode v2.5.1
Post by: Massl on February 05, 2010, 09:21:22 AM
Many thank for this update  ;D

I have this error on rc 2  ;)
Title: Re: YouTube BBCode v2.5.1
Post by: Massl on February 05, 2010, 09:50:17 AM
I corrected the error in the package-info.xml and now is perfect !!!

Many thanks Nao  ;D

I attached the correct file  :)
Title: Re: YouTube BBCode v2.5.1
Post by: Nao 尚 on February 05, 2010, 10:03:26 AM
Forgot about package-info indeed. The file renaming was a last minute thing (due to the fact that 'rc1' doesn't reflect it's for rc2 as well.)

Well then I guess I'll release it today along with Aeva Media 1.0!
Title: Re: YouTube BBCode v2.5.1
Post by: Massl on February 05, 2010, 10:07:20 AM
Many thanks again Nao  ;)
Title: Re: YouTube BBCode v2.6
Post by: Nao 尚 on February 05, 2010, 10:21:17 AM
It's out!

2.6 - 5th February 2010
o Ownership given to Nao
o Updated readme and description
o Added French Language (translated by Nao)
o Added support for SMF 2.0 RC2 (eh, finally...?)
Title: Re: YouTube BBCode v2.6
Post by: Nier on February 06, 2010, 02:01:30 PM
Quote from: Nao on February 05, 2010, 10:21:17 AM
It's out!

2.6 - 5th February 2010
o Ownership given to Nao
o Updated readme and description
o Added French Language (translated by Nao)
o Added support for SMF 2.0 RC2 (eh, finally...?)

when i install, i get this:

./Sources/Subs-Editor.php Test mislukt (test failed)
  1. Voeg toe voor ./Sources/Subs-Editor.php Test mislukt (test failed)



Title: Re: YouTube BBCode v2.6
Post by: Nao 尚 on February 07, 2010, 03:39:48 AM
Yes, but does that 'test failed' show in RED?
If not, then it's safe...
Title: Re: YouTube BBCode v2.6
Post by: Nier on February 07, 2010, 04:01:10 AM
Quote from: Nao on February 07, 2010, 03:39:48 AM
Yes, but does that 'test failed' show in RED?
If not, then it's safe...

Yes its in red color.
Title: Re: YouTube BBCode v2.6
Post by: Nao 尚 on February 07, 2010, 06:16:24 AM
You should click the details button next to the failed portion, and tell me what code failed to install.
What version of SMF are you using?
Title: Re: YouTube BBCode v2.5.1
Post by: bostonb on February 07, 2010, 06:38:23 PM
Quote from: .brian on February 04, 2010, 02:56:54 PM
If anyone needs a simple solution...


array(
'tag' => 'youtube',
'before' => '<embed src="http://www.youtube.com/v/',
'after' => '&&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed>',
),


Start a new line on 997, paste this code and have your users only paste the Video ID. Sure it requires your users to have an IQ higher than 80 but at least you won't have any issues with URL's and the like.

Example:
[youtube]VIDEOID[/youtube]

Simple, basic, does the job.


sorry for the dumb question, but is the above all that is necessary to add youtube function to smf? what file do we modify at "line 997"? does this work on the latest version of smf?
Title: Re: YouTube BBCode v2.6
Post by: Nao 尚 on February 08, 2010, 02:49:38 AM
Yes it does, but you don't need it.
Title: Re: YouTube BBCode v2.6
Post by: Nier on February 08, 2010, 07:39:34 AM
Quote from: Nao on February 08, 2010, 02:49:38 AM
Yes it does, but you don't need it.

http://img341.imageshack.us/img341/8370/youtube1j.jpg

http://img9.imageshack.us/img9/5017/youtube2u.jpg
Title: Re: YouTube BBCode v2.6
Post by: Nao 尚 on February 08, 2010, 09:26:15 AM
1/ This is unrelated to your quote...

2/ You're trying to install v2.5, aren't you? On SMF2? Instead of v2.6? Does it really warrant a post to complain, when you could simply try the latest version?
Title: Re: YouTube BBCode v2.6
Post by: Nier on February 08, 2010, 11:07:30 AM
Quote from: Nao on February 08, 2010, 09:26:15 AM
1/ This is unrelated to your quote...

2/ You're trying to install v2.5, aren't you? On SMF2? Instead of v2.6? Does it really warrant a post to complain, when you could simply try the latest version?

Yes u were right, i installed the wrong one. Now i installed the good one: version 2.6

Now when i try in my post
it doesnt work.. also i upload the gif to my theme map i use Loner/images/bcc/youtube.gif  ... doesnt show too.. :(


EDIT: I cant even uninstall, i got errors :http://img694.imageshack.us/img694/1670/error1234.jpg
Title: Re: YouTube BBCode v2.6
Post by: Nao 尚 on February 08, 2010, 01:34:25 PM
That's what you get for installing YTBBC instead of the recommended Aeva :P

(Seriously, your forum is probably corrupted.)
Title: Re: YouTube BBCode v2.6
Post by: waruna on February 08, 2010, 02:39:43 PM
Hye guys, I'm using SMF2.0 RC2. One quick question, can I just enable this youtube bbcode only at certain boards? Thanks in advance.
Title: Re: YouTube BBCode v2.6
Post by: Nao 尚 on February 08, 2010, 02:53:52 PM
Nope. This might end up in Aeva Media though, in the future... If I remember etc.
Title: Re: YouTube BBCode v2.6
Post by: bostonb on February 08, 2010, 10:18:47 PM
Quote from: Nao on February 08, 2010, 01:34:25 PM
That's what you get for installing YTBBC instead of the recommended Aeva :P

(Seriously, your forum is probably corrupted.)

is it safe to use the quick mod at line 997 that .brian posted? that is what I mean when I want extreme basic simplicity, I don't want any problems now or in future versions.
Title: Re: YouTube BBCode v2.6
Post by: Nao 尚 on February 09, 2010, 03:00:37 AM
Should be safe, I used a similar simple tag a few years ago, before I started using Aeva...
But you're really better off using something more evolved. Aeva 7.x is a very small mod and you can set it up the way you want.
Title: Re: YouTube BBCode v2.6
Post by: Nier on February 10, 2010, 03:26:12 AM
I just installed Aeva, but i was wondering if you can use now the tags
on the simple portal page? I wanna show youtube movies on portal page.
Title: Re: YouTube BBCode v2.6
Post by: Arantor on February 10, 2010, 04:19:09 AM
You should be able to; IIRC the portal page is pushed via bbcode parser.
Title: Re: YouTube BBCode v2.6
Post by: Nao 尚 on February 10, 2010, 06:17:34 AM
Yeah, as long as a string is bbc_parsed, it'll show the videos.
You don't need to use the youtube bbcode if you're using Aeva. Just post the URL of the video.
Title: Re: YouTube BBCode v2.6
Post by: Nier on February 10, 2010, 11:33:14 AM
Quote from: Nao on February 10, 2010, 06:17:34 AM
Yeah, as long as a string is bbc_parsed, it'll show the videos.
You don't need to use the youtube bbcode if you're using Aeva. Just post the URL of the video.

Btw i got now advertise on my website, since i installed Aeva..
Title: Re: YouTube BBCode v2.6
Post by: Tiribulus on February 10, 2010, 11:51:07 AM
Quote from: Nier on February 10, 2010, 11:33:14 AM
Quote from: Nao on February 10, 2010, 06:17:34 AM
Yeah, as long as a string is bbc_parsed, it'll show the videos.
You don't need to use the youtube bbcode if you're using Aeva. Just post the URL of the video.

Btw i got now advertise on my website, since i installed Aeva..

I am guaranteeing you that if you installed AEVA from here or NAO's site, any ads you are getting are absolutely NOT from the mod. A couple hundred thousand people have downloaded and installed it along the way and it would have long ago been discredited not to even mention that it would never be approved in the first place if it generated ads. You have something else causing this.
Title: Re: YouTube BBCode v2.6
Post by: Nao 尚 on February 10, 2010, 12:02:08 PM
@Nier> If you're talking about the backlink, it's a very, very discreet (discrete?) link next to the other SMF links. Why would you even notice it?
Title: Re: YouTube BBCode v2.6
Post by: Nier on February 10, 2010, 03:13:45 PM
ok,,

But when i use the youtube movie on the site, its way to large. ( on diffrent configation like 1200x800 ) How can i change the width? I went to admin>aeva> and changed the width, didnt work..

edit : found it, nvm
Title: Re: YouTube BBCode v2.6
Post by: Enjay on February 14, 2010, 10:15:14 PM
Hi, I'm trying to modify my message board to allow YouTube videos to be posted using this mod. 

The instructions aren't clear, where do I find:

         'flash' => array('code' => 'flash',

Also, I downloaded the .zip file and now I have a bunch of files I'm not sure what to do with?...

convert_ytplaylist_bbcode
install-1.1.x
install-2.0
languagestrings
package-info
readme
screenshot1
youtube.gif
Title: Re: YouTube BBCode v2.6
Post by: Andiiieee[: on February 14, 2010, 10:17:36 PM
Quote from: Nao on September 27, 2007, 05:51:05 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=936)


YOUTUBE BBCODE v2.6
Updated by Nao (http://custom.simplemachines.org/mods/index.php?action=profile;u=13794)
Created By Karl Benson (http://custom.simplemachines.org/mods/index.php?action=profile;u=63186)

Support Topic (http://www.simplemachines.org/community/index.php?topic=197280.0) | Donate (http://smf-media.com/community/index.php?action=treasury)

Compatibility
For SMF 1.1.x and SMF 2.x (MySQL only)

Introduction
Embed Youtube videos into posts with the use of [youtube][/youtube] bbcode.

It's the ultimate friendly YouTube mod for BBCode addicts, supporting various link formats (including Playlist links), safely and securely parsing the information for the piece of mind of forum admins.
It is, however, severely outdated when compared with its successor, Aeva, which has support for many more video websites and many more options.

So, if you want to be able to directly post YouTube URLs without tags and still have them embedded, I would recommend upgrading to Aeva or Aeva Media (http://custom.simplemachines.org/mods/index.php?mod=977). Check its package file to find a conversion script inside it. It also converts tags from many other older mods such as [ytplaylist] or Google Video BBCode, etc.
Just extract the conversion script via FTP to your directory where SMF runs from. Put your forum in maintenance mode, and then point to it in your browser.

Features
o Adds a BBCode Button to Insert [youtube][/youtube] bbcode.
o Supports standard YouTube videos and YouTube playlists
- Standard: eg http://www.youtube.com/watch?v=FJ2UzCZiKgT
- Playlist: eg http://www.youtube.com/view_play_list?p=595A40209CB17411
o Supports links from YouTube's global site, and several localized sites (if you need support for all localised sites, use Aeva instead)
> Global (with or without www.) | Brasil | France | India | Ireland | Israel | Italia | Japan | Nederland | Polska | Espana | United Kingdom
> Australia | Hong Kong | Mexico | New Zealand | Deutsche | Canada | Russia | Taiwan | South Korea
o Supports various formats
- YouTube Page url
- Direct Embed url
- ID only
o Specify sizes (Optional)
- eg [youtube=425,350][/youtube]
- Defaulting to default YouTube sizes if not specified
- Size Protection to prevent embedding videos larger than 780px or less than 100px
o Safe from a security standpoint
- Properly validates/sanitizes/parses the video id before including it in the url
- Disables script access (allowScriptAccess="never")
o Alternative link and/or text provided for
- Invalid video id/links
- Printer friendly versions
- Disabled bbcoded
- Disabled flash
o Supports the following languages (both in ISO and UTF modes)
- English, British, Brazilian, French, German, Italian, Polish, Portuguese, Spanish, Swedish and Turkish.

Installation

Any previous versions of this mod need to be uninstalled prior to installing this version.

Installation slightly varies depending on SMF version.

SMF 1.1.1 to 1.1.4 & SMF 2.0 Beta 1
Installing the mod will only fully install the mod on the SMF Default Core Theme.
For all other themes which have a custom Post.template.php a manual edit will be required to add the BBCode Button.
(SMF 2.0 Beta 1 Only) You can choose to have the SMF Package Manager attempt* to perform the manual edit on all themes.

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

You will also need to place a copy of the youtube.gif in each of your themes bbc image folders (eg Themes/{themename}/images/bbc)

If you're using a language different than the ones supported this mod (listed above), then you will need to add the following to the Modifications.{language}.php for each theme (The language folder can be found eg Themes/{themename}/languages/)

FIND
?>
ADD BEFORE (and translate as necessary the language strings)
$txt['youtube'] = 'YouTube';
$txt['youtube_invalid'] = '#Invalid YouTube Link#';


SMF 2.0 Beta 2 / Beta 3 / Beta 3 Public / RC 1
Since SMF 2.0 Beta 2, the BBCode buttons have been moved from the templates and into the source files.
Therefore no manual edits will normally be required. Installing the mod will automatically install it on ALL themes.

However you will still need to place a copy of the youtube.gif in each of your themes bbc image folders (eg Themes/{themename}/images/bbc)

And if your using a language different than the ones supported this mod (listed above), then you will need to add the following to the Modifications.{language}.php for each theme (The language folder can be found eg Themes/{themename}/languages/)

FIND
?>
ADD BEFORE (and translate as necessary the language strings)
$txt['youtube'] = 'YouTube';
$txt['youtube_invalid'] = '#Invalid YouTube Link#';


Useful Links
Manual Installation Of Mods (http://docs.simplemachines.org/index.php?topic=402)
How Do I Modify Files? (http://www.simplemachines.org/community/index.php?topic=24110.0)

Support
Please use the modification thread for support with this modification.
(Please don't ask me to do the edits for you)

Changelog
2.6 - 5th February 2010
o Ownership given to Nao
o Updated readme and description
o Added French Language (translated by Nao)
o Added support for SMF 2.0 RC2 (eh, finally...?)
2.5 - 24th April 2009
o Ownership given to Runic
o Added Dutch Language (translated by Tom Te Selle)
2.4 - 5th October 2008
o Ensured compatible with SMF 2.0 Beta 4 and SMF 1.1.6
o Added YouTube FullScreen parameter (so player shows full screen button)
o Fixed encoded ampersands as &amp;
o Added Support for YouTube India (in), South Korea (kr) and Israel (il)
o Moved all language strings into a single file [languagestrings.xml] (save repetition) in the package
2.3 - 18th March 2008
o Ensured compatible with SMF 2.0 Beta 3 Public
o Added Polish language strings (Thanks to Nolt)
2.2 - 21st February 2008
o Added &rel=1 to all embed links as YouTube seesm to require it now.
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

Awesome mod. Please check out my newest thread, http://www.simplemachines.org/community/index.php?topic=365898.msg2501457#msg2501457 and post there if you are interested. I would very much like to have you as an active participant!
Title: Re: YouTube BBCode v2.6
Post by: Enjay on February 15, 2010, 12:14:10 AM
Quote from: Enjay on February 14, 2010, 10:15:14 PM
Hi, I'm trying to modify my message board to allow YouTube videos to be posted using this mod. 

The instructions aren't clear, where do I find:

         'flash' => array('code' => 'flash',

Also, I downloaded the .zip file and now I have a bunch of files I'm not sure what to do with?...

convert_ytplaylist_bbcode
install-1.1.x
install-2.0
languagestrings
package-info
readme
screenshot1
youtube.gif

OK I figured this out.  I'm using smf version 1.1.11  This is how I made this work for me.
Steps...

1) Download the zip file to your computer
2) Go into your forum and log on as administrator
3) On the first screen that appears, in the area that says, "Supports and Credits, Forum Maintenance, Themes and Layout" etc...  you want to select, "Packages".
4) On the next screen that appears, select the "Download Packages" tab.
5) In the "Upload a Package" area click on the "Browse" button and point it to the location of the zip folder you downloaded onto your computer.
6) Then click the "Upload" button.

I'm sure there's other ways to do it but this worked for me and I can now embed YouTube videos into posts on my Forum.
Title: Re: YouTube BBCode v2.6
Post by: waruna on February 15, 2010, 12:40:44 AM
Quote from: Nao on February 08, 2010, 02:53:52 PM
Nope. This might end up in Aeva Media though, in the future... If I remember etc.

Ok thanks Nao. Another quick question, does this code affected forum performance such as overload?
Title: Re: YouTube BBCode v2.6
Post by: Arantor on February 15, 2010, 03:29:20 AM
This mod does not affect performance significantly.
Title: Re: YouTube BBCode v2.6
Post by: waruna on February 15, 2010, 04:00:56 AM
Quote from: Arantor on February 15, 2010, 03:29:20 AM
This mod does not affect performance significantly.

Cool Arantor!. Thanks for the reply. Installing this mod right away!
Title: Re: YouTube BBCode v2.6
Post by: Nao 尚 on February 15, 2010, 01:39:45 PM
Quote from: waruna on February 15, 2010, 12:40:44 AM
Quote from: Nao on February 08, 2010, 02:53:52 PM
Nope. This might end up in Aeva Media though, in the future... If I remember etc.

Ok thanks Nao. Another quick question, does this code affected forum performance such as overload?
Aeva Media or YTBBC?
YTBBC is invisible. Aeva Media can be invisible, too, if you limit it to YouTube and a few other sites. It requires some setting up in the admin area.

@Enjay> You never used SMF before, did you? ;)

@Andie> Spam!
Title: Re: YouTube BBCode v2.6
Post by: Foreclosurepedia on February 20, 2010, 11:13:09 PM
I have Avea installed, but added ur mod and really like it as we mainly deal w/YouTube.  Thanx for making it for RC2!   ;)
Title: Re: YouTube BBCode v2.6
Post by: Nao 尚 on February 21, 2010, 05:49:33 AM
Aeva > YouTube BBC.
They both have the same author, by the way...

(Unless it's a joke, I don't see why you would install YTBBC *over* Aeva? Especially since Aeva requires no button at all and you're basically opening yourself to a double embed here?)
Title: Re: YouTube BBCode v2.6
Post by: farao25 on March 03, 2010, 12:39:16 PM
Hi all!!!
Is there any way to centre the yt video ?
is not working for me (blank)
Thanks in advance.
Title: Re: YouTube BBCode v2.6
Post by: Nao 尚 on March 03, 2010, 02:27:18 PM
Using Aeva, yes.
Title: Re: YouTube BBCode v2.6
Post by: txcas on March 09, 2010, 11:45:29 AM
Is RC3 supported?
Title: Re: YouTube BBCode v2.6
Post by: Arantor on March 09, 2010, 11:47:21 AM
Should be, actually. Looks like it would actually work unchanged.
Title: Re: YouTube BBCode v2.6
Post by: Massl on March 10, 2010, 04:06:39 PM
Quote from: txcas on March 09, 2010, 11:45:29 AM
Is RC3 supported?

Yes  ;D
Thanks for this mod  ;)
Title: Re: YouTube BBCode v2.6
Post by: Wiejeben on March 12, 2010, 10:46:34 AM
Hey, I think the Dutch translation could be better :P
So, I change it:

$txt['youtube'] = 'YouTube';
$txt['youtube_invalid'] = '#Ongeldig YouTube adres ingevoerd#';

This is the translation that I've found in the Dutch-UTF8 file.

Greetings,
Maarten

(And it does work with SMF 2.0 RC3)
Title: Re: YouTube BBCode v2.6
Post by: doctorbull on March 27, 2010, 11:58:36 PM
Not sure if this was mentioned before, i tried reading through the 22 pages but didnt see this talked about, maybe i missed it.

Is there a way to change the default video height and width?
Title: Re: YouTube BBCode v2.6
Post by: Nao 尚 on March 28, 2010, 03:27:28 AM
Try the readme... Uh. It has the answer. People don't read readmes of course, and they say they read everything. What's the point really.

Long time overdue. I'm officially deprecating this package. I don't want to waste a single more minute of my time providing support on this.

Someone in the cust team please set the Archived flag on this mod, lock this topic and move it to the Aeva Media board? (It has the same codebase...)
Otherwise I'll simply delete the package altogether.
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: doctorbull on March 28, 2010, 04:16:07 AM
Quote from: Nao on March 28, 2010, 03:27:28 AM
Try the readme... Uh. It has the answer. People don't read readmes of course, and they say they read everything. What's the point really.

Long time overdue. I'm officially deprecating this package. I don't want to waste a single more minute of my time providing support on this.

Someone in the cust team please set the Archived flag on this mod, lock this topic and move it to the Aeva Media board? (It has the same codebase...)
Otherwise I'll simply delete the package altogether.

thanks for the help but no need to get so upset over the question, i didnt see anything in the readme about how to change the default height and width permanently, only how to change it within the tags, but i figured it out
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: Nao 尚 on March 28, 2010, 04:45:29 AM
Yes, sure... As if the readme didn't have a "Features" section with "Specify sizes (Optional)"... Followed with how to do it...
Heck, I've never used this mod in my life (never installed it, anything!), and I still read the readme back in the day. :P

Anyway...

ARCHIVED. Ending support. If you need support, learn to read/code/help yourself.
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: gevv on September 20, 2010, 09:38:24 AM
Hello,

Thanks good modification.

How is automatically added to a text link ?

saple:

(http://i54.tinypic.com/2m6prfq.jpg)

or,

(http://i56.tinypic.com/2qi6aeg.jpg)

Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: Deaks on September 20, 2010, 09:40:50 AM
this mod is no longer supported try avea lite:

http://custom.simplemachines.org/mods/index.php?mod=977
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: ɔɔɔɔɔɔuɥoɾ on September 20, 2010, 01:03:53 PM
I thought this was dead, locked, deleted, it seems to be back...

Confused as to whats going on...
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: Spoogs on September 20, 2010, 01:21:41 PM
The mod itself is still available and works... just being being supported by anyone is all.
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: ɔɔɔɔɔɔuɥoɾ on September 20, 2010, 01:23:13 PM
Quote from: Spoogs on September 20, 2010, 01:21:41 PM
The mod itself is still available and works... just being being supported by anyone is all.
The thing is, it was removed, somebody had to put it back, oh well, some mysteries are not worth solving lol.
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: Deaks on September 20, 2010, 01:26:07 PM
no ths one was never removed
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: ɔɔɔɔɔɔuɥoɾ on September 20, 2010, 02:08:48 PM
Quote from: Runic on September 20, 2010, 01:26:07 PM
no ths one was never removed

It was, this topic was locked and the mod was not uploaded at the mod site.
I don't see Nao putting it back and unlocking this thread, somebody else maybe?
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: Deaks on September 20, 2010, 02:17:21 PM
no you thinking of the avea mod
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: ɔɔɔɔɔɔuɥoɾ on September 20, 2010, 02:18:41 PM
Seriously it was this mod, 100%, I even posted about it somewhere, this was locked and the mod was deleted from the modsite, but the modsite pages still existed.

EDIT:
Here is the post I made about this.

http://www.simplemachines.org/community/index.php?topic=394054.msg2730064#msg2730064
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: Deaks on September 20, 2010, 02:46:38 PM
i appologise
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: ɔɔɔɔɔɔuɥoɾ on September 20, 2010, 04:53:34 PM
Quote from: Runic on September 20, 2010, 02:46:38 PM
i appologise

Huh, Why lol..
It was just something you didn't notice, not like it hurt anyone lol :D
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: Deaks on September 20, 2010, 04:56:15 PM
im big enough to accept i was wrong :)
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: Slateer on September 28, 2010, 10:44:49 AM
This mod not workin in Opera (first post have youtube video):
http://gamersite.pl/filmy/tekken-the-movie/msg6794/#msg6794

Mozzilla, google chrome and IE 100% workin...

PS. sorry, my engilsh is bad  :P
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: Spoogs on September 28, 2010, 11:27:24 AM
Try Aeva Lite (http://custom.simplemachines.org/mods/index.php?mod=977)
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: Kat9119 on October 26, 2010, 09:12:51 PM
All of the sudden this is no longer working. I'm hoping I can backtrack and uninstall, but its been installed for quite sometime since install and I'm assuming something is conflicting...
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: Apllicmz on October 27, 2010, 10:47:55 PM
Update portuguese Linguage

<file name="$languagedir/Modifications.portuguese.php" error="skip">
    <operation>
        <search position="end" />
            <add><![CDATA[
$txt['youtube'] = 'YouTube';
$txt['youtube_invalid'] = '#Link do Youtube inválido!#';
]]></add>
    </operation>
</file>
<file name="$languagedir/Modifications.portuguese-utf8.php" error="skip">
    <operation>
        <search position="end" />
            <add><![CDATA[
$txt['youtube'] = 'YouTube';
$txt['youtube_invalid'] = '#Link do Youtube inv&aacute;lido!#';
]]></add>
    </operation>
</file>



to


<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
    <operation>
        <search position="end" />
            <add><![CDATA[
$txt['youtube'] = 'YouTube';
$txt['youtube_invalid'] = '#Link do Youtube inválido!#';
]]></add>
    </operation>
</file>
<file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
    <operation>
        <search position="end" />
            <add><![CDATA[
$txt['youtube'] = 'YouTube';
$txt['youtube_invalid'] = '#Link do Youtube inv&aacute;lido!#';
]]></add>
    </operation>
</file>
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: impreza on January 03, 2011, 08:35:15 AM
A useful modification, it works. Thanks
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: Kimmen on January 10, 2011, 06:10:49 PM
Can this be updated for SMF 2 RC4?
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: Arantor on January 13, 2011, 01:49:29 PM
Given that it's marked as deprecated (meaning out of date), the author is post-banned and that there's a much more powerful mod out there (called Aeva Lite), I doubt this will be updated. I think I have the authority to say that it's not something Nao is working on at the moment...
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: comedorsamus on February 19, 2011, 09:54:11 AM
(http://knowyourmeme.com/system/icons/854/original/vader_NOOOO.jpg)

Get your ass over here and update this mod! LOL

YouTube BBCode is everything, seriously. Some people just want to embed Youtube, and Aeva adds a whole lot of things, menus, options... argh! I don't even know where to start, I'm sure it's a great plugin, but if you are a guy looking for YOUTUBE ONLY this plugin is the way to go.

Anyway! Does anyone know if it's possible to have a wide-embed by default? Thanks! :)

EDIT: Yes, I have read the readme.txt. but I still don't know what to do, lol.
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: Arantor on February 19, 2011, 10:27:28 AM
QuoteGet your ass over here and update this mod! LOL

Not being funny, but which part of 'deprecated' are you not following here - it means 'not going to be updated. The author hasn't supported it since he worked on Aeva because using Aeva is a whole lot simpler for most users than YT BBC is, and that's coming from someone who uses a lot of different forum packages...

In any case, Aeva's going to be disappearing soon too.
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: comedorsamus on February 19, 2011, 10:49:17 AM
Quote from: Arantor on February 19, 2011, 10:27:28 AM
QuoteGet your ass over here and update this mod! LOL

Not being funny, but which part of 'deprecated' are you not following here - it means 'not going to be updated. The author hasn't supported it since he worked on Aeva because using Aeva is a whole lot simpler for most users than YT BBC is, and that's coming from someone who uses a lot of different forum packages...

In any case, Aeva's going to be disappearing soon too.
In case you didn't noticed I was just kidding, ch... And I think users are still supporting this mod, if not, wouldn't be wise to just lock this thread and let it die?

And I HAVE to disagree with you, Aeva is everything but user-friendly.  :(

PS: And if you could help me regarding that question...  O:)
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: Arantor on February 19, 2011, 10:54:29 AM
Wait... how is it not user friendly just to post the link to the forum? Far easier than pressing the button and editing the link down to just the ID. Maybe the admin panel could be tidied up but for the posters on the forum it's a ton easier just to copy/paste the link.

No, I can't help you with that question, because the mod isn't being supported and is likely to disappear before long.
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: comedorsamus on February 19, 2011, 11:00:08 AM
Quote from: Arantor on February 19, 2011, 10:54:29 AM
No, I can't help you with that question, because the mod isn't being supported and is likely to disappear before long.
(http://i53.tinypic.com/21kezvn.jpg)
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: comedorsamus on February 19, 2011, 11:37:59 AM
AHA! I got it!

You have to open install-1.1.x and/or install-2.0, then search for 350 and/or 425 and edit with your desired height and width.

Since I'm pretty noob I don't know if it's needed to edit both files, also, pay attention because you may need to edit two lines. Example:

$data = array(0, 640, ($type ? 380: 385));

Thanks once again for your GREAT plugin!  8)
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: Arantor on February 19, 2011, 11:44:17 AM
(The author/maintainer is currently post-banned, by the way, I'm not him.)
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: Hj Ahmad Rasyid Hj Ismail on February 19, 2011, 12:07:52 PM
Quote from: comedorsamus on February 19, 2011, 10:49:17 AM
And I HAVE to disagree with you, Aeva is everything but user-friendly.  :(
+1
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: Arantor on February 19, 2011, 12:12:13 PM
How is it more user-friendly for *posters* than the bbcode is?

If you're telling me it's easier for posters to use a bbcode and edit the URL, than just posting the URL, I sincerely hope you never find the project Nao and I have been working on, which has the auto embed by default, though I will no doubt be rewriting the auto embed admin area... though it's quite possibly the easiest I ever saw... most common sites at the top, two or three related options, it's all good)
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: Hj Ahmad Rasyid Hj Ismail on February 19, 2011, 12:26:54 PM
Quote from: Arantor link=topic=197280.msg2960231#msg2960231 date=1,298135533
How is it more user-friendly for *posters* than the bbcode is?

If you're telling me it's easier for posters to use a bbcode and edit the URL, than just posting the URL, I sincerely hope you never find the project Nao and I have been working on, which has the auto embed by default, though I will no doubt be rewriting the auto embed admin area... though it's quite possibly the easiest I ever saw... most common sites at the top, two or three related options, it's all good)
With due respect captain, it's called personal preference and opinion.

And one more thing, you sounds weird as if somebody is spying on you and Nao and your project(s). Isn't you are the one who announce things here? I personally have no interest.  :P
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: Arantor on February 19, 2011, 12:29:02 PM
QuoteWith due respect captain, it's called personal preference and opinion.

I'm hoping that someone can actually give me *reasons* why it's more friendly to use a bbcode than the auto embedder.

QuoteAnd one more thing, you sounds weird as if somebody is spying on you and Nao and your project(s)

Not exactly, more the fact I'm not really supposed to talk about it, but if you believe the bbcode is more friendly, you won't want to play with the fork anyway, because Aeva is being integrated into it (both auto embed and gallery)
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: comedorsamus on February 19, 2011, 12:38:59 PM
Quote from: Arantor on February 19, 2011, 12:12:13 PM
How is it more user-friendly for *posters* than the bbcode is?

If you're telling me it's easier for posters to use a bbcode and edit the URL, than just posting the URL, I sincerely hope you never find the project Nao and I have been working on, which has the auto embed by default, though I will no doubt be rewriting the auto embed admin area... though it's quite possibly the easiest I ever saw... most common sites at the top, two or three related options, it's all good)
If you use BBC to bold a damn word why not to embed a few Youtube videos? (http://i52.tinypic.com/2hfjeoj.jpg)

And don't worry, I won't bother searching for your plugin because right now this one is everything I was looking for, but good luck with your project! I'm sure someone will find it to be very useful! Cya!  ;D
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: Arantor on February 19, 2011, 12:41:36 PM
QuoteIf you use BBC to bold a damn word why not to embed a few Youtube videos?

I'm just trying to get at that it's gotta be easier for users to just copy/paste the URL as a whole rather than anything else? Can they copy/paste forum embed code? Right now I can post YT videos so much quicker on my forum than I can on the vB one I'm a regular on, with their YT bbcode.

QuoteAnd don't worry, I won't bother searching for your plugin because right now this one is everything I was looking for, but good luck with your project! I'm sure someone will find it to be very useful! Cya!

It's not a plugin. It's a complete forum+gallery system, based on SMF 2.0, but with many more features. It won't work on your forum anyway, seeing how we're not distributing it as a plugin unless we absolutely have to. By that time, this mod will almost certainly be removed.
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: dougiefresh on June 15, 2011, 02:45:40 PM
Thank you for the wonderful mod!  I thought I'd let everybody know that when I updated my forum from 2.0 RC5 to 2.0 Gold, I had to reinstall all my mods.  This mod installed without issues and without emulation.  Hope this info helps someone!
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: «$»Crimson on July 16, 2011, 02:32:21 AM
Absolutely great mod, one question though.

How do you enable the "&autoplay=1" option? I still want the default setting to have autoplay off, but sometimes I like to put a youtube video in a spoiler tag and surprise unsuspecting victims, if  you catch my drift, LOL.
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: «$»Crimson on July 28, 2011, 05:11:42 AM
*Bump
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: Hj Ahmad Rasyid Hj Ismail on July 28, 2011, 02:03:37 PM
Quote from: «$»Crimson on July 16, 2011, 02:32:21 AM
Absolutely great mod, one question though.

How do you enable the "&autoplay=1" option? I still want the default setting to have autoplay off, but sometimes I like to put a youtube video in a spoiler tag and surprise unsuspecting victims, if  you catch my drift, LOL.
As stated in the title, deprecated... try to use other mod that can allow you embed the whole youtube code where you can add autoplay=1 in it.
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: Valitkonis on August 11, 2011, 11:52:56 AM
I have problem, my Youtube BBcode is not working any more, before i dont installed other mods it was working great but now is not working, someone know what mod i need uninstall to work again YoutubeBB code? here screens:

(http://img833.imageshack.us/img833/8615/40873596.jpg)
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: Valitkonis on August 12, 2011, 07:51:57 AM
someone can help?
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: TheListener on August 12, 2011, 02:49:27 PM
Quote from: Valitkonis on August 11, 2011, 11:52:56 AM
I have problem, my Youtube BBcode is not working any more, before i dont installed other mods it was working great but now is not working, someone know what mod i need uninstall to work again YoutubeBB code? here screens:

(http://img833.imageshack.us/img833/8615/40873596.jpg)

As users have said before.

This mod is not supported anymore.

Why? Because the Aeva Media mod does exactly the same job.

You would be best advised to ue that mod instead.
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: live627 on August 12, 2011, 03:05:22 PM
AeMe should also support the bbcode... or it has a converter for it...
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: Valitkonis on August 12, 2011, 06:21:11 PM
I installed Aeva, ant what now? what BBcode suppose to i use to work youtube videos? because
doesnt working
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: live627 on August 12, 2011, 06:28:28 PM
Just use the raw link
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: moguns on August 18, 2011, 05:55:17 AM
yes Avea does do the same thing but with a hole heck of a lot of coding and a pathetic copyright.
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: YogiBear on August 18, 2011, 09:54:05 AM
Quote from: Valitkonis on August 12, 2011, 06:21:11 PM
I installed Aeva, ant what now? what BBcode suppose to i use to work youtube videos? because
doesnt working


Enable autoembed and Aeva does it all for you. The [youtube] tags become redundant.

@moguns : the author is known to be a 'clean coder' so this shouldn't matter. If in doubt simply install Aeva before any other mod. Copyright isn't unusual so shouldn't affect an end-user.

Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: frytec on August 22, 2011, 02:33:27 AM
i know this mod is deprecated but can someone tell me how can i make the [youtube] bbc <center> the video?
its a simple change but i couldnt find out where.
helps pls?
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: live627 on August 22, 2011, 07:26:48 PM
Did you try to put the youtube tag inside the center tag?
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: frytec on August 22, 2011, 10:29:29 PM
@live627
that works when i manually add center tag.
but I would like the youtube tag automatically center the video on the topic.
is that possible?
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: eric1234 on September 06, 2011, 01:04:21 AM
Hi, how can i embed a wider youtube video in my SMF forum 2.0,  because whenever i embed a youtube video in my forum, it always appeared in a smaller size instead of the standard youtube size on youtube.
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: wiecher on September 07, 2011, 02:12:19 PM
Quote from: eric1234 on September 06, 2011, 01:04:21 AM
Hi, how can i embed a wider youtube video in my SMF forum 2.0,  because whenever i embed a youtube video in my forum, it always appeared in a smaller size instead of the standard youtube size on youtube.

I like to know that too  ;D
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: live627 on September 15, 2011, 02:54:19 AM
Better question would be, if this mod is clearly marked as deprecated, who would support it?
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: 5p00f3r on October 18, 2011, 09:02:15 PM
I now the outube bbcode its deprectaed but im trying to use it on 2.0.1 emulating its version, i get error  : $txt['youtube'] = 'YouTube';
$txt['youtube_invalid'] = '#Invalid YouTube Link#';

I tryed fixing it but i dont have the file, Modifications.language.php all i get its two files when i access the folder themes/thename/languages any help?
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: live627 on October 20, 2011, 08:37:06 PM
Try looking in the default theme.
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: riou on October 20, 2011, 10:39:15 PM
Quote from: eric1234 on September 06, 2011, 01:04:21 AM
Hi, how can i embed a wider youtube video in my SMF forum 2.0,  because whenever i embed a youtube video in my forum, it always appeared in a smaller size instead of the standard youtube size on youtube.

you do this by:
[youtube=640,480]youtubeurl[/youtube]

You can set any of those 2 numbers you want, I believe there is a max though
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: Guillelmus on November 17, 2011, 12:45:43 PM
Installs and works smoothly on 2.0.1!
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: Glowbot on January 13, 2012, 10:31:39 AM
I have 2.0.1 also, but there is no icon for the youtube button, how exactly do I get it? It's just the word youtube at the moment.
I'm using the core theme, I don't understand 100% what to do to make it appear and I have read the other suggestions.
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: Arantor on January 13, 2012, 10:43:26 AM
There will be a file in Themes/default/images/bbc which IIRC is called ytbbc.gif, which will need to be copied from that folder to the images/bbc/ folder of all your other themes.
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: Glowbot on January 13, 2012, 11:50:23 AM
Quote from: arrowtotheknee on January 13, 2012, 10:43:26 AM
There will be a file in Themes/default/images/bbc which IIRC is called ytbbc.gif, which will need to be copied from that folder to the images/bbc/ folder of all your other themes.

Thanks, even if I use the default core theme?

I prefer o use this to aeva for the reason it takes less space on the server, am I right to do this?
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: Arantor on January 13, 2012, 12:02:11 PM
You said 'core' theme, the default theme is a different theme to the 'core' theme...

And it takes about the same space but Aeva is a lot more convenient, with that, users can literally just copy/paste the URL. This takes less processing power, but is much less convenient (and only supports YouTube)
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: ariolander on January 29, 2012, 06:05:36 PM
Shame its depreciated. Current version doesn't like YouTube's newer share URLs.

I don't like Avea because we talk about videos a lot but we don't always want them embedded in my forum and the auto-embed often disrupts conversation.
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: TheListener on January 30, 2012, 10:08:29 PM
There are other mods which do the same job.
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: YogiBear on January 31, 2012, 11:28:23 AM
Quote from: ariolander on January 29, 2012, 06:05:36 PM
Shame its depreciated. Current version doesn't like YouTube's newer share URLs.

I don't like Avea because we talk about videos a lot but we don't always want them embedded in my forum and the auto-embed often disrupts conversation.


Aeva v1.4w supports the Youtube shortlinks.

Careful use of the embedding settings should help with that problem - or just add the tags [ noembed] [ /noembed] (but without any spacing).
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: YogiBear on January 31, 2012, 11:32:02 AM
Quote from: Glowbot on January 13, 2012, 11:50:23 AM
...
I prefer o use this to aeva for the reason it takes less space on the server, am I right to do this?

Around three quarters of a Megabyte isn't much in the scheme of things nowadays. Most starter hosting packages will give you 1,000MB.
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: flashsteam on February 06, 2012, 03:18:36 PM
Im having some minor problems with this mod, It installed no problem on the default and works with themes that I have.

On the bayblon theme it works but the youtube botton does not have the youtube gif. I went ahead and added the gif to this theme bbc folder.

im looking to add this code

[Installing the mod will only fully install the mod on the SMF Default Core Theme.
For all other themes which have a custom Post.template.php a manual edit will be required to add the BBCode Button.]

The theme im using does not have a "post template file"

Here's my question, can I copy the "post template file" in the default theme and add it to the theme im using?

Best

Jeremy


Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: Kindred on February 06, 2012, 03:45:18 PM
1- you really should not even bother using this mod. aeva does everything this mod does, better.

2- no, don't copy anything. if the template file does not exist, the system uses the default version.
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: flashsteam on February 06, 2012, 04:19:32 PM
The mod actually works great for what im doing, in the core theme the youtube button is displayed, but when I use bayblon theme which is the current default, I get a red-x in the button icon instead of the youtube gif. The mod works just fine in the bayblon with the exception of the button.

Thats all im trying to fix.
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: Kindred on February 06, 2012, 04:26:13 PM
find the button image in the default theme and copy that image into the same sub-folder in each and every theme
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: flashsteam on February 06, 2012, 04:38:44 PM
Thanks for the help

QuoteFor all other themes which have a custom Post.template.php a manual edit will be required to add the BBCode Button.
(SMF 2.0 Beta 1 Only) You can choose to have the SMF Package Manager attempt* to perform the manual edit on all themes.

QuoteYou will also need to place a copy of the youtube.gif in each of your themes bbc image folders (eg Themes/{themename}/images/bbc)

The quote's are from the parse instructions for the mod. I have installed the gif image in the bbc image folder for the theme that the button has a red-x, is this the subfolder your talking about?
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: Kindred on February 06, 2012, 09:49:43 PM
yes
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: flashsteam on February 07, 2012, 09:56:52 AM
I was able to solve the button issue by resetting the theme. That was the first thing I did, put the youtube gif in that bbc directory.

Thats the second time I had to resset the theme, to fix buttons. Still learning :) Thanks for the help Kindred
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: Jane77 on March 15, 2012, 07:38:41 AM
I kept getting undefined index errors with Post.template.php (main sub template - eval?) in them, so I downloaded and installed 'Disable template Eval" as suggested on this forum.

Then I got this error:

8: Undefined index: youtube
File: /data/....../htdocs/.../Themes/...../Post.template.php
Line: 778

and line 778 was:

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

What do you suggest I do now?



Jane
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: Kindred on March 15, 2012, 10:15:07 AM
use aeva


Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: Jane77 on March 17, 2012, 08:06:01 AM
Aeva is installed. Just need to find out how to remove code left over from the BB code install, by looks?

Jane
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: Kindred on March 17, 2012, 10:38:52 AM
Should either just appen, or there may be a conversion utility
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: Tiensg on August 03, 2012, 12:07:51 PM
Good day.

I have this mod installed and for the past 1 week it has been working fine but today all of sudden, youtube movies cannot be loaded in all the posts by my forum members. There has been no content in the posts when movies have been embedded. Please advise.
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: Orangine on August 03, 2012, 12:11:03 PM
use AEVA or SAVE instead
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: JMantis on September 20, 2012, 10:59:50 AM
A few months ago I finally switched from this old mod to AEVA and it's working very nicely.

However there seems to be one problem, when I embed a normal long Youtube link the video is embedded twice for some reason! (new short Youtube urls work fine btw) I uninstalled this old mod without problems but it seems there is still some code left that embeds them twice. I have no clue which piece of code could be doing this and in which file it can be found. I would really like to get rid of it as it clutters my forum.

Anyone know a solution?

Thanks in advance! :)
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: TheListener on September 20, 2012, 11:02:47 AM
QuoteAnyone know a solution?

Have you looked at the mods parser?
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: JMantis on September 20, 2012, 11:09:56 AM
Apologies but I'm a bit of a newbie when it comes to SMF, what exactly is that and where can I find it? :)

A quick Google search only led me to an old topic with no usable links I'm afraid.
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: Kindred on September 20, 2012, 11:17:17 AM
the download page of every mod allows you to parse the mod for manual installation and details every change that the mod makes
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: TheListener on September 20, 2012, 11:18:00 AM
http://custom.simplemachines.org/mods/index.php?mod=936

Go to the mods download link which is above.

Look for Manual Install Instructions for SMF

The parse is below there (same location for all mods)

In the dropdown list look for 2.0 RC3
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: JMantis on September 20, 2012, 11:18:55 AM
Ah thank you, I'll have a look at that!
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: re1lazz on August 27, 2013, 09:48:09 AM
how to change youtube BBC default size ?
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: Kindred on August 27, 2013, 09:59:13 PM
use aeva
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: re1lazz on September 13, 2013, 10:50:40 AM
Quote from: Kindred on August 27, 2013, 09:59:13 PM
use aeva
I have been using ...
I want to replace the standard YouTube video size to your desired, write a new message BBC Type...
Look Screenshot
(http://www.part.lt/img/30ddf3d65f8094d9c66245705b83a644582.PNG)
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: Kindred on September 13, 2013, 10:55:53 AM
if you hqave been using aeva, then ask in the aeva support topic.
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: re1lazz on September 13, 2013, 04:40:16 PM
ups made ​​a mistake ....
as using this modification http://custom.simplemachines.org/mods/index.php?mod=936
and I want to comments (When writing a new message forum) to replace existing standard YouTube video size.... ;/
Title: Re: [Deprecated, use Aeva] YouTube BBCode v2.6
Post by: Kindred on September 13, 2013, 05:09:46 PM
and I say again...   this mod has been deprecated. It receives no support and no development.
It has been exceeded and replaced by aeva.

If you want any features, use aeva.