WP Codex Search


WordPress Codex Search is a Ubiquity plugin that allows you to search WordPress Codex for functions and other references.

The command shortcut is 'wp'. Enjoy!

The source is available here wpcodex.js.

Check out more Ubiquity plugins.

Comments:

14 Comments

  1. fritz
    Sep 6th, 2010

    i have mozilla version 3.6.6 and installed ubiquity 0.6, when i entered this site i allowed the script but when pressing cntrl+space and typing wp [wp code] it does not work. Can you please help me make this work?

    • Ricardo
      Nov 19th, 2010

      did you got it to work? i have the same prob. with this thing

      • Oleg
        Jun 2nd, 2011

        ditto. It seems Vladimir no more need of the plugin for himself and abandon its development.
        Mr Prelovac, may be you share you currently dev utils experience in replace of this ubiquity plugin. Thank you

  2. Lee
    Nov 23rd, 2009

    Here's the updated Ubiquity Command, I got it from https://wiki.mozilla.org/Labs/Ubiquity/Commands_In_The_Wild#PHP, have fun!

    CmdUtils.CreateCommand({
    homepage: "http://taukon.de/ubiquity-php-function-doc.php",
    author: {name: "Sebastian Barthenheier", email: "tauven@gmail.com"},
    license: "MPL,GPL",
    description: "Searching in the PHP Documentation (Quickreference)",
    help: "Enter text to search for",
    names: ['php'],
    arguments: [ {role: 'object', nountype: noun_arb_text, label: 'query'}],
    preview: function(pblock, args) {
    pblock.innerHTML = CmdUtils.renderTemplate("Searching for ${query} in the PHP documentation", args.object.text);
    },
    execute: function(args) {
    Utils.openUrlInBrowser("http://php.net/search.php" +
    Utils.paramsToString({pattern: args.object.text, show: "quickref"}
    )
    );
    }
    });

    • tinynumbers
      Aug 31st, 2010

      Lee - the updated command works for searching the PHP docs; here as an updated version of Prelovac's Ubiquity command for searching the WordPress Codex:

      // WordPress codex search plugin for Ubiquity by Vladimir Prelovac
      // Based on php search by Sebastian Barthenheier
      // http://www.prelovac.com/vladimir

      CmdUtils.CreateCommand(
      {
      names: ['wp'],
      arguments: [ { role: 'object', nountype: noun_arb_text, label:'function'} ],
      icon: "http://s.wordpress.org/favicon.ico?2",
      homepage: "http://www.prelovac.com/vladimir/ubiquity/wordpress-search",
      author: {name: "Vladimir Prelovac", email: "vprelovac@gmail.com"},
      license: "MPL,GPL",
      description: "Search WordPress codex documentation",
      help: "Enter WordPress search",
      execute: function(args)
      {
      searchText = jQuery.trim(args.object.text);
      var url = "http://wordpress.org/search/{QUERY}"
      var urlString = url.replace("{QUERY}", searchText);
      Utils.openUrlInBrowser(urlString);
      },
      preview: function(pblock, args)
      {
      searchText = jQuery.trim(args.object.text);
      if(searchText.length <= 0)
      {
      pblock.innerHTML = "Search WordPress Codex documentation";
      return;
      }
      var previewTemplate = "Search WordPress Codex for ${query}";
      var previewData = {query: searchText};
      pblock.innerHTML = CmdUtils.renderTemplate(previewTemplate, previewData);
      }
      });

  3. David McCart
    Aug 10th, 2009

    sadly I'm having problems to get this to work; I'm using Ubiquity 0.1.9 - of course it immediately suggested I upgraded to the the 0.5.x version, but that might mean existing scripts might not work. Hit up the one with PHP doc search, and it gave this scary warning, read the script and it seemed like the code was not malicious (imagine that?) so I said ok.
    I've got to your site, and nothing happens :(
    And of course its your book that I'm reading to get to this point.
    If you have any insight, I'd be most grateful.
    I recognise your picture so I must have been here for one of your other articles.
    I heard God used Object-Oriented COBOL to code the universe..
    thanks,
    David

  4. Jason Gill
    Jul 17th, 2009

    This plugin will not work with the latest ubiquity parser 2 https://wiki.mozilla.org/Labs/Ubiquity/Parser_2_API_Conversion_Tutorial

  5. Apr 3rd, 2009

    You need to install Ubiquity first, and then you will get a notice when you visit this page.

  6. Cathy C.
    Apr 3rd, 2009

    Must confess I need instructions to install your plug-in. All I see is your javascript source file. How do I use this?????

  7. Guga Alves
    Mar 6th, 2009

    Hey, how i install this ????

  8. nutrition360
    Jan 7th, 2009

    Great plugin, thanks!

  9. Mike P.
    Dec 12th, 2008

    Great plugin, thanks!

Have your say

Your email is never published nor shared. Required fields are marked *

*
*

Subscribe without commenting

About

vladimir prelovac Vladimir Prelovac is CEO of Prelovac Media, a computer engineer by profession and an adventurer by state of mind. more +


"I would love to change the world, I just don't have the source code yet."

Services

Manage multiple WordPress sites

Built for WordPress enthusiasts, ManageWP helps you manage all your WordPress sites from one central location.

Books

WordPress Plugin Devleopment Book Read my book WordPress Plugin Development: Beginner's Guide

Published by Packt Publishing, available online through Amazon.