News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

YouTube BBC Tag

Started by Yakuza, July 18, 2006, 06:35:43 PM

Previous topic - Next topic

Gargoyle

Subs should look like this according to the mod file

array(
'tag' => 'youtube',
'type' => 'unparsed_commas_content',
'test' => '\d+,\d+\]',
'content' => '<object width="$2" height="$3"><param name="movie" value="http://www.youtube.com/v/$1" ></param><embed src="http://www.youtube.com/v/$1" type="application/x-shockwave-flash" width="$2" height="$3"></embed></object>',
'validate' => create_function('&$tag, &$data, $disabled', '
if (isset($disabled[\'url\']))
$tag[\'content\'] = \'$1\';'),
'disabled_content' => '<a href="$1" target="_blank">$1</a>',
),


Post template like this according to the mod file...

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

If your code is correct it should work... If it does not at this point I am not sure why. I do not know what changes the 1.1.1 did but I doubt it has much to do with this.

I am running 1.1.1 on one of my sites and the youtube mod works fine.

1milehi

Quote from: Gargoyle on December 21, 2006, 12:50:01 PM

If your code is correct it should work... If it does not at this point I am not sure why. I do not know what changes the 1.1.1 did but I doubt it has much to do with this.

I am running 1.1.1 on one of my sites and the youtube mod works fine.

well, thanks for the suggestions.  my coding matches what you posted but it's still not showing video - even on the default theme.

chase_m

#142
Quote from: curtiskline on December 19, 2006, 10:13:06 AM
Quote from: Zenigata on December 19, 2006, 07:49:46 AM
Quote from: Gargoyle on December 16, 2006, 08:06:24 PM
I HAVE ONLY TESTED THIS ON 1.1 FINAL!! No other version may work!!

It also works on 1.1.1

Or not... I am running 1.1.1 and this is what I get:

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

Yep, I'm getting the same error.

It installed, but when I apply it, I get that error, and I'm using the default theme [nofollow].

Thanks in advance.

Gargoyle

#143
Quote from: 1milehi on December 21, 2006, 02:25:36 PM
Quote from: Gargoyle on December 21, 2006, 12:50:01 PM

If your code is correct it should work... If it does not at this point I am not sure why. I do not know what changes the 1.1.1 did but I doubt it has much to do with this.

I am running 1.1.1 on one of my sites and the youtube mod works fine.

well, thanks for the suggestions.  my coding matches what you posted but it's still not showing video - even on the default theme.

Did the youtube mod ever work for you ??


Now I am going to attach one for 1.1.1 ---- I HAVE NOT TESTED IT VERY MUCH SO INSTALL AT OWN RISK!! It should work fine though...

1milehi

Quote from: Gargoyle on December 21, 2006, 06:14:22 PM
Did the youtube mod ever work for you ??


no, it never did but i've got the you tube gif showing now and when i preview a post i get a message that says "fetching preview" but still nothing shows up.  so, i don't know what the deal is.

1milehi

wow - i feel so silly right about now.   the following is from the very first post in this thread and explains the reason i was getting the large white box (and probably the reason anybody else is getting it)...


Quote from: Yakuza on July 18, 2006, 06:35:43 PM
Link to Mod

This mod adds a bbc tag (with a nice button in post window too) to insert YouTube video in your posts, it's safe and doesn't need you to enable flash bbc on your board.

- Why it's safe to use this bbc?

- Simple: the user cannot enter his own flash file as content, the bbc needs only the video ID and will complete the url itself, entering any type of url will not work.

Syntax: [youtube=width,height]videoID[/youtube]

Example: [youtube=425,350]-sDyVAUb8xE[/youtube]

Demo: http://devel.mangaitalia.it/devsmf/index.php?topic=3.0

Languages supported: English - Italian

instead of pasting all of that <embed>.....<param> coding between the youtube tags, all that needs to be posted is the video ID, i.e. sDyVAUb8xE.

:-[  why didn't someone just tell me that instead of letting me go on for days - LOL. 

Dave123

pfftt no button in the default theme at all.
my luck


[Lucien]

The latest attachement workt great at my forum! Only the youtube.gif file i had to add manually through the ftp server.

But for the rest just great, Thnx!  :D
I'm using SMF 2.0.2 and SimplePortal 2.3.4

dmz_pt

Quote from: Gargoyle on December 21, 2006, 06:14:22 PM
Now I am going to attach one for 1.1.1 ---- I HAVE NOT TESTED IT VERY MUCH SO INSTALL AT OWN RISK!! It should work fine though...

The version 0.2 didn't work, it give me an error saying the file is corrupted or wrong smf version!! I use the default theme without any mod.
After that i try the 0.4 and everything works great.

Only the youtube.gif file i had to add manually through the ftp server.

Thnx

njoker555

can someone do one for rc3 version
Gamers Forum << PR3 forum WebZ Junk Blog << PR3 Blog ZenPix Blog

Nuked

Actually, this mod installs fine if you do a manual install.  I just installed it on my smf 1.1 instance.

Thanks!

njoker555

aww manual, if i had time i would, i'll try to do it tomorrow then
Gamers Forum << PR3 forum WebZ Junk Blog << PR3 Blog ZenPix Blog

mohoganybrwn

Wow! Great addition to SMF. Nice work.

rad1701

karl - I tried your version (the 26 - youtube 1.2.zip) one but I don't see the little YouTube symbols in the posting area icons.  Any ideas???

karlbenson

are you using the default skin?

rad1701

No....  I'm using 1.1.1, and a Tiny Portal theme.  Will it only work with the default?  I have functionality of it - just no YouTube icons showing in the post area.  Where does the youtube gif get upoladed to?  What directory?

rad1701

Fixed it - just had to put the youtube.gif file also in the right theme under images/bbc

Vinspire

So, this mod is SMF 1.1.1 compatible ?

Daniel Marquard

Quote from: Vinspire on January 31, 2007, 09:12:27 PM
So, this mod is SMF 1.1.1 compatible ?

It would appear as if the mod's author is no longer active.  Have you tried my overhaul of the mod?

YouTube BBC Tag (XHTML Compliant)

Advertisement: