Article Directory WordPress Plugin

As you know, WordPress is the universal platform, that may be used not only for blog creating, but also for other web-site types.

Once me and my friend have created WordPress build for the article directory, but this build have one essential shortcoming.

To deduce the list of categories on the main page I had to edit source files of WordPress engine. But it has deprived of possibility to use WordPress as the article directory at release of new versions, because changing of the source codes each time is not reasonable decision.

The idea of creation of universal and convenient instrument for realisation on WordPress the catalogue of articles did not leave me. As a result I have created a plugin Article Directory.

The primary task of this plugin is deduce on the main page (or any another) the structured list of categories, which can be easily customized with CSS, how it’s made now on Articlesss.com web-site. In addition, with the plugin implemented several changes in the administrative interface that using it was more rational and convenient for both authors and for the administrator.

Plugin features

Standard optional features for categories list:

  • Amount of articles in parent and child categories.
  • Category description in link title.
  • Showing the empty categories.
  • Using hierarchy for subcategories.
  • Exclude selected categories.

Special features:

  • Simple and handy design using CSS. The structure of categories is the multilevel list which can be altered easily with CSS, as you need. The parent category have the <div> container to mark it out with CSS as a parent.
  • Support WordPress starting from version 2.3 and above.
  • Parent category is showing amount of articles in subcategories. The character also include the number of articles in this parent category.
  • Ability to display the specified amount of child categories (2nd level).
  • Ability to display categories on specified amount of columns.
  • Ability to hide all subcategories.
  • Ability to exclude the child categories articles from the parent categories archive pages.
  • Ability to add icons for parent categories using CSS.
  • Ability to get article source code.

Admin interface options:

  • Ability to show warning to author, if not selected any category or if selected more than one category.
  • Ability to hide unnecessary blocks from the “Write/Edit Post” page, if this is not the site administrator. It is “Comments & Pings”, “Excerpt”, “Password Protect” and other blocks. I.e. actually there is only a form of adding the article and the button to send it to moderation.
  • Ability to specify the height of the categories block on “Write/Edit Post” page.
  • Ability to put the “Terms of article publication” on “Write/Edit Post” page.

Installation

Installation of Article Directory plugin is a simple:

  1. Copy the article-directory folder in WordPress plugins directory (…\wp-content\plugins\).
  2. Copy the categories.css file in directory with your theme.
  3. Activate the plugin through admin interface.
  4. Add the following code in the index.php (or another file) of your theme:

    <?php if (function_exists('article_directory')) article_directory(); ?>

  5. Add the following code in the style.css:

    @import 'categories.css';

That’s all.

Attention: if you are using a plugin simultaneously with Article Directory WordPress Theme, miss 2-nd, 4-th and 5-th items of installation, because this code is already there by default.

Customization

There are two things, that you can customize:

  1. If it is necessary, you should customize a categories.css file under the site design.
  2. Customize options on “Settings → Article Directory” page.

The plugin also lets you to display the list with the links to categories RSS feeds. To do this, you must:

  1. Create a new page template.
  2. Add the following code:

    <?php $rssfeeds=true; ?>
    <?php if (function_exists('article_directory')) article_directory(); ?>

  3. Create a new page in the admin interface and select the created template.

How to add icons for parent categories

It’s doing using CSS. You need to add the styles for icons in categories.css or in style.css file (both located in a folder of your theme).

Styles should be like this:

#cat-23 {background: url(i/icon.gif) 4px 3px no-repeat}

Here the digit 23 means, what this icon will be added in the 2nd column for the 3rd parent category from the top. Accordingly, it is necessary to create as many of such styles, how many you have parent categories, and specify the corresponding number for each icon.

i/icon.gif – this is the path to an icon file, beginning from a folder with your theme.

4px – icon shift value from the left of the parent category block.
3px – icon shift value from the top of the parent category block.

Download

Article Directory WordPress Plugin

Version: 0.9.9 | Last updated: 2009-9-27

Donation

If you enjoy this plugin, you can thank me and leave a small donation.

FAQ related to Article Directory theme and plugin

How can I have the outside background (grey stripes) and the border like on this site? How to add a logo in the header before the site title? How can I change the width of the sidebars? How to place a banner in header? Etc.

Sory, I can’t help you with such a questions. Please read and study CSS manuals or find a freelancer that make this things for you.

I have installed your theme “Article Directory”, but I don’t see the “Register” link on my site.

You need to activate the “Membership (Anyone can register)” option on the “General Settings” page of admin area.

When I make a page it does not show up in the menu where the “Home” link is located.

You need to specify the ID’s of these pages in the header.php file. Instruction about this written on the Article Directory theme page.

Is there a way we can place all submitted articles under moderation instead of being published straight away?

You need to install the Role Manager plugin. You can see a capabilities that are enabled on this site – look at the screenshot.

Is there a simple way to quickly add the categories (instead of adding it one by one)?

You can use the Post Corrector plugin for this.

How do I get my recent article posts to display like you have your “Recent Articles” in your first Sidebar?

