WordPress QuickAdmin Plugin By WRD

WebResourcesDepot is more a place for fresh web design-development resources & generally don’t share resources about WordPress (although it is a great app.). But, this was something I needed to manage WRD easier, created it & would like to share.

For WordPress users who switch between frontend to admin frequently for:

  • fixing a typo after seeing it in a post
  • finding out if there are any new comments
  • browsing most used menus like "Write New", Manage-Posts/Drafts"

this fresh WP-QuickAdmin plugin will be very handy.

Wordpress Quick Admin Plugin

With a hotkey (default is CTRL+q), a modal box is displayed which includes links to the popular admin menus.

If you’re inside a post, then it displays a link for "editing that post" & "unapproved comments of that post".

The modal box is called with an Ajax request which helps showing the latest count of comments every time the WP QuickAdmin is called (no need to refresh the page).

If an user who is not an administrator calls the QuickAdmin, then an "unauthorized" message is displayed.

Requirements

  • Important: Make sure the footer.php file of the theme you use ("wp-contents/themes/your theme/footer.php") has the <?php wp_footer(); ?> info. If not you should add it manually.
    • What is wp_footer()?: It is a function used by many plugins for inserting data to a theme before the </body> tag.

Compatibility

  • Tested with WordPress 2.6.2 & 2.7 (previous versions: unknown).

Security

  • QuickAdmin is only displayed to site administrators.
  • There is only 1 variable used, it is escaped, sanitized & handled only if the user is an administrator.
  • The 2 steps mentioned make it very secure : ).

Updates

  • Updates to the plugin will be mentioned in this post & via Twitter (follow WRD at Twitter to get more resources too!).
  • I will be adding QuickAdmin to the WordPress.org’s plugin repository too.

Installation

  • Unzip the download files & a wp-quickadmin folder will be created
  • Install this folder & all its contents to your WordPress "wp-content>plugins" folder
  • Enable the WP-QuickAdmin plugin from the WordPress>admin>plugins menu
  • If any cache plugins like WP-Cache or WP-Super-Cache is enabled, then the caches must be re-created from the plugin’s settings (so the div tags of the QuickAdmin can be inserted to the theme).

Usage

  • Press "Ctrl + q" to call the QuickAdmin from the frontend of your WordPress website.

Thanks to

Wordpress Quick Admin PluginP.S. I’m not a PHP or a WordPress expert. But, it is very impressive to see that creating anything for WordPress is almost as easy as using it.

Please share any bugs you face (there can be some) in the comments & I’ll be fixing them as soon as possible.

  • I like the idea of this plugin 🙂 I think that such a feature should be integrated in wp core pack…

  • @Pavel,

    Thanks for the thoughts. I find it very hard to navigate to “admin>manage>related post” or load all the admin to see if there are any new comments.

    Would be great if WP-core had such a function.

    P.S. : Just made a quick update to the plugin. There was a missing “/” character in the edit post link.

    It is ok now.

  • Sorry, but nothing. Theme is worlking fine and valid with in the footer.
    I can see the /jqModal.js?ver=2.7 and jquery.hotkeys.js?ver=0.0.2 in the sourcecode and I am the founder and admin of the blog, but nothing happens than I press CRT + Q
    German tablet… no. I dont know.
    Greetings Tim

  • @Timbob,

    I looked at your website but I think the plugin is disabled now.

    After you activated it, can you browse the source and search for: wqm-dialog .

    It is the id of the modalbox’s div.

    If it is not there, can you make sure that < ?php wp_footer(); ?> exists in your template’s footer.php file.

  • Great!, I think it would be better to include the “if admin” check on the plugin.php so we only include the CSS and JS files when the user has admin level and it doesn’t affect the rest of the users and our server increasing the number of http petitions.

  • @Martin,

    I was planning to build it like you mentioned.

    But caching stopped me from this. As pages would be created once with the caching, then whether the user is admin or not, files wouldn’t be included.

    If I’m missing anything please let me know.

  • LoCa

    I think caching is used only for anonymous users, so it shouldn’t effect the plugin.

  • Firstly what an amazing plugin. Thank you!!! I have installed it and for the most part, all works fine, however i get the following error….

    “View All Comments
    Warning: Missing argument 1 for countComments(), called in /home/roxannep/public_html/wp-content/plugins/wp-quickadmin/wqa.php on line 103 and defined in /home/roxannep/public_html/wp-content/plugins/wp-quickadmin/plugin.php on line 31”

    If i click on that lot, it takes me to the comments just fine, all the other links also work fine, but any idea what could be causing this and how i could fix it?

    If you’d like to see the page, its http://www.roxannepallet.co.uk

    Thanks again.
    Andrew

  • @Andy,

    Great that you liked it.

    I looked for it but couldn’t generate the error. Just a question: which WP version are you using?

  • @wrd

    Thanks for the comment, i am using WP 2.7.1 – would you like me to send you a test admin user and pass so you can login and check? Im having the same problem on my other site, http://www.sir-alansugar.co.uk also.

    If you send me your email addy, or email me directly, ill send you whatever details you need.

    Thanks again for taking the time to get back to me.

    andy

  • hi, Umut
    i found a little bug in wqa-1.0 which i download here.
    maybe you had fixed it yet,xD

    Line 103 of file wqa.php
    the function countComments() lost the argumnet “$wqaPostID”.

    If do not add it , i got the following error:
    “View All Comments
    Warning: Missing argument 1 for countComments(), called in /home/roxannep/public_html/wp-content/plugins/wp-quickadmin/wqa.php on line 103 and defined in /home/roxannep/public_html/wp-content/plugins/wp-quickadmin/plugin.php on line 31″

    PS. thx for your plugin.

Search