Welcome to Redradar!

I'm Kelly, and I'll be your host today. I'm a recent grad trying to figure out life. I have interests and a resume, if you're looking for web developer (preferably in the Western MA area). I also have wordpress plugins & other projects; and sometimes I talk about interesting tech topics. I hope you enjoy your stay, and come back often! (alternately you can follow me on twitter, or grab my RSS feed)

Log in?

Name:
Pass:
Show me?

Unveiling Post-From-Site!

Posted on Jun 03, 2009 at 09:31 PM

“Post-From-Site: Add a new post directly from your website – no need to go to the admin side.”

Version 1.9.0

Released 9.22.09

Download!

This new wordpress plugin allows you to post straight from your front-end (i.e. website) – perfect for a quick update! Also useful if you have multiple users and don’t need them to see the admin side of things (this is the reason the plugin was initially developed).

Just put the function in your template file wherever you want to quickpost link to show up, and there it will be! Once clicked on, a box will pop up and you can type your post there. You need to give it a title and content (or else it won’t post), you can also choose to add it to categories, or (if allowed in the settings) attach an image. After hitting post you may need to refresh to see the new post, but your post will be there.

The code snippet you need is (this is also written on the settings page):

<?php if (function_exists('post_from_site')) {post_from_site();} ?>

On the settings page, you can customize the link text, background color, title/text color, and even add your own CSS to tailor pfs to your site.

In v1.6.20+, you can also generate custom links for posting to a specific category. These can be generated at the bottom of the settings page.

As for permissions, you can limit the categories pfs can post t0 and allow/disallow uploading of images. If you’d rather have pfs’s posts approved before they are visible, you can set the post status to ‘pending’ or ‘draft’. Same with the comment status, it can default to ‘open’ (allowing comments) or ‘closed’ (not allowing comments).

Adding images – custom placement

1.9.0 introduced a new tag, [!--image--], which you can type into your post content to control the placement of your image. Just add

[!--image--]

wherever you want the image to appear. You can even use the tag multiple times, if you want the image to show up in multiple places.

History/Notes/Changelog:

6.03.09: First version released!
6.22.09: 1.6.20 released – added/improved image support, added auto-detection of plugin file to avoid the error reported on v1.6.3, added category-specific links, cleaned up the code.

9.22.09: 1.9.0 released – continued improving image support, added ability to tag posts, create new categories and tags.

If you have any comments or questions, or requested features, let me know!

Current proposed features are (stared * features should be avalible in the next release):

  • AJAX form submission *
  • Multiple image support *
  • Integration with the WP gallery
  • A login box, so you truly never have to see the wordpress admin pages
  • Make a widget for even simpler integration.

If you’re commenting for help with an error, I can’t help unless you give me either a detailed description or a link to the not-working site. I do want to help, but I can’t if I don’t know what went wrong!

133 Comments

  1. Update:
    testing on different browsers, I discovered it works on my iPad!
    But not on Safari, Firefox, google chrome.

    The main difference between safari mobile and these browsers is the lack of flash.

    So, what’s the real issue?
    A script involving flash?

  2. Same as some other people I’m getting Fatal error: Call to undefined function wp_get_current_user() in /……./wp-includes/capabilities.php on line 969 when i add the plugin

    http://theotherplaceportal.net/gibsontest/

    I’m using WPmu

  3. Superb Plugin , this is what i was looking for….
    One simple question , is there any way where i can insert image instead of text for “the link text”.

  4. Hi Ryelle
    I have problem with the pluggin. When I try to post I am redirected to wp-admin log in. Must to mention that the page is password protected where the link for posting is located. Tryed with public page, still redirecting me to wp-admin login. Any Idea?

  5. Doesn’t appear to be working after update to 2.0.0….

  6. July 16, 2010 at 12:56 pm Kim Kirkpatrick says:

    2.0.0
    pfs-script.js line 16

    Instead of
    url: “wp/wp-content/plugins/post-from-site-2/pfs-submit.php”,
    it should be (for a top-directory installation of WordPress, and using the post-from-site folder included in the download zip)
    url: “/wp-content/plugins/post-from-site/pfs-submit.php”,

    Of course, this path shouldn’t be hard-coded — another TODO for you.

  7. July 16, 2010 at 1:28 pm Kim Kirkpatrick says:

    Is there a reason that psf-form.php line 14 is
    echo “$linktext”; ?>

    instead of
    echo “$linktext“; ?>

    Don’t we usually want this to look like a link?

  8. July 16, 2010 at 1:30 pm Kim Kirkpatrick says:

    Oops. I don’t remember your escapes for code. What I meant, simply, is:

    Is there a reason that psf-form.php line 14 is written as a div instead of an anchor? Don’t we usually want this to look like a link?

  9. It is still not working for me. I am getting “An unknown error occurred, contact site admin”.

    Anyone… fixes??

Sorry, the comment form is closed at this time.

Powered by WordPress