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 display 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 Article Directory plugin.
The primary task of this plugin is display on the main page (or any another) the structured list of categories, which can be easily customized with CSS. Also plugin allows authors to publish articles and change their profile bypassing the admin interface.
Demo
You can see the demo here – Articlesss.com/demo/.
Plugin features
Standard features for categories list:
- Showing an amount of articles in parent and child categories.
- Showing a category description in link title.
- Showing the empty categories.
- Using hierarchy for subcategories.
- Excluding a specified categories.
Special features for categories list:
- 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. - Parent category is showing amount of articles in subcategories. The character also include the number of articles in this parent category.
- Showing a specified amount of child categories (2nd level).
- Showing a categories in specified amount of columns.
- Hiding all subcategories.
- Adding an icons for each category in the list using CSS.
Additional features:
- Authors can add articles and change their profile bypassing the admin interface.
- Displaying the “Terms of article publication” on article submission page.
- Excluding the child categories articles from the parent categories archive pages.
- Ability to get an article source code.
Requires WordPress version: 2.9 – 3.0.4.
Download
Version: 1.3 | Last updated: 2011-01-16
Donation
If you enjoy this plugin, you can thank me and leave a small donation.
Installation
Attention: if you are using the plugin simultaneously with Article Directory WordPress Theme, miss the 5, 6, 7 and 8.1 points of installation:
- Copy the article-directory folder in WordPress plugins directory (
/wp-content/plugins/). - Activate the plugin through admin interface.
- Activate the “Membership (Anyone can register)” option on the “General Settings” page of admin area.
- On the same page select “Author” or “Contributor” in the option “New User Default Role”.
- Add the following code in the index.php file of your theme (or in another file in a place, where you want to display the categories list):
<?php if (function_exists('article_directory')) article_directory(); ?> - Add the following code in a place of your theme (for example, in sidebar.php), where you want to see the authorization form:
<?php if (function_exists('article_directory_authorization_form')) article_directory_authorization_form(); ?> - Add the following code in the header.php file before the
</head>tag:<link rel="stylesheet" href="<?php bloginfo('wpurl'); ?>/wp-content/plugins/article-directory/author-panel.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php bloginfo('wpurl'); ?>/wp-content/plugins/article-directory/categories.css" type="text/css" media="screen" /> - Select a prefered interface for authors in corresponding option at the “Settings → Article Directory” page of admin area. If you have selected the “Author panel”, then follow these subpoints:
- Create in directory with your theme a new PHP file, for example author-panel.php and paste the following code in it:
<?php
/*
Template Name: Author panel
*/
if (function_exists('article_directory_author_panel')) article_directory_author_panel();
?> - Create in admin area a new page and select the template “Author panel” in page attributes. Through this page authors will add new articles and change their profile. Access in admin area for authors will be forbidden.
- Specify ID of this page in corresponding option at the “Settings → Article Directory” page of admin area.
- Create in directory with your theme a new PHP file, for example author-panel.php and paste the following code in it:
- That’s all. If it’s necessary, you may customize other options of plugin.
Customization
There are two things, that you can customize:
- If it’s necessary, you may customize the author-panel.css and categories.css files under the site design.
- Customize options on “Settings → Article Directory” page.
How to add icons for parent categories
It’s doing using CSS. You need to add the styles for icons in style.css file 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.
The plugin also lets you to display the list with the links to categories RSS feeds. To do this you must:
- Create a new page template.
- Add the following code:
<?php $rssfeeds=true; ?>
<?php if (function_exists('article_directory')) article_directory(); ?> - Create a new page in the admin interface and select the created template in page attributes.
FAQ about 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.
Sorry, 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.
Is there a simple way to quickly add the categories (instead of adding it one by one)?
Yes. You can use the Post Corrector plugin for this.
Is there a version of Article Directory theme just for a regular blog?
Yes. You can get it here - ADSimple WordPress theme.
What should I enter in the "ID of author panel page" in the plugin options? What should that look like?
-
Go to the "Pages" in admin menu. Hover the mouse cursor on the title of the author panel page you have created. Now look at the status bar of your browser. You'll see something like this:

