This is a rollback to version 0.6 because version 0.7 had to many bugs. Sorry for any inconviniences I may have cause with this 0.7 release.
New features and changes
- After posting the user will be redirected to home_url. You can overwrite this default redirect by entering an url in the field 'Redirect To' in the plugin's settings panel. You could also specify the url to redirect to in the shortcode: [djd-site-post success_url='your url']. It might be a good idea to redirect to your blog page so that the user can see his post immediately (provided you permit publishing). Otherwise you could build a success page and redirect to that. Maybe there you should write something like "Thank you for your contribution. We will review your post and publish it if appropriate".
- By selecting Droplist as the method to display categories you will now get child categories below their parent categories.
- Since this question came up a couple of times: The plugin supports featured images for quite a long time now. You just have to find your way in WordPress' standard media uploader ...
- The widget displays an editor similar to WordPress' QuickPress. So you don't get all those fancy buttons of the visual editor there. I had to do it this way because - I admit it - I couldn't get this buttons to work nicely in Chrome. Long term solution might be to switch editors ...
- Extended the max lenght of the fields name (of the guest) and email to 40 characters.
- To do the same as WordPress does the plugin now permits posts without titles. The default still requires the user to enter a title though. If you wish to disable this enforcement just uncheck 'Require a Titel' in the plugin's settings panel.
- Long form title breaking container in IE.
This release comes with a couple of new features and some important changes.
- Guests get some capabilities similar to the user role of subscriber plus the right to publish (pending) posts. Guests are not allowed to upload media.
- On the plugin's settings page you can specify that the site-post form requires guests to enter their email and name. The information is stored in two custom fields: guest_name and guest_email.
- On the plugin's settings page you can specify a default category for guest posts or give guests the freedom to select categories themselves.
- Media upload works for logged-in users only. That means users have to register first. I had to do this for security and management reasons.
- The plugin adds the capability to upload media to the user role of contributor. So if you want to grant users the right to upload media you have to assign as minimum the contributor role to them. You can do this during user registration (in WP's Settings->General just set New user Default Role to Contributor).
- Since the media upload works for logged-in users only the plugin (on the plugin's settings page) gives you the ability to hide the WordPress adminbar (now called toolbar).
- On the plugin's settings page you can specify to display a link to WP's login form right inside the site-post form. After login the user will be redirected to the original page again.
Media uploads (attachments) are now assigned to the post they belong to and not to the page were the site-post form resides.
What I didn't come around to yet is implementing a functions to block the loading of the widget and the form on the same page. Both on the same page will not work. So for now be careful not to load the form on pages where the widget exists already (or the other way around).)
A couple of minor bug fixes.
- Included a widget to put the form into the sidebar.
- Fixed an issue with a coditional statement that caused an error when running on PHP prior version 5.3.
- With guest posts the field "author" was left empty. Now it displays the author info out of account you've selected to use with guest posts.
- Fixed an issue with register_uninstall_hook that caused a warning when debug was enabled.
The initial release thrown into public.