WordPress ODLinks Plugin Guide & Instructions

Posted by M. 4Gani under Root, Tools, WordPressi:

Open Directory Links (Website Directory Project) is a WordPress plugin.
ODLinks 1.4.3-a is now available.

last changes (May 2018)

last changes (15.03.2013 about: 15:00 GMT)
To display the latest xx ads in the sidebar,
you copy the following code and place it anywhere else in the sidebar.
<?php lastODLinksSidebar(8) ?>

last changes  (Today 07.03.2013 about: 15:00 GMT)
– implemented the page navigation functionality
– updated to uses the thumbshots.ru for the Website screenshots
The update fixes website’s search function. [not important!]
Save your local changes (you have any) and unzip the file and overwrite existing directories and files.


The plugin can help you to start a profitable website directory which is the same as the DMOZ.org directory.This plugin is under active development. If you experience problems, please first make sure you have installed the latest version. Feature requests, bug reports and comments can be submitted [here]
1) Click here to download the odlinks plugin last release

Installing the plugin:

1. Unzip the downloaded file and upload the odlinks folder to your WordPress plugins folder (/wp-content/plugins/)
2. Log into your WordPress admin panel
3. So go ahead and activate the ODLINKS plugin, which should appear in the list of installed plug-ins.
4. “ODLinks” will now be displayed in your admin panel.
5. For first step instructions, go to Options “Settings”

You will need to make the Smarty cache and template_c folders writable (chmod 777):
Use your FTP client to change its permissions to 777.
* odlinks/includes/Smarty/cache
* odlinks/includes/Smarty/templates_c

Once you have changed the folder permissions, return to your browser, and refresh it.
Now you can submit your settings. After submission, installer process will create the tables automatically.

For your information, after submitting the settings a new page will be created with the title [[odlinks]](in upper letters) .
This title will be also added to the content of pages automatically.
Do NOT remove the page. The plugin work correctly with this page ID.
Please, you should keep the default title[[odlinks]] (in upper letters) of page to make it to work…

To uninstall and deactivate the plugin, please go to Options “uninstall” under ODLinks menu.

6. Creating/Editing a category and subcategory
– Before deploying, you should create and set-up the categories and subcategories for your Website.
– Go aheead and choose “Categories” from the ODLinks drop down menu and insert the category name and category description and then submit it.
– You can insert the subcategories by clicking on ‘Add Category’ and choosing any category name from the list in parent category. If you select root as parent category, then you create a main category.
– Create a subcategory is mandatory and required!

Depending on the “Permalink Settings” it’s possible for some pages that the categories urls are not accessible.
To fix this problem you should go to update the .htaccess file which is exised under wordpress top directory.

Normaly if you click on categories you will get something like this:

If insteaed of the “/odlinks/” somthing elses is placed for example “/97-revision-v1/”
you can upadte your the .htaccess file as follows:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteRule ^97-revision-v1/?([^/]*)?/?(.*)$ /index.php?pagename=odlinks=$1=$2 [QSA,L,R,NS]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

== Frequently Asked Questions ==

How can we display the latest xx ads in the sidebar?

You copy the following code and place it anywhere in the sidebar.php located in active theme folder.
<?php lastODLinksSidebar(8) ?>


This guide will show you the step by step process for first installation/configuring



Test ODLinks (Open Directory Links)   OR  odlinks.com

Questions and Examples of Use

Frequently Asked Questions

Q. Why the main site gives me the 404 or Not Found error message or I cannot see the “Submitt a link”?

This usually occurs only when using a custom permalink structure (like /%category%/%postname%/).
This is a .htaccess 404 error message and you should update your .htaccess file in the WP root directory.

Normally you should not edit the htaccess, the Permalink link will be detect by plugin automatically.

Please install the CURL module for PHP.


Open as PDFPrint Article

185 Responses to “WordPress ODLinks Plugin Guide & Instructions”

