Web Directory WordPress Plugin | Code Stuff
Mobile and web design development (Android, iPhone, WordPress)
Google+TwitterLinkedinFacebook
Subscribe
HomeMobile Apps, WordPress Plugins & WebsitesWeb Directory WordPress Plugin

WordPress Plugins

Web Directory WordPress Plugin

When I started using WordPress, I liked the idea that you can store personal bookmarks on your blog. When I started using it, there are some functions that I wanted so I started searching for a plugin. I couldn’t actually find a plugin that fits my requirements so I decided to start creating my own Web Directory plugin.

I decided to use the existing WordPress tables so that I could re-use existing functions like adding/editing/deleting bookmarks. I wrote down a list of features and functions that I want to put into this plugin.

Features

Some of the current features of the Web directory WordPress plugin include the following:

  • Add/Edit/Delete directory entries using the current bookmark management functions existing in WordPress
  • Easy setup of a main Web directory page by just using a single WordPress shortcode in a page you create in WordPress
  • Easy integration into WordPress themes by detecting and using defined theme stylesheets
  • Use of pretty permalinks in the Web directory structure to provide better search engine indexing and optimization
  • Automatic creation of search engine friendly titles and description meta tags when web directory categories are accessed.
  • Paging the list of links if the list gets too long
  • Support for adding a “site submission” form using the Contact Form 7 plugin

Planned Features

Some of the planned features for the Web directory plugin are:

  • Support for sub-categories – although the current WordPress core tables already support the creation of parent-child sub category relationships, there are no core functions for doing this.
  • Backup / restore of categories/bookmarks – I’m also thinking of creating a Firefox plugin to be able to sync my bookmarks.
  • Some WordPress shortcodes to handle automatic link formatting in posts and other pages.

Installing the Web Directory plugin

After downloading the plugin, just unzip it into your WordPress plugins directory and activate the plugin from your WordPress plugins administration page.

Once the plugin has been activated, a sub menu called “Manage Directory” will be created under the “Links” menu of WordPress. There are several steps you need to do to start using the Link Directory plugin.

First, you will need to create a page inside WordPress and insert the [wplinks] shortcode that the Web Directory plugin uses to determine where to insert the contents of the bookmark directory. Check the screenshot below:

web-directory-plugin-shortcode

You can insert optional text between an opening [wplinks] and closing [/wplinks] shortcode. The text will be formatted in an enclosed div with a class of “intro-box”. This will allow you to format it differently than the rest of the text. As an example, you can checkout the Gerry.Ws directory. I use it to put instructions.

Second, tell the Web Directory WordPress plugin which page is you will be using to display the link directory by selecting it under “Manage Directory”. You can also set a description for your web directory. This will be used when generating the description meta tag of the main link directory page. If you leave it blank, the plugin will generate a description for you.

web-directory-manage-directory-options

You can customize the default styles that the Web Directory WordPress plugin use. This will allow you to modify how your link directory will look when it is displayed. Do this by creating a file named kih-web-directory.css inside the directory of the WordPress theme that you are currently using. The plugin will detect it and use that stylesheet instead of the default.

That’s it, you can start populating your WordPress bookmarks table.

Enabling the “site submission” feature

I have incorporated some code to enable users to allow visitors to their site to fill up a form for submitting requests to be added to the web directory as of version 2.6.3. The partial support can be enabled using the Web Directory plugin in conjunction with the excellent Contact Form 7 plugin. You can create your own site submission using Contact Form 7. When the Web Directory plugin detects that the Contact Form 7 plugin is installed, it will load some code stuff that will allow you to use a [linkcat] contact form 7 shortcode. The shortcode enables the display of a “Link Category” select field in your form. The [linkcat] shortcode will take care of retrieving the available WordPress Link Categories from your site database  and display it as a select field in your form. At least Contact Form 7 version 2.0 is required for this feature to work and you will still need to create your own form.

You can read a tutorial on how to use the Contact Form 7 plugin with the Web Directory plugin.

Changelog

  • 2.0.2 – 2009-04-16 – created as a plugin
  • 2.5.0 – 2009-05-17 – finished basic functioning web directory
  • 2.5.5 – 2009-05-29 – fix permalink issues
  • 2.6.0 – 2009-06-22 – automatically use a custom style sheet in the site’s default theme dir
  • 2.6.1 – 2009-07-17 – added option in manage directories to enable/disable display of
    “Websites / Blogs under” prefix label
  • 2.6.4 – 2010-02-15 – fixed permalinks to work for blogs under a subdirectory
  • 2.6.5 – 2010-05-26 – fixed linkcat validation issue for submission form

