Advertisement:

Author Topic: Ohara YouTube Embed  (Read 203542 times)

Offline jsx

  • Full Member
  • ***
  • Posts: 437
  • Gender: Male
Re: Ohara YouTube Embed
« Reply #740 on: November 29, 2019, 06:23:45 AM »
Hi jsx,

Try [noembed]  [/noembed] around the video's url.

Hi,

If I add this tag between the link then the video will not be displayed, but the tag is visible.

Will have to look at it to see how this mod behaves with the option.

It would be nice if you check it.
The Great Winged Hussars

https://www.youtube.com/watch?v=eWkrQQly6xU

We remember
In september
When The Winged Hussars arrived!

Offline YogiBear

  • SMF Hero
  • ******
  • Posts: 1,972
Re: Ohara YouTube Embed
« Reply #741 on: November 29, 2019, 10:22:11 AM »
Hmm, try [ nobbc]  [ /nobbc]  (without the spaces).
SMF v2.0.17  Mods : Ohara YouTube Embed v1.2.9,  Custom Tab v1.2 , Bakers' Dozen Pages v1.2 , SMFPacks Shoutbox v1.1,  Board Color & Icons v1.1 , Simple Image Upload , Snow & Garland v1.4
PHP  v.7.3.6

Offline jsx

  • Full Member
  • ***
  • Posts: 437
  • Gender: Male
Re: Ohara YouTube Embed
« Reply #742 on: December 01, 2019, 11:45:12 AM »
In this way, a link to the video is displayed, but it is not clickable, it is inactive.
The Great Winged Hussars

https://www.youtube.com/watch?v=eWkrQQly6xU

We remember
In september
When The Winged Hussars arrived!

Offline YogiBear

  • SMF Hero
  • ******
  • Posts: 1,972
Re: Ohara YouTube Embed
« Reply #743 on: December 02, 2019, 12:23:46 PM »
A workaround - fear not, this leads to a harmless vid by Claude Francois...

