Advertisement:

Author Topic: [Deprecated, use Aeva] YouTube BBCode v2.6  (Read 258213 times)

Offline karlbenson

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,629
  • Gender: Male
    • Criminal Brief UK
Re: YouTube BBCode v1.3
« Reply #40 on: October 16, 2007, 12:16:12 AM »
Ok everyone, I've have now uploaded v1.3 [mod]

It contains many improvements

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


If you currently use the old YouTube mods by Yakuza, Marlon, Gantman or Daniel Marquard, you are recommended to uninstall those and install this mod instead because those older mods have a 'potential' xss vulnerabilty as they don't validate/parse the data.
No versions of my YouTube mod are vulnerable, however v1.3 contains many minor fixes and improvements, so it is worth uninstalling an old version and installing v1.3
« Last Edit: October 16, 2007, 12:18:11 AM by karlbenson »

aussieholden

  • Guest
Re: YouTube BBCode v1.3
« Reply #41 on: October 17, 2007, 06:51:52 AM »
Ok I have installed this mod the install was ok but when I use the tages nothing shows up blank ?

I added the code as I am using the ApolloBB theme I get no icon for the youtube tags ?

Offline karlbenson

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,629
  • Gender: Male
    • Criminal Brief UK
Re: YouTube BBCode v1.3
« Reply #42 on: October 17, 2007, 10:51:50 AM »
Does it work on the default theme? or is it just when you use the apollo theme?

aussieholden

  • Guest
Re: YouTube BBCode v1.3
« Reply #43 on: October 18, 2007, 11:43:31 AM »
Does it work on the default theme? or is it just when you use the apollo theme?

Yep works on the Defult theme everything is in place.

Offline karlbenson

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,629
  • Gender: Male
    • Criminal Brief UK
Re: YouTube BBCode v1.3
« Reply #44 on: October 18, 2007, 12:39:30 PM »
Have you performed the manual edit for each theme?

Have you copied youtube.gif into EACH themes images/bbc/ folder

Offline hobox

  • Jr. Member
  • **
  • Posts: 144
  • Gender: Male
Re: YouTube BBCode v1.3
« Reply #45 on: October 18, 2007, 01:03:18 PM »
Nice Mod. But if I want to use liveleak and other flash movie sites, how difficult is it to expand on this to include them as well?

For swedish and swedish-utf8

Code: [Select]
$txt['youtube'] = 'YouTube';
$txt['youtube_invalid'] = '#Ogiltig YouTube länk#';

Offline karlbenson

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,629
  • Gender: Male
    • Criminal Brief UK
Re: YouTube BBCode v1.3
« Reply #46 on: October 18, 2007, 02:06:23 PM »
Thanks for the language strings.

This mod is just youtube.

HOWEVER,
I do have another mod which supports some other flash movie sites.
http://custom.simplemachines.org/mods/index.php?mod=977
But without the need for bbcode, it automatically converts posted links to embedded videos.
At the moment it does not support LiveLeak.  However you catch me in the middle (right at this very moment) of updating the mod to include a dozen or more video clip sites. (including Live Leak)

Offline hobox

  • Jr. Member
  • **
  • Posts: 144
  • Gender: Male
Re: YouTube BBCode v1.3
« Reply #47 on: October 19, 2007, 04:05:53 AM »
Great, I'll check it out

Offline Filipina

  • Full Member
  • ***
  • Posts: 454
  • Gender: Female
Re: YouTube BBCode v1.3
« Reply #48 on: October 23, 2007, 11:10:28 PM »
Hi I have a question.  I think I have one of the youtube MODS that need to be removed in place of this one.  I get these errors when trying to unistall.... any ideas on what i should do?  Thanks

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

i am running the latest default theme
 

Offline karlbenson

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,629
  • Gender: Male
    • Criminal Brief UK
Re: YouTube BBCode v1.3
« Reply #49 on: October 24, 2007, 10:59:56 AM »
Unfortunately you will need to manually remove that mod.

