Advertisement:

Author Topic: Ohara YouTube Embed  (Read 199216 times)

Offline Suki

  • Kaizoku Jotei
  • Developer
  • SMF Super Hero
  • *
  • Posts: 15,558
  • Oh, wouldn't it be great if I *was* crazy?
    • MissAllSunday on GitHub
    • SMF mods
Re: Ohara YouTube Embed
« Reply #500 on: January 02, 2016, 08:36:20 PM »
OK, are you familiar with FTP or using your cPanel file manager?

The file I mentioned should be located inside your Sources directory, from the path you provided, you installed SMF in a dir named "sith" so go to that dir and you should be able to see the Sources dir, enter that dir and you wil be able to see a list of files, look for one named Subs.php
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 Eli McGowan

  • Semi-Newbie
  • *
  • Posts: 11
Re: Ohara YouTube Embed
« Reply #501 on: January 02, 2016, 08:47:47 PM »
Or did you literally mean attach the file here?

Offline Suki

  • Kaizoku Jotei
  • Developer
  • SMF Super Hero
  • *
  • Posts: 15,558
  • Oh, wouldn't it be great if I *was* crazy?
    • MissAllSunday on GitHub
    • SMF mods
Re: Ohara YouTube Embed
« Reply #502 on: January 02, 2016, 08:51:54 PM »
Yes, download the file and attach it here using the forum's attach system.
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 Eli McGowan

  • Semi-Newbie
  • *
  • Posts: 11
Re: Ohara YouTube Embed
« Reply #503 on: January 02, 2016, 09:10:12 PM »
I was on mobile, here you go.

There were also Subs.php.old2 and Subs.php~ files, do those matter?
« Last Edit: January 02, 2016, 09:29:13 PM by Eli McGowan »

Offline Suki

  • Kaizoku Jotei
  • Developer
  • SMF Super Hero
  • *
  • Posts: 15,558
  • Oh, wouldn't it be great if I *was* crazy?
    • MissAllSunday on GitHub
    • SMF mods
Re: Ohara YouTube Embed
« Reply #504 on: January 02, 2016, 09:43:49 PM »
Try the attached file.

Subs.php~  its a back up file, those are created when you install a mod.

Subs.php.old2  its probably an old file someone else renamed.
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 Eli McGowan

  • Semi-Newbie
  • *
  • Posts: 11
Re: Ohara YouTube Embed
« Reply #505 on: January 02, 2016, 09:53:00 PM »
No change. :'(

I gave you the Subs.php file from "Sources," within my "sith" directory, was that correct?

Offline Suki

  • Kaizoku Jotei
  • Developer
  • SMF Super Hero
  • *
  • Posts: 15,558
  • Oh, wouldn't it be great if I *was* crazy?
    • MissAllSunday on GitHub
    • SMF mods
Re: Ohara YouTube Embed
« Reply #506 on: January 02, 2016, 09:54:43 PM »
Check your error log again, that error should be gone. perhaps the other error is also causing issues.
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 Eli McGowan

  • Semi-Newbie
  • *
  • Posts: 11
Re: Ohara YouTube Embed
« Reply #507 on: January 02, 2016, 09:58:16 PM »
It worked, actually. I'd been in the wrong directory.

Offline Eli McGowan

  • Semi-Newbie
  • *
  • Posts: 11
Re: Ohara YouTube Embed
« Reply #508 on: January 02, 2016, 10:02:02 PM »
Thank you! :')


Offline Suki

  • Kaizoku Jotei
  • Developer
  • SMF Super Hero
  • *
  • Posts: 15,558
  • Oh, wouldn't it be great if I *was* crazy?
    • MissAllSunday on GitHub
    • SMF mods
Re: Ohara YouTube Embed
« Reply #509 on: January 02, 2016, 10:14:40 PM »
Oh cool and I'm actually am on my way to watch the new star wars movie :p haha what a coincidence! 

Glad it worked,  will keep on checking to see why this mod in particular causes so many issues
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 Ninja ZX-10RR

  • SMF Hero
  • ******
  • Posts: 2,152
  • Gender: Male
  • Sniper Legends
    • Flavio93Zena on Facebook
    • Virtual Interactive Games Entertainment Forum
Re: Ohara YouTube Embed
« Reply #510 on: January 03, 2016, 08:02:59 AM »
"I find your lack of faith... Disturbing"
;D
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.
♥ Jess ♥

STOP EDITING MY PROFILE

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Ohara YouTube Embed
« Reply #511 on: January 19, 2016, 07:04:16 PM »
Because you use "integrate_menu_buttons" to load your JavaScript and CSS, any forum (especially big forums) that want to use this mod, it will not load videos if they have any level of caching that caches the menu buttons. Since integrate_menu_buttons hook is inside the loading of menu buttons, the resources will only be loaded the hits that the buttons are cached and re-cached, which is not very often without doing it manually. Therefore, anywhere that wants to use this auto-embedding will have blank divs showing up in their posts with no iFrames. Honestly, you should probably be using integrate_theme_include for your JavaScript and CSS files, and then find better places to add your JS variables (width / height), and either add credits hack manually, or once again, a better spot.

Offline c0m4r1

  • Newbie
  • *
  • Posts: 2