If widgets are not used in this sidebar, the “Recent Articles” will be shown.

Is there a version of Article Directory theme just for a regular blog?

Yes, you can get it here – ADSimple WordPress theme.

Version history

Version 0.9.9 (09.27.09)

  • Fixed bug: subcategories disappeared if selected option “Sort categories list by your choice”.

Version 0.9.8 (06.22.09)

  • Added option “Forbid publication in parent categories?”.

Version 0.9.7 (03.07.09)

  • Improved block of article source code.

Version 0.9.6 (01.25.09)

  • Added new feature: ability to get source code of article.

Version 0.9.5 (01.04.09)

  • Now it’s possible to sort a list of categories by your choice. This will require the My Category Order plugin.
  • Plugin now works on WordPress 2.3 or higher (versions 2.1 and 2.2 are excluded).
  • Removed feature on redirects your on home page when clicking on the link “Exit” because this feature is built into WordPress 2.7.

Version 0.9.4 (11.29.08)

  • Changed the method of reading WordPress version. Therefore, the plugin now works correctly even if you use it simultaneously with third-party plugins replacing WordPress version.

Version 0.9.3 (10.05.08)

  • Fixed data base error: SELECT SUM(count) FROM wp_term_taxonomy WHERE taxonomy = 'category' AND parent =
  • Added French localization. Thanks to Le blogueur masqué.

Version 0.9.2 (08.19.08)

  • Changes related to hiding unnecessary blocks from the authors.

Version 0.9.1 (07.25.08)

  • Fixed the bug, when articles with the statuses “Draft” and “Pending Review” were available to view.

Version 0.9 (07.19.08)

  • If not all subcategories is displayed according to options, the symbol “…” will be added after the list of subcategories.
  • Ability to add icons for parent categories. To do this, read the instructions above in the article.
  • Removed restrictions of functions in the administrative interface created by plugin for users up to the editor level.
  • The error, when at entering on a comments page in administrative interface the message “Restricted area” was deduced to all users, regardless of status, is corrected.
  • The message about the necessity to update WordPress is hidden from the authors.
  • By pressing the “Logout” link the user is redirecting to the home page of the site.

Version 0.8.1 (06.28.08)

  • Now it is possible to insert the “Terms of article publication” before the article edit form on “Write/Edit Post” page (terms are not shown for the administrator).
  • Since not yet found a way to show for author on “Comments” page only his comments, access to this page is closed for him.
  • The footer of admin interface is hidden from author as not the necessary element.
  • In the top block of Dashboard is hidden some site statistic info from the author. If you also want to delete all the widgets from the Dashboard, I recommend you to use Dashboard Widget Manager plugin.

Version 0.8 beta (06.13.08)

  • All the options transferred to the admin interface.
  • Possibility of translation of a plugin on other languages.
  • Functions of following plugins are integrated:

    Therefore, if you are using any of this plugins, they must be removed.

  • On “Manage Posts” page the author sees now only own articles.
  • On “Manage Comments” page the author does not see now such data, as e-mail and the IP-address of commentators.

Version 0.7 (05.22.08)

  • Added ability to display the specified amount of child categories (2nd level).

Version 0.6 (04.22.08)

  • Fixed incorrect counting the number of articles in parent categories in case they contain subchild categories.

Version 0.5 (04.11.08)

  • Added ability to output the additional list with links to categories RSS-feeds.
  • Made some changes in categories.css file for this page.

Version 0.4 (02.29.08)

  • Added ability to disable the output of subcategories.
  • Now it is possible of exception of selected categories/subcategories.

Version 0.3 (01.23.08)

  • Added ability to disable the “No categories” output messages, if the category does not contain subcategories.

Version 0.2 (01.19.08)

  • Added automatic sorting of parent categories.
  • There is a possibility to display the list of categories by columns.
  • Updated categories.css file.

Version 0.1 (01.07.08)

  • First release.

