Ohara YouTube Embed

Started by Suki, December 21, 2011, 03:04:59 PM

Previous topic - Next topic

jsx

Quote from: YogiBear on November 25, 2019, 08:16:17 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.

Quote from: Suki on November 25, 2019, 10:23:30 AM
Will have to look at it to see how this mod behaves with the option.

It would be nice if you check it.

YogiBear

Hmm, try [ nobbc]  [ /nobbc]  (without the spaces).
SMF v2.1.3  Mods : Snow & Garland v1.4,  PHP  v.7.4.33

jsx

In this way, a link to the video is displayed, but it is not clickable, it is inactive.

YogiBear

SMF v2.1.3  Mods : Snow & Garland v1.4,  PHP  v.7.4.33

YogiBear

Oops forgot - end code with [ /url] (without the space).
SMF v2.1.3  Mods : Snow & Garland v1.4,  PHP  v.7.4.33

Rob Lightbody

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

YogiBear

Recommend upgrade to 2.0.17 then see if the error is still there.
SMF v2.1.3  Mods : Snow & Garland v1.4,  PHP  v.7.4.33

Suki

Quote from: Rob Lightbody 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

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.

Rob Lightbody

Quote from: Suki on January 06, 2020, 11:38:35 AM
Quote from: Rob Lightbody 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

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!

jsx

Quote from: jsx on November 25, 2019, 05:46:13 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?

Quote from: Suki on November 25, 2019, 10:23:30 AM
Will have to look at it to see how this mod behaves with the option.

Hi Suki,

You can check it?

Suki

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.

jsx

Quote from: Suki 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.

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.

dodos26

#752
2e1a6a28246536b775a6b5b4e48c83d9
Indefinite
1x https://.org/index.php?action=moderate;area=postmod;sa=posts
4x https://.org/index.php?
1x https://.org/index.php?https://.org/
2x https://.org/index.php?action=forum
8: Undefined index: image
File: /home//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

Suki

#753
Quote from: dodos26 on February 03, 2020, 06:49:06 AM2e1a6a28246536b775a6b5b4e48c83d9
Indefinite
1x https://.org/index.php?action=moderate;area=postmod;sa=posts
4x https://.org/index.php?
1x https://.org/index.php?https://.org/
2x https://.org/index.php?action=forum
8: Undefined index: image
File: /home//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:


Quote from: Suki on January 06, 2020, 11:38:35 AMThe 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.

Quote from: jsx on February 02, 2020, 07:16:16 AMThat'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.

dodos26

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.

Suki

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.

dodos26

Quote from: Suki 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.

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.

Suki

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.

jsx

Quote from: Suki on February 03, 2020, 09:56:13 AM
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 :)

Scooter Trash

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

Advertisement: