Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Daniel Marquard on January 03, 2007, 09:18:19 AM

Title: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on January 03, 2007, 09:18:19 AM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=595)

Overview

This mod allows a poster the option to embed a YouTube video in a post through the use of the [youtube=425,350][/youtube] BBC (bulletin board code) tags.  What makes this variation different from other YouTube BBC mods is that the code it uses is XHTML compliant, thus keeping with the forum's XHTML validity.

Its use is easy: simply plug the video ID (random jumble of letters and numbers) between the
', 'description' => $txt['youtube']),
[/code]

Compatibility

This mod is only compatible with SMF 1.1 and 1.1.1.  This mod will not be ported to work with any version bellow 1.1, as I only encourage the use of version 1.1 or above.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: RoarinRow on January 03, 2007, 11:16:13 AM
Cool, it works thank you!   8)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Motorhead on January 03, 2007, 12:27:42 PM
Package manager said it had installed but didnt seem to do anything, non of the files where changed..

Went in and did it manually and it seems to work ok

Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on January 03, 2007, 02:48:41 PM
Quote from: RoarinRow on January 03, 2007, 11:16:13 AM
Cool, it works thank you!   8)

Glad you like it.  :)

Quote from: Motorhead on January 03, 2007, 12:27:42 PM
Package manager said it had installed but didnt seem to do anything, non of the files where changed..

Went in and did it manually and it seems to work ok

Odd.  Are you using a custom theme or is that none of the files were changed whatsoever?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Motorhead on January 03, 2007, 04:07:53 PM
From what I could tell nothing had changed, it was showing as installed but wasn't working, so I ftp'd the files that needed changing, checked against the changes that should have happened, and nothing was there ??

I'm using SMF Default and Babylon, but even on the non scheme specific files nothing..

Could be pac-man playing up

Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on January 03, 2007, 05:04:31 PM
Quote from: Motorhead on January 03, 2007, 04:07:53 PM
From what I could tell nothing had changed, it was showing as installed but wasn't working, so I ftp'd the files that needed changing, checked against the changes that should have happened, and nothing was there ??

I'm using SMF Default and Babylon, but even on the non scheme specific files nothing..

Could be pac-man playing up

Just out of curiosity, did you download the mod from the mod site itself or through the package browser in your forum?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Motorhead on January 03, 2007, 06:07:11 PM
downloaded it , then uploaded it with pac-man

Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on January 03, 2007, 06:50:35 PM
Quote from: Motorhead on January 03, 2007, 06:07:11 PM
downloaded it , then uploaded it with pac-man

Sorry, I'm not familiar with that.  Is it an FTP client?

Edit: Seems it is in fact an FTP client.  Well I've tried it on several various installations and it's worked for me.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Motorhead on January 03, 2007, 06:58:41 PM
sorry pac-man is short for package manager :)

Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: njoker555 on January 03, 2007, 07:39:41 PM
lol pac-man i like it, and second will it work on 1.1 rc3 ? lol, i havent upgraded yet
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on January 03, 2007, 07:46:39 PM
Quote from: njoker555 on January 03, 2007, 07:39:41 PM
lol pac-man i like it, and second will it work on 1.1 rc3 ? lol, i havent upgraded yet

Nope.  I highly recommend you upgrade to 1.1.1.  Once you upgrade and install my mod, please tell me know if the install works for you.  It's the wierdest thing that it will install for me, but not for Motorhead.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: njoker555 on January 03, 2007, 09:47:23 PM
will all my old mods still be there if i upgrade, that was one of the reasons i didnt yet, cuz i had a bad exp before with another forum
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on January 03, 2007, 10:14:44 PM
Quote from: njoker555 on January 03, 2007, 09:47:23 PM
will all my old mods still be there if i upgrade, that was one of the reasons i didnt yet, cuz i had a bad exp before with another forum

If you use the proper upgrade package, most of your mods will remain intact, if I remember correctly.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: NYRiders on January 03, 2007, 11:20:05 PM
Works great in our forum (www.nyriders.com) with IE, cant get it to work with Firefox (1.5.0.9) though....
Any suggestions?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on January 04, 2007, 01:17:42 AM
Quote from: NYRiders on January 03, 2007, 11:20:05 PM
Works great in our forum (www.nyriders.com) with IE, cant get it to work with Firefox (1.5.0.9) though....
Any suggestions?

Can you give me an example topic where the mod is used?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Motorhead on January 04, 2007, 02:03:18 AM
QuoteNope.  I highly recommend you upgrade to 1.1.1.  Once you upgrade and install my mod, please tell me know if the install works for you.  It's the wierdest thing that it will install for me, but not for Motorhead

It may have been something playing up with the server when I did the mod, it's no big deal 10 minutes to install manually by editing the required files and uploading them...

Working a treat on my site..

Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: h4ni on January 04, 2007, 04:33:29 AM
work fine thank you!!
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: matthen on January 04, 2007, 08:56:30 AM
I added this mod to my site, and it works fine for everyone, except for people using firefox. Though firefox 2 seems to have no problems with it.

Here is an example thread:

http://www.poweriserpages.com/forum/index.php/topic,1003.0.html

What changes should I make to the code to make it work for them?

Thanks,
Matt
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: matjazz on January 04, 2007, 12:46:28 PM
Quote from: matthen on January 04, 2007, 08:56:30 AM
I added this mod to my site, and it works fine for everyone, except for people using firefox. Though firefox 2 seems to have no problems with it.

Here is an example thread:

http://www.poweriserpages.com/forum/index.php/topic,1003.0.html

What changes should I make to the code to make it work for them?

Thanks,
Matt

Ia have the same problem :S
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: buhaychat.com on January 04, 2007, 12:49:20 PM
Err sorry to ask, but what would go inside the [youtube] tags?

The whole embed object code?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: matjazz on January 04, 2007, 12:52:56 PM
[youtube=425,350]gRWIyvBSjtk[/youtube]

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

The end of address  ;)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: buhaychat.com on January 04, 2007, 01:18:18 PM
ooh there you you go! worky for me now!

thanks! :)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on January 04, 2007, 03:41:46 PM
Quote from: matthen on January 04, 2007, 08:56:30 AM
I added this mod to my site, and it works fine for everyone, except for people using firefox. Though firefox 2 seems to have no problems with it.

Here is an example thread:

http://www.poweriserpages.com/forum/index.php/topic,1003.0.html

What changes should I make to the code to make it work for them?

Thanks,
Matt

The default <embed> code for YouTube videos, as posted on each video's YouTube page, is not XHTML compliant.  I took that code and revamped it to be XHTML compliant, apparently at the cost of browser compatibility.  I'm not aware of another way to format the code to be accepted in all borwsers and still retain its XHTML validity.  Any ideas are welcome for compatibility, but the goal here will still be to keep the code XHTML transitional.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: NYRiders on January 04, 2007, 03:48:53 PM
Quote from: Marlon on January 04, 2007, 01:17:42 AM
Quote from: NYRiders on January 03, 2007, 11:20:05 PM
Works great in our forum (www.nyriders.com) with IE, cant get it to work with Firefox (1.5.0.9) though....
Any suggestions?

Can you give me an example topic where the mod is used?

http://www.nyriders.com/board/index.php?topic=402.msg2185
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on January 04, 2007, 04:00:36 PM
Quote from: NYRiders on January 04, 2007, 03:48:53 PM
http://www.nyriders.com/board/index.php?topic=402.msg2185

Thanks for the link.  It appears to work OK for me.

(http://www.tristifall.net/gallery/albums/userpics/10001/normal_untitled123.jpg) (http://www.tristifall.net/gallery/displayimage.php?album=52&pos=15)

(http://www.tristifall.net/gallery/albums/userpics/10001/normal_Untitled433.jpg) (http://www.tristifall.net/gallery/displayimage.php?album=52&pos=16)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: NYRiders on January 04, 2007, 06:08:20 PM
So it looks like we need to update our Firefox browsers to 2.0.
Thank you.

Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on January 04, 2007, 06:35:30 PM
Quote from: NYRiders on January 04, 2007, 06:08:20 PM
So it looks like we need to update our Firefox browsers to 2.0.
Thank you.

I'm afraid so.  :(
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: 4fit? on January 04, 2007, 10:46:55 PM
Nice, I like it.  However, is there a way that we can tweak the code to make it default to 425,350 in the attributes?  I would like my users to simply be able to enter the tags and it automatically make it 425x350.  Something like:
[youtube]SVaQ3bkLC28[/youtube]
I know that clicking the BBC button automatically places the attributes in the tag, but the majority of my users manually type the code.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on January 04, 2007, 11:21:34 PM
Quote from: 4fit? on January 04, 2007, 10:46:55 PM
Nice, I like it.  However, is there a way that we can tweak the code to make it default to 425,350 in the attributes?  I would like my users to simply be able to enter the tags and it automatically make it 425x350.  Something like:
[youtube]SVaQ3bkLC28[/youtube]
I know that clicking the BBC button automatically places the attributes in the tag, but the majority of my users manually type the code.

There is a method of doing that; unfortunately, at the cost of the inability to define custom dimensions upon implementing the changes.

In Subs.php, find:
'content' => '<object type="application/x-shockwave-flash" width="$2" height="$3" data="http://www.youtube.com/v/$1"><param name="movie" value="http://www.youtube.com/v/$1"></param><param name="wmode" value="transparent"></param></object>',


...and replace with:
'content' => '<object type="application/x-shockwave-flash" width="425" height="350" data="http://www.youtube.com/v/$1"><param name="movie" value="http://www.youtube.com/v/$1"></param><param name="wmode" value="transparent"></param></object>',

In Post.template.php, find:
'youtube' => array('code' => 'youtube', 'before' => '[youtube=425,350]', 'after' => '[/youtube]', 'description' => $txt['youtube']),

...and replace with:
'youtube' => array('code' => 'youtube', 'before' => '[youtube]', 'after' => '[/youtube]', 'description' => $txt['youtube']),
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Mick. on January 05, 2007, 01:46:20 PM
Sweet!   Thanx for the mod. Very useful ;D
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: RoarinRow on January 05, 2007, 02:21:06 PM
Quote from: BlueDevil on January 05, 2007, 01:46:20 PM
Sweet!   Thanx for the mod. Very useful ;D

Definitely!  It works better than the other YouTube mods that I could never get to work   8)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Mick. on January 05, 2007, 02:38:22 PM
Quote from: RoarinRow on January 05, 2007, 02:21:06 PM
Quote from: BlueDevil on January 05, 2007, 01:46:20 PM
Sweet!   Thanx for the mod. Very useful ;D

Definitely!  It works better than the other YouTube mods that I could never get to work   8)

Hahaha!! same here! 
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Fiery on January 05, 2007, 11:53:38 PM
Very nice mod.  I think it would be cool if when someone pushed the youtube button and a little popup came up that allowed them to either put the entire youtube url or just the youtube video code.

This would make it easier for those that are not the best at using BBC code.

Just a thought
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on January 06, 2007, 12:29:02 AM
Quote from: pmp6nl on January 05, 2007, 11:53:38 PM
Very nice mod.  I think it would be cool if when someone pushed the youtube button and a little popup came up that allowed them to either put the entire youtube url or just the youtube video code.

This would make it easier for those that are not the best at using BBC code.

Just a thought

Doesn't seem like a bad idea at all.  It will be considered if I ever release an update to this mod.  :)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Alexmosutheskypirate on January 06, 2007, 03:38:18 AM
yup..very nice..working perfectly..
the easyest way to do it...would be to tell the mod to actually read only the last 11 characters of...whatever you input..
as the youtube code is http blabla+11 characters..the last 11 characters...ae the important ones
this should be ...easy...shouldn't it ?

and it would still work if you input the 11 chracters..only..cause all of them would be the last 11 chars :D

thanks for the mod

saludos :D
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on January 06, 2007, 12:54:18 PM
Quote from: Alexmosutheskypirate on January 06, 2007, 03:38:18 AM
yup..very nice..working perfectly..
the easyest way to do it...would be to tell the mod to actually read only the last 11 characters of...whatever you input..
as the youtube code is http blabla+11 characters..the last 11 characters...ae the important ones
this should be ...easy...shouldn't it ?

and it would still work if you input the 11 chracters..only..cause all of them would be the last 11 chars :D

thanks for the mod

saludos :D

As long you YouTube agrees to *never* change the number of characters in their video IDs, I see no wrong with implementing it in the next version.  Thanks for the idea.  :)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: karlbenson on January 06, 2007, 12:55:06 PM
For clean 1.1.1 install wouldnt work (default skin) for me.

Installed (said successful) but no youtube button, bbcode didnt work when tried various
[youtube=VPyyEibTqmo]200,200[/youtube]
[youtube=200,250]VPyyEibTqmo[/youtube]


Wouldnt uninstall either.  Test Failed.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on January 06, 2007, 01:00:10 PM
Quote from: karlbenson on January 06, 2007, 12:55:06 PM
For clean 1.1.1 install wouldnt work (default skin) for me.

Installed (said successful) but no youtube button, bbcode didnt work when tried various
[youtube=VPyyEibTqmo]200,200[/youtube]
[youtube=200,250]VPyyEibTqmo[/youtube]


Wouldnt uninstall either.  Test Failed.

I really can't explain this.  Make sure you've cleared your cache?  No one else has reported the problem you're having with the mod, and on a clean install of 1.1.1, no less.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Fiery on January 06, 2007, 01:05:57 PM
Quote from: karlbenson on January 06, 2007, 12:55:06 PM
For clean 1.1.1 install wouldnt work (default skin) for me.

Installed (said successful) but no youtube button, bbcode didnt work when tried various
[youtube=VPyyEibTqmo]200,200[/youtube]
[youtube=200,250]VPyyEibTqmo[/youtube]


Wouldnt uninstall either.  Test Failed.

Try copying the youtube image to: /themes/your-theme/images/bbc

That worked for me




Quote from: Marlon on January 06, 2007, 12:29:02 AM
Quote from: pmp6nl on January 05, 2007, 11:53:38 PM
Very nice mod.  I think it would be cool if when someone pushed the youtube button and a little popup came up that allowed them to either put the entire youtube url or just the youtube video code.

This would make it easier for those that are not the best at using BBC code.

Just a thought

Doesn't seem like a bad idea at all.  It will be considered if I ever release an update to this mod.  :)

Sounds good.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: karlbenson on January 06, 2007, 01:14:54 PM
I've managed to get the other YouTube working now with no probs.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on January 06, 2007, 03:08:26 PM
Quote from: pmp6nl on January 06, 2007, 01:05:57 PM
Try copying the youtube image to: /themes/your-theme/images/bbc

That worked for me

Though it may seem like a simple fix, his problem is the mod in its entirety, not just the image.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: nazone on January 06, 2007, 06:31:32 PM
I think I have an issue with your mod...

See it at: http://forum.nazone.org/

$txt['youtube'] = 'YouTube'; displays at top and messes up style

shawn
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: 4fit? on January 06, 2007, 11:18:45 PM
Quote from: Marlon on January 06, 2007, 12:54:18 PM
Quote from: Alexmosutheskypirate on January 06, 2007, 03:38:18 AM
yup..very nice..working perfectly..
the easyest way to do it...would be to tell the mod to actually read only the last 11 characters of...whatever you input..
as the youtube code is http blabla+11 characters..the last 11 characters...ae the important ones
this should be ...easy...shouldn't it ?

and it would still work if you input the 11 chracters..only..cause all of them would be the last 11 chars :D

thanks for the mod

saludos :D

As long you YouTube agrees to *never* change the number of characters in their video IDs, I see no wrong with implementing it in the next version.  Thanks for the idea.  :)
I like that idea.  But, instead of hardcoding a number of characters, I would just look for the equals sign and extract everything to the right of that sign.  Of course, I know squat about PHP coding and am only speaking from VB experience.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on January 07, 2007, 03:24:12 PM
Quote from: nazone on January 06, 2007, 06:31:32 PM
I think I have an issue with your mod...

See it at: http://forum.nazone.org/

$txt['youtube'] = 'YouTube'; displays at top and messes up style

shawn

I honestly cannot explain why that happened.  Can you copy and paste the contents of Modifications.english.php in a post for me?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: billyoregon on January 08, 2007, 06:39:58 AM
exactly what i was looking for. thank a TON!
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: livedown on January 08, 2007, 09:32:39 PM
Hi
  I downloaded the mod from this Website asusual and uploaded it through Admin Panel same as i woud do for any other MOD. But, i did not see any changes when i installed the mod. the BBC didn't show up. The codes
didn't work either. but the mod says its installed... what am i doing wrong? i saw that some other people are having the same problem. :(

my website is www.livedown.us/forum  --> please check it out and help me!1

THank You! :D ;D
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: livedown on January 08, 2007, 09:52:01 PM
Ok, this mod also kinna screwed up my theme... i use default... on the top of the page i can see the codes and stuff. Also i have tried both Firefox and IE they dont show up on both browsers. Is there any way to fix it? i tried uninstall and it didn't take out the codes and stuff  from top of the page.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on January 08, 2007, 10:07:48 PM
Quote from: www.livedown.us on January 08, 2007, 09:52:01 PM
Ok, this mod also kinna screwed up my theme... i use default... on the top of the page i can see the codes and stuff. Also i have tried both Firefox and IE they dont show up on both browsers. Is there any way to fix it? i tried uninstall and it didn't take out the codes and stuff  from top of the page.

There has been one other reported instance of the language text appearing at the top of the forum; was that there before installing my mod?

Also, use [youtube=###,###]videoID[/youtube], with ###,### representing the dimensions of the embedded clip.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: livedown on January 08, 2007, 10:20:27 PM
OK, i tried that , but i still get nothing.

check this out...

http://www.livedown.us/forum/index.php?topic=340.msg1338#msg1338

EDIT: Nevermind... i fixed the problem where the theme gets messed up.. but i still can't get the tags to work. ???
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on January 08, 2007, 11:10:34 PM
Quote from: www.livedown.us on January 08, 2007, 10:20:27 PM
OK, i tried that , but i still get nothing.

check this out...

http://www.livedown.us/forum/index.php?topic=340.msg1338#msg1338

EDIT: Nevermind... i fixed the problem where the theme gets messed up.. but i still can't get the tags to work. ???

Just out of curiosity, how did you fix the text at the top of your forum?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: livedown on January 08, 2007, 11:55:36 PM
The modification.english.php file was wrongly edited.... the edits were placed outside the
"php?>" tags.

I also noticed that the sub.php file was not edited at all, but after i manually edited it, it still doesnt work... is there any way to completely remove the mod?

Thank You! ;)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on January 09, 2007, 12:13:40 AM
Quote from: www.livedown.us on January 08, 2007, 11:55:36 PM
The modification.english.php file was wrongly edited.... the edits were placed outside the
"php?>" tags.

I also noticed that the sub.php file was not edited at all, but after i manually edited it, it still doesnt work... is there any way to completely remove the mod?

Thank You! ;)

Either uninstall it through the admin panel or open the package file itself and start finding and replacing.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: livedown on January 09, 2007, 12:15:50 AM
thanks, already figured it out!  :)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: adp on January 10, 2007, 05:33:18 PM
It's possible i insert all url?
gRWIyvBSjtk -> http://youtube.com/watch?v=PIRS95CbJNw ?

tnks
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on January 10, 2007, 05:36:32 PM
Quote from: adp on January 10, 2007, 05:33:18 PM
It's possible i insert all url?
gRWIyvBSjtk -> http://youtube.com/watch?v=PIRS95CbJNw ?

tnks

It's been discussed to trim all but the last ten characters contained within the
tags.  This feature will be added to the next version.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: [dazed] on January 11, 2007, 02:21:56 AM
I just installed it on my test forum v1.1.1 cause my users really want it.

First problem the .gif didn't load (pacman said a ok when installed).
Second, nothing appears on the screen although the space for the box appears. I have read every post here and tried all the given solutions.

Same results in Firefox v1.8.xx, (not everybody waqnts to run the 2.0 beta) IE and Opera.

No problem un-installing it though.

I know this has been rough for you, but something is seriously wrong.

Guess I'll have to wait for the update.

Thanks for the effort.

gmorin

PS What we really need is a WYSIWYG editor like the high priced guys.

Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on January 11, 2007, 09:45:42 PM
Quote from: gmorin on January 11, 2007, 02:21:56 AM
I just installed it on my test forum v1.1.1 cause my users really want it.

First problem the .gif didn't load (pacman said a ok when installed).
Second, nothing appears on the screen although the space for the box appears. I have read every post here and tried all the given solutions.

Same results in Firefox v1.8.xx, (not everybody waqnts to run the 2.0 beta) IE and Opera.

No problem un-installing it though.

I know this has been rough for you, but something is seriously wrong.

Guess I'll have to wait for the update.

Thanks for the effort.

gmorin

PS What we really need is a WYSIWYG editor like the high priced guys.