717 Responses to “Article Directory WordPress Plugin”

  1. Dimox,

    Please also take a look at http://www.eMagazineArticles.com/

    here all the same plugins, including article directory plugin of yours, along with Virtual Silo are installed and activated. (exception being article directory theme not installed)

    if you notice, the directory is not split up, like in Review Articles site, http://www.revarticles.com ( I will keep the article directory plugin activated at this site, until you take a look at it)

    Does this mean, the problem is actually with the Theme ‘articles directory’ and not the plugin ‘article directory’? or perhaps it is the Virtual Silo plugin the culprit?

    sincere thanks for your help and your awesome article directory plugin and theme

  2. Virtual silo plugin for some reason breaks the function of my plugin. I don’t know what I can do.

  3. thanks for the update to grap html. I did upgrade, but don’t see any difference. What do I need to do. Again, thanks for responding so fast!

    @
  4. Publish Myself, go to the plugin options and select “Yes” in corresponding option.

  5. Dimox,

    if you take a look at my other site, emagazinarticles, you can find your Article Directory plugin is installed along with Virtual Silo installed (activated)
    yet no breakup of categories like my other site revarticles

    emagazinearticles does not have the Theme Articles Directory. Just Default theme.

    Do you think that the culprit here is the Articles Directory Theme and not Plugin? that is not working with Virtual Silo plugin?

    Sean

  6. Dimox – thanks, it works perfectly! You are a genuis, and you could certainly charge for this.

    @
  7. sean, to say something specific I need to test the Virtual Silo on my localhost with my plugin, but it not free of cost.

  8. Can you tell me why my article directory worked fine yesterday and now today I’m getting this error “Warning: Division by zero in /home/fatcityl/public_html/freshsqueezedarticles/wp-content/plugins/article-directory/article-directory.php on line 150″? It seems all my posts have disappeared. Thanks

  9. Hi Di,

    Last night, I did an automatic upgrade…. and my sidebar gone missing as well as the footer too.

    Do have a look at my site: http://BrianAnan.com

    Need your help buddy.

    regards
    BRIAN
    http:BrianAnan.com

    @
  10. Brian, are you sure that the reason in this plugin? Try to deactivate it and check for result.

  11. I have a question about running a site with the plugin installed. How do you manage users?

    I have been looking around trying to figure out how to set up my site to allow users to sign up and submit articles for approval . rather than have them email me articles then have me publish them for them. Would the settings be in your plugin or would it be in role manager and I’m just missing it..

    Sorry to be so dense.

    jdaniel

    @
  12. Dimox – The “article source” is a great addition to this plugin and makes it a very valuable asset to the WP community. Thanks!

    I have a couple of things that I would recommend to adjust on the article source.

    1. The “article source” option should only be available on “posts” which are the articles in your directory. Right now, they also appear on pages which would be things I would NOT want them to have access to the source code.

    2. A the bottom of your generated source code, inside the area, are the words “Press Ctl C to ……” This information should be put OUTSIDE the box of code that can be copied. It should not be part of the article source code, but below the box as instructions.

    3. Can the “article source” boxes be set to be “on” when someone goes to that page, instead of having to click the link to “turn” them on? Just a suggestion.

    Can’t wait to begin using this. My theme is all done – I was just waiting on the source box – now time to solicit for the niche articles that will be on this site. Thanks again!

    Kelly Ling

    @
  13. Oh, I forgot one other VERY important thing!

    In the source code boxes, the title of the article does not appear in the text to be copied. This should definitely be there!

    Thanks again!

    Kelly Ling

    @
  14. jdaniel, you need to install the Role Manager plugin.

    Kelly Ling:

    1. Ok.
    2. Ok.
    3. I think not worth to do this. Not every site visitor will use source code.

    In the source code boxes, the title of the article does not appear in the text to be copied. This should definitely be there!

    Ok.

  15. JDaniel – I think you can just choose to set new registrations to “CONTRIBUTOR” – which means they can submit articles, but NOT publish them.

    Article Source – I wish the linkback to the article page was in the same box as the article
    source so people would just have to cut n’ paste the whole thing. Less chance of somebody “forgetting” the backlinks.

    It would also be nice to see a feature where you could have a rule reminder – i.e. You must include the linkback – right before the source. But I think I can figure out how to accomplish this.

    But I am really happy to see this feature included!

    @
  16. Hi

    Thx for a great tool and theme!!

    Could I somehow protect a articles section / catagory?
    I have “Video section for free” (How to work from home)
    and the second section is “Secrets to WFH” … ? I want to have people signup for newsletter, where I give them the password for the second video section?

  17. Peter Netz Lassen, try to find a plugin which can do this. My plugin can’t.

  18. Peter – make the 2nd video on a sub page of a sub page (child of child page). Set up an auto-responder program here. Then, put the link to this sub, sub page in the auto-responder program sequence. When they enter their name and email, it will automatically send them the link to watch the next video and you will now also have their contact information ;)

    Hope that helps…
    Jeremy

    @
  19. Publishmyself – I do have the role manager plugin.

    The contributor role does allow you to publish I tried it with a test user. I was hoping there was a setting in the article directory plugin that allowed them to queue for publication so I could allow people to submit article by default but I could check for quality before I let them go live. maybe I can find someone to modify role manager to get that functionality

    I’m real excited about the source box stuff I thought I might have to have someone write a pluggin to do that stuff. f I have to check out the functionality. Thanks Dimox

    Pax

    JDaniel

    @
  20. Hi Buddy,

    I did tried deactivating it and nothing happens.

    Then, I removed all Plug-In’s one by one and tested nothing happen. At the end, removed all & reinstall. Now it’s working. I am not sure why…?

    By the way, thanks for the advice.

    One more thing., I would like to have the Recent Articles on Side Bar (like yours here), How do I do it? on my site http://BrianAnan.com

    Please advice. Thanks buddy.

    regards
    BRIAN
    http://BrianAnan.com

    @

Leave a Reply

Attention! Please be careful! Ask here only related to Article Directory Plugin questions. If your question is related to the Theme, please go here.

Please read a FAQ before asking a question.