[ url=https://www.google.com/search?source=hp&ei=VkTlXfGYO5ydjLsP_Nq7KA&q=chanson+donna+donna+de+claude+fran%C3%A7ois&oq=donna+donna+cha&gs_l=psy-ab.1.2.0i22i30l3.1756.20540..26712...0.0..0.177.1406.18j1......0....1..gws-wiz.....0..0i131j0j0i324j0i333.Ua16NzdAj5E][ color=red]nice vid[ /color]

When the code spaces are closed it appears as...

nice vid
SMF v2.0.17  Mods : Ohara YouTube Embed v1.2.9,  Custom Tab v1.2 , Bakers' Dozen Pages v1.2 , SMFPacks Shoutbox v1.1,  Board Color & Icons v1.1 , Simple Image Upload , Snow & Garland v1.4
PHP  v.7.3.6

Offline YogiBear

  • SMF Hero
  • ******
  • Posts: 1,972
Re: Ohara YouTube Embed
« Reply #744 on: December 02, 2019, 02:23:31 PM »
Oops forgot - end code with [ /url] (without the space).
SMF v2.0.17  Mods : Ohara YouTube Embed v1.2.9,  Custom Tab v1.2 , Bakers' Dozen Pages v1.2 , SMFPacks Shoutbox v1.1,  Board Color & Icons v1.1 , Simple Image Upload , Snow & Garland v1.4
PHP  v.7.3.6

Offline Rob Lightbody

  • Charter Member
  • Jr. Member
  • *
  • Posts: 168
  • Gender: Male
  • Rob Lightbody, QE2 Story Forum administrator
    • The QE2 Story
Re: Ohara YouTube Embed
« Reply #745 on: January 01, 2020, 07:36:49 AM »
Hi,

Seeing a problem with this mod on 2.0.16, mainly apparently when people use the "recent posts" function.

https://...../index.php?action=recent
8: Undefined index: airp_attachments
File: ...../Themes/default/languages/OharaYTEmbed.english-utf8.php (main sub template - eval?)
Line: 55

Any suggestions please?

Thanks,

- Rob

Offline YogiBear

  • SMF Hero
  • ******
  • Posts: 1,972
Re: Ohara YouTube Embed
« Reply #746 on: January 01, 2020, 08:55:35 AM »
Recommend upgrade to 2.0.17 then see if the error is still there.
SMF v2.0.17  Mods : Ohara YouTube Embed v1.2.9,  Custom Tab v1.2 , Bakers' Dozen Pages v1.2 , SMFPacks Shoutbox v1.1,  Board Color & Icons v1.1 , Simple Image Upload , Snow & Garland v1.4
PHP  v.7.3.6

Offline Suki

  • Kaizoku Jotei
  • Developer
  • SMF Super Hero
  • *
  • Posts: 15,623
  • Oh, wouldn't it be great if I *was* crazy?
    • MissAllSunday on GitHub
    • SMF mods
Re: Ohara YouTube Embed
« Reply #747 on: January 06, 2020, 11:38:35 AM »
Hi,

Seeing a problem with this mod on 2.0.16, mainly apparently when people use the "recent posts" function.

https://...../index.php?action=recent
8: Undefined index: airp_attachments
File: ...../Themes/default/languages/OharaYTEmbed.english-utf8.php (main sub template - eval?)
Line: 55

Any suggestions please?

Thanks,

- Rob

The issue most likely is with another mod, this mod uses hooks which means its files as loaded after the main ones. The way the error log tries to catch on which file the error is suppose to appear can be confused when a mod loads its own files via hooks.

On your mod list check if theres one with the prefix: "airp_". Thats the mod with the issue, most likely some txt language var wasn't found.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Look at them. They're just asking for it. Maybe the human race deserves to be wiped out.

Offline Rob Lightbody

  • Charter Member
  • Jr. Member
  • *
  • Posts: 168
  • Gender: Male
  • Rob Lightbody, QE2 Story Forum administrator
    • The QE2 Story
Re: Ohara YouTube Embed
« Reply #748 on: January 08, 2020, 02:25:47 PM »
Hi,

Seeing a problem with this mod on 2.0.16, mainly apparently when people use the "recent posts" function.

https://...../index.php?action=recent
8: Undefined index: airp_attachments
File: ...../Themes/default/languages/OharaYTEmbed.english-utf8.php (main sub template - eval?)
Line: 55

Any suggestions please?

Thanks,

- Rob

The issue most likely is with another mod, this mod uses hooks which means its files as loaded after the main ones. The way the error log tries to catch on which file the error is suppose to appear can be confused when a mod loads its own files via hooks.

On your mod list check if theres one with the prefix: "airp_". Thats the mod with the issue, most likely some txt language var wasn't found.

You were right - thanks so much - tracked it down!

Offline jsx

  • Full Member
  • ***
  • Posts: 437
  • Gender: Male
Re: Ohara YouTube Embed
« Reply #749 on: February 01, 2020, 05:24:36 AM »
@Suki

In Features and Options > Signatures > Enabled BBC tags

I turned off the use of youtube tags in the signature, but the embedded video is displayed in the signature. Why is this happening?

Will have to look at it to see how this mod behaves with the option.

Hi Suki,

You can check it?
The Great Winged Hussars

https://www.youtube.com/watch?v=eWkrQQly6xU

We remember
In september
When The Winged Hussars arrived!

Offline Suki

  • Kaizoku Jotei
  • Developer
  • SMF Super Hero
  • *
  • Posts: 15,623
  • Oh, wouldn't it be great if I *was* crazy?
    • MissAllSunday on GitHub
    • SMF mods
Re: Ohara YouTube Embed
« Reply #750 on: February 01, 2020, 01:19:42 PM »
I'm trying to replicate the issue on a fresh 2.0.17 install but the forum indeed prevents me from saving a signature with disallowed tags.

Keep in mind this restriction does not apply to forum admins. Meaning you as an admin can use all tags regardless of their restrictions.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Look at them. They're just asking for it. Maybe the human race deserves to be wiped out.

Offline jsx

  • Full Member
  • ***
  • Posts: 437
  • Gender: Male
Re: Ohara YouTube Embed
« Reply #751 on: February 02, 2020, 07:16:16 AM »
I'm trying to replicate the issue on a fresh 2.0.17 install but the forum indeed prevents me from saving a signature with disallowed tags.

Keep in mind this restriction does not apply to forum admins. Meaning you as an admin can use all tags regardless of their restrictions.

That's right, but if in the modification settings feature is enabled "Enable the autoembed feature" then the video will be displayed in the signature despite the fact that it is prohibited in the BBC tag settings. Features and Options > Signatures > youtube/yt - Check it out, and you'll see.
The Great Winged Hussars

https://www.youtube.com/watch?v=eWkrQQly6xU

We remember
In september
When The Winged Hussars arrived!

Offline dodos26

  • Semi-Newbie
  • *
  • Posts: 46
Re: Ohara YouTube Embed
« Reply #752 on: February 03, 2020, 06:49:06 AM »
2e1a6a28246536b775a6b5b4e48c83d9
Indefinite
1x https://tryhackx.org/index.php?action=moderate;area=postmod;sa=posts
4x https://tryhackx.org/index.php?
1x https://tryhackx.org/index.php?https://tryhackx.org/
2x https://tryhackx.org/index.php?action=forum
8: Undefined index: image
File: /home/tryhackxbf/www/Themes/default/languages/OharaYTEmbed.polish.php (body_above sub template - eval?)
Line: 246

2.0.17
+
I have bugs in subs-post.php + subs.php with this same hash 2e1a6a28246536b775a6b5b4e48c83d9

Offline Suki

  • Kaizoku Jotei
  • Developer
  • SMF Super Hero
  • *
  • Posts: 15,623
  • Oh, wouldn't it be great if I *was* crazy?
    • MissAllSunday on GitHub
    • SMF mods
Re: Ohara YouTube Embed
« Reply #753 on: February 03, 2020, 09:56:13 AM »
2e1a6a28246536b775a6b5b4e48c83d9
Indefinite
1x https://tryhackx.org/index.php?action=moderate;area=postmod;sa=posts
4x https://tryhackx.org/index.php?
1x https://tryhackx.org/index.php?https://tryhackx.org/
2x https://tryhackx.org/index.php?action=forum
8: Undefined index: image
File: /home/tryhackxbf/www/Themes/default/languages/OharaYTEmbed.polish.php (body_above sub template - eval?)
Line: 246

2.0.17
+
I have bugs in subs-post.php + subs.php with this same hash 2e1a6a28246536b775a6b5b4e48c83d9


Same case as this:



The issue most likely is with another mod, this mod uses hooks which means its files as loaded after the main ones. The way the error log tries to catch on which file the error is suppose to appear can be confused when a mod loads its own files via hooks.

On your mod list check if theres one with the prefix: "airp_". Thats the mod with the issue, most likely some txt language var wasn't found.


That's right, but if in the modification settings feature is enabled "Enable the autoembed feature" then the video will be displayed in the signature despite the fact that it is prohibited in the BBC tag settings. Features and Options > Signatures > youtube/yt - Check it out, and you'll see.


Oh you mean the auto-embed, yeah I don't think there's a good way to solve that unfortunately. Might require some more edits when saving the signature. Good place to place a hook on 2.1, will check it out.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Look at them. They're just asking for it. Maybe the human race deserves to be wiped out.

Offline dodos26

  • Semi-Newbie
  • *
  • Posts: 46
Re: Ohara YouTube Embed
« Reply #754 on: February 03, 2020, 10:24:16 AM »
I dont use automatic embedding.. Only check "Enable Mod Ohara Youtube Embed"
I have this mods:
phpBB-style Font Size BBCode   2.4
SimplePortal   2.3.7
Ultimate Menu   1.0.3
Registered Links   3.0
Ohara YouTube Embed   1.2.10
SimplePortal - Polish   2.3.5
Similar Topics   0.9.2
SMF Tricks Customs   4.2.1
Quick Spoiler   1.2.4
Custom BBCodes Manager   2.8
reCAPTCHA for SMF     2.0.0

It seems to me that there may be a problem by using short youtube links. But I can't reproduce this error.

Offline Suki

  • Kaizoku Jotei
  • Developer
  • SMF Super Hero
  • *
  • Posts: 15,623
  • Oh, wouldn't it be great if I *was* crazy?
    • MissAllSunday on GitHub
    • SMF mods
Re: Ohara YouTube Embed
« Reply #755 on: February 03, 2020, 10:27:45 AM »
The auto embed is for @jsx


@dodos26  Your issue lies with another mod, this mod uses hooks and requires files on runtime which makes the SMF log error confused about where exactly the error is, if you can, uninstall this mod to see where the real error is.


Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Look at them. They're just asking for it. Maybe the human race deserves to be wiped out.

Offline dodos26

  • Semi-Newbie
  • *
  • Posts: 46
Re: Ohara YouTube Embed
« Reply #756 on: February 03, 2020, 10:47:00 AM »
The auto embed is for @jsx


@dodos26  Your issue lies with another mod, this mod uses hooks and requires files on runtime which makes the SMF log error confused about where exactly the error is, if you can, uninstall this mod to see where the real error is.

There was another bug with attachments, but it had a different hash tag. It turned out that when the maximum size of the folder and attachment was changed, they added some "& ****" at the end of the numbers. I don't know where they came from or how they could accept a number with characters other than the number. I fix it now.

And as for the error I am not able to reproduce this error which shows me oraha .. Maybe these attachments were a problem but they returned three other errors with a different hash.

Offline Suki

  • Kaizoku Jotei
  • Developer
  • SMF Super Hero
  • *
  • Posts: 15,623
  • Oh, wouldn't it be great if I *was* crazy?
    • MissAllSunday on GitHub
    • SMF mods
Re: Ohara YouTube Embed
« Reply #757 on: February 03, 2020, 11:13:53 AM »
Try disabling evaluation of templates, there's a setting for it but can't remember where exactly, use the admin search with "eval" and it will appear
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Look at them. They're just asking for it. Maybe the human race deserves to be wiped out.

Offline jsx

  • Full Member
  • ***
  • Posts: 437
  • Gender: Male
Re: Ohara YouTube Embed
« Reply #758 on: February 05, 2020, 03:25:28 PM »
Oh you mean the auto-embed, yeah I don't think there's a good way to solve that unfortunately. Might require some more edits when saving the signature. Good place to place a hook on 2.1, will check it out.

I understand. Thanks for the clarification. Maybe you'll solve it in SMF 2.1 :)
The Great Winged Hussars

https://www.youtube.com/watch?v=eWkrQQly6xU

We remember
In september
When The Winged Hussars arrived!

Offline Scooter Trash

  • Semi-Newbie
  • *
  • Posts: 33
Re: Ohara YouTube Embed
« Reply #759 on: March 18, 2020, 03:33:43 PM »
Hello Suki.
I'm sure I've missed it somewhere in this thread, but could you please tell me how to have the YouTube videos left-aligned instead of center-aligned?
I read an earlier reply that said to edit it in the OharaYTEmbed.php file, but I couldn't find it in there, so I'm assuming that the topic I was reading was from an earlier build and that it's in a different location in a css file or something now.
Thanks