Firefox 2.0 is a final release, not beta.  You should consider upgrading.  The image should be copied to the "bbc" images folder of your custom theme.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: 05185736 on January 12, 2007, 04:01:11 PM
I installed the mod as i usually would and after installation this came up:
(http://img143.imageshack.us/img143/2945/image4kl0.jpg) (http://imageshack.us)

So i uninstalled the mod and it still remained.
So i deleted the actual mod  - it remained

i reinstalled the mod hoping it would overwrite the previous one and now its added another load of code on the top. HELP please
(http://img412.imageshack.us/img412/9914/image6ans9.jpg) (http://imageshack.us)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on January 12, 2007, 04:04:38 PM
Quote from: 05185736 on January 12, 2007, 04:01:11 PM
I installed the mod as i usually would and after installation this came up:
(http://img143.imageshack.us/img143/2945/image4kl0.jpg) (http://imageshack.us)

So i uninstalled the mod and it still remained.
So i deleted the actual mod  - it remained

i reinstalled the mod hoping it would overwrite the previous one and now its added another load of code on the top. HELP please
(http://img412.imageshack.us/img412/9914/image6ans9.jpg) (http://imageshack.us)

Can you please post the contents of your ./Themes/default/languages/Modifications.english.php for me please?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: 05185736 on January 12, 2007, 04:40:18 PM
I know this may sound stupid but where do i go for that?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: 4fit? on January 12, 2007, 04:58:41 PM
Quote from: 05185736 on January 12, 2007, 04:40:18 PM
I know this may sound stupid but where do i go for that?
YourBoardDirectory/Themes/YourTheme/languages/
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on January 12, 2007, 05:09:58 PM
Quote from: 05185736 on January 12, 2007, 04:40:18 PM
I know this may sound stupid but where do i go for that?

The root directory of SMF.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: 127.0.0.1 on January 13, 2007, 10:22:09 PM
Is there a reason why the param (http://www.w3schools.com/tags/tag_param.asp) element was used with end tags? I thought the param element was a self-closing empty tag.

I have written my XHTML compliant flash (youtube) code like this...



<object type="application/x-shockwave-flash" data="http://www.youtube.com/v/$1" width="425" height="350">
     <param name="movie" value="http://www.youtube.com/v/$1" />
     <param name="loop" value="false" />
     <param name="menu" value="false" />
     <param name="quality" value="high" />
     <param name="scale" value="noscale" />
     <param name="wmode" value="transparent" />
</object>



I like forward to the next version, and hope that it will recognize previous youtube BBC tags that still contain just the youtube video id.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on January 13, 2007, 11:01:05 PM
Quote from: 127.0.0.1 on January 13, 2007, 10:22:09 PM
Is there a reason why the param (http://www.w3schools.com/tags/tag_param.asp) element was used with end tags? I thought the param element was a self-closing empty tag.

I have written my XHTML compliant flash (youtube) code like this...



<object type="application/x-shockwave-flash" data="http://www.youtube.com/v/$1" width="425" height="350">
     <param name="movie" value="http://www.youtube.com/v/$1" />
     <param name="loop" value="false" />
     <param name="menu" value="false" />
     <param name="quality" value="high" />
     <param name="scale" value="noscale" />
     <param name="wmode" value="transparent" />
</object>



I like forward to the next version, and hope that it will recognize previous youtube BBC tags that still contain just the youtube video id.

It's the way I formatted it in order to include everything and still retain its XHTML validity.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: manichols7 on January 14, 2007, 04:52:37 PM
After installing this mod to SMF1.1.1 and Tiny Portal 9.7, it place at the top of all pages this code.

$txt['youtube'] = 'YouTube'; $txt['youtube'] = 'YouTube';

my site is here;

http://manichols7.com/forum/index.php

I uninstalled it but it left that code, so I reinstalled it to learned what files it modified and it place a second code there.  I have uninstalled it again.  Can you please tell me how to removed that code?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: manichols7 on January 14, 2007, 05:08:12 PM
Ok, I went back a little and found the problem, I went to my form root and found the language file and deleted the code and it is now removed from my front page.

I just deleted the youtube and nothing else.  Thank you for trying to give us a neat mod and I will try it again when you have improved it.  Good luck,
Marian
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on January 14, 2007, 06:39:54 PM
Quote from: manichols7 on January 14, 2007, 05:08:12 PM
Ok, I went back a little and found the problem, I went to my form root and found the language file and deleted the code and it is now removed from my front page.

I just deleted the youtube and nothing else.  Thank you for trying to give us a neat mod and I will try it again when you have improved it.  Good luck,
Marian

There's nothing I can improve upon as far as the language file.  All you had to do was post the contents of Modifications.english.php and I could've fixed it for you.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Green Hornet on January 17, 2007, 07:00:03 PM
Hello,

I'm using SMF 1.1.1 and i'd just install your mod but it doesn't work, you can have a look at this url:

http://forums.tewebe.com/index.php?topic=7480.msg115206#new

sorry i'm french so it is difficult for me to help you more in describing the problem but i wil try ;)

thanks,

regards
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on January 18, 2007, 12:56:30 AM
Quote from: Green Hornet on January 17, 2007, 07:00:03 PM
Hello,

I'm using SMF 1.1.1 and i'd just install your mod but it doesn't work, you can have a look at this url:

http://forums.tewebe.com/index.php?topic=7480.msg115206#new

sorry i'm french so it is difficult for me to help you more in describing the problem but i wil try ;)

thanks,

regards

What browser are you using (and what version of that)?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Green Hornet on January 18, 2007, 03:22:09 AM
don't work with Firefox 2.0.0.1 and Internet Explorer 7.0.5730.11 ...
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on January 18, 2007, 10:27:10 PM
Quote from: Green Hornet on January 18, 2007, 03:22:09 AM
don't work with Firefox 2.0.0.1 and Internet Explorer 7.0.5730.11 ...


Odd, works for me on both.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: 4fit? on January 18, 2007, 11:12:19 PM
Quote from: Marlon on January 18, 2007, 10:27:10 PM
Quote from: Green Hornet on January 18, 2007, 03:22:09 AM
don't work with Firefox 2.0.0.1 and Internet Explorer 7.0.5730.11 ...


Odd, works for me on both.
Works for me as well.  Can you post the code you are entering in the post box?  Maybe you are including the wrong portion of the url from YouTube between the tags.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Gargiulo on January 19, 2007, 10:54:34 AM
I've installed the mod today but I have some problems.

I uploaded the youtube.gif to my theme bcc dir and it works. I edited Modifications.english.php and Post.template.php of my theme (I use pdx-dk06).
When I type
, the post shows the code...
When I use the bcc button and I paste the yt code (like [youtube=425,350]SPE8vL5hlFA[/youtube]), I can't post because I get the error "The message body was left empty."
So if I add some words before or after the bcc code everything works and I see the video in the post..

It seems crazy  :D
What's happening?

Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: 4fit? on January 19, 2007, 01:48:36 PM
Quote from: Gargiulo on January 19, 2007, 10:54:34 AM
I've installed the mod today but I have some problems.

I uploaded the youtube.gif to my theme bcc dir and it works. I edited Modifications.english.php and Post.template.php of my theme (I use pdx-dk06).
When I type
, the post shows the code...
When I use the bcc button and I paste the yt code (like [youtube=425,350]SPE8vL5hlFA[/youtube]), I can't post because I get the error "The message body was left empty."
So if I add some words before or after the bcc code everything works and I see the video in the post..

It seems crazy  :D
What's happening?


I believe yo uhave to have the width/height parameters in there.  As for it saying the body was left empty, I get the same error message if all I put in there is the youtube code.  But, I normally type something in there along with the code anyways, so that doesn't bother me any.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Green Hornet on January 19, 2007, 05:13:04 PM
Quote from: 4fit? on January 18, 2007, 11:12:19 PM
Quote from: Marlon on January 18, 2007, 10:27:10 PM
Quote from: Green Hornet on January 18, 2007, 03:22:09 AM
don't work with Firefox 2.0.0.1 and Internet Explorer 7.0.5730.11 ...




Odd, works for me on both.
Works for me as well.  Can you post the code you are entering in the post box?  Maybe you are including the wrong portion of the url from YouTube between the tags.

Ok i understand, i included all the url not the protion, sorry it works :)

thanks everybody for help :)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: 127.0.0.1 on January 19, 2007, 06:47:51 PM
I'm experiencing a bug, and I'd like to know if you can duplicate this mod on SMF 1.1.1.

When posting a message where the message body simply contains:


[youtube=425,350]43423432432[/youtube]


I receive the following notification:

Quote
The following error or errors occurred while posting this message:
The message body was left empty.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: RoarinRow on January 19, 2007, 07:00:13 PM
Quote from: 127.0.0.1 on January 19, 2007, 06:47:51 PM
I'm experiencing a bug, and I'd like to know if you can duplicate this mod on SMF 1.1.1.

When posting a message where the message body simply contains:


[youtube=425,350]43423432432[/youtube]


I receive the following notification:

Quote
The following error or errors occurred while posting this message:
The message body was left empty.

You have to type something in the body of the message even though you have that YouTube code, it doesn't recognize that as text.

Type the word 'test' for example, then use your YouTube code   :)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: 127.0.0.1 on January 19, 2007, 07:11:58 PM
Why is it the only tag that has to work like that? Posting just an IMG tag in the message body will work, why won't it work for the youtube tag? I've been into the Subs.php file trying to figure it out.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: RoarinRow on January 19, 2007, 07:20:44 PM
Quote from: 127.0.0.1 on January 19, 2007, 07:11:58 PM
Why is it the only tag that has to work like that? Posting just an IMG tag in the message body will work, why won't it work for the youtube tag? I've been into the Subs.php file trying to figure it out.

Got me there   ???   Something with the mod I guess.  Usually people on my forum will make a short intro before using the the code, e.g. Here's a funny bicycle accident, then use the mod to insert the YouTube value.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: kkdai on January 20, 2007, 04:54:30 PM
Hi
Thanks for your great work.
I looking for this feature for so long.
I also migrate from Yabbse to SMF for your MOD.

But I have one question,

After I use this, every post which has youyube tag will become slow to present.

Does anyone has the same isssue?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: raaja on January 20, 2007, 07:06:38 PM

I cant find these file.... Subs.php and Post.template.php  ........itz confusing...

can anyone tell me, the file in which folder??
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: 127.0.0.1 on January 20, 2007, 08:13:03 PM
Quote from: RoarinRow on January 19, 2007, 07:20:44 PM
Quote from: 127.0.0.1 on January 19, 2007, 07:11:58 PM
Why is it the only tag that has to work like that? Posting just an IMG tag in the message body will work, why won't it work for the youtube tag? I've been into the Subs.php file trying to figure it out.

Got me there   ???   Something with the mod I guess.  Usually people on my forum will make a short intro before using the the code, e.g. Here's a funny bicycle accident, then use the mod to insert the YouTube value.

This is very strange,  because I did not modify any code, and yet am no longer receiving the empty message body error notification. I forget if I changed something in the admin console, perhaps that could be it. Could anyone shed some insight into this issue? Because apparently I wasn't the only one who had this problem though it seems to have gone away, for now.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: RoarinRow on January 20, 2007, 08:13:46 PM
Quote from: raaja on January 20, 2007, 07:06:38 PM

I cant find these file.... Subs.php and Post.template.php  ........itz confusing...

can anyone tell me, the file in which folder??

'subs.php' in in forum/Sources
'post.template.php' is in forum/themes/default
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: raaja on January 20, 2007, 09:14:32 PM
Thansk RoarinRow.. itz working fine nw... but there is another prob for me....

I cant find the youtube.gif image in my default theme image directory...

(http://img259.imageshack.us/img259/7963/333ht14fw.jpg)

guide me...

thanks in advance...
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: mark7144 on January 20, 2007, 09:19:59 PM
Quote from: raaja on January 20, 2007, 09:14:32 PM
Thansk RoarinRow.. itz working fine nw... but there is another prob for me....

I cant find the youtube.gif image in my default theme image directory...

(http://img259.imageshack.us/img259/7963/333ht14fw.jpg)

guide me...

thanks in advance...
Right click the 'X' > propeties... find out where it is trying to load the image from... then go into that folder via FTP and just drag over the image from the YouTube mod zip to that folder in your forum.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: mark7144 on January 20, 2007, 09:21:02 PM
I can post just a YouTube video on its own without an empty message warning. However if I try and edit the post via AJAX it won't let me without me putting text in the post yet if I modify the post the non-AJAX way, it is then fine.

Can anyone tell me what I should do?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: raaja on January 20, 2007, 11:45:25 PM
Quote from: mark7144 on January 20, 2007, 09:19:59 PM
Quote from: raaja on January 20, 2007, 09:14:32 PM
Thansk RoarinRow.. itz working fine nw... but there is another prob for me....

I cant find the youtube.gif image in my default theme image directory...

(http://img259.imageshack.us/img259/7963/333ht14fw.jpg)

guide me...

thanks in advance...
Right click the 'X' > propeties... find out where it is trying to load the image from... then go into that folder via FTP and just drag over the image from the YouTube mod zip to that folder in your forum.

Great... Thanks alot... I fix it.. :)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on January 21, 2007, 02:16:59 AM
Quote from: mark7144 on January 20, 2007, 09:21:02 PM
I can post just a YouTube video on its own without an empty message warning. However if I try and edit the post via AJAX it won't let me without me putting text in the post yet if I modify the post the non-AJAX way, it is then fine.

Can anyone tell me what I should do?

I'm guessing that that's a bug with SMF, not the mod itself.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Fizzgig on January 21, 2007, 10:16:32 AM
Hello, I've just installed this mod on my test forum (1.1.1 with WoW dk theme) and I can get the button to show and that's about it. The code isn't working and I'm not sure what else I should edit.
I used the code as you said to (only using the end of URL).

Any help appreciated.

-Fizz

Edit:
Got it to work, yay!
I just manually edited the subs file. In fact, I had to manuallly edit everything including uploading the image(which didn't exist anywhere in my forum files)...nothing was modified with the install at all.


Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on January 21, 2007, 06:08:41 PM
Quote from: Fizzgig on January 21, 2007, 10:16:32 AM
Hello, I've just installed this mod on my test forum (1.1.1 with WoW dk theme) and I can get the button to show and that's about it. The code isn't working and I'm not sure what else I should edit.
I used the code as you said to (only using the end of URL).

Any help appreciated.

-Fizz

Edit:
Got it to work, yay!
I just manually edited the subs file. In fact, I had to manuallly edit everything including uploading the image(which didn't exist anywhere in my forum files)...nothing was modified with the install at all.

Please post the code you're using.  Also, copy the image over from the default theme's images folder to your custom theme's images folder.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: 4fit? on January 22, 2007, 08:09:07 AM
Quote from: Fizzgig on January 22, 2007, 04:46:25 AM
Thanks but I did manage to get it working after-all :)

I do have one small issue, though and I can't seem to find where to fix it.
I get this error:

8: Undefined index: gallery_text_oldpicture
File: /home/****************/public_html/Themes/default/languages/Gallery.english.php (eval?)
Line: 621

In the forum error log. It seems to come up everytime someone accesses the gallery pages.
:-\
I would recommend contacting the gallery author, vbgamer45 (http://www.simplemachines.org/community/index.php?action=profile;u=24876).
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Fizzgig on January 22, 2007, 09:15:28 AM
Heh. Yeah sorry I posted that in the wrong forum.

Must...get...sleep...
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on January 22, 2007, 01:00:55 PM
Quote from: 4fit? on January 22, 2007, 08:09:07 AM
Quote from: Fizzgig on January 22, 2007, 04:46:25 AM
Thanks but I did manage to get it working after-all :)

I do have one small issue, though and I can't seem to find where to fix it.
I get this error:

8: Undefined index: gallery_text_oldpicture
File: /home/****************/public_html/Themes/default/languages/Gallery.english.php (eval?)
Line: 621

In the forum error log. It seems to come up everytime someone accesses the gallery pages.
:-\
I would recommend contacting the gallery author, vbgamer45 (http://www.simplemachines.org/community/index.php?action=profile;u=24876).

Quote from: Fizzgig on January 22, 2007, 09:15:28 AM
Heh. Yeah sorry I posted that in the wrong forum.

Must...get...sleep...

How did you manage to do that?  :P
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: catfished on January 24, 2007, 07:30:09 PM
After reading this entire thread, I find that this mod will not work unless I manually edit a bunch of code. That makes it useless for me since I'm not a coder. At least now I can stop pulling my hair out trying to find out what I did wrong. I hope that eventually it's fixed so that we can actually install it with the package manager. ::)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: 4fit? on January 24, 2007, 08:25:00 PM
Quote from: catfished on January 24, 2007, 07:30:09 PM
After reading this entire thread, I find that this mod will not work unless I manually edit a bunch of code. That makes it useless for me since I'm not a coder. At least now I can stop pulling my hair out trying to find out what I did wrong. I hope that eventually it's fixed so that we can actually install it with the package manager. ::)
I installed it with the package manager without any problems whatsoever!!!
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: catfished on January 24, 2007, 10:20:35 PM
Quote from: 4fit? on January 24, 2007, 08:25:00 PM
I installed it with the package manager without any problems whatsoever!!!

Thanks for the reply, I'm glad it works for some people.

I'm using version 1.1.1 with the default theme and the only mods I have are:
1.    SMF 1.1.1 Update Package 1.1.1      
2.    MessagePreviewOnHover    1.4    
3.    YouTube BBC Tag (XHTML Compliant) 1.0    
4.    Users Online Today Mod    1.3.1

I've installed it, tried to uninstall it but it gives errors and says it still wants to install it even though it's already installed. I deleted it, re downloaded it and re installed it with the same results. When I try to use it, it just shows the [youtube] tags. I don't know what else I can do!

Edit: Here's the error message when I try to uninstall it:

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.
Installation Readme
You are about to uninstall the "YouTube BBC Tag ((XHTML Compliant)" mod from your SMF forum. Chances are you're doing this because it either didn't work for you, caused problems on your forum, or another related issue. If this is the case, please feel free to ask for help on the Simple Machines community forum.

Uninstall Actions
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 failed
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on January 24, 2007, 11:12:25 PM
Quote from: catfished on January 24, 2007, 07:30:09 PM
I hope that eventually it's fixed so that we can actually install it with the package manager. ::)

Fixed?  What's there to fix?  Seeing as it works for 99.9% of all SMF users running 1.1.1, I'd venture to say that it's a problem with your forum, not with my mod.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: catfished on January 24, 2007, 11:57:41 PM
Quote from: Marlon on January 24, 2007, 11:12:25 PM

Fixed?  What's there to fix?  Seeing as it works for 99.9% of all SMF users running 1.1.1, I'd venture to say that it's a problem with your forum, not with my mod.
I read this whole thread and I'm not the only one having this problem. There are several people that have posted the same problem that I'm having, at least two of them chose to install manually because they could not get it to install with the package manager. I have tried it on 2 different forums (both 1.1.1 with default (core) theme] with the exact same results! So even though I have always been able to install mods with the package manager, it's my forums problems that I can't install this one!!!!!!
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on January 25, 2007, 01:09:52 AM
Quote from: catfished on January 24, 2007, 11:57:41 PM
I read this whole thread and I'm not the only one having this problem. There are several people that have posted the same problem that I'm having, at least two of them chose to install manually because they could not get it to install with the package manager. I have tried it on 2 different forums (both 1.1.1 with default (core) theme] with the exact same results! So even though I have always been able to install mods with the package manager, it's my forums problems that I can't install this one!!!!!!

Did you upload the package or simply install it via the package manager with the mod browser?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: catfished on January 25, 2007, 10:30:03 AM
Quote from: Marlon on January 25, 2007, 01:09:52 AM
Did you upload the package or simply install it via the package manager with the mod browser?

I uploaded the package from the SMF Mods page. I deleted the file from my computer the first time and uploaded it again just in case the original one had gotten corrupted.

I also tried to figure out how to do it manually but I'm not sure I did it right. If you could give me a list of files to FTP and what files/folders to send them to, that might solve my problem.

I also tried installing it in a third forum I have, also 1.1.1 default (core) theme, with the exact same results. In all three cases I can't even uninstall the mod, it gives this error:
QuoteError 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.
Installation Readme
You are about to uninstall the "YouTube BBC Tag ((XHTML Compliant)" mod from your SMF forum. Chances are you're doing this because it either didn't work for you, caused problems on your forum, or another related issue. If this is the case, please feel free to ask for help on the Simple Machines community forum.

Uninstall Actions
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 failed
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on January 25, 2007, 12:07:05 PM
Quote from: catfished on January 25, 2007, 10:30:03 AM
I uploaded the package from the SMF Mods page. I deleted the file from my computer the first time and uploaded it again just in case the original one had gotten corrupted.

I also tried to figure out how to do it manually but I'm not sure I did it right. If you could give me a list of files to FTP and what files/folders to send them to, that might solve my problem.

I also tried installing it in a third forum I have, also 1.1.1 default (core) theme, with the exact same results. In all three cases I can't even uninstall the mod, it gives this error:

I honestly can't explain why this is happening to you (and maybe one or two others).  Extract the files to your computer and make changes based on the contents of the imstallation XML file.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: catfished on January 25, 2007, 12:40:19 PM
Quote from: Marlon on January 25, 2007, 12:07:05 PM
I honestly can't explain why this is happening to you (and maybe one or two others).  Extract the files to your computer and make changes based on the contents of the imstallation XML file.
Edit: I don't think I understand how to do that. It makes no sense to me. I open the XML file and it's a bunch of code. What am I supposed to do with that?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on January 25, 2007, 12:43:44 PM
Quote from: catfished on January 25, 2007, 12:40:19 PM
I tried that but it still doesn't work.  :'(

It would have no reason not to work if you're modifying the code manually, unless the code you're searching for does not exist.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: catfished on January 25, 2007, 12:48:22 PM
Thanks for taking the time to try and help but this is wayyyyyyyyyyyyyyy above my head. I can upload files via FTP and even change a line or two of code but I have no idea as to what I have to do to make this work. I'll just have to live without it.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: twisterking on January 26, 2007, 08:05:45 AM
Also had problems installing the mod and getting it to work. Uninstall gave the error mentioned above.

Went ahead and changed the two files (subs.php and post.template.php) by hand, uploaded them and the mod was working like a charm.

There are some issues with installing, maybe it has something to do with languages/themes (my guess), but manual install should be no problem.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: rsmini on January 26, 2007, 08:31:24 AM
Quote from: matjazz on January 04, 2007, 12:52:56 PM
[youtube=425,350]gRWIyvBSjtk[/youtube]

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

The end of address  ;)

I was struggling to get this to work until I saw this post, I'm used to embedding the whole code that You Tube provide for websites etc. Might I suggest that this quote be placed within the download page so we do not need to search through this entire thread before we find this.

I'm not complaining as this is a fantastic mod and I am really pleased to find it and know that once my members get used to it they will love it.

I installed though pac-man and it worked 1st time no problems whatsoever. Now just going to try it with the new theme (Millenium) we are hoping to use for the forum
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: catfished on January 26, 2007, 11:50:31 AM
Quote from: twisterking on January 26, 2007, 08:05:45 AM
Also had problems installing the mod and getting it to work. Uninstall gave the error mentioned above.

Went ahead and changed the two files (subs.php and post.template.php) by hand, uploaded them and the mod was working like a charm.

There are some issues with installing, maybe it has something to do with languages/themes (my guess), but manual install should be no problem.

Thanks for trying to help but unlike you folks, I'm not a coding pro, in fact I have zero knowledge of XHTML. I unzip the package and all I get are these three files:

youtube.gif

package-info XhtML file

yt bbc xhtml 1.0


I uploaded the youtube.gif to the images folder of my default theme but what in the heck am I supposed to do with the other two files? I opened them to find a bunch of code and some explanations that meant nothing to me. What am I supposed to change in subs.php and post.template.php??

I have never had so much trouble trying to install a mod. I wish I just had a list of the modified files that I could upload and write over the present ones. That would be soooo much easier than me trying to decipher XHTML codes.

Thanks again to those who have tried to help this old fart.

Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: 4fit? on January 26, 2007, 12:49:54 PM
catfished, I'm gonna try to help you out.  If you still can't get this to work, you can send me the necessary files and I will mod them for you and send them back.  PLEASE, remember to make a backup of these files before yo modify them in anyway.

In yourforum/sources/Subs.php

Find This

array(
'tag' => 'hr',
'type' => 'closed',
'content' => '<hr />',
'block_level' => true,
),


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


in yourforum/themes/yourtheme/Post.template.php

Find This

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


And add this after it

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


In yourforum/themes/languages/Modifications.english.php

Find this (which will be at the very bottom of the document)

?>


And add this before it

$txt['youtube'] = 'YouTube';



That's it.  Now upload the modified files into their respective locations and you should be good to go.  I will say one more time, MAKE A BACKUP OF THE CURRENT FILES BEFORE TOUCHING THEM.  For instance, make a copy of Subs.php and name it something like Subs1.php.  That way, if something should happen during the modification process, you can rename the Subs1.php to Subs.php and be right back where you were before you tried modifying the files. ;)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: rsmini on January 27, 2007, 12:19:42 AM
This mod is sooooo Cool. I am so pleased with it. thank you for all your efforts its well worth it. Please check the example on my forum :

www.britishminiclub.co.uk/mambo/index.php?option=com_smf&Itemid=144&topic=12128.0 (http://www.britishminiclub.co.uk/mambo/index.php?option=com_smf&Itemid=144&topic=12128.0)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Nettie on February 01, 2007, 08:28:08 AM
I still can't get this to work, despite all these replies...

It's really driving me nuts. :(

I have 3 messageboards and it's not working on any of them. :(

Any chance that you could link the full changed pages for download 4fit?
;D
Cheers!!!
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: 4fit? on February 01, 2007, 10:54:20 AM
Quote from: Nettie on February 01, 2007, 08:28:08 AM
I still can't get this to work, despite all these replies...

It's really driving me nuts. :(

I have 3 messageboards and it's not working on any of them. :(

Any chance that you could link the full changed pages for download 4fit?
;D
Cheers!!!
I could, but if you have other mods installed that I don't or if I have mods installed that you don't, it could mess things up pretty good.  Can you give us a test account on one of your boards to see exactly what it is doing?  Are any of the files failing when you try to install it through the package manager?  Is it saying installed successfully, but you are unable to see any changes in your forums?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: catfished on February 01, 2007, 12:11:21 PM
Quote from: 4fit? on January 26, 2007, 12:49:54 PM
catfished, I'm gonna try to help you out.  If you still can't get this to work, you can send me the necessary files and I will mod them for you and send them back.  PLEASE, remember to make a backup of these files before yo modify them in anyway.

That's it.  Now upload the modified files into their respective locations and you should be good to go.  I will say one more time, MAKE A BACKUP OF THE CURRENT FILES BEFORE TOUCHING THEM.  For instance, make a copy of Subs.php and name it something like Subs1.php.  That way, if something should happen during the modification process, you can rename the Subs1.php to Subs.php and be right back where you were before you tried modifying the files. ;)

4fit?,

Thank you very much for taking the time to try and help. Unfortunately, I'm having nothing but trouble with this mod. I have spent many hours trying to solve it but to no avail.  :'(

For starters, there is definitely no such code as this in my Subs1.php:
array(
'tag' => 'hr',
'type' => 'closed',
'content' => '<hr />',
'block_level' => true,
),


I spent quite awhile searching for it, line by line and it's definitely not there, yet my forums work just fine without it. ???
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: 4fit? on February 01, 2007, 01:25:15 PM
catfished, that is the code to insert a horizontal rule in your post.  Seems like it should be there.  Strange.  You are on 1.1.1, right?  If so, could you post up the code from or attach your Subs.php?  I'd like to take a look at that.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on February 01, 2007, 02:15:56 PM
Quote from: catfished on February 01, 2007, 12:11:21 PM
4fit?,

Thank you very much for taking the time to try and help. Unfortunately, I'm having nothing but trouble with this mod. I have spent many hours trying to solve it but to no avail.  :'(

For starters, there is definitely no such code as this in my Subs1.php:
array(
'tag' => 'hr',
'type' => 'closed',
'content' => '<hr />',
'block_level' => true,
),


I spent quite awhile searching for it, line by line and it's definitely not there, yet my forums work just fine without it. ???

If your filename is Subs1.php, then that's why the mod wouldn't install.  Not sure how it managed to become that either.

Search for 'tag' => 'hr', in Subs.php and then add my code below the array.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: 4fit? on February 01, 2007, 02:41:18 PM
Quote from: Marlon on February 01, 2007, 02:15:56 PM
If your filename is Subs1.php, then that's why the mod wouldn't install.  Not sure how it managed to become that either.

Search for 'tag' => 'hr', in Subs.php and then add my code below the array.
Marlon, I told him to make a backup copy of Subs and name it Subs1 before he started messing with the original. ;)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: catfished on February 01, 2007, 08:16:55 PM
Quote from: 4fit? on February 01, 2007, 01:25:15 PM
catfished, that is the code to insert a horizontal rule in your post.  Seems like it should be there.  Strange.  You are on 1.1.1, right?  If so, could you post up the code from or attach your Subs.php?  I'd like to take a look at that.

Ok,

I attached a copy of one of my forum's Subs.php
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: 4fit? on February 01, 2007, 08:53:13 PM
Quote from: catfished on February 01, 2007, 08:16:55 PM
Quote from: 4fit? on February 01, 2007, 01:25:15 PM
catfished, that is the code to insert a horizontal rule in your post.  Seems like it should be there.  Strange.  You are on 1.1.1, right?  If so, could you post up the code from or attach your Subs.php?  I'd like to take a look at that.


Ok,

I attached a copy of one of my forum's Subs.php
From what I know and can tell, it doesn't really matter where the code is placed in that file, as long as it falls with all the other arrays.  So...

Find this (on row 1201):

array(
'tag' => 'center',
'before' => '<div align="center">',
'after' => '</div>',
'block_level' => true,
),


and add this after it:

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


Of course, the other modifications that I posted will have to be applied to their respective files.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: catfished on February 01, 2007, 11:47:17 PM
Quote from: 4fit? on February 01, 2007, 08:53:13 PM
Quote from: catfished on February 01, 2007, 08:16:55 PM
Quote from: 4fit? on February 01, 2007, 01:25:15 PM
catfished, that is the code to insert a horizontal rule in your post.  Seems like it should be there.  Strange.  You are on 1.1.1, right?  If so, could you post up the code from or attach your Subs.php?  I'd like to take a look at that.


Ok,

I attached a copy of one of my forum's Subs.php
From what I know and can tell, it doesn't really matter where the code is placed in that file, as long as it falls with all the other arrays.  So...

Find this (on row 1201):

array(
'tag' => 'center',
'before' => '<div align="center">',
'after' => '</div>',
'block_level' => true,
),


and add this after it:

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


Of course, the other modifications that I posted will have to be applied to their respective files.

Well thanks but as soon as I added that code, it crashed the forum with an error:

Parse error: syntax error, unexpected ',' in /home/norcal/public_html/forum/Sources/Subs.php on line 1215

I simply replaced the edited file with the original to get the forum back but I'm about at the end of my rope here. I'm convinced that this mod is not going to work on any of my forums!!
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: catfished on February 02, 2007, 12:40:59 AM
 Well this is the final straw! :'( I really thought I'd discovered the problem when I realized there were Subs.php and Subs.php~ files as well as Post.template.php and Post.template.php~ etc. The ones with the ~ were dated the day I originally installed the mod via the Package Manager. I checked all three files and found that they did not have the changes so I made them just as you instructed and renamed them without the ~. I then checked to see if my forum still worked and it was working fine. I anxiously tried the youtube mod and guess what: It still does nothing!!!! That's it!! The end!!! There is no way that this mod can ever be installed on any of my SMF forums.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on February 02, 2007, 12:53:21 PM
Quote from: catfished on February 02, 2007, 12:40:59 AM
Well this is the final straw! :'( I really thought I'd discovered the problem when I realized there were Subs.php and Subs.php~ files as well as Post.template.php and Post.template.php~ etc. The ones with the ~ were dated the day I originally installed the mod via the Package Manager. I checked all three files and found that they did not have the changes so I made them just as you instructed and renamed them without the ~. I then checked to see if my forum still worked and it was working fine. I anxiously tried the youtube mod and guess what: It still does nothing!!!! That's it!! The end!!! There is no way that this mod can ever be installed on any of my SMF forums.

LOL, I'm sorry to hear that; it's quite unfortunate that my mod doesn't work on your website.  It's one thing if your forum is having trouble installing a mod through the package manager.  It certainly is a very different problem if the additions my mod needs to make to files fail, simply because the search code (apparently) does not exist.

I wish I could help you further, but no one seems to have the problem you're having.  Everyone that has had difficulty installing my mod through their package manager experienced no problems at all with installing it manually.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: catfished on February 02, 2007, 10:42:46 PM
Quote from: Marlon on February 02, 2007, 12:53:21 PM

LOL, I'm sorry to hear that; it's quite unfortunate that my mod doesn't work on your website.  It's one thing if your forum is having trouble installing a mod through the package manager.  It certainly is a very different problem if the additions my mod needs to make to files fail, simply because the search code (apparently) does not exist.

I wish I could help you further, but no one seems to have the problem you're having.  Everyone that has had difficulty installing my mod through their package manager experienced no problems at all with installing it manually.

Well if I had remembered about using [youtube=425,350][/youtube] as suggested by matjazz (http://www.simplemachines.org/community/index.php?topic=139271.msg890923#msg890923)
instead of just
tags that your mod instructs us to do, I wouldn't have had to make my previous post. I remembered reading that earlier in this thread so I tried it and it finally works.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on February 02, 2007, 11:05:29 PM
Quote from: catfished on February 02, 2007, 10:42:46 PM
Well if I had remembered about using [youtube=425,350][/youtube] as suggested by matjazz (http://www.simplemachines.org/community/index.php?topic=139271.msg890923#msg890923)
instead of just
tags that your mod instructs us to do, I wouldn't have had to make my previous post. I remembered reading that earlier in this thread so I tried it and it finally works.

I'm glad you got it working, though I can't fathom how you got the mod to work when you had a parse error in Subs.php.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: catfished on February 02, 2007, 11:36:48 PM
Quote from: Marlon on February 02, 2007, 11:05:29 PM

I'm glad you got it working, though I can't fathom how you got the mod to work when you had a parse error in Subs.php.

I posted earlier that I found two Subs.php files one with a ~ after it. I renamed the one with the ~ and did the same with Post.template.php~ and Modifications.english.php~. I then added the codes for the mod to those files.

Guess what!!! I just found out it only works with Firefox!!!  In IE7 it just shows a box with a redX:
(http://www.sabretalk.com/yt.gif)
Below is the same tag posted in Firefox:
(http://www.sabretalk.com/yt1.gif)
Now I'm totally confused. It was a heck of a lot less hassle to convert three IPB forums over to SMF a couple of years ago than making this mod work correctly!!!!!!!!
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: catfished on February 02, 2007, 11:54:58 PM
I just tested it on another computer with IE6 and it works fine so evidently the problem is in IE7. This can be serious since Micro$oft is forcing IE7 upgrade with XP updates, that's how I ended up with IE7, I certainly didn't want it. >:(  
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: 4fit? on February 03, 2007, 12:28:00 AM
catfished, they show up just fie for me on IE7 and Firefox and even Netscape.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: catfished on February 03, 2007, 12:40:35 AM
Quote from: 4fit? on February 03, 2007, 12:28:00 AM
catfished, they show up just fie for me on IE7 and Firefox and even Netscape.

Thanks 4fit. Unfortunately, they don't for me with IE7. They show up in every other browser that I've tried. I tried checking various settings in the options of IE7 but nothing helped. I just can't believe the hassles I'm having with this!! Could you do me a favor and see if you can see them in this link using IE7?
http://norcalcarpclub.com/forum/index.php?topic=667.msg3215#msg3215

I'm giving it up for tonight but I'll check back in the morning.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: catfished on February 03, 2007, 08:00:13 AM
Update: I posted my problem on a geek forum and about 40% of IE7 users were seeing red X's. The fix is to install flash since IE7 evidently does not have it installed when you download it. Below are my comments on the geek forum.

Thanks everyone, I installed Flash Player and now it works but I'm going to get a lot of people saying they can't see the vids due to IE7 crap. I don't see why they can't have Flash installed out of the box since Flash is so popular. I hate %$#$# IE7 crapola!!!!
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on February 03, 2007, 02:01:07 PM
I've tested it out on many new versions of major browsers; all worked clawlessly.  The idea of reinstalling flash to IE7 seems correct to me.

Was it only the Flash with my embed code that returned a red 'X', or was it all Flash applets?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: catfished on February 03, 2007, 11:42:53 PM
Quote from: Marlon on February 03, 2007, 02:01:07 PM
I've tested it out on many new versions of major browsers; all worked clawlessly.  The idea of reinstalling flash to IE7 seems correct to me.

Was it only the Flash with my embed code that returned a red 'X', or was it all Flash applets?

Darn! I'm sorry Marlon, I was going to check other flash applets but once I had installed flash I could no longer check.  
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on February 04, 2007, 08:14:10 PM
Quote from: catfished on February 03, 2007, 11:42:53 PM
Darn! I'm sorry Marlon, I was going to check other flash applets but once I had installed flash I could no longer check. 

Well, as long as it's working OK for you.  :)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Macfplus on February 06, 2007, 06:53:41 AM
Hi!
Many thanks for this mod my members were waitinf for a long time !
I read it but tell it one more time:
It would be wonderful to make a popup system to enter easier the video's code...
Many thanks and sorry for my english.  :D
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on February 06, 2007, 11:40:46 AM
Quote from: Macfplus on February 06, 2007, 06:53:41 AM
Hi!
Many thanks for this mod my members were waitinf for a long time !
I read it but tell it one more time:
It would be wonderful to make a popup system to enter easier the video's code...
Many thanks and sorry for my english.  :D

Macfplus, thank you for your suggestion; it will be considered for the next release of this mod.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: amrita4ever on February 08, 2007, 12:20:31 AM
hey marlon... i got it to install perfectly intop my theme... , but i can seem to get it to work... its frozen for some reason... any ideas? http://amrita4ever.kilu3.de/forum/index.php?topic=1.0
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: amrita4ever on February 08, 2007, 12:23:47 AM
hmm... wierd actually... worx prefect with IE7 which most ppl say isnt that gr8 for this mod, but with firefox 1.5 it isnt working nicely... i'l try it on firefox 2 and update u...
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: navjotjsingh on February 08, 2007, 02:50:37 PM
In my forum I don't know why Youtube tag remains unparsed. I have enabled html, flash from post settings. Checked manually that all 3 files are edited properly. But still the mod refuses to work. Tag remains unparsed.

Check the problem area: http://www.portal4webhost.com/webmaster_tutorials/all_cpanel_tutorial_videos_goes_here-t21.0.html#msg21

Any Idea where's the problem?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on February 08, 2007, 05:50:54 PM
Quote from: navjotjsingh on February 08, 2007, 02:50:37 PM
In my forum I don't know why Youtube tag remains unparsed. I have enabled html, flash from post settings. Checked manually that all 3 files are edited properly. But still the mod refuses to work. Tag remains unparsed.

Check the problem area: http://www.portal4webhost.com/webmaster_tutorials/all_cpanel_tutorial_videos_goes_here-t21.0.html#msg21

Any Idea where's the problem?

Use the [youtube=425,350][/youtube] tags.  The way your tags are formatted will function only in the next release of this mod.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: skoozee on February 08, 2007, 09:10:59 PM
just thought i'd respond to this, i added this mod using package manager and uploaded it from my pc, spent about an hour trying to get it to work the problem i had was no video showing just big blank, then i came across the post saying only insert the last part of the ID and thats all my problem was, i was entering the complete url lol
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: navjotjsingh on February 08, 2007, 09:51:02 PM
Quote from: Marlon on February 08, 2007, 05:50:54 PM
Quote from: navjotjsingh on February 08, 2007, 02:50:37 PM
In my forum I don't know why Youtube tag remains unparsed. I have enabled html, flash from post settings. Checked manually that all 3 files are edited properly. But still the mod refuses to work. Tag remains unparsed.

Check the problem area: http://www.portal4webhost.com/webmaster_tutorials/all_cpanel_tutorial_videos_goes_here-t21.0.html#msg21

Any Idea where's the problem?

Use the [youtube=425,350][/youtube] tags.  The way your tags are formatted will function only in the next release of this mod.

Thanks a lot...it worked wonderfully!
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Zenigata on February 13, 2007, 06:19:34 PM
Hi, does it works with 1.1.2?

Thanks
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: webmistress on February 13, 2007, 07:10:58 PM
QuoteLanguage Integration

To make the mod work with your language, simple open Modifications.*.php, where * is the language you wish to integrate the mod into, and add $txt['youtube'] = 'YouTube'; to its own line in the file.

I use classic and it has no modifications.english.php file. And it's not working on the forum.

I have the .gif and I did edit the post template. There must be something I need to do in another file. Can you tell me what that might be?

Thanks.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: chep on February 13, 2007, 08:01:16 PM
Quote from: Zenigata on February 13, 2007, 06:19:34 PM
Hi, does it works with 1.1.2?

Thanks

Works for me. I use the Black Rain theme so I had to modify the youtube.gif with a white background. Otherwise it looked weird. Steal it if someone needs it...
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on February 13, 2007, 08:52:41 PM
Quote from: Zenigata on February 13, 2007, 06:19:34 PM
Hi, does it works with 1.1.2?

Thanks

Indeed, it does.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: webmistress on February 13, 2007, 09:46:22 PM
I was not able to make this work on my forum. I have classic and there is no modifications.english.php file.  
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on February 14, 2007, 01:10:09 AM
Quote from: webmistress on February 13, 2007, 09:46:22 PM
I was not able to make this work on my forum. I have classic and there is no modifications.english.php file. 

My mod should make changes to only the default theme's Modifications.english.php file.  As long as your custom theme lacks this file, it should function as intended.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: webmistress on February 14, 2007, 09:23:09 AM
I'll try again. I kept getting a blank screen. By the way, the files are .wmv files. Do these work with the youtube tags? And I have to put in http:// because the file is not located on the same host file system.  
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Sinan-Trr on February 14, 2007, 09:53:48 AM
Help Me It Shows Black:
http://turk.hotserv.dk/index.php?topic=19.0
I dont Know Why I Have The Icon That Allows To "Look" Youtube Clips...
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on February 14, 2007, 01:04:30 PM
Quote from: Sinan-Trr on February 14, 2007, 09:53:48 AM
Help Me It Shows Black:
http://turk.hotserv.dk/index.php?topic=19.0
I dont Know Why I Have The Icon That Allows To "Look" Youtube Clips...

Guests can't access that topic.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on February 14, 2007, 01:05:57 PM
Quote from: webmistress on February 14, 2007, 09:23:09 AM
I'll try again. I kept getting a blank screen. By the way, the files are .wmv files. Do these work with the youtube tags? And I have to put in http:// because the file is not located on the same host file system. 

Uh, if the movie file is hosted on YouTube, it shouldn't matter.  Just in case you don't know, you have to upload the video to YouTube first before embedding it in the post.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Sinan-Trr on February 14, 2007, 01:27:34 PM
Quote from: Marlon on February 14, 2007, 01:04:30 PM
Quote from: Sinan-Trr on February 14, 2007, 09:53:48 AM
Help Me It Shows Black:
http://turk.hotserv.dk/index.php?topic=19.0
I dont Know Why I Have The Icon That Allows To "Look" Youtube Clips...

now u can :-)
Guests can't access that topic.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: webmistress on February 14, 2007, 03:19:09 PM
Thank you Marlon. THere is actually more about you tube than I realized. I guess I need to tackle that part first.

By the way, you were very polite in your answer. It's appreciated.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: DreamSinger on February 14, 2007, 09:06:33 PM
Hi, first thank you for this mod. I'm really excited about its possibilities.

I installed it through smf package manager, and it seems to work okay in IE7, although I did notice when loading my pages I see the $txt['youtube'] = 'YouTube'; text in the upper left hand corner. But my background is black, so the text gets hidden as soon as the color loads.

In Firefox, of which I have the latest edition, for some reason the video freezes. It appears, but you can't click on it to make it play.

My theme apparently doesn't have the post.template.php file, only my default theme does.

Any help in this would be greated appreciated. I've read through this entire thread, and my head is spinning, but I do want to understand what I can do to make this work.

Also, I can't preview the post in either browsers, but I can save it, and then the video will appear. When I try to preview it just goes into "fetching" mode, and the bar at the bottom of my screen says "Done", but nothing else happens.

Thank you for your help!

[EDIT] I took down the attachment for the modifications.english.php, because I finally got it working. Two files were overwritten correctly, I think, but the modifications file just needed to have the code placed before the closure and not after. That took care of the code at the top of the page plus my Preview function started working again (after I had discovered that it didn't work for the video post or my regular posts before)

But it still doesn't work in my Firefox brower and in IE7, I need to click on the arrow twice to get it to work, and when I do it opens a new window to the YouTube site, as well as loads it in my post.

Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on February 14, 2007, 10:31:59 PM
Quote from: Sinan-Trr on February 14, 2007, 01:27:34 PM
now u can :-)

Thanks.  Would you mind posting the contents of that post for me?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: DreamSinger on February 15, 2007, 12:25:13 AM
Marlon, I went looking through my files and I found quite a few files that have been renamed with a ~at the end. Not only the files that were supposed to be modified but others i wouldn't have thought would have been affected.

In the default/languages folder there are duplicate files and the ~ on one of each duplicate for modsettings.english.php, manageboards.english.php, login.spanish.php, login.german.php,  login.english.php, login.dutch.php, index.spanish.php, index.german.php, index.english.php, index.dutch.php, errors.spanish.php, errors.german.php, errors.english.php, errors.dutch.php.

In the sources folder there's a bunch more.

Are these duplicates with the ~ ? Can they be deleted or what do I do with them?



Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Sinan-Trr on February 15, 2007, 08:28:03 AM
Quote from: Marlon on February 14, 2007, 10:31:59 PM
Quote from: Sinan-Trr on February 14, 2007, 01:27:34 PM
now u can :-)

Thanks.  Would you mind posting the contents of that post for me?

http://turk.hotserv.dk/index.php?topic=19.0

[youtube=425,350]http://www.youtube.com/watch?v=c8rO4AslIAQ[/youtube]
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: DreamSinger on February 15, 2007, 08:38:49 AM
Quotehttp://turk.hotserv.dk/index.php?topic=19.0

[youtube=425,350]http://www.youtube.com/watch?v=c8rO4AslIAQ[/youtube]

Try entering only the last part of the URL c8rO4AslIAQ beteen the youtube codes.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Sinan-Trr on February 15, 2007, 09:32:15 AM
Quote from: DreamSinger on February 15, 2007, 08:38:49 AM
Quotehttp://turk.hotserv.dk/index.php?topic=19.0

[youtube=425,350]http://www.youtube.com/watch?v=c8rO4AslIAQ[/youtube]

Try entering only the last part of the URL c8rO4AslIAQ beteen the youtube codes.

It Worked Alot Of Thanks :-)
Cant Say In Words :-)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: DreamSinger on February 15, 2007, 09:45:49 AM
 :)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on February 15, 2007, 01:25:48 PM
Quote from: DreamSinger on February 15, 2007, 12:25:13 AM
Marlon, I went looking through my files and I found quite a few files that have been renamed with a ~at the end. Not only the files that were supposed to be modified but others i wouldn't have thought would have been affected.

In the default/languages folder there are duplicate files and the ~ on one of each duplicate for modsettings.english.php, manageboards.english.php, login.spanish.php, login.german.php,  login.english.php, login.dutch.php, index.spanish.php, index.german.php, index.english.php, index.dutch.php, errors.spanish.php, errors.german.php, errors.english.php, errors.dutch.php.

In the sources folder there's a bunch more.

Are these duplicates with the ~ ? Can they be deleted or what do I do with them?

Yes, they are your previous file versions renamed with a ~.  Removing them at your own discretion should not be an issue.  :)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on February 15, 2007, 01:27:28 PM
Just thought I'd inform anyone that doesn't already know...

YES, this mod is in fact compatible with SMF version 1.1.2.  :)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: webmistress on February 15, 2007, 03:46:22 PM
This is so cool! It was super easy once I realized it had to be uploaded to the youtube website. So I had to get past major league el stupido naive mode and then it was a piece of cake.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: DreamSinger on February 15, 2007, 04:42:05 PM
Quote from: Marlon on February 15, 2007, 01:25:48 PM
Quote from: DreamSinger on February 15, 2007, 12:25:13 AM
Are these duplicates with the ~ ? Can they be deleted or what do I do with them?

Yes, they are your previous file versions renamed with a ~.  Removing them at your own discretion should not be an issue.  :)

Okay, thanks.

Could you, please, tell me why it still won't work in my Firefox brower though? It's like the screen is frozen and I can't click the arrow. In IE7, it works only if I click the arrow twice, and then it, also, opens a new window to the YouTube site, itself, in addition to playing in the post.

Here's the url, http://keepingthedream.net/index.php?topic=65.0 (http://keepingthedream.net/index.php?topic=65.0)  if you or anyone else would like to look at it through the different browers.

I have the latest version of Firefox and IE7.

Any help in this would be greatly appreciated.

Thanks!
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: webmistress on February 15, 2007, 09:22:54 PM
Doesn't work in Mozilla.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: DreamSinger on February 15, 2007, 09:43:13 PM
Thanks for the feedback. Do you mean it doesn't work in your Mozilla, or that it isn't supposed to work in Mozilla at all?

I thought I read earlier you need to update to Firefox 2.0 or something. I know I have the latest version...
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on February 16, 2007, 01:52:26 AM
Quote from: webmistress on February 15, 2007, 09:22:54 PM
Doesn't work in Mozilla.

Works just fine for me and other Mozilla users.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: DreamSinger on February 16, 2007, 10:37:00 AM
Quote from: Marlon on February 16, 2007, 01:52:26 AM
Quote from: webmistress on February 15, 2007, 09:22:54 PM
Doesn't work in Mozilla.

Works just fine for me and other Mozilla users.

I'm still confused. Are you saying the mod, itself, generally speaking, works fine for you and other Mozilla users? If so, what I would  like to know is if other Mozilla users can see if it's works for them on my board:
http://keepingthedream.net/index.php?topic=65.0 (http://keepingthedream.net/index.php?topic=65.0)

Because it doesn't seem to for me. Would really appreciate feedback on this.

Thanks!
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: DreamSinger on February 16, 2007, 01:40:10 PM
Okay, FINALLY, I understand. This is what happens when you're on the lower end of the learning curve.

I confused update with upgrade. I checked my Firefox and it did say I had the latest updates. But that's different from upgrades.

So for all you other newbies, to have this mod work in Firefox, make sure you go to the Firefox website and upgrade to the newest version of Firefox. It has to be a 2.0 version, and not just the latest updates for 1.whatever.   ::)

Thanks for a great mod.  :)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on February 16, 2007, 05:35:03 PM
Quote from: DreamSinger on February 16, 2007, 10:37:00 AM
I'm still confused. Are you saying the mod, itself, generally speaking, works fine for you and other Mozilla users? If so, what I would  like to know is if other Mozilla users can see if it's works for them on my board:
http://keepingthedream.net/index.php?topic=65.0 (http://keepingthedream.net/index.php?topic=65.0)

Because it doesn't seem to for me. Would really appreciate feedback on this.

Thanks!

I'm confised too, seeing as it works just fine for me.  Make sure your version of Flash is up to date.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: snoopdog on February 16, 2007, 10:26:32 PM
I have it working on one forum. with 1.1.2 I am getting one error.

. Execute Modification ./Sources/Subs.php Test failed   

Never mind I got it working :) I had the wrong mod.  ;) mine was the
Quoteyoutube_bbc_0.2
that was not working.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: readme.txt on February 16, 2007, 11:50:33 PM
Because when I respond to a subject with a video, for example:
[youtube=425,350]FLgn64-bbwQ[/youtube]

