Skip to content

Commit

Permalink
Merge pull request #9 from okko/wpro-with-gravity-forms-support-for-u…
Browse files Browse the repository at this point in the history
…pstream

Update to latest wpro plugin version with Gravity Forms support
  • Loading branch information
okko committed Feb 3, 2014
2 parents fc1db4e + a7adde1 commit 0c1ab1a
Show file tree
Hide file tree
Showing 2 changed files with 282 additions and 125 deletions.
83 changes: 74 additions & 9 deletions config/public/wp-content/plugins/wpro/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@

Plugin for running your Wordpress site without Write Access to the
web directory. Amazon S3 is used for uploads/binary storage.

== Description ==

This plugin was made with cluster/load balancing server setups in
mind - where you do not want your WordPress to write anything to
the local web directory.

WPRO will put your media uploads on Amazon S3. Unlike other
== Description ==

This plugin will put your media uploads on Amazon S3. Unlike other
S3 plugins, this plugin does not require your uploads to first be
stored in your server's upload directory, so this plugin will work
fine on WordPress sites where the web server have read-only access
Expand All @@ -33,22 +32,60 @@ Note: You still need write access to the system /tmp directory for
this plugin to work. It will use the system /tmp directory for
temporary storage during uploads, image editing/scaling, etc.

= Wordpress MU =
= Wordpress MU/Multisite =

This plugin works out-of-the box with Wordpress Multisite/MU.

We did not test this plugin in a Wordpress MU environment.
It will probably not work out-of-the-box for Wordpress MU.
You will find the settings for this plugin in the Network Admin, when
in a MU/Multisite environment.

== Installation ==

1. Put the plugin in the Wordpress `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Enter your Amazon S3 settings in `Settings` > `WPRO Settings`.

= Alternative: Configure by constants in wp-config.php =

Instead of configuring the plugin in `Settings` > `WPRO Settings`,
you may use constants in your `wp-config.php`. This might be an
option for you, if you want the plugin to be a "must-use plugin",
or if you do not want your users to access the settings from the
admin.

Those are the constants

* define('WPRO_ON', true); // Enables the plugin and use
configuration from contants.
* define('WPRO_SERVICE', 's3'); // Amazon S3 is the service.
* define('WPRO_FOLDER', 'some/path/here'); // Prepend all URI paths
at S3 with this folder. In most cases, you probably want this
to be empty.
* define('WPRO_AWS_KEY', 'your aws key');
* define('WPRO_AWS_SECRET', 'your aws secret');
* define('WPRO_AWS_BUCKET', 'MyBucket'); // The name of the Amazon
S3 bucket where your files should be stored.
* define('WPRO_AWS_VIRTHOST', 'files.example.org'); // If you have
a virthost for your Amazon S3 bucket, it should be there.
* define('WPRO_AWS_ENDPOINT', 's3-eu-west-1.amazonaws.com'); // The
Amazon endpoint datacenter where your S3 bucket is. Se list of
endpoints below.

Those are the AWS endpoints:

* `s3.amazonaws.com` - US East Region (Standard)
* `s3-us-west-2.amazonaws.com` - US West (Oregon) Region
* `s3-us-west-1.amazonaws.com` - US West (Northern California) Region
* `s3-eu-west-1.amazonaws.com` - 'EU (Ireland) Region
* `s3-ap-southeast-1.amazonaws.com` - Asia Pacific (Singapore) Region
* `s3-ap-northeast-1.amazonaws.com` - Asia Pacific (Tokyo) Region
* `s3-sa-east-1.amazonaws.com` - South America (Sao Paulo) Region

== Frequently Asked Questions ==

= Will this plugin work in Wordpress MU environments? =
= Will this plugin work in Wordpress MU/Multisite environments? =

Probably not, but I am not sure. Input and/or code is very welcome!
Yes.

= Where do I report bugs? =

Expand All @@ -60,6 +97,8 @@ https://github.com/alfreddatakillen/wpro/issues
At github:
https://github.com/alfreddatakillen/wpro

And, plz, use tabs for indenting! :)

= What should I think of when digging the code? =

If you define the constant WPRO_DEBUG in your wp-config.php, then
Expand All @@ -77,7 +116,33 @@ me a beer in return. (GPLv2 still applies.)

== Changelog ==

= 1.1 =

* Added support for configuring by constants in `wp-config.php`.
* Plugin now works in open_basedir and safe_mode environments.
* Implemented our own sys_get_temp_dir for PHP < 5.2.1 compatibility.
* Fixed bug that left a lot of temporary directories in the system tmp.
* In a Multisite/MU environment, the settings are global for all sites,
in the Network Admin.

Creds to [Sergio Livi](https://github.com/serl "Sergio Livi")
and [Keitaroh Kobayashi](https://github.com/keichan34 "Keitaroh Kobayashi")
for contributing with code! Also, thanks to
[mavesell](https://github.com/maveseli "mavesell")
and [nmagee](https://github.com/nmagee "nmagee") for feedback and comments!

= 1.0 =

* The first public release.

== Roadmap ==

Todo list:

* Add support for FTP:ing uploads to somewhere, as an alternative to
Amazon S3.
* For WPMU: Store media in a single bucket, but separate them by site, in
sub-folders.
* Only handle `new` medias when activating this plugin on an existing
site. Today it's an all-or-nothing approach, and you will have to
migrate your media to S3.
Loading

0 comments on commit 0c1ab1a

Please sign in to comment.