Advertisement:

Author Topic: YouTube BBC Tag (XHTML Compliant)  (Read 169918 times)

Offline Daniel Marquard

  • Jr. Member
  • **
  • Posts: 356
  • Gender: Male
    • Tristition
YouTube BBC Tag (XHTML Compliant)
« on: January 03, 2007, 09:18:19 AM »
Link to Mod

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 [youtube][youtube] tags.

Language Integration

To make the mod work with your language, simply 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.

Theme Integration

Theme integration for this mod is fairly straight forward.  Simply copy youtube.gif from the default theme's images directory into your custom theme's images directory.  If your custom theme happens to use its own Post.template.php, open that template file and find:

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

Following that code, add:

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

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.
« Last Edit: March 19, 2007, 12:38:16 PM by Marlon »

Offline RoarinRow

  • Full Member
  • ***
  • Posts: 662
  • Gender: Male
  • Ride my AV!
    • Avalanche Style
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #1 on: January 03, 2007, 11:16:13 AM »
Cool, it works thank you!   8)

SMF 2.0
TP 1.0 RC1.1
Wordpress 3.1.3

Offline Motorhead

  • Jr. Member
  • **
  • Posts: 220
  • Gender: Male
    • Steve's Offroad and Landrover Site
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #2 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


Offline Daniel Marquard

  • Jr. Member
  • **
  • Posts: 356
  • Gender: Male
    • Tristition
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #3 on: January 03, 2007, 02:48:41 PM »
Cool, it works thank you!   8)

Glad you like it.  :)

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?

Offline Motorhead

  • Jr. Member
  • **
  • Posts: 220
  • Gender: Male
    • Steve's Offroad and Landrover Site
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #4 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


Offline Daniel Marquard

  • Jr. Member
  • **
  • Posts: 356
  • Gender: Male
    • Tristition
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #5 on: January 03, 2007, 05:04:31 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?

Offline Motorhead

  • Jr. Member
  • **
  • Posts: 220
  • Gender: Male
    • Steve's Offroad and Landrover Site
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #6 on: January 03, 2007, 06:07:11 PM »
downloaded it , then uploaded it with pac-man


Offline Daniel Marquard

  • Jr. Member
  • **
  • Posts: 356
  • Gender: Male
    • Tristition
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #7 on: January 03, 2007, 06:50:35 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.
« Last Edit: January 03, 2007, 06:53:10 PM by Marlon »

Offline Motorhead

  • Jr. Member
  • **
  • Posts: 220
  • Gender: Male
    • Steve's Offroad and Landrover Site
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #8 on: January 03, 2007, 06:58:41 PM »
sorry pac-man is short for package manager :)


Offline njoker555

  • Jr. Member
  • **
  • Posts: 100
  • Gender: Male
    • Gamers Forum
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #9 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
Gamers Forum << PR3 forum WebZ Junk Blog << PR3 Blog ZenPix Blog

Offline Daniel Marquard

  • Jr. Member
  • **
  • Posts: 356
  • Gender: Male
    • Tristition
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #10 on: January 03, 2007, 07:46:39 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.

Offline njoker555

  • Jr. Member
  • **
  • Posts: 100
  • Gender: Male
    • Gamers Forum
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #11 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
Gamers Forum << PR3 forum WebZ Junk Blog << PR3 Blog ZenPix Blog

Offline Daniel Marquard

  • Jr. Member
  • **
  • Posts: 356
  • Gender: Male
    • Tristition
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #12 on: January 03, 2007, 10:14:44 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.

Offline NYRiders

  • Newbie
  • *
  • Posts: 3
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #13 on: January 03, 2007, 11:20:05 PM »
Works great in our forum (hxxp:www.nyriders.com [nonactive]) with IE, cant get it to work with Firefox (1.5.0.9) though....
Any suggestions?

Offline Daniel Marquard

  • Jr. Member
  • **
  • Posts: 356
  • Gender: Male
    • Tristition
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #14 on: January 04, 2007, 01:17:42 AM »
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?

Offline Motorhead

  • Jr. Member
  • **
  • Posts: 220
  • Gender: Male
    • Steve's Offroad and Landrover Site
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #15 on: January 04, 2007, 02:03:18 AM »
Quote
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

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..


Offline h4ni

  • Semi-Newbie
  • *
  • Posts: 53
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #16 on: January 04, 2007, 04:33:29 AM »
work fine thank you!!
« Last Edit: January 04, 2007, 04:35:57 AM by h4ni »

Offline matthen

  • Semi-Newbie
  • *
  • Posts: 27
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #17 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

Offline matjazz

  • Semi-Newbie
  • *
  • Posts: 81
    • EUmoto motorcycle and scooter portal
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #18 on: January 04, 2007, 12:46:28 PM »
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

Offline buhaychat.com

  • Semi-Newbie
  • *
  • Posts: 49
  • SMF Rocks!
    • BuhayCHAT Online Community for Filipino Adult Chatters
Re: YouTube BBC Tag (XHTML Compliant)
« Reply #19 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?