At the time of sending the message, it leaves a warning to me saying that I must nevertheless write something but this the code of youtube.
[youtube=425,350]FLgn64-bbwQ[/youtube]


   
To the flank of the code I write a “point”, that if it sends it and it leaves the message the video with the point to the flank.

If they want they test. 

I have proven it in my forum and leaves that problem, also I did it in the forum of "DreamSinger" and leaves he himself problem.

Sorry my english is not good.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: DreamSinger on February 17, 2007, 09:40:41 AM
Hi ReadMe.

I tried posting a reply on that thread, and had no problems. I tested reply1 with FireFox 2.0.1, and then reply 2 in Internet Explorer 7. I did not get that message, just a blank reply box that I was able to fill in and post.

What browser are you using?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on February 18, 2007, 02:08:18 AM
Quote from: readme.txt on February 16, 2007, 11:50:33 PM
Because when I respond to a subject with a video, for example:
[youtube=425,350]FLgn64-bbwQ[/youtube]

At the time of sending the message, it leaves a warning to me saying that I must nevertheless write something but this the code of youtube.
[youtube=425,350]FLgn64-bbwQ[/youtube]


   
To the flank of the code I write a "point", that if it sends it and it leaves the message the video with the point to the flank.

If they want they test. 

I have proven it in my forum and leaves that problem, also I did it in the forum of "DreamSinger" and leaves he himself problem.