If you don't feel comfortable with doing that yourself you could always post a free or paid request in the help wanted section for someone to do it for you.

Offline Filipina

  • Full Member
  • ***
  • Posts: 454
  • Gender: Female
Re: YouTube BBCode v1.3
« Reply #50 on: October 25, 2007, 11:39:12 PM »
ok thanks for the response

Offline iPivot

  • Semi-Newbie
  • *
  • Posts: 14
    • LineRiderHQ
Re: YouTube BBCode v1.3
« Reply #51 on: October 26, 2007, 07:34:37 PM »
For v1.3, what files need to be writable, for it to install.

Offline nick09

  • Full Member
  • ***
  • Posts: 429
Re: YouTube BBCode v1.3
« Reply #52 on: October 28, 2007, 05:32:40 PM »
i get this when i try to install it:


Offline karlbenson

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,629
  • Gender: Male
    • Criminal Brief UK
Re: YouTube BBCode v1.3
« Reply #53 on: October 28, 2007, 06:48:21 PM »
@ipivot
subs.php
post.template.php
and the folder Themes/default/images/bbc/

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

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

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

If you still cannot resolve the issue please create a topic in the General Supports forum rather than this topic as it is not mod-specific but a general issue with your smf installation/server.

Offline karlbenson

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,629
  • Gender: Male
    • Criminal Brief UK
Re: YouTube BBCode v1.4
« Reply #54 on: October 29, 2007, 02:20:36 PM »
I have now uploaded v1.4

1.4 - 29th October 2007
o Consolidated 2.0 beta 1 and 1.1.x versions into single mod
o Added Swedish/Swedish-utf8 Support (Thanks to Hobox)
o Added Turkish/Turkish-utf8 Support (Thanks to Cakal93)
o Added support for more YouTube localised versions
- Australia, Hong Kong, Mexico, New Zealand

Offline jc1104

  • Newbie
  • *
  • Posts: 3
Re: YouTube BBCode v1.4
« Reply #55 on: October 30, 2007, 03:43:06 PM »
I'm not too smart with coding and stuff like that but our forums use Dilber MC theme.  We're not able to upload the youtube bbc because of window's file permissions.  Tried chmoding, changing permissions in admin, etc.  So the only way possible is manual edit but I'm not sure where I edit.  There's no post.php and that's where I need help, thanks.

Offline karlbenson

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,629
  • Gender: Male
    • Criminal Brief UK
Re: YouTube BBCode v1.4
« Reply #56 on: October 30, 2007, 05:00:53 PM »
First, fully install the mod manually or automatically onto the default theme.

Once you've done that you can think about installing it onto other themes.
if your Dilber MC theme doesnt have its own Post.template it will use the one from the default theme, so you won't need to do an edit.
All you would have to do then is drop a copy of the youtube.gif into the following folder in EVERY theme.
Themes/{themename}/images/bbc/

Offline jc1104

  • Newbie
  • *
  • Posts: 3
Re: YouTube BBCode v1.4
« Reply #57 on: October 30, 2007, 06:47:37 PM »
Thanks.  Just one more question, how would I install it manually?

Offline karlbenson

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,629
  • Gender: Male
    • Criminal Brief UK
Re: YouTube BBCode v1.4
« Reply #58 on: October 31, 2007, 09:11:28 AM »

Offline Lutious

  • Semi-Newbie
  • *
  • Posts: 12
  • Gender: Male
Re: YouTube BBCode v1.4
« Reply #59 on: October 31, 2007, 04:13:02 PM »
This mod is wicked cool.  I love how it will take virtually anything you throw between the tags and it can pull the video id out.  Very nicely done, and I'm sure my users will thank you for the ease of use.

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

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

My setup:
Forum version: SMF 1.1.4
Theme: DilberMC
Mods: SMF Arcade v2.0.11
         Dilber MC v1.1
         YouTube BBCode v1.4
         Fix Message Empty Error For Embed Video Mods v1.0
         SMF Shoutbox v1.16b