Yet Another YouTube BBCode Tag

Started by dougiefresh, December 10, 2014, 06:09:01 PM

Previous topic - Next topic

StarredSkies

Actually, Google disabled autoplay from their browser, so it's no longer a thing that works. :(
https://developers.google.com/web/updates/2017/09/autoplay-policy-changes

GigaWatt

"This is really a generic concept about human thinking - when faced with large tasks we're naturally inclined to try to break them down into a bunch of smaller tasks that together make up the whole."

"A 500 error loosely translates to the webserver saying, "WTF?"..."

alaska_guy

How can I set a dedicated width and height for all embedded youtube videos posted?  I do not want it to take up the entire screen.  IE:  Can i change the code somewhere so it always posts embedded videos at say 640x480?

dougiefresh

Quote from: alaska_guy on July 20, 2018, 01:21:25 AM
How can I set a dedicated width and height for all embedded youtube videos posted?  I do not want it to take up the entire screen.  IE:  Can i change the code somewhere so it always posts embedded videos at say 640x480?
You should be able to set the default height and width for these bbcodes in Admin => Configuration => Modification Settings => Miscellaneous.

Quote from: StarredSkies on June 26, 2018, 12:45:10 PM
Actually, Google disabled autoplay from their browser, so it's no longer a thing that works. :(
https://developers.google.com/web/updates/2017/09/autoplay-policy-changes
That's unfortunate.  I'm not going to remove the parameter, as doing so will screw up any posts using that parameter.....

StarredSkies

That's exactly why I haven't removed the parameter yet. I wish I could, but it'd definitely mess up a few things on site, sadly...

dougiefresh

Uploaded v4.14 - November 9th, 2018
o No functionality change.
o Updated documentation to point to new website.

Argon3000

Quote from: dougiefresh on December 10, 2014, 06:09:01 PM
Link to Mod



YET ANOTHER YOUTUBE BBCODE TAG v4.14
By Dougiefresh -> Link to Mod




Hello!

SMF 2.0.15 + Yet Another YouTube BBCode Tag 4.14 on PHP 5.6 mod work.

SMF 2.0.15 + Yet Another YouTube BBCode Tag 4.14 on PHP 7.0 mod does not work.
On-screen text Youtube: "An error occurred. Please try again later (playback ID=...)"

Please, help?
SMF 2.0.15, PortaMx-SEF 1.54

Plissken

[yt]s9UCRKf6IU0[/yt] Works well, but It's possible?:
[youtube]s9UCRKf6IU0[/youtube]

GigaWatt

Yes it works. Tested it on my forum ;).
"This is really a generic concept about human thinking - when faced with large tasks we're naturally inclined to try to break them down into a bunch of smaller tasks that together make up the whole."

"A 500 error loosely translates to the webserver saying, "WTF?"..."

petewadey

Whilst checking I have the latest version of this mod, I notice it should be 4.14. My installed version says it's 4.7. Any idea why this should be?

big red

   Thanks for your efforts!

  Could anyone tell me what the last setting is as the text is missing?

grandseb59

Quote from: big red on February 16, 2020, 12:21:31 PM
  Could anyone tell me what the last setting is as the text is missing?

I was just wondering the same thing.
And since no one answered, I'm going back up the topic to have a chance to get an answer.  ;)

Paulo.chon

Quote from: big red on February 16, 2020, 12:21:31 PM
    Could anyone tell me what the last setting is as the text is missing?

"Disable YouTube autoembed"

Just try!

In Themes/default/languages/index.english.php you should have

$txt['youtube'] = 'YouTube';
$txt['yt_search'] = 'YouTube Search';
$txt['yt_user'] = 'YouTube User';
$txt['youtube_link_invalid'] = '[ Invalid YouTube link ]';
$txt['youtube_no_embed'] = 'Show YouTube videos as a link.';
$txt['youtube_disable_autoembed'] = 'Disable YouTube autoembed.';

Paulo.chon

French translation:

In Themes/default/languages/ManageSettings.french-utf8:

// Traduction de Yet Another YouTube BBCode Tag mod
$txt['youtube_default_width'] = 'Largeur par défaut utilisée pour le BBCode YouTube lorsqu\'elle n\'est pas spécifiée<div class="smalltext">Mettre <strong>0</strong> pour utiliser l\'affichage vidéo responsive</div>';
$txt['youtube_default_height'] = 'Hauteur par défaut utilisée pour le BBCode YouTube lorsqu\'elle n\'est pas spécifiée<div class="smalltext">Mettre <strong>0</strong> pour utiliser l\'affichage vidéo responsive</div>';


In Themes/default/languages/index.french-utf8.php:

// Traduction de Yet Another YouTube BBCode Tag mod
$txt['youtube'] = 'YouTube';
$txt['yt_search'] = 'Recherche YouTube';
$txt['yt_user'] = 'Utilisateur YouTube';
$txt['youtube_link_invalid'] = '[ Lien YouTube non valide ]';
$txt['youtube_no_embed'] = 'Montrer les vidéos YouTube comme des liens';
$txt['youtube_sig_embed'] = 'Autoriser les vidéos YouTube dans les signatures';
$txt['youtube_disable_autoembed'] = 'Désactiver l\'insertion automatique YouTube';



landyvlad

I see this was updated for 2.1RC2 but doesn't RC2.1 now include the functionality of this mod as core?
"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

Arantor

I don't think *everything* is covered, pretty sure core just does a simple video embed, not a full blown embed of playlists etc.

kapt

When members tick this box, youtube bbcodes in the Modify section is removing. How can I solve it? I want to remove
'Show YouTube videos as a link.'
option. Members should not change this in the Look and Layout settings.







and it is not showing as a link.




si-biest

I want to make the video window be indented to the right by one space, how to do it in which file to change the code?

landyvlad

I see its noted as compatible with 2.1RC2

With the release now of 2.1.0 is it compatible for use with no further changes necessary?
"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

CrescentEclipse

Has anyone an idea what happened to Dougiefresh? Is he alright?

As of today I do not use v2.1, so unfortunately I cannot give any feedback in that direction.
But I identified some issues with the current release.
One of them, like kapt also figured out, is the broken "show as link" feature.
So I created my own bug fix release, but I am not sure if I am allowed to share it.

Nonetheless, here is the changelog:

v4.14.1 - February 10th, 2022
  • Added SMF version check for hook setup
  • Added option to enforce YouTube privacy (nocookie)
  • Added option to allow/disallow users to disable embedding of YouTube videos
  • Added german_informal language support
  • Changed icons of YouTube bbcode buttons
  • Fixed option to allow/disallow YouTube bbcodes in signatures
  • Fixed typo in "BBCode_YouTube_Parse" (&anp -> &amp)
  • Fixed signature cleanup (missing tags) if YouTube bbcodes are disallowed in signatures
  • Fixed link representation of YouTube videos if user disabled embedding
    • Changed parameters of "BBCode_YouTube_Embed" (removed unused &$smileys and &$parse_tags, added &$disabled)
    • $modSettings['disabledBBC'] will not be evaluated anymore at this stage, $disabled works fine

Advertisement: