GT Post Approval for GT Globalwarming Awareness2007 [WordPress Plugin]

GT Post approval is a plugin for multi user weblogs based on WordPress and it works with WordPress 2.0.X and WP 2.1.

This plugin adds an Approve/Reject button for every post visible just for administrators and editors in the wp-admin/edit.php page.

Clicking the approve/reject buttons (as you probably imagine) the posts become accepted or rejected.

GT Post approval interface
When a post is Accepted:
The post is visible in every section of the blog.
When Rejected:
The post is visible only in the Author’s archive.

I’ve made this plugin for us of the GT Globalwarming Awareness2007, but everyone can use it :)


Download:

  1. Download GT Post Approval 0.3 Beta 0.2. This version has an options page and it implements the features suggested from James:

    Options < Approval

    GT Post Approval options page

    Read more about GT Post Approval 0.3 »

  2. Download GT Post Approval 0.2

Installation:

  1. Download GT Post approval and save it in the [your blog]/wp-content/plugins/ directory.
  2. Go to “Plugins” in the admin area, find the “GT Post approval” row and click “Activate”.

Now every old post is approved and any new post will have to be approved.


Technicalities

The code of this plugin is full commented and subdivided in 4 blocks:

  1. Installation: Here you can find the function that alters database wp_posts table using the WP API to “do something” on the installation of a specific plugin.
  2. The Loop: Here the code to change post results in The_Loop. It uses a WP_Query Class’s API.
  3. Administration: The code to check user role and to change the edit page interface is here.
  4. Optimization: Just a function, it use a WP_Query Class’s API to get informations about current posts.

See GT Post approval’s source.

Share and Enjoy:
  • blinkbits
  • BlinkList
  • blogmarks
  • co.mments
  • del.icio.us
  • digg
  • feedmelinks
  • Furl
  • LinkaGoGo
  • Shadows
  • Simpy
  • Smarking
  • YahooMyWeb

18 Responses to “GT Post Approval for GT Globalwarming Awareness2007 [WordPress Plugin]”

  1. [...] GT Post Approval adds Approve/Reject buttoms visible just for administrators and editors in edit » posts. [...]

  2. [...] » GT Post Approval for GT Globalwarming Awareness2007 [WordPress Plugin] - GT GA2007 (tags: WordPress plugins) [...]

  3. [...] GT Post Approval (tags: wordpress plugins) [...]

  4. [...] GT Post Approval fügt Genehmigen/Ablehnen Buttons hinzu, die nur für Administratoren und Editoren unter “Verwalten” sichtbar sind. [...]

  5. [...] GT Post Approval añade botones de Aprobar/Negar los cuales son visibles solo a los administradores y editores en edit » entradas. [...]

  6. [...] GT Post Approval adds Approve/Reject buttoms visible just for administrators and editors in edit » posts. [...]

  7. Just wondering if it is possible, and how hard it would be to change the default “Reject” action to not show the post anywhere on the site (not even in the Author’s archive?

    Thanks for your time.

  8. My apologies for a second comment so quickly, however I noticed that even as an Admin for my site, after I write and publish a post, I have to go in to the Manage Posts page and click “Approve” before the post is truly published. Is there anyway of setting it such that we could tell the plugin which User levels we want to allow for “automatic approval”?

    This feature and my previous comment’s request would make this a truly useful plugin. Please email me with your response since I see no RSS feed for comments, or an email notify option for comments.

    Again, thanks!

  9. Hi James,
    about your first question a fast fix is replace:

    if(is_author() || is_admin() || is_single() || is_page() || is_search())

    with this one:

    if(is_admin() || is_single() || is_page())

    In the next version of this plugin maybe I’ll add an option page to choose where display the not approved posts and to define an user level to auto approve posts :-)

  10. Thanks Francesco, I’ll give it a try.

  11. [...] I’ve released the version 0.3 of GT Post Approval (but you have to be aware that it’s a beta). [...]

  12. [...] GT Post Approval : (page plugin) [...]

  13. [...] GT Post Approval adds Approve/Reject buttoms visible just for administrators and editors in edit » posts. [...]

  14. Hi, and thank you for a greta little plugin. Would it be hard to change it so that edited/updated posts also needs to be approved?

  15. Hi Manne… there’s a bit of work but in the next version It could be implemented :-)

  16. [...] GT Post Approval is on WordPress.org and it has 5 stars of rating (ok, it’s just my vote ) [...]

  17. Thanks for the response Fra T, looking forward to coming release then! :)

    I noticed that posts that havn’t been approved yet are still listed by some plugins in the front end, for example Recent Posts (http://rmarsh.com/plugins/recent-posts/) and Sitemap Generator (http://www.dagondesign.com/articles/sitemap-generator-plugin-for-wordpress/). Any ideas on how this problem could be solved?

  18. probably you should add ” AND gt_status = 1″ in the WHERE clause of a query

Leave a Reply