Sorry my english is not good.

Just add some text to the post and it should submit without any problems.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: readme.txt on February 18, 2007, 05:51:14 AM
Quote from: DreamSinger on February 17, 2007, 09:40:41 AM
Hi ReadMe.

I tried posting a reply on that thread, and had no problems. I tested reply1 with FireFox 2.0.1, and then reply 2 in Internet Explorer 7. I did not get that message, just a blank reply box that I was able to fill in and post.

What browser are you using?

Hi, it tries single to put the code of youtube as you see in the figure of above, you do not put anything of text, single the code.

I using Firefox 2.0.0.1

Quote from: Marlon on February 18, 2007, 02:08:18 AM

Just add some text to the post and it should submit without any problems.

   
Of that form if it works. It must also work of the other form. I believe that it is an error of the SMF. 
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: webmistress on February 18, 2007, 02:05:20 PM
Quote from: DreamSinger on February 15, 2007, 09:43:13 PM
Thanks for the feedback. Do you mean it doesn't work in your Mozilla, or that it isn't supposed to work in Mozilla at all?

I thought I read earlier you need to update to Firefox 2.0 or something. I know I have the latest version...

It's not working in MY mozilla. But it is working fine in Firefox. I'll check opera shortly.

I have my mozilla configured to act like Safari. That way I can troubleshoot mac issues better. It's been right on so far but it's not a safari.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: webmistress on February 18, 2007, 02:07:13 PM
It works in Opera.  I forgot to mention that I have the latest firefox, mozilla, ie7 and I am probably a version behind on Opera.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: bilbojr on February 19, 2007, 08:29:36 PM
Mine just shows the code no video.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on February 19, 2007, 08:34:10 PM
Quote from: bilbojr on February 19, 2007, 08:29:36 PM
Mine just shows the code no video.

Mind posting a link to an example topic?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: bilbojr on February 19, 2007, 09:26:18 PM
sorry yes site is NSFW btw

http://eradicational.net/index.php?topic=2134.msg3930#msg3930

actually that video is gone if that matters

this one i know is still active

http://eradicational.net/index.php?topic=2580.0
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on February 19, 2007, 11:14:28 PM
Quote from: bilbojr on February 19, 2007, 09:26:18 PM
sorry yes site is NSFW btw

http://eradicational.net/index.php?topic=2134.msg3930#msg3930

actually that video is gone if that matters

this one i know is still active

http://eradicational.net/index.php?topic=2580.0

First, you must use the R-ayk8xz5_A for that particular video, because that's the video ID, not the URL.  Second, the mod doesn't appear to be installed properly.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: bilbojr on February 20, 2007, 01:12:26 AM
Quote from: Marlon on February 19, 2007, 11:14:28 PM
Quote from: bilbojr on February 19, 2007, 09:26:18 PM
sorry yes site is NSFW btw

http://eradicational.net/index.php?topic=2134.msg3930#msg3930

actually that video is gone if that matters

this one i know is still active

http://eradicational.net/index.php?topic=2580.0

First, you must use the R-ayk8xz5_A for that particular video, because that's the video ID, not the URL.  Second, the mod doesn't appear to be installed properly.

OK I didn't use the URL but had v= in front of the code you said to use and used the package manager to reinstall it after the 1.1.2 update. It worked with that code prior to the update.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on February 20, 2007, 11:35:51 AM
Quote from: bilbojr on February 20, 2007, 01:12:26 AM
OK I didn't use the URL but had v= in front of the code you said to use and used the package manager to reinstall it after the 1.1.2 update. It worked with that code prior to the update.

So does it function correctly now?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: bilbojr on February 20, 2007, 05:58:29 PM
no it doesn't
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Coaxus on February 20, 2007, 08:22:51 PM
Hey guys. I installed the youtube mod on v1.1.2 in the hope that it may work but sadly not.

I was wondering if there was a timeframe for a compatible version to be released?

Also, I was wondering why this would happen even though I copied the youtube.gif file into all theme directories:

Edit: the first image is of when the page loads, the second is of while it's lodading.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: bilbojr on February 20, 2007, 10:44:16 PM
I get what you see in the first pic when using firefox
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on February 21, 2007, 12:52:43 PM
Coaxus and bilbojr, you're not using my mod with SMF's default theme.  Move youtube.gif over from ./Themes/default/images/bbc to ./Themes/[theme name]/images/bbc.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: bilbojr on February 21, 2007, 05:43:57 PM
Actually it is the default theme I have never changed it.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: bilbojr on February 21, 2007, 05:52:21 PM
I looked thru and I didn't see the gif in any of the themes, I manually uploaded it.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: bilbojr on February 21, 2007, 06:40:05 PM
I got it the sub.php and Modifications.english.php were never edited for some reason.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on February 21, 2007, 07:18:04 PM
Quote from: bilbojr on February 21, 2007, 06:40:05 PM
I got it the sub.php and Modifications.english.php were never edited for some reason.

You could make the changes manually, if the problem persists.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Coaxus on February 21, 2007, 10:53:22 PM
Quote from: Marlon on February 21, 2007, 12:52:43 PM
Coaxus and bilbojr, you're not using my mod with SMF's default theme.  Move youtube.gif over from ./Themes/default/images/bbc to ./Themes/[theme name]/images/bbc.
Ahh! I didn't realise it had to go in the bbc folder. :P

Thanks - it's all working perfectly now. :)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: caruso on February 23, 2007, 09:17:02 AM
Hello, I've got a problem with this mod, too.

I have installed it and written the tags in the right way (so I think) but there is no Video.
Is somebody able to help me? Link to the Thread: http://hardwarecrew.com/forum/index.php?topic=1646.msg2809 ;)

(Please excuse my bad englsh.)

Greets
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: talk-zones on February 23, 2007, 09:52:52 AM
Your tags are formatted properly and working. I even copied one to my own forum which has the mod installed and working and it played fine.

I noticed that you aren't using the default core theme, I can only assume that this is the problem.

If you installed the mod with package manager on smf then it will only be installed to the default core theme. You will have to extract the package contents and manually edit and place the code for the mod into the relevant files for your theme.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: chicote on February 23, 2007, 11:06:48 AM
good work..

Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on February 23, 2007, 11:46:27 AM
Quote from: caruso on February 23, 2007, 09:17:02 AM
Hello, I've got a problem with this mod, too.

I have installed it and written the tags in the right way (so I think) but there is no Video.
Is somebody able to help me? Link to the Thread: http://hardwarecrew.com/forum/index.php?topic=1646.msg2809 ;)

(Please excuse my bad englsh.)

Greets

When you create a new topic, do you see the YouTube button?  It may not be installed properly.

Quote from: talk-zones on February 23, 2007, 09:52:52 AM
Your tags are formatted properly and working. I even copied one to my own forum which has the mod installed and working and it played fine.

I noticed that you aren't using the default core theme, I can only assume that this is the problem.

If you installed the mod with package manager on smf then it will only be installed to the default core theme. You will have to extract the package contents and manually edit and place the code for the mod into the relevant files for your theme.

The YouTube code itself works with any theme.  The only possible theme modification would be to Post.template.php, should your custom theme have it.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: caruso on February 23, 2007, 12:59:32 PM
Quote from: Marlon on February 23, 2007, 11:46:27 AM
When you create a new topic, do you see the YouTube button?  It may not be installed properly.

Yes, I see it, but it doesn't work. I have just reinstalled the mod, but that's not the solution (look at the pic).
What shell I do?  ???

Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on February 23, 2007, 03:33:36 PM
Quote from: caruso on February 23, 2007, 12:59:32 PM
Yes, I see it, but it doesn't work. I have just reinstalled the mod, but that's not the solution (look at the pic).
What shell I do?  ???

Did you originally install the mod and later upgrade to a newer version of SMF?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: caruso on February 24, 2007, 06:14:31 AM
Quote from: Marlon on February 23, 2007, 03:33:36 PM
Did you originally install the mod and later upgrade to a newer version of SMF?

No, at first I've installed the mod and later the upgrade to 1.1.2 - but a reinstall after the upgrade didi'nt help.  
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: mwmconsulting on February 24, 2007, 03:29:04 PM
Bloody sensational mod.  Thx mate!

;) 8)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Flexy on February 24, 2007, 09:48:36 PM
So how close are we to the next version?, the one that will allow you to put the whole youtube address rather than the last bit of code.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on February 25, 2007, 02:18:07 AM
Quote from: Flexy on February 24, 2007, 09:48:36 PM
So how close are we to the next version?, the one that will allow you to put the whole youtube address rather than the last bit of code.

That will take a decent amount of time that I don't have, at least at this point.  To be completely honest with you, I haven't the slightest clue when it will be ready for public release.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Exterminator2006 on February 25, 2007, 11:11:40 AM
No play in my forums. why? but is show the imagen
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Zenigata on February 25, 2007, 11:23:47 AM
It seems it doesn't work withe Firefox 1.5 or IE 6.0. Why?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Coaxus on February 25, 2007, 11:56:02 PM
It works fine with Firefox 2.0.x

Also, it works fine with IE6 and Opera for me.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Exterminator2006 on February 26, 2007, 12:12:41 AM
show me your code.... o instructions for instalation ?  thanks   give the steps
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Exterminator2006 on February 26, 2007, 12:20:58 AM
Quote from: Coaxus on February 25, 2007, 11:56:02 PM
It works fine with Firefox 2.0.x

Also, it works fine with IE6 and Opera for me.
it;s true friend.... install firefox 2.0.0.2 and perfect  but i.e 60 and firefox 1.5xx no play  why?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on February 26, 2007, 01:13:51 AM
Quote from: Exterminator2006 on February 25, 2007, 11:11:40 AM
No play in my forums. why? but is show the imagen

For anyone else having difficulty with browser compatibility issues, I'll say once more that the outputted HTML that embeds the video in the post will not be changed.  My mod has been tested and has been confirmed to work with all new versions of major browsers.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Zenigata on February 26, 2007, 08:13:58 AM
Quote from: Marlon on February 26, 2007, 01:13:51 AM
My mod has been tested and has been confirmed to work with all new versions of major browsers.

