Allow_url_fopen problem with phpbb 3

Allow_url_fopen problem with phpbb 3

Posted by: Phrozius
Posted on: 2008-06-19 05:47:00

Hi,

I'm using phpbb 3 and have installed a mod to embed video in posts. Some of the arrays in the php file do not work as they require allow_url_fopen to be enabled. Dreamhost has disabled this for security reasons. Is there anything i can do to fix it?

Re: Allow_url_fopen problem with phpbb 3

Posted by: Ryo-ohki
Posted on: 2008-06-19 13:39:00

Well, you can compile php yourself to allow fopen or rewrite the code to use curl. I had to do the former (and yes I know of the huge security risk). If I was more of a coder I would have found a way to use curl but I had read over the documentation and still was unsuccessful after about a week of trying. I even tried to get someone to help me but was still not successful so :-/

The Insane Cabbit
Blog: http://www.sounanda.com
Store: http://www.marciesgifts.com
PM for CMS or forum install.
$25 Off with promo code SPRINKLES

Re: Allow_url_fopen problem with phpbb 3

Posted by: silkrooster
Posted on: 2008-06-19 16:29:00

My question is why do you need any mod for video, when php3 supports video out of the box?
Silk

My website

Re: Allow_url_fopen problem with phpbb 3

Posted by: Phrozius
Posted on: 2008-06-19 23:44:00

it only supports flash. If you want universal video embedding u must mod.

Re: Allow_url_fopen problem with phpbb 3

Posted by: sXi
Posted on: 2008-06-26 20:31:00

If it requires allow_url_fopen it's not worthy of installation.


Re: Allow_url_fopen problem with phpbb 3

Posted by: Jandal
Posted on: 2008-06-27 16:15:00

Hey,

I have had to mod some wordpress plugins that were using fopen.

I found the following page very usefull.
http://wiki.dreamhost.com/CURL

Just in case you want to give it a go ;-)

Or request the mod author to update his code to use more security friendly code ;-)

HTH
=-)

Re: Allow_url_fopen problem with phpbb 3

Posted by: silkrooster
Posted on: 2008-06-27 19:59:00

No... It supports AVI, Quicktime, WMV, rm, Flash, and any other format you can throw at it. Some like avi can be embedded while others require the file to be downloaded and played on the stand alone player. You do need to enable embedding though.
There is a difference between inline graphics for flash, etc. and attachments. I was talking about attachments. For inline graphics they use bbcode, a good example is the flash button, if you looked at the code for that button it is using bbcode. Armed with this info, it makes it simple to use bbcode to create a Utube link, etc. These all require that the image or video be stored elsewhere while attachments are stored on your server.
Oh and one last thing, attachments may not be avaiable if you chose the easy one click install. (Not sure on this one, but heard this through the forum) But is available for advanced one click installs or self installs.
Hope this helps,
Silk

My website

Re: Allow_url_fopen problem with phpbb 3

Posted by: Phrozius
Posted on: 2008-06-29 02:47:00

i want to embed like youtube videos etc in the posts. phpbb3 can not do that.

Re: Allow_url_fopen problem with phpbb 3

Posted by: silkrooster
Posted on: 2008-06-29 21:12:00

Here you go. BBCODES for embedding videos, etc.

silk

My websiteEdited by silkrooster on 06/29/08 09:14 PM (server time).

Re: Allow_url_fopen problem with phpbb 3

Posted by: Phrozius
Posted on: 2008-06-29 21:20:00

Yeah they do work but you would need a bbcode button for all the types of video sites out there.

This mod allows for 1 button called "video" that will work for over 20 video sites. It does not look like the mod author will back down on the allow_url_fopen issue as he thinks thats the only way it can be done.

Looks like i will make do. The mod works for almost all the popular sites.. just photobucket was an issue as i have a user that uses PB.

Re: Allow_url_fopen problem with phpbb 3

Posted by: silkrooster
Posted on: 2008-06-30 21:33:00

It doesn't need to create a button it can be use as direct bbcode in the message for example
[utube=website.com]video here[/utube]
Silk

My website

Re: Allow_url_fopen problem with phpbb 3

Posted by: Phrozius
Posted on: 2008-07-01 00:48:00

thats not very user friendly though is it.

I understand what your getting at. But a one button solution is a much better idea.

Re: Allow_url_fopen problem with phpbb 3

Posted by: silkrooster
Posted on: 2008-07-01 14:03:00

Just throwing out ideas

My website

Tags: php filedreamhostsecurity reasonsarrays