Re: Ohara YouTube Embed
« Reply #512 on: February 18, 2016, 11:36:54 AM »
I am sorry for my absence but was busy past months. I am glad that you have found solution but maybe you could provide some more information how to fix it ? Or maybe i can attach my Subs.php and you could check it ?
There is another problem with your mod - yt videos are not visible for logged in users. If you are logout, yt videos in iframe are ok. It is caused by jquery.min which is called before jquery-1.9.1.min
Didnt find piece of code responsible for this but maybe you know where can i find it ?

Offline Suki

  • Kaizoku Jotei
  • Developer
  • SMF Super Hero
  • *
  • Posts: 15,558
  • Oh, wouldn't it be great if I *was* crazy?
    • MissAllSunday on GitHub
    • SMF mods
Re: Ohara YouTube Embed
« Reply #513 on: February 18, 2016, 02:19:43 PM »
New version. 1.2.5

- Added support for imgur gifv format
- Move the css and js calls to integrate_load_theme hook.

imgur gifvs won't work with microsoft Edge browser, it does work with firefox/chrome/opera.

To upgrade just uninstall any previous version and install the new one.


@c0m4r1  The 500 issue is related to permissions, just be sure to set every file back to 644 and your folders back to 755  if for some reason your main public_html folder was changed too and you don't have FTP access to change it, talk to your host to get it restored.

Check your server error log too, there has to be some info about this there.

The youtube videos not visible for logged users is a jquery conflict with another mod, unfortunately, a lot of mod authors doesn't check if there is a jquery version already been used (or the version they are using its pretty old), they just add their own, this causes all kinds of issues with mods that uses jquery. There is no simple solution for this, needs to be debugged site per site but a list of installed mods will be a great start.
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 Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Ohara YouTube Embed
« Reply #514 on: February 19, 2016, 06:26:16 PM »
You're welcome ;) :)

Offline themavesite

  • Jr. Member
  • **
  • Posts: 183
Re: Ohara YouTube Embed
« Reply #515 on: February 22, 2016, 01:26:25 AM »
I really want to use this mod for the gifv support, but I already have thousands of posts on the forum that use the Aeva embed.
With Aeva you just pasted the youtube url and would embed, is this possible with this mod too? (So I can remove aeva and only use this mod)
(I don't want the two mods conflicting, would rather use one mod)

Ideally I can embed youtube automatically, and gifv with [] tags. Then I would switch to this mod instantly  ;D
TMS Forums
Since 2008 and still going strong! Join today! http://forums.themavesite.com/index.php

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Ohara YouTube Embed
« Reply #516 on: February 22, 2016, 09:54:13 AM »
This modification can automatically embed YouTube videos from just inserting their links. You can also use [youtube][/youtube] tags as well, but they are optional.
I really want to use this mod for the gifv support, but I already have thousands of posts on the forum that use the Aeva embed.
With Aeva you just pasted the youtube url and would embed, is this possible with this mod too? (So I can remove aeva and only use this mod)
(I don't want the two mods conflicting, would rather use one mod)

Ideally I can embed youtube automatically, and gifv with [] tags. Then I would switch to this mod instantly  ;D

Offline themavesite

  • Jr. Member
  • **
  • Posts: 183
Re: Ohara YouTube Embed
« Reply #517 on: February 22, 2016, 11:37:21 AM »
This modification can automatically embed YouTube videos from just inserting their links. You can also use [youtube][/youtube] tags as well, but they are optional.
I really want to use this mod for the gifv support, but I already have thousands of posts on the forum that use the Aeva embed.
With Aeva you just pasted the youtube url and would embed, is this possible with this mod too? (So I can remove aeva and only use this mod)
(I don't want the two mods conflicting, would rather use one mod)

Ideally I can embed youtube automatically, and gifv with [] tags. Then I would switch to this mod instantly  ;D
My bad!



I installed the mod, but no functionality has been added to the forum, and "Modification Settings" is empty.. How do I fix this?
(No errors popped up during install)

TMS Forums
Since 2008 and still going strong! Join today! http://forums.themavesite.com/index.php

Offline themavesite

  • Jr. Member
  • **
  • Posts: 183
Re: Ohara YouTube Embed
« Reply #518 on: February 23, 2016, 04:27:53 AM »
I managed to fix it, something went wrong during installation..



New question: How do I stop the "preload" image, I just want the normal youtube embed.
New question #2: How do I left align the videos? (they are centered now)
TMS Forums
Since 2008 and still going strong! Join today! http://forums.themavesite.com/index.php

Offline themavesite

  • Jr. Member
  • **
  • Posts: 183
Re: Ohara YouTube Embed
« Reply #519 on: February 23, 2016, 05:49:25 AM »
I managed to fix it, something went wrong during installation..



New question: How do I stop the "preload" image, I just want the normal youtube embed.
New question #2: How do I left align the videos? (they are centered now)Fixed in CSS
Bug: Gifv's are not working on mobile...  :( (iPhone)
Can you please make it work on mobile phones? Imgur's gifv's do work on mobile.
« Last Edit: February 23, 2016, 06:06:17 AM by themavesite »
TMS Forums
Since 2008 and still going strong! Join today! http://forums.themavesite.com/index.php