The number after
post=is the ID of author panel page. Is there a way let users edit their posts not in WordPress admin area?
Sorry, but that's not possible.
How do I allow authors to upload images?
Unfortunately, it's impossible in the author panel. But they can upload an image on the free image hosting (for example imageshack.us) and then paste a link on it.
Can you share or sell theme like on your site articless.com?
No, this theme is not for share or sale.
Version history
Version 1.3 (2011-01-16)
- The author logged in through the wp-login.php page now automatically redirected to the author panel.
- Added the option “Show text editor”.
- Fixed the problem, when the visual editor was not appeared.
Version 1.2 (2010-10-16)
- Fixed the problem, when articles gets the “scheduled” status instead of “published”.
- Fixed a bug with the mb_strlen function.
- Fixed errors, which appeared when “WordPress address” and “Blog address” differed.
- Added new option “Default text editor” (HTML or visual).
Version 1.1 (2010-09-12)
- Updated instructions for installing the plugin.
- Added ability to select interface for authors: “WordPress admin area” or “Author panel”.
- Added ability to automatically publish articles submitted by authors or send them on moderation.
- Added the TinyMCE editor and HTML editor into the author panel.
- Added styles for editors in the author-panel.css file.
- Added function for the authorization form (see instructions for installing the plugin).
Version 1.0 (2010-09-06)
- This version of the plugin is developed for WordPress 2.9 and higher.
- Updated instructions for installing the plugin.
- Radically altered the system of settings saving, this reduced the size of the plugin.
- The possibility of authors to add articles and change their profile, bypass the WordPress admin area (see instructions for installing the plugin).
- For the logged user, whose role is below the “Editor”, access to WordPress admin area is denied.
- You can specify the minimum number of characters allowed to add an article.
- You can specify the maximum number of links in the article.
- Role Manager plugin (or similar) is no longer needed to work with the plugin.
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.
hye there.i am also got same problem like these
If I try to log in as an author, I get the following error
You do not have sufficient permissions to access this page.
» Go to the author panel
» Log out
And what is the problem? You can’t click on the “Go to the author panel” link or what?
I am facing same problem.When i click on “Go to the author panel” it shows me “You do not have sufficient permissions to access this page.”Plz solve the problem.
Thanks
Sazeeb
It means that you have specified wrong ID of the “author panel” page.
No sir my id is not wrong.what i will do now?
Don’t know. I have no such a problem.
Sir it shows me article-directory/author-panel.php on line 1
Plz help
i can click to the control panel.but i can’t see anything
Dimox,
I have the same issue. The author panel is is correct and users get this error when they log in. I think it could be causing some to be caught off guard and think they don’t have access to post. Try creating a account on my site and log in and you will see this problem. I would like to get it fixed.
http://www.dylansuniverse.com/
Thanks
I have added a new article in your directory without any problems.
Hi Dimox !
How did i get authir id?
When I click on “Pages” .It doesn’t show me any Number.Something like that you have mentioned in above example.
Cheers
Arun
Ok you are able to add articles. I didn’t say you couldn’t but when you log on you see the error
You do not have sufficient permissions to access this page.
» Go to the author panel
» Log out
That first line may throw users off until they know to click on the author panel. I wish to remove that fist line or make it where it takes them right to the author panel. do you understand what i mean?
Chris
In the next version of the plugin there will be an automatic redirect to the author panel bypassing this page.
I use this plugins, but i have 1 problem, the problem is : everyday some people register in my blog but that not real people, they use robot to register. how to block so that robot can’t register?
I am also having this problem. SO now I have stopped every new members.
The bad thing is that they also submit articles without my permission.
Dimox, any suggest ?
How can I direct the call code to a specific page? What is the conditional tag for me to do that? Also, would that go in page.php or index.php?
By call code I mean
. Also, by conditional tag I mean the “if is (page__)” statement. What would the full code look like which I could insert my page name into? Thanks.Hi, I’m not trying to be pushy, but I’ve noticed that many questions have been answered that were posted after mine and I have not received a response. Maybe I’m not being clear enough. I am using a theme with the article directory plugin.
I want the categories to be displayed on a certain page like they are in the article directory theme. I need to know what the code is I would use to direct the plugin to a certain page and where exactly I would put it? I’m talking about an “if_is_page (blank)” statement, or a conditional tag.
I’ve used them for other plugins and they work, but I need to know exactly what the code would be for this plugin and where would I put it.
When an author fills out the author bio and wishes to use html such as “a href=” it gets stripped out. How do I fix this?
In author-panel.php find this code:
strip_tags($_POST['description'])));and replace on:
$_POST['description']));hi,
i am facing some problem with the article submission page. After login when i click on submit article link. it shows You don’t have permission and show the “Error 404 – Not Found” . I check on admin panel. also give the right of Author to all the register userss and also to to allow them keep as “contributor”. but still not showing same error. Please help me to resolve this problem. Thanks
I’m having problems with the categories. Articles displayed in sub categories are not appearing when you click on a category. Is there a way to display the subcategories?
Deactivate the option “Exclude the child categories articles from the parent categories pages”.
I actually reloaded the plug-in for the categories and it fixed it.
How to approve artciles.
I had tried in settings but in vain
my site is not showing anything upon clicking the author panel there are no forms showing.
Did you “edit” that page and set the template to the Author Panel?
Is it possible to a captcha in the register form?
I am tired on all fake members.
Use “pie register” plugin and configure it. your user could also set their own password and you could also set required fields in the registration form as well.
Thanks Addul this looks great.
But it say that I need to put this code in wp-login.php
But I don’t have wp-login.php. Where can I find it?
Its in the Directory wordpress installation Directory at root level of it. You could need ftp client to find it & then edit.
Thanks.
Strange I already got 3 new spammers to my site. How can they register when I have captcha?
Just a suggestion, since it appears that the user photo icon for the plug-in doesn’t really serve a purpose (on other sites it usually means that someone didn’t upload a photo), it may be advantageous to integrate the “User Photo” plug-in. This would allow users to upload photos and would give the directories a whole new dynamic. If anyone has done this, please let me know.
Great plugin – just a question – is there any way to HOLD ALL posts to for a review by the administrator BEFORE they are published? Alternatively, how to make sure people only publish the articles that match the categories created – for instance, someone created an article directory about electronics and creates categories: cell phones, TVs, car stereo, laptops. How would I ensure that no-one publishes a post about mortgages or weight loss?
There is a corresponding option, if author panel is used.
Only by reading these articles.
And where can we find this corresponding option?
All article are approved without my permission even if I have the option waiting for review.
Is there a way I can change the links in the articles to nofollow?
can you help me with this please.
authors are seeing blank page in http://articleinjection.com/author-panel/
can you check it out please here’s a sample account i tried creating.
Username: tender
Password: TE9yHO@c*O3a
Hi,
I used the plugin on another theme. When someone submits articles and I approve them it shows “article by authors name” in the article. You just can’t click on the authors name. It seems like there are no profiles of authors. Any idea how to fix this?
Also, in the author panel page the post editor’s width goes through whole page. How do I change it so that it is 500 px or something of this kind?
Thank you.
If I try to log in as an author, I get the following error
You do not have sufficient permissions to access this page.
» Go to the author panel
» Log out
when clicking go to author panel, the page will be just blank. what possibly is the solution?
the only thing i did actually is updating simply google sitemap
i also have this issue when i tried to back up to export my xml.. i can’t see the download link but this appears.
When you click the button below WordPress will create an XML file for you to save to your computer.
This format, which we call WordPress eXtended RSS or WXR, will contain your posts, pages, comments, custom fields, categories, and tags.
Once you’ve saved the download file, you can use the Import function on another WordPress site to import this site.
Filters
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 393216 bytes) in /home/articleinjection/public_html/wp-includes/load.php on line 552
hallo, i want to ask…About ID of author panel page, how can i fill that?
Go to the Admin area of wordpress, select “pages” menu, just place the cursor on the page you had created for author panel. you will see the link in the status bar, the number appeared there is the ID of page of the author panel. mention it in Article Directory settings. Thats it
Hey,
How to add authors form. I mean ability to add authors their information below an article?
Two questions:
1) When I click on the article source link nothing shows up. It just reloads the page. When I view the source, the get article source paragraph contains
HTML Version:
Text Version:
Article Url:
(I added the spaces after the leading ‘<'). Bot, no article.
2) How can I "override" the href in the post content so that it is the same color as the surrounding text?
3) I have never been able to get the author page to work right. I create the page, assign it the author page template, and set the page# in the options. When I browse to it in IE, the browser locks up and will not allow any input. So, I have to return to the Wordpress admin area whenever I try to change it.
Thanks for the 1.3 updates ! It works and it’s efficient !
great job