Jump to content

Why does embedding YouTube Videos Suck (and what can I do to make it better)???


iacas

Recommended Posts

  • Replies 119
  • Created
  • Last Reply
On November 11, 2015 at 9:09:44 AM, iacas said:

Which they've now seen and are working on.

IPS disappointingly could not figure out the issue, blaming my server for "blocking" or "restricting" outbound or inbound requests… Which I knew was wrong, so we did some more digging.

I think we've found the issue, and I updated my bug report. This is a slightly modified version of my post in the growing support thread:

Turns out… the socket code fails frequently when curl is:
A) Not Installed.
B) Is older than 7.36 (CentOS only has 7.19).

Fortunately, it seems this version check can be overridden by setting the constant FORCE_CURL (set to false by default) to true.

They had supplied a script that failed about 60% of the time. We added the FORCE_CURL to the script and it works every time in my testing.

# curl --version curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.19.1 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2 Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftp Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz

So, we've added this to our constants.php file:

define('FORCE_CURL', TRUE);

In testing, this has resulted in the software embedding videos every time I try.

We believe this is a bug in IPS, and encourage others who are experiencing this issue to give this a try if you meet condition A or B (or both) above.

Link to comment
Share on other sites

52 minutes ago, wmarcy said:

 

52 minutes ago, wmarcy said:

Haven't had a fix from ip.board for 3 versions now, so I will go with what works. 

i assume u also run latest version of curl?

 

edit: i never realized how difficult it to remove quotation box. just wow

Link to comment
Share on other sites

On CentOS 6-series, default is  cURL 7.19... I upgraded it to 7.45 manually a few minutes ago... No more warnings during install/upgrade and it works much better - i'm interested what my users say (embedding worked, but often also failed... Testing after 7.45 was installed worked much better during my tests (no problems at all) )

curl 7.45.0 (x86_64-redhat-linux-gnu) libcurl/7.45.0

 

Link to comment
Share on other sites

25 minutes ago, maidos said:

why make it so complicated*? why not just use the regular backspace keyboard to remove the quotation box. makes no sense

I want this too. They are working on improving it though but hopefully backspace will do it. Right now it protects the quote unless you try it twice (click back out of quote and backspace) but that is not intuitive. Backspace to remove, much better.

And you have to consider mobile users. No hover.

Okay back to YT.

Link to comment
Share on other sites

2 hours ago, TheSonic said:

On CentOS 6-series, default is  cURL 7.19... I upgraded it to 7.45 manually a few minutes ago... No more warnings during install/upgrade and it works much better - i'm interested what my users say (embedding worked, but often also failed... Testing after 7.45 was installed worked much better during my tests (no problems at all) )


curl 7.45.0 (x86_64-redhat-linux-gnu) libcurl/7.45.0

 

How hard was it to do? I've only looked briefly but I thought I saw curl was compiled into PHP and that I'd have to compile PHP myself.

Running "CentOS release 6.7 (Final)" here.

Link to comment
Share on other sites

46 minutes ago, iacas said:

How hard was it to do? I've only looked briefly but I thought I saw curl was compiled into PHP and that I'd have to compile PHP myself.

Running "CentOS release 6.7 (Final)" here.

Maybe you want to check this: https://community.invisionpower.com/topic/423070-guide-how-to-update-curl-in-centos-centmin-mod/

On topic: Anyway, the youtube embedding is a problem, indeed. It also happens on my board, and my users are getting furious about it. It is a hard to track problem.

Link to comment
Share on other sites

6 hours ago, Ausy said:

Hover your mouse over the quote box, hold down ctrl,  right click  for options.

Which does absolutely nothing on my Mac using Chrome and a trackpad.  One of my larger complaints with the IPS editor.  That "help box" text is totally useless.  I'm not really happy about the "enter a new line after posting the youtube link" that you apparently have to do also.
With the script that I'm doing a test site in (in preparation for a possible move from IPS) I can simply paste the link, save the post and it shows up as the youtube embed.  No additional new lines, etc, needed.

Link to comment
Share on other sites

6 minutes ago, Tracy Perry said:

Which does absolutely nothing on my Mac using Chrome and a trackpad.  One of my larger complaints with the IPS editor.  That "help box" text is totally useless.  I'm not really happy about the "enter a new line after posting the youtube link" that you apparently have to do also.
With the script that I'm doing a test site in (in preparation for a possible move from IPS) I can simply paste the link, save the post and it shows up as the youtube embed.  No additional new lines, etc, needed.

The "hit enter" to embed also causes useless lines at the end of posts that take up vertical space.

Link to comment
Share on other sites

11 hours ago, iacas said:

How hard was it to do? I've only looked briefly but I thought I saw curl was compiled into PHP and that I'd have to compile PHP myself.

Running "CentOS release 6.7 (Final)" here.

You may use the source or RPMs, but i am a yum-guy :)

So, i just added the City-Fan-Repro in /etc/yum.repos.d/city-fan.repo

   [CityFan]
    name=City Fan Repo
    baseurl=http://www.city-fan.org/ftp/contrib/yum-repo/rhel6/x86_64/
    enabled=1
    gpgcheck=0

and run yum updte curl (warning: Running just yum update will install several other updates (perl, eg) ).

After cURL is updated, just restart your Apache or whatever (you don't have to recompile PHP yourself, just restart httpd) and disable the repo
(enable=0) -> Done

So, it's an easy one :)

Experiences are good, still some Problems, but now it works in most cases - my users love it (me too :) )

Link to comment
Share on other sites

3 minutes ago, TheSonic said:

You may use the source or RPMs, but i am a yum-guy :)

So, i just added the City-Fan-Repro in /etc/yum.repos.d/city-fan.repo


   [CityFan]
    name=City Fan Repo
    baseurl=http://www.city-fan.org/ftp/contrib/yum-repo/rhel6/x86_64/
    enabled=1
    gpgcheck=0

and run yum updte curl (warning: Running just yum update will install several other updates (perl, eg) ).

After cURL is updated, just restart your Apache or whatever and disable the repo (enable=0) -> Done

So, it's an easy one :)

Experiences are good, still some Problems, but now it works in most cases - my users love it (me too :) )

I did this before, but I notice that I might need to re-compile php using latest curl... 

I use the sslimageproxy_check.php from SSL Image Proxy to test if curl works well with ssl, but I get such output

Checking for curl_init()...passed.

Checking curl can perform outbound http requests...failed.

Seems like I usually fail to use curl to perform http request...For this reason, I think my curl doesn't work well with php, but I don't know how to revert curl to previous to double check, and I don't want to re-compile php, I used yum to install php. :( 

Link to comment
Share on other sites

Did you restart httpd? I didn't (just forgot it) and on cli it said 7.45 and phpinfo said 7.16... After restarting, phpinfo was also on 7.45.

I don't use SSL Image Proxy, but i think it has nothing to to with the insallation. Just check curl --version and PHPInfo

 

Link to comment
Share on other sites

Having basically the same problem. Was working fine on my Xenforo site less than 24hrs ago. After switching they are blaming my host from blocking Youtube. Host is running other forums on the same server with no problems. We will see what they say to my response ticket. But defiantly a problem with IPB and not the hosts. Everything else is working great with IPB though besides the videos.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...