Pages: « 1912 11 10 9 8 [7] 6 5 4 3 21 » Show All

  1. Nikulai, 1. May 2011, 15:11

    Already had removed it – should I put back in? Is the syntax correct?

  2. Nikulai, 1. May 2011, 11:58

    remove all changes from the .htaccess file, what you just added for odlinks
    (restore the original .htaccess file)
    Yes, the permalink structure is month and name. I tried the /%category%/%postname%/ as you suggested and I still receive the 404 error.

  3. Nikulai, 1. May 2011, 7:18

    I assume that the pretty permalinks setting of your site based on “Month and name and …”
    Try to changes the permalinks setting as Custom Structure: “/%category%/%postname%/” and may be fixed the problem

    I am getting the 404 error, however when I change the .htaccess it breaks the entire web site loading correctly. Obviously, I am doing *something* wrong… ;)

    First, do you mean the .htaccess file in the domain root, in the /wordpress directory, or both?

    Second, I changed the slug to /links and have Wordprss installed in the /wordpress directory rather then the root, so I tried modifying the .htaccess to:
    #RewriteRule . /index.php [L]
    RewriteRule !^(classified|links)/ /wordpress/index.php [L]
    RewriteRule links/([^/\(\)]*)/?([^/\(\)]*)/?([^/\(\)]*)/? /index.php?pagename=links [QSA,L,R,NS]

    The site is http://dev.windmastershill.org/ and ODLinks is at http://dev.windmastershill.org/links/

    – N

  4. electroduende, 1. May 2011, 0:22

    Hi, I recently installed your plugin, but it shows me the image of
    introduced in the web directory, only shows the banner to thumbshots.com (imagecoming soon), is necessary to activate some images to work? thanks

  5. Bloody, 8. April 2011, 11:41

    I made the french lang file.
    You can find it there :  http://www.chantdeleau.com/forum/uploads/lang_fr.phps

    I’ve got a question about the url rewrite wich doesn’t work for me.

    My permalinks structure is like this : /%category%/%postname%.html

    I’ve made the change in the htaccess file. It looks like that now but it doesn’t work  at all :

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    RewriteRule !^(classified|odlinks)/ /index.php [L]RewriteRule odlinks/([^/\(\)]*)/?([^/\(\)]*)/?([^/\(\)]*)/? /index.php?partenariat/annuaire-de-liens-aquariophiles=odlinks&_action=$1&id=$2&parent=$3 [QSA,L,R,NS]
    # END WordPress
    Another problem : I don’t know why ODlinks create a new link like that :  http://www.mywebsite/featured/2687-revision.html?_action=postlink&id=1&parent=0
    This ” featured” page doesn’t exist on my website. But the number “2687” is the page directory id number .

    My directory links : http://www.chantdeleau.com/partenariat/annuaire-de-liens-aquariophiles Have-you got any solution ?
    Thanks !


    change to:

    # BEGIN WordPress

    RewriteEngine On
    RewriteBase /
    #RewriteRule . /home/ [L]

    # try to get the first two lines,
    RewriteRule !^(partenariat/annuaire-de-liens-aquariophiles)/ /home/ [L]
    RewriteRule ^partenariat/annuaire-de-liens-aquariophiles/([^/\(\)]*)/?([^/\(\)]*)/?([^/\(\)]*)/? /index.php?pagename=odlinks [QSA,L,R,NS]
    # If you don’t get the result, then
    RewriteRule !^(partenariat\/annuaire-de-liens-aquariophiles)/ /home/ [L]
    RewriteRule ^(partenariat\/annuaire-de-liens-aquariophiles)/([^/\(\)]*)/?([^/\(\)]*)/?([^/\(\)]*)/? /index.php?pagename=odlinks [QSA,L,R,NS]

    # END WordPress

  6. Fedil Grogan, 6. April 2011, 19:18

    Hi, I was wondering if you could tell me if there are any plans in place to make the links in the directory url friendly? Right now they look like this: odlinks/?_action=main&id=1&parent=0 but I don’t think search engines index these pages because it really doesn’t have a page. Is there any way it can be changed to something like: odlinks/index.php?_action=main&id=1&parent=0 or better yet: odlinks/category_name


  7. Tony, 1. April 2011, 3:03

    Hello, i just installed the lates Links-Open Directory pluging, after adding categories and subcategories  i am getting all the subcategories displaying on the  top, i try changin it  at the setting,  but it does no change  even after daleting  all files in  cache  folder and templates_c.
    by create the subcategories, I assume you forgot to choice the “Parent category
    and you create them in the root.

  8. Fedil Grogan, 31. March 2011, 14:15

    Cool thanks for the quick response. It works! :) Only other small bug I saw in the last version and this version is that the Title at the top of the directory tries to put the &lt;strong&gt; inside the title of the a href tag that is in the h1 tag. Thanks again for your work!

  9. Fedil Grogan, 30. March 2011, 1:28

    I’ve installed the plugin and it is working great for the most part. I do have one problem however and see it duplicated in your demo. When you go to submit a link it always sets the category to the parent category you were in. That didn’t bother me so much, but when you click to change the category the order that the category and subcategories are listed in are in relation to the order you entered them in. So my subcategories aren’t always under the correct parent category. Again you can see this in your own demo. For example if you try to submit a link to Children and Teens : Drawing & Coloring, Drawing & Coloring shows up under Animals & Farm Supplies.

    oops, NOT GOOD. I will fixed it now
    Sorry, this was happened by doing some small changes on skin. (is finished)
    I fixed the problem and I just uploaded the file to SVN. Please download and replace the files.
    many thanks for your feedback

  10. admin, 11. March 2011, 8:57

    If the plugin appearing DOUBLE on the page to fix the problem please open the file includes/odl_rss.php in a text editor comment out these lines 42 – 47
    if (empty($wp)) {

    I have been fixed the issue in svn.

Pages: « 1912 11 10 9 8 [7] 6 5 4 3 21 » Show All

Post your comment