Yes, it works with new version, but there are some people who don't use new broswser. What we can do for them?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Exterminator2006 on February 26, 2007, 09:50:11 AM
some people who do not have new PC for new navigators and new operating systems :(
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on February 26, 2007, 11:59:08 AM
Quote from: Zenigata on February 26, 2007, 08:13:58 AM
Yes, it works with new version, but there are some people who don't use new broswser. What we can do for them?

Encourage them to upgrade to a newer and more stable version of their browser.

Quote from: Exterminator2006 on February 26, 2007, 09:50:11 AM
some people who do not have new PC for new navigators and new operating systems :(

If Windows 95 can run Firefox's latest release, I'd imagine any other operating system could do the same.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Zenigata on February 26, 2007, 01:13:02 PM
Quote from: Marlon on February 26, 2007, 11:59:08 AM
Encourage them to upgrade to a newer and more stable version of their browser.

Not everyone is a system administrator, I mean there are a lot of people who uses internet from work or internet point.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: caruso on February 26, 2007, 01:52:10 PM
Would nobody like to help me?  :(
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on February 27, 2007, 12:48:55 PM
Quote from: Caruso on February 26, 2007, 01:52:10 PM
Would nobody like to help me?  :(

I'm not sure where to start.  Try making the file changes manually.

Quote from: Zenigata on February 26, 2007, 01:13:02 PM
Not everyone is a system administrator, I mean there are a lot of people who uses internet from work or internet point.

That's true.  It's been confirmed, even before I released the mod, that the valid XHTML code WILL NOT function correctly in older versions of popular browsers.  As stated earlier, the code used to embed the videos in posts WILL NOT be changed in any future release of this mod unless someone can brainstorm a way to embed the video into a post and still retain the page's XHTML validity.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: hotjunkie on March 01, 2007, 02:51:15 AM
Thanks for this mod,my members love posting YouTube Videos. ;)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: benchiu on March 02, 2007, 11:45:11 AM
I have installed this on my test forums (1.1.2), and while it the video works fine, I noticed that it changed the font settings of the forums somehow (could be my browser), and that there is some text at the top of the page that states $txt['youtube'] = 'YouTube';

Can anyone help with this?  Here is the URL of my test forums.

http://www.bopguild.com/test/

EDIT - I also noticed that my quick reply text box is now gone as well :(
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on March 03, 2007, 02:22:06 AM
Quote from: benchiu on March 02, 2007, 11:45:11 AM
I have installed this on my test forums (1.1.2), and while it the video works fine, I noticed that it changed the font settings of the forums somehow (could be my browser), and that there is some text at the top of the page that states $txt['youtube'] = 'YouTube';

Can anyone help with this?  Here is the URL of my test forums.

http://www.bopguild.com/test/

EDIT - I also noticed that my quick reply text box is now gone as well :(

I can't explain why quick reply is missing.  Try checking your profile options and the theme's default settings.  Also, would you mind either posting the contents of or uploading your Modifications.english.php?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: rbayless on March 03, 2007, 10:08:06 PM
Hello,

I just installed the latest version of this mod from SMF's web site. I am currently running SMF v1.1.2 and my browser is Firefox 2.0. The mod is not working on my web site. It is a fresh install of the board, no added templates, mods, nothing else. Once I click on the BBC icon and paste a video code inbetween the tags, it will just paste that code as regular text in the forum. Anyone know what gives?

Thanks,

Richard
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: benchiu on March 03, 2007, 10:45:52 PM
Quote from: Marlon on March 03, 2007, 02:22:06 AM
Quote from: benchiu on March 02, 2007, 11:45:11 AM
I have installed this on my test forums (1.1.2), and while it the video works fine, I noticed that it changed the font settings of the forums somehow (could be my browser), and that there is some text at the top of the page that states $txt['youtube'] = 'YouTube';

Can anyone help with this?  Here is the URL of my test forums.

http://www.bopguild.com/test/

EDIT - I also noticed that my quick reply text box is now gone as well :(

I can't explain why quick reply is missing.  Try checking your profile options and the theme's default settings.  Also, would you mind either posting the contents of or uploading your Modifications.english.php?

Ok fixed the Quick Reply thing, that was a setup issue.  The font issue seems to be an issue with IE, Firefox doesn't seem to have any problems.  I've uploaded the Modifications.english.php file.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on March 04, 2007, 08:07:02 AM
benchiu, this version should work for you.  :)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: benchiu on March 05, 2007, 09:25:29 AM
Quote from: Marlon on March 04, 2007, 08:07:02 AM
benchiu, this version should work for you.  :)

Didn't work :(  I replaced the file with your attachment and it still is showing the strange text and increased font.  What is odd is that when I had removed that file completely, the text and font issues were gone.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on March 05, 2007, 11:37:38 AM
Quote from: benchiu on March 05, 2007, 09:25:29 AM
Didn't work :(  I replaced the file with your attachment and it still is showing the strange text and increased font.  What is odd is that when I had removed that file completely, the text and font issues were gone.

Ah, forgive me.  It was a typo on my part.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: hygron on March 05, 2007, 12:18:28 PM
are we good to go with 1.1.2?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on March 05, 2007, 12:47:57 PM
Quote from: hygron on March 05, 2007, 12:18:28 PM
are we good to go with 1.1.2?

Absolutely.  8)

Though I do recommend that you uninstall the mod before upgrading and then reinstall it once your upgrade is complete.  This rule won't apply to you if you use the package manager to upgrade rather than the full upgrade.  It's completely up to you.  :)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: hygron on March 05, 2007, 12:55:49 PM
You mean the 1.1.2 upgrade? I am already upgraded...so I can just install through pac-man...
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on March 05, 2007, 01:02:54 PM
Quote from: hygron on March 05, 2007, 12:55:49 PM
You mean the 1.1.2 upgrade? I am already upgraded...so I can just install through pac-man...

Well in that case, yes.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: marcalhon on March 07, 2007, 06:23:51 AM
Hi, Can anyone please help me! I'm tryinng to install this mod, via package manager, but after uploading it tell's me it needs to change some files that are not writable, and ask's for ftp details! the problem is that on that server i do not have ftp, just SFTP and that does not work with package manager!

What can i do ??

please advise
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on March 07, 2007, 11:40:15 AM
Quote from: marcalhon on March 07, 2007, 06:23:51 AM
Hi, Can anyone please help me! I'm tryinng to install this mod, via package manager, but after uploading it tell's me it needs to change some files that are not writable, and ask's for ftp details! the problem is that on that server i do not have ftp, just SFTP and that does not work with package manager!

What can i do ??

please advise

Disregard that message for now.  Log into your SFTP server and CHMOD all affected files to 777.  Once you've done that, then apply the mod.  Let me know if you're still having problems.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: marcalhon on March 07, 2007, 11:43:07 AM
Quote from: Marlon on March 07, 2007, 11:40:15 AM
Quote from: marcalhon on March 07, 2007, 06:23:51 AM
Hi, Can anyone please help me! I'm tryinng to install this mod, via package manager, but after uploading it tell's me it needs to change some files that are not writable, and ask's for ftp details! the problem is that on that server i do not have ftp, just SFTP and that does not work with package manager!

What can i do ??

please advise

Disregard that message for now.  Log into your SFTP server and CHMOD all affected files to 777.  Once you've done that, then apply the mod.  Let me know if you're still having problems.

thanks for the reply, but what are the files i should chmod! all files on the theme folder ??
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on March 07, 2007, 11:53:21 AM
Quote from: marcalhon on March 07, 2007, 11:43:07 AM
thanks for the reply, but what are the files i should chmod! all files on the theme folder ??

Here's a list of all the files I think are changed.  I'm not at my computer right now, so I have to real way to verify this.

./Packages
./Packages/*
./Themes/default/Post.template.php
./Themes/default/images/bbc
./Sources/Subs.php

Let me know if you still get a CHMOD error.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: marcalhon on March 07, 2007, 12:02:06 PM
still have the error! I'm using the dilbermc theme!
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on March 08, 2007, 11:39:46 AM
Quote from: marcalhon on March 07, 2007, 12:02:06 PM
still have the error! I'm using the dilbermc theme!

The theme you're using shouldn't matter.  Just ensure that the above files and folders are writable.  Do you have shell or CLI access to your server?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: marcalhon on March 08, 2007, 11:49:06 AM
Sorry, i still have the problem! had all that chmod's but still the error remains
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on March 08, 2007, 12:40:09 PM
Quote from: marcalhon on March 08, 2007, 11:49:06 AM
Sorry, i still have the problem! had all that chmod's but still the error remains

Which files does it say are still unwritable.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: marcalhon on March 08, 2007, 12:41:22 PM
it does not say a filename,  :'( :'( :'(
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on March 08, 2007, 01:35:15 PM
Quote from: marcalhon on March 08, 2007, 12:41:22 PM
it does not say a filename,  :'( :'( :'(

I suggest you use Daniel15's package parser (http://60.241.80.44/smf/package.php) to display which files need to be made writable.  If that doesn't work, you'll have to make the changes manually, I'm afraid.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: marcalhon on March 09, 2007, 06:00:41 AM
This link is dead, does not work! I will try to find it

Quote from: Marlon on March 08, 2007, 01:35:15 PM
Quote from: marcalhon on March 08, 2007, 12:41:22 PM
it does not say a filename,  :'( :'( :'(

I suggest you use Daniel15's package parser (http://60.241.80.44/smf/package.php) to display which files need to be made writable.  If that doesn't work, you'll have to make the changes manually, I'm afraid.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: vdubbia on March 09, 2007, 10:11:03 AM
in installed this, manually added the code to the post.template.php as instructed and added the button to my appropriate folder.

I see the youtube button, when I click it the tags appear, but after I insert the YouTube code between the tags and post to the thread, nothing appears... you don't see anything, but when you hover over where the video should be there is an outline.

Any suggestions?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on March 09, 2007, 11:36:26 AM
Quote from: marcalhon on March 09, 2007, 06:00:41 AM
This link is dead, does not work! I will try to find it

Works for me.

Quote from: wowzer on March 09, 2007, 10:11:03 AM
in installed this, manually added the code to the post.template.php as instructed and added the button to my appropriate folder.

I see the youtube button, when I click it the tags appear, but after I insert the YouTube code between the tags and post to the thread, nothing appears... you don't see anything, but when you hover over where the video should be there is an outline.

Any suggestions?

What are you butting between the tags?  Can you copy and paste it into a reply for me please?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: vdubbia on March 09, 2007, 11:42:38 AM
Quote from: Marlon on March 09, 2007, 11:36:26 AM
Quote from: marcalhon on March 09, 2007, 06:00:41 AM
This link is dead, does not work! I will try to find it

Works for me.

Quote from: wowzer on March 09, 2007, 10:11:03 AM
in installed this, manually added the code to the post.template.php as instructed and added the button to my appropriate folder.

I see the youtube button, when I click it the tags appear, but after I insert the YouTube code between the tags and post to the thread, nothing appears... you don't see anything, but when you hover over where the video should be there is an outline.

Any suggestions?

What are you butting between the tags?  Can you copy and paste it into a reply for me please?

this is the entire tag syntax: [youtube=425,350]http://www.youtube.com/watch?v=DjGPipy_zcE[/youtube]
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: vdubbia on March 09, 2007, 11:43:55 AM
Quote from: wowzer on March 09, 2007, 11:42:38 AM
Quote from: Marlon on March 09, 2007, 11:36:26 AM
Quote from: marcalhon on March 09, 2007, 06:00:41 AM
This link is dead, does not work! I will try to find it

Works for me.

Quote from: wowzer on March 09, 2007, 10:11:03 AM
in installed this, manually added the code to the post.template.php as instructed and added the button to my appropriate folder.

I see the youtube button, when I click it the tags appear, but after I insert the YouTube code between the tags and post to the thread, nothing appears... you don't see anything, but when you hover over where the video should be there is an outline.

Any suggestions?

What are you butting between the tags?  Can you copy and paste it into a reply for me please?

this is the entire tag syntax: [youtube=425,350]http://www.youtube.com/watch?v=DjGPipy_zcE[/youtube]

okay, when I just put the unique video code excluding the youtube URL, it works.  Is there any way to mod this so that a user can just copy the youtube provided URL as is?   
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on March 09, 2007, 03:34:55 PM
Quote from: wowzer on March 09, 2007, 11:43:55 AM
okay, when I just put the unique video code excluding the youtube URL, it works.  Is there any way to mod this so that a user can just copy the youtube provided URL as is?   

That would be extremely difficult, if not impossible to do.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: djzzero on March 12, 2007, 11:57:22 PM
I have installed it, but when I put the link it says it doesnt show at all in the post =/ Any problems?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on March 13, 2007, 11:22:52 PM
Quote from: djzzero on March 12, 2007, 11:57:22 PM
I have installed it, but when I put the link it says it doesnt show at all in the post =/ Any problems?

Please post the exact code you're using to embed the video clip.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: tonychel on March 16, 2007, 04:30:42 AM
I was able to installed this mod successfully thru Package manager.
Videos are now being shown using the tags.

Unfortunately, I don't know how to show the youtube.gif on BBC Tags.
So there's no shortcut on adding youtube vidoes except by typing the code
manually.

My forum is SMF 1.1.2 and I'm using Classic YaBB SE Theme

Any suggestions?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: tondelo on March 16, 2007, 08:54:24 AM
FWIW I couldn't get this to install through Pac-Man either. I kept getting a "The package you tried to upload either is not a valid package or has become corrupted." error when I tried to upload it.

Everything did go in OK when I manually installed it.

Running: SMF 1.1.2
Theme: SAF-Multicolor

Thanks for the nice addition to my forum  ;)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on March 16, 2007, 12:47:36 PM
Quote from: tonychel on March 16, 2007, 04:30:42 AM
I was able to installed this mod successfully thru Package manager.
Videos are now being shown using the tags.

Unfortunately, I don't know how to show the youtube.gif on BBC Tags.
So there's no shortcut on adding youtube vidoes except by typing the code
manually.

My forum is SMF 1.1.2 and I'm using Classic YaBB SE Theme

Any suggestions?


Move the youtube.gif file from the default theme directory to your custom theme's BBC images directory.

Quote from: tondelo on March 16, 2007, 08:54:24 AM
FWIW I couldn't get this to install through Pac-Man either. I kept getting a "The package you tried to upload either is not a valid package or has become corrupted." error when I tried to upload it.

Everything did go in OK when I manually installed it.

Running: SMF 1.1.2
Theme: SAF-Multicolor

Thanks for the nice addition to my forum  ;)

Make sure you tried to install my version of the mod and not the original and outdated version by another author (who went AWOL long ago).
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: tonychel on March 16, 2007, 01:02:51 PM
QuoteMove the youtube.gif file from the default theme directory to your custom theme's BBC images directory.

i've done it already...still doesnt show up.

Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on March 16, 2007, 01:05:26 PM
Quote from: tonychel on March 16, 2007, 01:02:51 PM
i've done it already...still doesnt show up.

In that case, navigate to your custom theme's folder and rename Post.template.php to Post.template.php.old.  This should work for you, but please let me know if it doesn't.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: tonychel on March 16, 2007, 01:20:15 PM
thanks Marlon.....it worked!

cool  :)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: tondelo on March 16, 2007, 04:30:57 PM
Quote from: Marlon on March 16, 2007, 12:47:36 PM
Make sure you tried to install my version of the mod and not the original and outdated version by another author (who went AWOL long ago).

I got the download from http://custom.simplemachines.org/mods/index.php?mod=595  
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: amrita4ever on March 16, 2007, 08:01:28 PM
Hey... is there a way I can embed Veoh videos this way because veoh.com is just like youtube...
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on March 17, 2007, 12:31:44 AM
Quote from: amrita4ever on March 16, 2007, 08:01:28 PM
Hey... is there a way I can embed Veoh videos this way because veoh.com is just like youtube...

This mod is exclusively for YouTube, and I plan on keeping it that way.  :)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: incadudeF on March 17, 2007, 05:35:33 AM
Please i need help. I have the theme Helios multi and im trying to install this mod. I tried using the package manager but it always tells me an error occurred. i have smf version 1.1.2.

thanks.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on March 17, 2007, 02:53:33 PM
Quote from: incadudeF on March 17, 2007, 05:35:33 AM
Please i need help. I have the theme Helios multi and im trying to install this mod. I tried using the package manager but it always tells me an error occurred. i have smf version 1.1.2.

thanks.

Well you're gonna have to be a bit more specific than that.  What errors are you getting?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: basis on March 19, 2007, 02:24:29 AM
Just wanted to add my voice to the chorus.

SMF: 1.1.2
Mods: TP 0.9.8

Couldn't get Pac-Man to work with this mod. But I did get it to work by manually editing the various files.

Works great! Though I was wondering if there's a way to make the size defaul. Do we always have to specify the size? 425,350? Just typing the tags without the size does not work.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: tondelo on March 19, 2007, 07:34:52 AM
Quote from: basis on March 19, 2007, 02:24:29 AM
Works great! Though I was wondering if there's a way to make the size defaul. Do we always have to specify the size? 425,350? Just typing the tags without the size does not work.

If you click on the YouTube icon it throws the size in for you rather than typing it in.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on March 19, 2007, 11:52:53 AM
Quote from: basis on March 19, 2007, 02:24:29 AM
Just typing the tags without the size does not work.

Though not a bug, that fix will be added to the next release of my mod, should I choose to make an update.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Kindred on March 19, 2007, 01:38:24 PM
question:


I installed the mod, but the video only shows as a white box...

unless I go to quick edit the post and save it (even without making any change), then the video comes up as playable, until I leave the message... if I leave and come back, it again shows as an unplayable white box...   

any ideas?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on March 19, 2007, 03:49:23 PM
Quote from: Kindred on March 19, 2007, 01:38:24 PM
question:


I installed the mod, but the video only shows as a white box...

unless I go to quick edit the post and save it (even without making any change), then the video comes up as playable, until I leave the message... if I leave and come back, it again shows as an unplayable white box...   

any ideas?

No ideas at all.  Which website did you install it to?  Would you mind me testing it out to see exactly what you mean?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Kindred on March 19, 2007, 03:54:43 PM
not at all....

http://askawitchcommunity.org

here's an example:
http://askawitchcommunity.org/index.php?option=com_smf&Itemid=164&topic=2199.0
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on March 19, 2007, 04:18:11 PM
Kindred, that's quite odd.  It seems to work OK for me using the latest version of Firefox and Opera.  I believe someone earlier in the topic had a similar issue; IIRC, he reinstalled the latest version of Flash, which fixed the white box issue.

http://askawitchcommunity.org/index.php?option=com_smf&Itemid=164&topic=2222.0

Let me know what you get.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Kindred on March 19, 2007, 04:56:06 PM
hmmm... I get a white box.

and I have flash player 9 installed....


once again, though...   If I use the quickedit icon and save the message (without changing anything), I can see it properly
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on March 20, 2007, 12:48:22 AM
Quote from: Kindred on March 19, 2007, 04:56:06 PM
hmmm... I get a white box.

and I have flash player 9 installed....


once again, though...   If I use the quickedit icon and save the message (without changing anything), I can see it properly

Can you confirm that this is happening to anyone else?  Even just a few of your forum's members?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: kok3n on March 20, 2007, 01:26:28 AM
one question..

is it gonna eat up my forum bandwidth or will it only be using youtube's bandwidth?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Kindred on March 20, 2007, 08:07:21 AM
yes, it is happening to at leats 3 other forum members.
One forum member says that she sees the preview picture, but clicking on the big arrow in the box has no effect
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on March 20, 2007, 11:36:25 AM
Quote from: kok3n on March 20, 2007, 01:26:28 AM
one question..

is it gonna eat up my forum bandwidth or will it only be using youtube's bandwidth?

It won't use a byte of your bandwidth.  ;)

Quote from: Kindred on March 20, 2007, 08:07:21 AM
yes, it is happening to at leats 3 other forum members.
One forum member says that she sees the preview picture, but clicking on the big arrow in the box has no effect

I'll look into this a bit more.  Thanks for making me aware of it.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: kok3n on March 20, 2007, 07:38:09 PM
thanks Marlon.

Very nice mod indeed. Installed it without any problems. I just wish though that the youtube icon won't appear on regular member's end coz I want to limit the posting of youtube files to the moderating team only.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Kindred on March 20, 2007, 09:53:44 PM
install the custom bbc permissions mod and you can limit the access to each and every bbc tag
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Aravot on March 20, 2007, 10:43:24 PM
@Kindred, works for me in FireFox 2.0.0.2 but not in IE7

Edited:
See link for solution
http://wordpress.org/support/topic/108230
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: kok3n on March 21, 2007, 12:23:11 AM
Quote from: Kindred on March 20, 2007, 09:53:44 PM
install the custom bbc permissions mod and you can limit the access to each and every bbc tag

how do i do this please?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on March 21, 2007, 11:37:14 AM
Quote from: Aravot on March 20, 2007, 10:43:24 PM
@Kindred, works for me in FireFox 2.0.0.2 but not in IE7

Edited:
See link for solution
http://wordpress.org/support/topic/108230

No offense, but that kind of defeats the purpose of all embedded videos being XHTML compliant.  ::)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Aravot on March 21, 2007, 11:45:35 AM
None taken.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Kindred on March 21, 2007, 12:54:31 PM
new info, based on that post...   
Something I neglected to test myself, before this (shame on me)

It works correctly in firefox, it does not work in IE7.
I am looking for one of my users who is still on IE6 to try it.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Aravot on March 21, 2007, 01:18:33 PM
Kindred, tried it on IE6 same as IE7 white box, tried it on Opera 9.1 nothing not even the white box.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: _sebas_ on March 21, 2007, 07:43:12 PM


EXCELENT  !!!
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: fritpa on March 23, 2007, 07:18:02 PM
My hosting is dreamhost, this hosting allow me to put with some code a flash video in my site. The code is this:

<script type="text/javascript" src="https://media.dreamhost.com/ufo.js"></script>
<p id="sample.flv"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p>

<script type="text/javascript">
  var FO = { movie:"https://media.dreamhost.com/mediaplayer.swf",width:"320",height:"240",majorversion:"7",build:"0",bgcolor:"#FFFFFF",
             flashvars:"file=https://media.dreamhost.com/sample.flv&amp;showdigits=true&amp;autostart=false" };
UFO.create(FO,"sample.flv");
</script>


There is any way to make the same of your mod youtube with this features? what i have to change?

Thank you!
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Roger on March 23, 2007, 08:49:17 PM
Seem to have a similar problem.

Installed the mod, but it won't show a thing, not even a white box (tested IE7 and Firefox (latest version).

It doesn't produce the <embed> code, could that be a problem?

For a sample:
http://www.fencecheck.com/forums/index.php/topic,8550.msg132092.html#msg132092

(first video is entered manual with the Flash BBC button, second (not visible) is entered with the YouTube BBC button)

Roger
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on March 23, 2007, 10:24:03 PM
Quote from: fritpa on March 23, 2007, 07:18:02 PM
My hosting is dreamhost, this hosting allow me to put with some code a flash video in my site. The code is this:

<script type="text/javascript" src="https://media.dreamhost.com/ufo.js"></script>
<p id="sample.flv"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p>

<script type="text/javascript">
  var FO = { movie:"https://media.dreamhost.com/mediaplayer.swf",width:"320",height:"240",majorversion:"7",build:"0",bgcolor:"#FFFFFF",
             flashvars:"file=https://media.dreamhost.com/sample.flv&amp;showdigits=true&amp;autostart=false" };
UFO.create(FO,"sample.flv");
</script>


There is any way to make the same of your mod youtube with this features? what i have to change?

Thank you!

Dreamhost doesn't allow you to install mods on your forum...?  I have some news for you regarding Dreamhost: run...no really, find a new host.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Aravot on March 23, 2007, 10:26:48 PM
I am on Dreamhost and can install mods
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: fritpa on March 25, 2007, 04:33:52 AM
 :o I know two differents user with dreamhost, and they use smf with many mods. Why you say dreamhost doesn't allows mods?  

Just in case, some suggestion of a good host?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on March 25, 2007, 05:45:37 PM
Quote from: fritpa on March 25, 2007, 04:33:52 AM
Just in case, some suggestion of a good host?

Any host that doesn't oversell (http://www.webhostingtalk.com/), or just terminate your hosting for "using too many CPU minutes."
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Roger on March 25, 2007, 05:47:23 PM
Any hint at what might be going wrong on my forums?

Thanks,
Roger
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Cherri - MCLG on March 25, 2007, 07:08:59 PM
pleeeease help

i followed all the instructions for adding the youtube, and keep getting this error message:

8: Undefined index: youtube
File: /home/content/m/c/l/mclgadmin/html/simplemachinesforum/Themes/default/languages/Post.english.php (eval?)
Line: 770
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on March 25, 2007, 09:00:54 PM
MCLG, Post.english.php is unaffedted by my mod.  Do you have a custom Post.template.php?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Cherri - MCLG on March 25, 2007, 09:04:04 PM
hi marion, no, the instructions didnt say to do that... im reallly new to this, and feeling extremely ignorant.

ive figured out a lot, but there are still sooo many things that i can not figure out, i come here to try n get help, and dont understand all the tech talk here either...

how do i create a custom post.template.php?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on March 26, 2007, 11:35:18 AM
Quote from: MCLG on March 25, 2007, 09:04:04 PM
hi marion, no, the instructions didnt say to do that... im reallly new to this, and feeling extremely ignorant.

ive figured out a lot, but there are still sooo many things that i can not figure out, i come here to try n get help, and dont understand all the tech talk here either...

how do i create a custom post.template.php?

It's not something you create.  Here, we'll start from the basics.  What theme are you using on your forum?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: keichi on March 26, 2007, 11:50:08 AM
Hi there, im mexican, sorry my bad english :P

im read already ALL THE TREAD (believe it or not...) and really i cant understand this...

im already install succefull this MOD (very good the mod, congratulations marlon ;)) i use my SMF forum in spanis_es, and i already changues all the settings in the files what need it (post.templete.php, i move youtube.gif to the correctly directory, etc) and now, i can see the button "youtube" in the screen of posting, the button insert the tags correctly ([youtube=425,350][/youtube]) but, when im post the video, not works!!, only i see the code ([youtube=425,350]http://www.youtube.com/watch?v=8X4tWIwx0ns[/youtube] for example...)

please, say me what i need to changue! im not have the problem of the code in the top of forum, im install succefully, but... not work TTTT--------TTTT
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Cherri - MCLG on March 26, 2007, 03:10:15 PM
i think i used babalon, although i created a copy of it, then changed it to fit my needs and color scheme

Quote from: Marlon on March 26, 2007, 11:35:18 AM
Quote from: MCLG on March 25, 2007, 09:04:04 PM
hi marion, no, the instructions didnt say to do that... im reallly new to this, and feeling extremely ignorant.

ive figured out a lot, but there are still sooo many things that i can not figure out, i come here to try n get help, and dont understand all the tech talk here either...

how do i create a custom post.template.php?

It's not something you create.  Here, we'll star from the basics.  What theme are you using on your forum?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on March 26, 2007, 05:57:46 PM
Quote from: keichi on March 26, 2007, 11:50:08 AM
Hi there, im mexican, sorry my bad english :P

im read already ALL THE TREAD (believe it or not...) and really i cant understand this...

im already install succefull this MOD (very good the mod, congratulations marlon ;)) i use my SMF forum in spanis_es, and i already changues all the settings in the files what need it (post.templete.php, i move youtube.gif to the correctly directory, etc) and now, i can see the button "youtube" in the screen of posting, the button insert the tags correctly ([youtube=425,350][/youtube]) but, when im post the video, not works!!, only i see the code ([youtube=425,350]http://www.youtube.com/watch?v=8X4tWIwx0ns[/youtube] for example...)

please, say me what i need to changue! im not have the problem of the code in the top of forum, im install succefully, but... not work TTTT--------TTTT

Use the code [youtube=420,350]8X4tWIwx0ns[/youtube].
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Roger on March 26, 2007, 06:03:36 PM
Wouldn't it be a lot easier if you could just copy and paste the URL for the video?

Roger
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on March 26, 2007, 06:20:20 PM
Quote from: Roger on March 26, 2007, 06:03:36 PM
Wouldn't it be a lot easier if you could just copy and paste the URL for the video?

Roger

Of course it would.  And that would be great...if you wanted to display the YouTube video page in its entirety within the post.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Roger on March 26, 2007, 06:23:25 PM
Sure, but you could just make the code parse and delete the url for you... Yeah, I know, me and my forum users are lazy ;)

Roger
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: micwitty on March 26, 2007, 09:30:59 PM
I just recently installed smf and installed the mod but it doesnt seem to work. I had to do it manually and it still doesnt work. Can someone help me???
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on March 26, 2007, 10:35:37 PM
Quote from: micwitty on March 26, 2007, 09:30:59 PM
I just recently installed smf and installed the mod but it doesnt seem to work. I had to do it manually and it still doesnt work. Can someone help me???

Doesn't work?  Care to be a bit more specific?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: micwitty on March 27, 2007, 02:29:03 AM
When i use youtube mod it just shows a url instead of the video.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: tondelo on March 27, 2007, 08:25:32 AM
Quote from: micwitty on March 27, 2007, 02:29:03 AM
When i use youtube mod it just shows a url instead of the video.

Can you post what it looks like? You shouldn't be posting the URL, just the video unique ID..
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: micwitty on March 27, 2007, 07:19:40 PM
nevermind i fixed it
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: HiThereWorld on March 28, 2007, 10:19:10 AM
Just wondering, aren't there any legal issues with using this mod?

I mean, I aint no expert, but isn't this breaching some sort of YouTube legal thingy?

The mod works fine on my forum, I just don't wanna get into trouble for using it
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on March 28, 2007, 01:01:37 PM
Quote from: HiThereWorld on March 28, 2007, 10:19:10 AM
Just wondering, aren't there any legal issues with using this mod?

I mean, I aint no expert, but isn't this breaching some sort of YouTube legal thingy?

The mod works fine on my forum, I just don't wanna get into trouble for using it

Why would it be?  YouTube themselves provide any user with the code to embed their videos into remote webpages.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: MrAnderson.cl on March 28, 2007, 03:27:49 PM
Hi... this is a great mod... I've installed it on some SMF forums and works great...

The only thing that could be changed is:

Let the option for entering the last 10 characters that identify the video or the whole youtube url... with some php you can check if there's the whole url or only the last 10 characters... something like this...

$arrContent = $1;
if ( strchr($arrContent, 'http://www.youtube.com/watch?v=') == true) {
  $arrRetVal = explode('http://www.youtube.com/watch?v=' $arrContent, 2);
  $videoID = $arrRetVal[1];
} else {
  $videoID = $arrContent;
}


Lately instead of $1 it should say

'content' => '<object type="application/x-shockwave-flash" width="$2" height="$3" data="http://www.youtube.com/v/$videoID"><param name="movie" value="http://www.youtube.com/v/$videoID"></param><param name=wmode" value="transparent"></param></object>',

The problem is i don't where to put the first code shown for making it work with either the last ten characters that identify the video or the whole youtube url...

Hoping for some help...

Greetings from Chile
MrAnderson

PD. I'm not good at coding so the first php code may be improved.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Tick on March 29, 2007, 05:37:07 PM
I installed the mod and it works great.  the only problem I see is the button shows up as text.  I have already copied the you tube gif.  to my dilber mc theme images.  what could be the problem.  everything else works good.  Great mod by the way.   I am using smf 1.1.2



Edit:  I fixed it . I had uploaded the you tube gif.  in the images  not the images/bbc
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: nicky6797 on April 02, 2007, 03:35:58 PM
Very nice mod thanks. Is there any way I can center the clip screen horizontally.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: nicky6797 on April 02, 2007, 03:59:59 PM
Haha it was pretty obvious, I just used the tag  [ c e n t e r ]

Thanks again
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: MrAnderson.cl on April 03, 2007, 07:39:01 PM
I've fixed part of the code for making easier the use of the tag... with this modification you can use [youtube=425,350] or just [youtube]

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


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


This makes the tag work in one or another form... I'm still looking for making the content inside the tag work with either the long url provided by YouTube or just the 10 characters code that identify the video...

Greetings from Chile
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: StinkyLink on April 07, 2007, 11:53:38 AM
Awesome mod. :)

How hard would it be to allow only specific usergroups to post YouTube videos? I would love to have only moderators be able to posts vids.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on April 07, 2007, 02:07:19 PM
Quote from: StinkyLink on April 07, 2007, 11:53:38 AM
Awesome mod. :)

How hard would it be to allow only specific usergroups to post YouTube videos? I would love to have only moderators be able to posts vids.

I believe someone wrote a BBC permissions mod.  You should try searching for it.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: MrAnderson.cl on April 07, 2007, 02:17:04 PM
Marlon... any way to make the mod work with the full or trimed url??

Greetings...
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Caitlain on April 07, 2007, 05:55:11 PM
Quote from: MrAnderson.cl on April 07, 2007, 02:17:04 PM
Marlon... any way to make the mod work with the full or trimed url??

Greetings...

I, too, am curious about this.  I have 400 users I am going to migrate from a phpBB system, and they're used to using the full url.  It'll be a pain in the a$$ to have to tell eveyone to use just the video ID string.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: bklynjay on April 12, 2007, 12:26:41 PM
i just downloaded it on my forum  nyfuntime.com   and on the top of my forum   it now says  $txt['youtube'] = 'YouTube';       .... the videos work great  but i dont know why it says this.. can someone go there and take a look and if you happen to know how to fix please let me know.. thanks
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: NFM on April 12, 2007, 01:14:19 PM
Okay, first I uploaded it with the package manager...that didn't work for me.  I then went and uploaded it to a package parser and did all of the edits I was asked to do...and still...nothing.

SMF 1.1.2
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Kindred on April 12, 2007, 01:18:10 PM
Quote from: bklynjay on April 12, 2007, 12:26:41 PM
i just downloaded it on my forum&nbsp; nyfuntime.com&nbsp; &nbsp;and on the top of my forum&nbsp; &nbsp;it now says&nbsp; $txt['youtube'] = 'YouTube';&nbsp; &nbsp; &nbsp; &nbsp;.... the videos work great&nbsp; but i dont know why it says this.. can someone go there and take a look and if you happen to know how to fix please let me know.. thanks

go to modifications.english.php and move the ?> to the end of the file...
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: bklynjay on April 12, 2007, 02:06:04 PM
Quote from: Kindred on April 12, 2007, 01:18:10 PM
Quote from: bklynjay on April 12, 2007, 12:26:41 PM
i just downloaded it on my forum&nbsp; nyfuntime.com&nbsp; &nbsp;and on the top of my forum&nbsp; &nbsp;it now says&nbsp; $txt['youtube'] = 'YouTube';&nbsp; &nbsp; &nbsp; &nbsp;.... the videos work great&nbsp; but i dont know why it says this.. can someone go there and take a look and if you happen to know how to fix please let me know.. thanks

go to modifications.english.php and move the ?> to the end of the file...


there are 2  modifications.english.php  one  has a ~  next to it  what one should i change? or do i change both?  thanks!
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: NFM on April 12, 2007, 02:11:10 PM
That second one is probably your servers auto backup version.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on April 15, 2007, 03:05:51 PM
Quote from: NFM on April 12, 2007, 02:11:10 PM
That second one is probably your servers auto backup version.

Indeed.  just modify Modifications.[language].php.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: rickyb on April 15, 2007, 06:10:45 PM
Forgive me if I sound dumb, everyone seems to have success with this but, where the hell do I find the package manager ?  :-\
The route I took was `public html/packages` but no manager there to install it.

Where am I going wrong ?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Tick on April 15, 2007, 06:18:25 PM
in your forum go to the admin panel.  look on the left side you will see a tab for packages.   after you press that you will select the tab for download and install  and down at the bottom you will see where to upload the packages
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: sjb on April 16, 2007, 06:29:43 PM
Does anybody know what the problem with the code is that causes this to not work in Firefox 1.5? I am encouraging my users to upgrade to 2.0, and I understand that nobody wants to mod this to run on older browsers, but I wouldn't mind giving it a go myself, but I cant' seem to find what the problem is at all.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on April 17, 2007, 12:59:56 AM
Quote from: sjb on April 16, 2007, 06:29:43 PM
Does anybody know what the problem with the code is that causes this to not work in Firefox 1.5? I am encouraging my users to upgrade to 2.0, and I understand that nobody wants to mod this to run on older browsers, but I wouldn't mind giving it a go myself, but I cant' seem to find what the problem is at all.

As stated in previous posts, the code I use to embed YouTube videos into posts is different from the code YouTube provides in that my version is XHTML compliant.  The code used to embed these videos will remain the same.  This mod has in fact been tested with all newer versions of most major browsers.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Kindred on April 17, 2007, 08:21:50 AM
and yet... I can clearly show that over 90% of my users just see a white box where the video image should display.

The odd thing is that it works correctly for the user the first time they post or if we go in to EDIT the message and then save it.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on April 17, 2007, 11:38:27 AM
Quote from: Kindred on April 17, 2007, 08:21:50 AM
and yet... I can clearly show that over 90% of my users just see a white box where the video image should display.

The odd thing is that it works correctly for the user the first time they post or if we go in to EDIT the message and then save it.

Regarding that problem, Kindred, I've also noticed that issue on other computers with both same and different browser versions than mine.  For some reason, browsers don't like the position of the video, as SMF puts it within a div.  I'll have to look further into it.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: tethead on April 19, 2007, 06:38:21 PM
i'm wondering how i might be able to install this mod without having to use the package installation tool?  the problem is that i cannot get the package installation tool to work properly.  i'd need an FTP account with root access on a remote Debian server, and i am not willing to do that just so i can install packages easier. 

so, from un-gzipping the mod, what can i do from a command line to install this in a 1.1.x SMF installation??

thanks!
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Kindred on April 19, 2007, 09:24:15 PM
I do not believe there is any command line to install mods.

You can manually edit the files as indicated in the mod package...
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: MrAnderson.cl on April 20, 2007, 08:48:23 AM
The option is to check the xml file and see what is added to the proper files... and edit that files manually inserting the mod...

Greetings
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: tethead on April 20, 2007, 04:01:58 PM
well, my brain is unfortunately not quite as PHP-compliant as most of y'all...

if someone can please post details on what i'd need to, in easy steps, i'd be most appreciative!

i can handle swapping out text, but there's no way i can read a PHP mod file that will tell me what to do!
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Kindred on April 20, 2007, 05:24:21 PM
tethead,

I don't mean to be mean, but if you plan to run a forum with anything other than the default theme, you will have to learn how to read the mod package files and apply the mod into different themes. Most mods will only install on the default theme.

In addition, if you have to manually apply all of your mods due to a lack of FTP, then you REALLY need to learn it.  the instructions are all there in the XML file within the mod package. it tells you search for "X" code...   either add before, add after or replace, based on what the XML indicates.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: tethead on April 20, 2007, 07:18:46 PM
ok, i figured it out, and it actually worked!  awesome mod, thanks!

the hardest part was figured out the youtube.gif goes into the ../bbc/ folder within the theme's images, cause i just couldn't figure out where that had to be.  works like a charm on Safari, Firefox, and Camino as far as i can tell, and i think the IE users would've commented by now if it weren't working there.  not that i'd care what happens to IE users anyway...  8)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Farmacija on April 23, 2007, 08:01:25 AM
Quote from: sjb on April 16, 2007, 06:29:43 PM
Does anybody know what the problem with the code is that causes this to not work in Firefox 1.5? I am encouraging my users to upgrade to 2.0, and I understand that nobody wants to mod this to run on older browsers, but I wouldn't mind giving it a go myself, but I cant' seem to find what the problem is at all.
it doesn't work for firefox 1.5.0.4 too
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Chris369 on April 23, 2007, 01:43:29 PM
Does anyone have this problem or know how to solve it? It also makes the text huge in IE7.

(http://img253.imageshack.us/img253/4821/untitledqs6.jpg)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Kindred on April 23, 2007, 02:00:45 PM
Did you even try a search or looking back in this thread?   This was answered just one page back.

Quote from: Kindred on April 12, 2007, 01:18:10 PM
go to modifications.english.php and move the ?> to the end of the file...
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Chris369 on April 23, 2007, 02:04:45 PM
No I didn't, the thread is pretty huge, it could have been anyway.

Thanks for the answer though, I'll give it a go.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Chris369 on April 23, 2007, 02:08:54 PM
Sorted, thanks :)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Farmacija on April 24, 2007, 09:59:38 AM
i update my firefox and now everything is ok :)

is there some permmision which i should give to the certain group of members to allow them to use youtube button?

i can't use this mod with IE6, there is just a picture, without video clips.  :o
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: InsaneMustang on April 25, 2007, 04:43:25 PM
Is there a way to have the entire youtube code entered, taking on the part after the = is actually more confusing than just copy/pasting the entire code into the slot.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Caitlain on April 26, 2007, 01:24:57 AM
Quote from: InsaneMustang on April 25, 2007, 04:43:25 PM
Is there a way to have the entire youtube code entered, taking on the part after the = is actually more confusing than just copy/pasting the entire code into the slot.

Several of us have asked for that.  We're being ignored for some reason. 
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on April 26, 2007, 04:38:02 PM
Quote from: Caitlain on April 26, 2007, 01:24:57 AM
Several of us have asked for that.  We're being ignored for some reason. 

If you actually took the initiative to read back several pages, you'd find that your request was never ignored.  I mentioned that I would add that in the next version of my mod.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Caitlain on April 27, 2007, 01:09:12 AM
Quote from: Marlon on April 26, 2007, 04:38:02 PM
Quote from: Caitlain on April 26, 2007, 01:24:57 AM
Several of us have asked for that.  We're being ignored for some reason. 

If you actually took the initiative to read back several pages, you'd find that your request was never ignored.  I mentioned that I would add that in the next version of my mod.

Well, in that case, my apologies.  I didn't see that (apparently no one else did, either).  My bad. 
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: dimdom on May 10, 2007, 05:29:26 PM
Excellent mod!
No problems till now.
But today some members (not all) made complaints that they can not watch the youtube videos. They can only see the first image with the arrow (play).
Any help?

Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: MrAnderson.cl on May 11, 2007, 08:21:21 AM
That happens on old versions of Firefox... I'v tested it on Firefox 1.x and it happens what you're saying

Greetings
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: xylar on May 17, 2007, 12:21:54 PM
ok, i'm having same problem with firefox 1.x (i havent tested with 2 yet). in the subs.php file i changed the line to:

'content' => '<object width="$2" height="$3"><param name="movie" value="http://www.youtube.com/v/$1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/$1" type="application/x-shockwave-flash" wmode="transparent" width="$2" height="$3"></embed></object>',

which is the code used by youtube. it still doesn't work, for some reason it drops the closing </param> tags and i get this:

<object height="350" width="425"><param name="movie" value="http://www.youtube.com/v/xRwfojgoSAA"><param name="wmode" value="transparent"><embed src="http://www.youtube.com/v/xRwfojgoSAA" type="application/x-shockwave-flash" wmode="transparent" height="350" width="425"></object>

so maybe if this is solved then it will work on all browsers?

ok, i found a work around for me. that is to use this mod instead:

http://custom.simplemachines.org/mods/index.php?mod=390

and works ok now :)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Farmacija on May 18, 2007, 10:07:00 AM
it's huge problem that this mod doesn't wprk with all browsers especially IE6!
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on May 18, 2007, 11:36:36 AM
Quote from: Farmacija on May 18, 2007, 10:07:00 AM
it's huge problem that this mod doesn't wprk with all browsers especially IE6!

As I've mentioned since post one, this mod is compatible with new versions of all major browsers.  Included with those is Internet Explorer.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Farmacija on May 18, 2007, 01:38:04 PM
but there is a lot of people which doesn't have newest versions of all major browsers......
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: xylar on May 18, 2007, 01:47:14 PM
use the mod i posted above, works for me :)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on May 18, 2007, 10:04:15 PM
Quote from: Farmacija on May 18, 2007, 01:38:04 PM
but there is a lot of people which doesn't have newest versions of all major browsers......

As previously stated, the XHTML compliant code used to embed YouTube videos in posts will not be changed.  Sorry.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Stuart on May 19, 2007, 09:52:22 AM
Thanks a million for this fantastic mod  :D
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: glennk on May 20, 2007, 11:45:15 AM
I installed the package and all went well. I cant get it to work though for some reason.

Am I getting the tags wrong or something ?

Sample post at :

http://www.whitbyseaanglers.co.uk/forum/non-fishing-chat/you-tube-test/0/

If I try this it says I left the message box empty.

[youtube=425,350]qCRetU-shq0[/youtube]
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Tormod on May 20, 2007, 03:20:33 PM
I installed this mod too, but it,s only a white window showing.  :-\
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: glennk on May 20, 2007, 05:53:41 PM
I  uninstalled then installed this

http://custom.simplemachines.org/mods/index.php?mod=720

and got it working. However I keep getting this at the top of my forum

$txt['youtube'] = 'YouTube';

Why is this appearing ?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Kindred on May 20, 2007, 06:01:39 PM
well, you should ask about other mods in the thread for THOSE mods...

but that error is due to a problem with the install into the modifications.english.php file
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: glennk on May 20, 2007, 06:21:49 PM
Everyone in my forum is complaining  everything has gone big on th screen.

I've uninstalled again

Can you direct me to the right topic please.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Farmacija on May 21, 2007, 04:43:55 AM
Quote from: Marlon on May 18, 2007, 10:04:15 PM
Quote from: Farmacija on May 18, 2007, 01:38:04 PM
but there is a lot of people which doesn't have newest versions of all major browsers......

As previously stated, the XHTML compliant code used to embed YouTube videos in posts will not be changed.  Sorry.
fortunately, there is another mod :)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: robbievk on May 21, 2007, 09:26:12 AM
Quote from: Farmacija on May 21, 2007, 04:43:55 AM
fortunately, there is another mod :)
Which one?

I can't seem to find another for 1.1.2
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on May 21, 2007, 11:39:31 AM
Quote from: Farmacija on May 21, 2007, 04:43:55 AM
fortunately, there is another mod :)

Great news for webmasters that feel the need to broadcast their forum's XHTML invalidity.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Tormod on May 21, 2007, 04:19:05 PM
Quote from: Tormod on May 20, 2007, 03:20:33 PM
I installed this mod too, but it,s only a white window showing.  :-\

Sorry, when I read inside this thread I can se I have to put only the last letters in the code from YouTube between the YouTube tags.

Now the mod work very well. :D
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: robbievk on May 22, 2007, 03:25:22 AM
in subs.php i changed:
'content' => '<object type="application/x-shockwave-flash" width="$2" height="$3" data="http://www.youtube.com/v/$1"><param name="movie" value="http://www.youtube.com/v/$1"></param><param name="wmode" value="transparent"></param></object>

to this:
'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>',

And now also FF 1.5 shows the video... did i screw up XHTML now?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on May 22, 2007, 09:41:32 AM
Quote from: robbievk on May 22, 2007, 03:25:22 AM
And now also FF 1.5 shows the video... did i screw up XHTML now?

If you're using the embed code that YouTube provides you, then yes, you've just broke your page's XHTML validity.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: xung on June 10, 2007, 09:57:41 AM
Hi!

I've been using this great mod for some time, now. But recently some of my board user have been complaining. Some couldn't hit the play button of the video... (well, they hit the button, but nothing happens). And some don't see the video at all. All of the page loads, but not the videos.

All worked fine until some time ago, but now it won't work. Since I haven't make any change in my board, anyone knows if something changed at YouTube?

Thanks in advance,
-xung
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Nutronic on June 14, 2007, 01:30:05 PM
Love it cheers
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on June 15, 2007, 11:01:53 PM
Quote from: xung on June 10, 2007, 09:57:41 AM
Hi!

I've been using this great mod for some time, now. But recently some of my board user have been complaining. Some couldn't hit the play button of the video... (well, they hit the button, but nothing happens). And some don't see the video at all. All of the page loads, but not the videos.

All worked fine until some time ago, but now it won't work. Since I haven't make any change in my board, anyone knows if something changed at YouTube?

Thanks in advance,
-xung

Tell the members that can't click the play button to upgrade their outdated browser installations.  Explain to the members that can't see the videos at all how to use the mod; that between the tags goes the video embed ID, NOT the video page's URL.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: xung on June 15, 2007, 11:13:41 PM
Hi!
Thanks for the answer. I'll tell those who can't click the play button to upgrade.
Then, the other ones (at least one I personaly know) uses Opera, and all worked fine until some weeks ago. (I mean, he could see videos with no problem).
This particular one has no problem with videos he uploaded (he hasn't really uploaded any, I think). He has problems with videos other users upload and that work fine with both IE and Firefox to other users (me, for instance) and don't work with him.
He said the whole page loaded but the video didn't. Instead he had a blank space....

I don't know if the recent "OnMouseOver" changes youtube made has anything to do with this particular issue.

But, thanks, anyway. I guess I'll have to tell all my users to get a decent browser. :D
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: SactoEric on June 23, 2007, 10:01:41 PM
Thank you for a great mod! I just got this installed on SacForums.com (http://www.sacforums.com/index.php) :)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: John S on June 24, 2007, 06:39:12 PM
hi, awesome mod!

is there a way to remove the link to the youtube website when clicked on?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on June 25, 2007, 02:55:04 AM
Quote from: mufasa on June 24, 2007, 06:39:12 PM
hi, awesome mod!

is there a way to remove the link to the youtube website when clicked on?

Removing the overlay would fix that, but why?  You're giving fair credit where it's deserved.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: JerX on June 25, 2007, 07:04:27 AM
I can't get it to work. The images is standing in the post box. The code is standing in the message box but when i try to put a youtube link or VideoID in it i don't get an Youtube screen (it just shows
).

(http://home.tiscali.nl/j.kooij/ms.JPG)

I putted the code in Modifications.dutch.php and Modifications.english.php. But still it didn't worked.

Modifications.dutch.php:
Quote
<?php
$txt['youtube'] = 'YouTube';
// Version: 1.1; Modifications
?>

Post.Template.php everything is standing right :s
i putted
'youtube' => array('code' => 'youtube', 'before' => '[youtube=425,350]', 'after' => '[/youtube]', 'description' => $txt['youtube']),

under
array('code' => 'flash', 'before' => 'http://',%20'after'%20=>%20'', 'description' => $txt[433]),

Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: John S on June 25, 2007, 06:30:46 PM
Quote from: Marlon on June 25, 2007, 02:55:04 AM
Quote from: mufasa on June 24, 2007, 06:39:12 PM
hi, awesome mod!

is there a way to remove the link to the youtube website when clicked on?

Removing the overlay would fix that, but why?  You're giving fair credit where it's deserved.

thanks, but how do i remove the underlay?

ps. everyone knows the videos are from youtube and everyone knows what youtube is.. hehe.. just it gets annoying sometimes when i press play it loads up a whole new youtube page..!~ i hope u know what i mean.. plus if thats the case i might aswell just put a link the the youtube video.. lol
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on June 26, 2007, 12:15:26 AM
Quote from: mufasa on June 25, 2007, 06:30:46 PM
ps. everyone knows the videos are from youtube and everyone knows what youtube is.. hehe.. just it gets annoying sometimes when i press play it loads up a whole new youtube page..!~ i hope u know what i mean.. plus if thats the case i might aswell just put a link the the youtube video.. lol

You cannot go to the video's page on YouTube by clicking the play button.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: JerX on June 27, 2007, 03:25:39 AM
Quote from: JerX on June 25, 2007, 07:04:27 AM
I can't get it to work. The images is standing in the post box. The code is standing in the message box but when i try to put a youtube link or VideoID in it i don't get an Youtube screen (it just shows
).

(http://home.tiscali.nl/j.kooij/ms.JPG)

I putted the code in Modifications.dutch.php and Modifications.english.php. But still it didn't worked.

Modifications.dutch.php:
Quote
<?php
$txt['youtube'] = 'YouTube';
// Version: 1.1; Modifications
?>

Post.Template.php everything is standing right :s
i putted
'youtube' => array('code' => 'youtube', 'before' => '[youtube=425,350]', 'after' => '[/youtube]', 'description' => $txt['youtube']),

under
array('code' => 'flash', 'before' => 'http://',%20'after'%20=>%20'', 'description' => $txt[433]),

Plz help :(
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: JimM on June 27, 2007, 11:33:01 PM
SMF 1.1.3 using Default theme

Downloaded the mod, uploaded with the package manager, test all passed, reported a good install, but nothing worked.  No new button either.  Checked my error log and all three files said permission denied.

Added the mod manually and it works great.  Sure am glad it was a simple mod.

Thanks
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: pardity on June 29, 2007, 09:29:54 PM
Hey I was wondering if I could get some help on this?  I am using a different theme I believe it's called damage.  I don't have a modifications.english.php to edit?

Any help would be greatly appreciative..

Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Kindred on June 30, 2007, 01:57:38 AM
modifications.english.php would be in your Themes/default/languages directory

To install it on different themes, you need to check what files your theme has modified away from the default and then apply the mod manually.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: blankoboy on June 30, 2007, 10:05:33 PM
Quote from: JimM on June 27, 2007, 11:33:01 PM
SMF 1.1.3 using Default theme

Downloaded the mod, uploaded with the package manager, test all passed, reported a good install, but nothing worked.  No new button either.  Checked my error log and all three files said permission denied.

Added the mod manually and it works great.  Sure am glad it was a simple mod.

Thanks

Hey Jim,

I'm in the same situation...default theme and the package manager borked out on me when attempting to complete the install despite all tests showing as passed. Even uninstalling it showed a red box error warning of dire consequences. :(

How does one go about manually installing this mod?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: desimatrix on July 02, 2007, 08:53:59 PM
I have this mod installed.. and it seems it has been installed correctly.. but now when I put embed code from youtube like..

<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/y9A81egM6Mw"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/y9A81egM6Mw" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>

between [youtube=425,350] [/youtube] .. it shows nothing in the post its wierd but if someone can help..

Thanks,,
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Kindred on July 02, 2007, 10:36:57 PM
why the heck would you put all that? ???

Didn't you read the mod description or instructions?

[youtube=425,350]y9A81egM6Mw[/youtube] is how it should be called in the message
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: JimM on July 02, 2007, 11:06:45 PM
@blankoboy

I read the xml file for the mod from the package manager and manually did the adds.

Yeah I got the red box warning when I tried to uninstall too.  Guess that was because for some reason the additions had not been added to the files.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Farmacija on July 06, 2007, 10:58:38 AM
i've got some errors in error log caused by this mod

(http://img123.imageshack.us/img123/9697/youtubexj8.th.jpg) (http://img123.imageshack.us/my.php?image=youtubexj8.jpg)

and i in post.croatian.php file don't have 790 lines?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on July 07, 2007, 04:05:45 PM
Quote from: Farmacija on July 06, 2007, 10:58:38 AM
i've got some errors in error log caused by this mod

and i in post.croatian.php file don't have 790 lines?

You have not added the mod's 'YouTube' text variable to Post.croatian.php.  My mod is working as intended for you, it's just that you never modified it to your language.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Joshsux on July 08, 2007, 04:30:22 AM
"""""" What makes this variation different from other YouTube BBC mods is that the code it uses is XHTML compliant, thus keeping with the forum's XHTML validity. """"""

Hey, just wonder what the hell does that mean? is it even important?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: mark7144 on July 08, 2007, 08:12:26 AM
Quote from: Joshsux on July 08, 2007, 04:30:22 AM
"""""" What makes this variation different from other YouTube BBC mods is that the code it uses is XHTML compliant, thus keeping with the forum's XHTML validity. """"""

Hey, just wonder what the hell does that mean? is it even important?
Probably not to you. But for those of us who like to have our website XHTML valid then it's appreciated.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Joshsux on July 08, 2007, 08:15:07 AM
Well thats what the heck i asked mark? what the hell does it mean? why do you like your site valid with xhtml what ever that is?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: mark7144 on July 08, 2007, 09:58:38 AM
Type in your website and see if yours is XHTML valid. Basically if it is then it increases the chance of your website being more compatible with all the browsers and it's nice to know your code is clean and correct.

http://validator.w3.org/
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Farmacija on July 09, 2007, 08:03:51 AM
Quote from: Marlon on July 07, 2007, 04:05:45 PM
Quote from: Farmacija on July 06, 2007, 10:58:38 AM
i've got some errors in error log caused by this mod

and i in post.croatian.php file don't have 790 lines?

You have not added the mod's 'YouTube' text variable to Post.croatian.php.  My mod is working as intended for you, it's just that you never modified it to your language.
which  'YouTube' text variable  i should add?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: eu_soleil on July 13, 2007, 03:55:52 PM
hi, mm, when it would be ready for the smf 1-1-3 version...

great mod, greetz for the developer(s)

Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on July 18, 2007, 03:58:59 AM
Quote from: eu_soleil on July 13, 2007, 03:55:52 PM
hi, mm, when it would be ready for the smf 1-1-3 version...

great mod, greetz for the developer(s)



Works just fine with all versions of SMF 1.1*.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Farmacija on July 18, 2007, 08:34:28 AM
Marlon
Quote from: Farmacija on July 09, 2007, 08:03:51 AM
Quote from: Marlon on July 07, 2007, 04:05:45 PM
Quote from: Farmacija on July 06, 2007, 10:58:38 AM
i've got some errors in error log caused by this mod

and i in post.croatian.php file don't have 790 lines?

You have not added the mod's 'YouTube' text variable to Post.croatian.php.  My mod is working as intended for you, it's just that you never modified it to your language.
which  'YouTube' text variable  i should add?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on July 18, 2007, 08:50:07 AM
Quote from: Farmacija on July 09, 2007, 08:03:51 AM
which  'YouTube' text variable  i should add?

It should be $['txt']YouTube = 'YouTube';
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Farmacija on July 18, 2007, 07:26:25 PM
incorrect!
shoul be $txt[youtube]='youtube' !
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Darren996 on July 22, 2007, 01:35:14 PM
Hi,

I installed the mod everything went fine.  Nothing worked however.  I had to manually change everything, then it worked fine.

I have installed other mods with pacman no problem.

Thanks,
Darren
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: HansCheska on July 22, 2007, 01:54:39 PM
At first it didn't work for me or I shall say it does not auomatically add the $txt
', 'description' => $txt['youtube']),
]]></add>
                </operation>
        </file>
        <file name="$themedir/languages/Modifications.english.php">
                <operation>
                        <search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[

//YouTube BBCode
$txt['youtube'] = 'YouTube';
]]></add>
                </operation>
        </file>
</modification>
[/code]
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: desimatrix on July 27, 2007, 09:11:35 PM
Quote from: HansCheska on July 22, 2007, 01:54:39 PM
At first it didn't work for me or I shall say it does not auomatically add the $txt
', 'description' => $txt['youtube']),
]]></add>
                </operation>
        </file>
        <file name="$themedir/languages/Modifications.english.php">
                <operation>
                        <search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[

//YouTube BBCode
$txt['youtube'] = 'YouTube';
]]></add>
                </operation>
        </file>
</modification>
[/code]

what to do with this code.. where does it go..?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: VegasBoxers on July 28, 2007, 05:58:55 PM
Nice mod!&nbsp; My site and theme is heavily customized, so the installer didn't do didley for me.&nbsp; But I manually moded the 3 files and put the youtube.gif file in the correct place, and it works great!

I always hated the idea of asking visitors to leave my site to view a video.&nbsp; Nice Mod!&nbsp; I love it!

VB
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Farmacija on July 30, 2007, 11:41:27 AM
new error from error log
Quote8: Use of undefined constant YouTube - assumed 'YouTube'
Datoteka: /home/farmaceu/public_html/forum/Themes/default/languages/PersonalMessage.croatian.php (eval?)
Linija: 3
Quote8: Undefined index: youtube
Datoteka: /home/farmaceu/public_html/forum/Themes/default/Post.template.php (eval?)
Linija: 790
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Haguen on July 30, 2007, 01:56:05 PM
I installed correctly but it doesn't work. Because?
it is just the place where should appear the video, but doesn't appear
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Kindred on July 30, 2007, 02:03:45 PM
You need to provide a little more detail...

you installed correctly:
How do you know that you installed correctly?

it doesn't work:
HOW does it not work? Does it not show the youtube button on the post form?   Does it show the button, but nothing happens when you click it? Does it load the code, but no video is displayed?

Are you running this on the SMF default theme? If not, did you bother to read any of the previous pages of this thread (or any other mod thread) that indicate that you will have to manually install portions of this (or nearly any other mod) if you are not using the default theme?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Haguen on July 30, 2007, 02:13:56 PM
I use the theme default and the standard language&nbsp; &nbsp;
&nbsp; &nbsp;
It happens like this: the option in the post appears normal and the tags also but the video doesn't appear, it is just his space in the post.

version 1.1.3
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Kindred on July 30, 2007, 02:37:46 PM
and what are you posting between the youtube tags?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Haguen on July 30, 2007, 05:05:40 PM
like this:
[youtube=425,350]http://www.youtube.com/watch?v=A1c1G24GWDg[/youtube]
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: kolt on July 30, 2007, 05:39:10 PM
Hello I, install the cartele youtube inside my host include all "package-info" "yt_bbcxhtml_1.0" e "youtube.gif" inside of   /themes/default

after i remove "youtube.gif" and I put it in  /Themes

after I modify the code in post.template.php

but does't work, I don't see nothing

Any one can help me please.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Kindred on July 30, 2007, 05:50:30 PM
Quote from: Haguen on July 30, 2007, 05:05:40 PM
like this:
[youtube=425,350]http://www.youtube.com/watch?v=A1c1G24GWDg[/youtube]

and *THAT* is your problem.
it needs to be:
[youtube=425,350]htA1c1G24GWDg[/youtube]
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: kolt on July 30, 2007, 06:12:52 PM
Some one can help me please..
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on July 31, 2007, 02:27:34 AM
Quote from: kolt on July 30, 2007, 05:39:10 PM
Hello I, install the cartele youtube inside my host include all "package-info" "yt_bbcxhtml_1.0" e "youtube.gif" inside of   /themes/default

after i remove "youtube.gif" and I put it in  /Themes

after I modify the code in post.template.php

but does't work, I don't see nothing

Any one can help me please.

Check the page's source code.  It just may be a problem on your end.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Haguen on July 31, 2007, 07:25:16 AM
Quote from: Kindred on July 30, 2007, 05:50:30 PM
Quote from: Haguen on July 30, 2007, 05:05:40 PM
like this:
[youtube=425,350]http://www.youtube.com/watch?v=A1c1G24GWDg[/youtube]

and *THAT* is your problem.
it needs to be:
[youtube=425,350]htA1c1G24GWDg[/youtube]
thanks
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: cru on August 02, 2007, 11:35:03 AM
this worked great on my 1.1.3! thanks!
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: mormam on August 03, 2007, 08:58:06 AM
Thanks Marlon for this mod  :D

I modified the original to read Veoh Videos (in attachment), if you want you could merge the code and create one with the two options.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: dark angel dk on August 03, 2007, 02:00:48 PM
I have a lil prob. with it! I have the 1.1.3. and it wont even say that it has installed it!
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: tondelo on August 03, 2007, 03:00:29 PM
When I upgraded to 1.1.3 my settings were  all gone and it didn't show it was installed. I re-installed it and then modified my Subs.php and I was good to go.

Quote from: dark angel dk on August 03, 2007, 02:00:48 PM
I have a lil prob. with it! I have the 1.1.3. and it wont even say that it has installed it!
Quote from: dark angel dk on August 03, 2007, 02:00:48 PM
I have a lil prob. with it! I have the 1.1.3. and it wont even say that it has installed it!
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: dark angel dk on August 03, 2007, 03:41:03 PM
Cannot find those files to change too...! I need someone to help me!!!!
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: tondelo on August 03, 2007, 03:47:40 PM
subs.php was in my <forumroot>/Sources/

Quote from: dark angel dk on August 03, 2007, 03:41:03 PM
Cannot find those files to change too...! I need someone to help me!!!!
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: dark angel dk on August 03, 2007, 04:10:27 PM
think i will just give up on it. Have found the sub. but cannot find the files in it that i have to change. And same with in the post.template. Unless someone can help me with install and change the files for me
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Tick on August 08, 2007, 10:58:32 AM
Is there a way to make the video so when  you embed it in the post it sends  a thumbnail to the subject line on the message index.  THanks Tick.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Carver on August 09, 2007, 06:03:44 PM
Nice Job on the mod Works Great !

Almost too great.. I have to keep policing the files.. is there anyway to lock this mod down so only admins can use it ?
That way the guys could PM the URL for the vids they want posted and I can make sure I will not be ashamed or jailed for it's being on the site....

Thanks...
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Chantal Matar on August 10, 2007, 09:53:10 AM
Hi guys, I have installed this on 1.1.3 - all good so far.  Have posted a video which shows up but doesn't play!  ???

Any idea why this is happening?  It has done with every other video I've tried.

http://ps3smalltalk.com/index.php?topic=1052.0

Thanks.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Kindred on August 10, 2007, 11:15:17 AM
1- we apparently can not view that site without registering.
2- did you use the correct code to post the video?
3- is the video allowed to be called externally? Some youtube users turn off external access
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Chantal Matar on August 10, 2007, 11:41:51 AM
Hi Kindred, thanks for you reply. 

I was coming back on here to post something I just found out:

If you use Firefox (which I do) and you haven't upgraded to the new Firefox 2, the mod won't work for you. I just upgraded and it works perfectly.

Just go to www.Firefox.com for the link.


I don't know what it's like on IE.  I'm just going to check.... It's works well.  I have the IE7 which is the lastest one.


I hope this information helps some of you!
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: webbhawk on August 17, 2007, 05:45:29 PM
I installed the mod using the package manager and the tag works fine if you type it in but I don't have a button and $txt['youtube'] = 'YouTube'; is in the top left corner of all my pages. I know this probably has something to do with modifications.english.php but i don't have that file. i have settings.english.php

any help?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: HighCast on August 18, 2007, 05:56:58 AM
So here we go. I'm running SMF 1.13 with a bit modified..it speaks another language and uses wowdk theme. After installing this mod, I keep getting the following errors to error log and the mod does not work. I've modified the files as shown in description and the youtube button is there..but the modification to SHOW the videos is not working:

http://URL/index.php?action=packages;sa=install2;package=yt_bbc_xhtml_1.0.zip

512: package_flush_cache(): some files are still not writable
File: /usr/home/tla/public_html/ar/Sources/Subs-Package.php
Line: 1905
   
http://URL/index.php?action=packages;sa=install2;package=yt_bbc_xhtml_1.0.zip

2: fopen(Themes/default/images/bbc/youtube.gif) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
File: /usr/home/tla/public_html/ar/Sources/Subs-Package.php
Line: 1901
   
http://URL/index.php?action=packages;sa=install2;package=yt_bbc_xhtml_1.0.zip
2: copy(Themes/default/images/bbc/youtube.gif) [<a href='function.copy'>function.copy</a>]: failed to open stream: Permission denied
File: /usr/home/tla/public_html/ar/Sources/Subs-Package.php
Line: 1025
   
http://URL/index.php?action=packages;sa=install;package=yt_bbc_xhtml_1.0.zip

2: fclose(): supplied argument is not a valid stream resource
File: /usr/home/tla/public_html/ar/Sources/Subs-Package.php
Line: 1908
   
http://URL/index.php?action=packages;sa=install;package=yt_bbc_xhtml_1.0.zip
2: fopen(/usr/home/tla/public_html/ar/Themes/default/languages/Modifications.english.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
File: /usr/home/tla/public_html/ar/Sources/Subs-Package.php
Line: 1901
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on August 18, 2007, 11:15:08 AM
Quote from: HighCast on August 18, 2007, 05:56:58 AM
So here we go. I'm running SMF 1.13 with a bit modified..it speaks another language and uses wowdk theme. After installing this mod, I keep getting the following errors to error log and the mod does not work. I've modified the files as shown in description and the youtube button is there..but the modification to SHOW the videos is not working:

http://URL/index.php?action=packages;sa=install2;package=yt_bbc_xhtml_1.0.zip

512: package_flush_cache(): some files are still not writable
File: /usr/home/tla/public_html/ar/Sources/Subs-Package.php
Line: 1905
   
http://URL/index.php?action=packages;sa=install2;package=yt_bbc_xhtml_1.0.zip

2: fopen(Themes/default/images/bbc/youtube.gif) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
File: /usr/home/tla/public_html/ar/Sources/Subs-Package.php
Line: 1901
   
http://URL/index.php?action=packages;sa=install2;package=yt_bbc_xhtml_1.0.zip
2: copy(Themes/default/images/bbc/youtube.gif) [<a href='function.copy'>function.copy</a>]: failed to open stream: Permission denied
File: /usr/home/tla/public_html/ar/Sources/Subs-Package.php
Line: 1025
   
http://URL/index.php?action=packages;sa=install;package=yt_bbc_xhtml_1.0.zip

2: fclose(): supplied argument is not a valid stream resource
File: /usr/home/tla/public_html/ar/Sources/Subs-Package.php
Line: 1908
   
http://URL/index.php?action=packages;sa=install;package=yt_bbc_xhtml_1.0.zip
2: fopen(/usr/home/tla/public_html/ar/Themes/default/languages/Modifications.english.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
File: /usr/home/tla/public_html/ar/Sources/Subs-Package.php
Line: 1901

Some other mods are interfering with the functionality of my mod.  My mod is fine; however, one or more of your other mods aren't.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: webbhawk on August 18, 2007, 03:47:43 PM
Any help on my problem??
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Kindred on August 19, 2007, 08:46:12 AM
Quote from: webbhawk on August 17, 2007, 05:45:29 PM
I installed the mod using the package manager and the tag works fine if you type it in but I don't have a button and $txt['youtube'] = 'YouTube'; is in the top left corner of all my pages. I know this probably has something to do with modifications.english.php but i don't have that file. i have settings.english.php

any help?

in modifications.english.php, move the ?> in that file to the end of the file...

as for the youtube button not showing up, are you uysing the default theme?  If not, you will have to manually apply the mod to your theme's post.template.php
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: webbhawk on August 20, 2007, 03:02:38 AM
Quote from: Kindred on August 19, 2007, 08:46:12 AM
Quote from: webbhawk on August 17, 2007, 05:45:29 PM
I installed the mod using the package manager and the tag works fine if you type it in but I don't have a button and $txt['youtube'] = 'YouTube'; is in the top left corner of all my pages. I know this probably has something to do with modifications.english.php but i don't have that file. i have settings.english.php

any help?

in modifications.english.php, move the ?> in that file to the end of the file...

as for the youtube button not showing up, are you uysing the default theme?  If not, you will have to manually apply the mod to your theme's post.template.php
I don't have a modifications.english.php. I'm using the template back in black by crip. There is a settings.english.php
Is there somewhere I can get that file and add it to the directory?


Where else would that code be showing up since i don't have the above metioned file?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: tatore on August 20, 2007, 03:10:48 AM
Give a look into themes >>default >>languages >>Modifications.(yourlanguage).php
You have it for sure (Modifications.english.php is always there).
As Kindred said, before "?>"(end of file), put:
$txt['youtube'] = 'YouTube';
It doesn't matter about your actual used theme..the added strings are "recalled" from default theme folder.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: webbhawk on August 20, 2007, 07:40:46 PM
 :-[

I'm soooo stupid.

I was looking in my back-in-black directory. I never even thought to look in the default folder.

Thanks guys!
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: tatore on August 20, 2007, 07:53:12 PM
 :D does it works now?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: webbhawk on August 20, 2007, 09:51:59 PM
Well, that's debatable.

The stray code at the top of the page is gone now.  :D

But I think the youtube website might be down. No videos show up on my site, including the videos that were in the main page (Joomla) but I can't get into youtube website either. I'll update if anything changes.

Are there directions on how to do a manual install to the template for the button?

UPDATE:
Yes, the video is showing now. Yay!

Still need the directions on manual install though.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: tatore on August 21, 2007, 04:49:15 AM
You'll have the instructions into the mod's file "modifications.xml".
However if I remember well the button "youtube" goes into the directory: ...yourtheme/images/buttons .
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: JimmyCoke on August 21, 2007, 05:35:02 PM
I'm still getting an error that the message body is empty when I try to post a video.  If I hit Preview it shows up fine but I get the error when I hit Post.  I edited Modifications.english.php to the following.

<?php
// Version: 1.1; Modifications
$txt['youtube'] = 'YouTube';

?>


Any suggestions?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: tatore on August 21, 2007, 05:41:34 PM
You can't (if Ive understood) edit a post with only youtube codes without any word into the message.
Example
---------------------------------------------------
[youtube etc]codeyoutubevideo[/youtube]
______________________________
It's wrong!!
_____________________
Here is a video  (this is the message body )
[youtube etc]codeyoutubevideo[/youtube]

________________________
It will work!

Try and let us know...it a very nice mod.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: JimmyCoke on August 21, 2007, 05:44:42 PM
Oh my mistake.  It works fine if I put in some text.  I didn't know that it was necessary.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: tatore on August 21, 2007, 05:45:24 PM
 ;) good.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: JimmyCoke on August 21, 2007, 05:57:10 PM
 :D Thanks.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: ameo on August 22, 2007, 06:27:47 AM
what did I do wrong?

I get only this, but not the video:

[youtube=425,350]zNXm5EKSZQI[/youtube]

I have SMF 1.1.3.

Do I have to enable something first and where, or make some additional changes to make it work?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: tatore on August 22, 2007, 06:55:50 AM
Did you check if the bbc "youtube" is enabled from :  Admin>>>Post and topics>>>Bulletin board code| ?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: ameo on August 22, 2007, 09:56:15 AM
hmmm... youtube it isn't listed at all. why is that?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: tatore on August 22, 2007, 11:40:58 AM
But do you have listed the mod as installed in the package list?
Have you a customized theme?
Please, read the first post of this thread and then tell me..
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: webbhawk on August 22, 2007, 06:07:27 PM
Quote from: tatore on August 21, 2007, 04:49:15 AM
You'll have the instructions into the mod's file "modifications.xml".
However if I remember well the button "youtube" goes into the directory: ...yourtheme/images/buttons .

Thanks for the help tatore. The directory is actually yourtheme/images/bbc

All is well now. for now.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: tatore on August 22, 2007, 06:20:02 PM
Good to know  :D
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Daniel Marquard on August 23, 2007, 12:55:25 PM
Quote from: ameo on August 22, 2007, 09:56:15 AM
hmmm... youtube it isn't listed at all. why is that?

That means the mod wasn't properly installed.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: tch90 on August 25, 2007, 10:11:06 AM
I'm having a similar issue.

I've installed the mod.  The bbc is enabled in Admin>Post & Topics.  The icon shows up for embedding the tag, but no video shows up.  No box.. nada.  I can, however, highlight an invisible box.  (The google embed mod works perfectly, btw.)

I've tested it in IE and Firefox.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: tatore on August 25, 2007, 10:24:02 AM
Sorry for the following silly question: do you put the entire youtube link (www.yout....)
or replace just the (11) code betw. 'youtube' tags?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: tch90 on August 25, 2007, 02:03:40 PM
Well, I assumed it was like the google plug in, and I used the whole address.   :-[

Oh well, yet another thing I'll have to put into my forum tutorial so my users will understand how to use it. lol

Thanks =)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: tatore on August 25, 2007, 02:08:40 PM
That's what I did  ;D
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Farmacija on August 28, 2007, 12:41:36 PM
I got again error in error log from this mod!!!
Quote8: Use of undefined constant YouTube - assumed 'YouTube'
Datoteka: /home/farmaceu/public_html/forum/Themes/default/Display.template.php (eval?)
Linija: 3
it is so annoying that one smf mod causes so many errors in error log and no other mod causes such numerous errors as this!
it effect databases and its function when there is lot of errors in error log , i  guess.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: tatore on August 28, 2007, 02:38:38 PM
Try to post the 3d line of your dispay.template, or anyway the string with "youtube" code.
I assume you have into the "modifications.yorlanguage.php the "youtube" string translated.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Farmacija on August 28, 2007, 06:45:16 PM
i don't have any youtube strings in display.template.php?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: tatore on August 28, 2007, 08:44:52 PM
but did you ever had those errors, since you've installed this mod?
Or any other change (or mod) has made, meantime?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Farmacija on August 28, 2007, 10:09:16 PM
i have error with this mod and before, and i posted it in this topic but obvioulsy in doesn't solve the problem....
the most errors in error log , as i said, are from this mod ! :(
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: tatore on August 29, 2007, 06:27:36 AM
If you used to apply modifications manually, can you post here the code's blocks modified?
And in any case, can you show here how the mod came applied to your post.template?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Farmacija on August 29, 2007, 06:00:13 PM
Look in attachment ;D
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: tatore on August 29, 2007, 07:28:02 PM
Ok, eventually it seems to be all right, it's to easy to make mistakes.

Now, the only two things that you have to chek are:

/Sources/Subs.php

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



And in Themes/default/languages/modifications.Yourlanguage.php:

Quote$txt['youtube'] = 'YouTube';

Don't understand where is the issue..there's no opportunity to make mistakes.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: malcolmlo on August 30, 2007, 01:41:25 PM
Functionality works, but is there supposed to be a button now in the BBC menu for the youtube funciton? If there is I cant seem to get it to show up. I've moved the gif into the correct directory for my custom theme and added the line in post.template.php. followed the directions exactly and i still dont have a youtube gif button?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: tatore on August 30, 2007, 01:53:05 PM
the direction is: Themes/yourtheme/images/bbc/youtube.gif
Let us know if it is displayed after.  ;)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: malcolmlo on August 30, 2007, 02:01:00 PM
I had already put it in that directory. Still no button.

You can test it here:

www.warhammertalk.com/forums/

u: test
p: welcome22
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: tatore on August 30, 2007, 02:07:45 PM
Are you sure to have the block codes in Subs.php, post.template.php and the string in Modification.yourlanguage.php?
And: did you enable the bbc [youtube] from admin panel->post and topics->bulletin board code->youtube ?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: tatore on August 30, 2007, 02:17:18 PM
'Youtube' works, I've tested.
The path for the gif don't know why is where you said to have replaced it.
No answers to your questions, sorry.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: malcolmlo on August 30, 2007, 02:30:48 PM
The thing is there were no directions on what modifications are being made in the MOD information. Only to add the line to post.template.php and the language one. Nothing about subs. Ill check the language one now, but i already did the post.template.php one manually.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: tatore on August 30, 2007, 02:38:05 PM
..so you didn't install it via pakage manager?
Why didn't you try?
Do you have a customized post.template?
Try to install it as I've suggested.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: malcolmlo on August 30, 2007, 03:21:23 PM
Yes, I installed it using the package manager. thats why i dont know anything about which modifications to make manually, the package manager did it all. I just did the 2 extra steps (moved .gif and changed post.template.php
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: tatore on August 30, 2007, 03:51:20 PM
Last attempt:
Copy a youtube.gif in themes/default/images/bbc
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: UrbanFusion on September 01, 2007, 01:05:17 AM
I'm in the same boat as some above...   I installed the package and checked the mod in the english php and the correct code WAS added.   I don't have a custom post.template.php in my themes that i saw so I didn't need to change that... but it still doesn't work

Does it work with SMF 1.1.3?

Mike
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: shadow82x on September 01, 2007, 01:12:56 AM
@UrbanFusion- works for 1.1.2 and 1.1.3 without any changes :)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Marcus J on September 02, 2007, 04:11:46 AM
I just wanted to post, and say THANK YOU for keeping this mod alive.  It's one of my favorites.  I use it on many of my forums, and only had trouble with install on one.  (It wasn't the mods fault)

So thank you!
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: shadow82x on September 02, 2007, 10:50:47 AM
This mod still has a long life too. :P I already updated it to the private beta by permission of Marlin. So once 2.0 goes public you will have it too. :)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Marcus J on September 02, 2007, 08:47:31 PM
Quote from: shadow82x on September 02, 2007, 10:50:47 AM
This mod still has a long life too. :P I already updated it to the private beta by permission of Marlin. So once 2.0 goes public you will have it too. :)

You are a hero!  If only there were a Karma button to reward you ;)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Farmacija on September 04, 2007, 10:43:24 AM
Quote from: tatore on August 29, 2007, 07:28:02 PM
Ok, eventually it seems to be all right, it's to easy to make mistakes.

Now, the only two things that you have to chek are:

/Sources/Subs.php


In attachment is my subs.php

and now it causes this errors
Quote
8: Use of undefined constant YouTube - assumed 'YouTube'
Datoteka: /home/farmaceu/public_html/forum/Themes/default/Display.template.php (eval?)
Linija: 3


8: Use of undefined constant YouTube - assumed 'YouTube'
Datoteka: /home/farmaceu/public_html/forum/Themes/default/languages/PersonalMessage.croatian.php (eval?)
Linija: 3

8: Use of undefined constant YouTube - assumed 'YouTube'
Datoteka: /home/farmaceu/public_html/forum/Themes/default/Post.template.php (eval?)
Linija: 3
      

8: Use of undefined constant YouTube - assumed 'YouTube'
Datoteka: /home/farmaceu/public_html/forum/Themes/default/languages/TPortal.croatian.php (eval?)
Linija: 3
I persume that this mod with this huge number of error in error log can cause database crashes... something isn't ok with it.  &gt;:(
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: NotCeno on September 06, 2007, 12:45:37 PM
Hi,

Quick question: I'm running SMF 1.1.3, and this mod works great for me. Installed just fine with the Package Manager. Only, I want to do away with the '=425,350' in the opening tag. I followed the advice from earlier in the thread, and made the suggested edits to subs.php and post.template.php. And I get the following results:

[youtube=425,350]Q5im0Ssyyus[/youtube] - works fine
[youtube=213,175]Q5im0Ssyyus[/youtube] - works fine (shows correctly at 425x350)
- doesn't work

It seems that it works great, it shows the video at 425x350 if I enter any two numbers for 'youtube=x,y' in the opening tag. I just can't seem to get it to work with a plain 'youtube' opener. A push in the right direction would be much appreciated. Thanks!
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Weapon X on September 06, 2007, 06:44:45 PM
Curious......I added the package and it works fine but now at the very top of my forum above everything and to the very left I have this:

$txt['youtube'] = 'YouTube';

Ideas???
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: tatore on September 06, 2007, 06:59:57 PM
Quote from: Weapon X on September 06, 2007, 06:44:45 PM
Curious......I added the package and it works fine but now at the very top of my forum above everything and to the very left I have this:
$txt['youtube'] = 'YouTube';

Ideas???
:o Where did you place the language string???
Quote$txt['youtube'] = 'YouTube';
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: shadow82x on September 06, 2007, 07:02:10 PM
Quote from: Weapon X on September 06, 2007, 06:44:45 PM
Curious......I added the package and it works fine but now at the very top of my forum above everything and to the very left I have this:

$txt['youtube'] = 'YouTube';

Ideas???
If you installed the mod via the package manager try posting your modifications.english.php here. The <php> </php> tags are probaly wrong.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Farmacija on September 09, 2007, 09:50:45 PM
and one more error cause  by this mod
8: Use of undefined constant YouTube - assumed 'YouTube'
Datoteka: /home/farmaceu/public_html/forum/Themes/default/languages/TPortal.croatian.php (eval?)
Linija: 3
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: tu111 on September 14, 2007, 07:57:49 AM
I read to page 8 and not continue.  Sorry if it has already who answer this question.  Now I just installed YouTube BBC Tag (XHTML Compliant) mod.  It's really easy to install and great mod but have a little problem that most user can see the video but some cannot(they told me at my forum).  Who can tell me why some user tell me they cannot see the video.

Thanks for all answer.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: AfroSamurai on September 17, 2007, 11:09:35 PM
Hi Everyone,

I've install this MOD and it works perfectly in the forum but, I allways get this error message in the Admin section :

8: Undefined index: youtube
Fichier: /homepages/34/**********/htdocs/testfofo/Themes/default/languages/Post.french.php (eval?)
Ligne: 781

And the worst is that I've checked the Post.french.php and it doesn't even have 781 lines. :-\
Can someone help me please with that one? :(

Thanks in advance. :)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: tatore on September 17, 2007, 11:42:56 PM
Just put into the default /language/Madifications.french.php the string

$txt['youtube'] = 'YouTube'; before ?>
Assuming that french is your forum's language :)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: AfroSamurai on September 18, 2007, 06:22:38 AM
Hello :),

You assumed right! :D

Ok, for the code, I had already done that... here is the content of my Modifications.french.php  :

<?php
// Version: 1.1; Modifications
$txt['uot_users_online_today']='Utilisateurs loggu&eacute;s aujourd\'hui';
$txt['uot_yesterday']='Hier a';
$txt['uot_total']='Total';
$txt['uot_visible']='Visibles';
$txt['uot_hidden']='Cach&eacute;s';
$txt['youtube']='YouTube';
$txt['myvideo']='DailyMotion insert Number';
?>


But the error is, if you can see in my previous post, in the Post.french.php

Any clue?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Farmacija on September 18, 2007, 09:36:50 AM
Quote from: tatore on September 17, 2007, 11:42:56 PM
Just put into the default /language/Madifications.french.php the string

$txt['youtube'] = 'YouTube'; before ?>
Assuming that french is your forum's language :)
Tatore what's up with my problem??
Mod author doesn't apear here at all!
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: AfroSamurai on September 18, 2007, 05:34:50 PM
Hi,

I've uninstall the MOD and reinstalled it and still get the same error message witch is :

8: Undefined index: youtube
Fichier: /homepages/34/**********/htdocs/testfofo/Themes/default/languages/Post.french.php (eval?)
Ligne: 781


And still, here is the content of my Modification.french.php  :

<?php
// Version: 1.1; Modifications
$txt['uot_users_online_today']='Utilisateurs loggu&eacute;s aujourd\'hui';
$txt['uot_yesterday']='Hier a';
$txt['uot_total']='Total';
$txt['uot_visible']='Visibles';
$txt['uot_hidden']='Cach&eacute;s';
$txt['youtube']='YouTube';
$txt['myvideo']='DailyMotion insert Number';
?>


The weird thing is that the error is suppose to come from the Post.french.php file, on line 781... but the file as only 185 lines. :(

Can someone please help me to solve that mystery?! :'(

Thanks in advance.
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: karlbenson on September 18, 2007, 05:38:53 PM
At a guess its probably line 781 of Post.template.php
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: AfroSamurai on September 18, 2007, 05:46:56 PM
Ah ha! I've notice something... when ever I put my mouse cursor over my BB-codes buttons in the writing interface, there is a little "alternative text" that appears. Like for instance, if I move my cursor over the Dailymotion button, it pops "Dailymotion" ... but when I put my cursor over the YouTube button, nothing appears. This would most probably come from there.

So, can someone tell me where to fix this?
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: karlbenson on September 18, 2007, 05:48:38 PM
then its definately
Theme/{themename}/Post.template.php
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: AfroSamurai on September 18, 2007, 06:49:27 PM
Well, actually that was not quit it... I manage to fix every thing!!! :D

Here's what I found and what I did to correct :

In the dm_bbc_xhtml_1.0.xml file, I found this :

<file name="$themedir/languages/Modifications.french.php" error="ignore">
                <operation error="skip">
                        <search position="end"></search>
                        <add><![CDATA[
$txt['dailymotion'] = 'DailyMotion';
]]></add>
                </operation>
        </file>


There was a error="ignore" and error="skip" to it...

So I've change to this :

<file name="$themedir/languages/Modifications.french.php">
                <operation>
                        <search position="end"></search>
                        <add><![CDATA[
$txt['dailymotion'] = 'DailyMotion';
]]></add>
                </operation>
        </file>


And re-zip it.

Then, in the yt_bbc_xhtml_1.0.xml file, these lines :

<file name="$themedir/languages/Modifications.french.php">
                <operation>
                        <search position="end"></search>
                        <add><![CDATA[
$txt['youtube'] = 'YouTube';
]]></add>
                </operation>
        </file>


were not there so I add them and re-zip it. Then, I did a reinstall of both MODs and everything is OK!!! No more errors!!!

Thanks for your help and I hope my solution is gonna help some people that encounter the same problem.

See ya!  8)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: ziycon on September 19, 2007, 10:23:57 PM
I installed the package through the package manager in SMF and it said it was installed fine but i had to go an manually put all the code in and upload the GIF to the right folder, its all working fine now, im running 1.1.3.
Can be viewed working at http://www.ign.ie/forum/
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Nicodeme on September 27, 2007, 08:02:16 AM
Hello here :)

First, sorry for my bad english...  :(

I have a problem with this mod on SMF 1.1.3.

Manual install in custom theme, all work fine on FireFox or Internet Explorer 6.

But now, I have a problem with IE7. See screenshots attached.

Someone can help me ?

EDIT: Solution: update of the Flash Player for IE on Adobe website. ;)
Title: Re: YouTube BBC Tag (XHTML Compliant)
Post by: Dost_D on September 30, 2007, 01:11:03 AM
Thanks for the Mod it works fine...