Notes

Download

Version 2.6.5

Updated: May 11, 2011

Size: 0 bytes

Downloaded: 1,464 times

Download

Responses

  1. kihbord says

    Hi Mitch,

    Thanks. If ever you get to try it out on a WP 3.0 multi-site, would be nice to get some feedback.

  2. Hi

    Great plugin,

    I am having problems with my links page and my permalinks… i need all my cat links to come under url/index.php/directory ie. the index.php….?

    i cant really work out how to do this ? using wp3.0 :)
    can you help me out?

  3. I’ve installed this and have it functioning, however when a user clicks on a category from the main directory page they are redirected back to the same main directory page. It never takes them to the category selected?

  4. Peter G says

    Hi Kihbord

    I have just installed on a wordpress 3, it is working to an extent but when you click on a category it goes to the correct permalink but just displays the categories again rather than the links in a particular category url is http://www.samui-beach-resort.org/directory. thanks for the work you have put in on this plug in. I will be donating as soon as i get it working right

  5. Peter G says

    Hi Kihbord, I see now that it is listing the links but I didnt see this earlier as it is displayed below the long list of categories.

  6. heinze says

    Hi!

    I’ve been trying to install the plugin, yet somehow the “manage directory” page doesn’t show up in the backend, do you have any idea why?

    Second, I’d like to ask when you will release your next version. For now it would be very nice to set the directory up, but after a while, without sub-categories I guess the directory will get a little confusing.

    Thanks for you nice plugin!

    • kihbord says

      Hi Heinze,

      What version of WordPress are you using?

      If what you mean by sub-categories is categories under the main categories, yes I’ve been thinking about that and some other features but haven’t started coding them yet ‘coz I’m planning to make the plugin expandable using “sub-plugins”.

  7. Heinze says

    Hi kihbord,

    I’m using WP 3.0. The thing is I just don’t see the menu and therefore get an error message at the intended page. Any suggestion? Where should I find the “manage directory” menu?

    I think the most important things are a comprehensive submission form and sub-categories aswell as multiple-category entries. I’m looking forward.

    One question as a non-coder: WordPress plugins are written in PHP? So if I’d like to do my own plugins, learn PHP, right? What’s about Java?

    Thanks

  8. modcorrupt says

    I like the way you have it laid out on your website and have mine setup the same way, but I would like it to list the links once you’ve clicked on a category instead of the link creating a new box. Seems a bit odd to have the link in a box and some people may not notice, etc.

    At any rate, is there a way to have the main categories in a box, like you have, then once a user clicks on the category, the links are listed as an example, like Google, yet the category boxes remain at the very top. The category name would be below all the category boxes (such as a breadcrumb) and the links would list with descriptions (optional) below in a UL/OL type list.

    Would this be possible? I hope I explained it so you understand what I’m trying to say.

    Thanks! And great plugin! Cheers!

  9. Hi i just tested your plugin but it’s not working for me. I did every thing as you have told but it shows only “[wplinks]Link Directory[/wplinks]” on the links page. I am using 3.0.4

  10. Hi,

    This is a great plug in, I was wondering if there is a way to incorporate star rating for the links?

    Also, is it possible to create more than one directory?

    Thanks and keep up the good work

Leave a Reply

  • Hi, I'm Gerry. Welcome to my blog and sites about mobile, technology, The Pinoy, #crazyidea, games, WordPress, Ubuntu, Mac, iOS, Android, Symbian... I started sites like Ortigas Online and iMakati which focuses on local community information. Read more about Gerry
    Status (Twitter, Linkedin, Facebook...)

    Just found out that the Android-based HTC Sensation XL phone is now in the Philippines for about Php 28,000.

  • Visit my other sites

    • Gerry

      My blog about the Philippines, mobile, technology, games, mac, linux...

    • Apps & Games

      Reviews, news of mobile apps & games for Android, iOS, Blackberry, Symbian...

    • Connected Phone

      The computer is the mobile phone. The always connected phone evolution.

    • Pinoy Me

      Pinoy businesses, enterprises, startups, professionals all over the world

    • Java Midlet

      Java mobile apps & games - news, reviews, tips, mobile phone & devices

  • PINOI Sites

    Are you interested in putting up your own PINOI-enabled local community site? Contact me

    • PINOI

      Enabling local communities on the Internet

    • Makati

      iMakati.com is a site that provides information about Makati City.

    • Ortigas

      Community site that provides information about the Ortigas Center.