• Welcome to Simple Machines Community Forum. Please login or sign up.
September 22, 2021, 02:24:09 PM

News:

Wondering if this will always be free?  See why free is better.


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

To paraphrase Kindred: "There are no technical solutions to social problems."

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.
No good deed goes unpunished
All helpful urges should be circumvented

Advertisement: