HOME    ADD BLOG    NEWS    BR FAQ
Premium Business Directory
Blog Categories
Blog Home RSS Feed
Free Stuff
General
Google
Archives
May 2008
March 2008
February 2008
January 2008
November 2007
October 2007
September 2007
August 2007
Blog Roll
Digital Point Forums
Free Widget! - Directory Lists on your own site! - Posted: October 16, 2007 at 11:13 am

We’ve been working on a widget that allows anyone to include our directory lists within their own website, any list displayed on your site will update automatically everyday!

The Basics

We’ve tried to make it as simple as possible for you to add our lists to your site, to add a list in its most basic form, just drop the following code into your page:

<script type=”text/javascript” src=”http://www.directoryrate.com/widgets/get_listing.php?list=listings”></script>

This basic list will give you the top ten directories from Directory Rate, ordered by DR.

Customizing the List

To help users better integrate the lists into their sites, we have added various options that can affect the output of the directory list that gets displayed.

All options are triggered by adding them into the query string of the URL used to access the lists, below are the various customizable options available:

Query string Key: class
Description: Sets the CSS style that will be assigned to the list
Possible Values: Any style name you have in your style sheet

Query string Key: freeorpaid
Description: Sets whether to display free or paid directories in your list
Possible Values: free, paid

Query string Key: numbertoshow
Description: Sets the number of directories to display in your list
Possible Values: Any number from 1 to 100

Query string Key: orderedby
Description: Sets the field by which the directories will be sorted
Possible Values: name, date, pr, dr

Query string Key: showpr
Description: Sets whether to show the PageRank value of a directory.
Possible Values: yes, no

Query string Key: showdr
Description: Sets whether to show the DR value of a directory.
Possible Values: yes, no

Query string Key: tableorullist
Description: Sets whether to display the list in a table or UL/OL list.
Possible Values: table, list

Query string Key: showcount
Description: Sets whether to display a count next to each directory.
Possible Values: yes, no

Some Examples

To get you started and give an idea of how to use the customization options, here’s a couple of examples.

So, starting with our basic listing URL, which is:

http://www.directoryrate.com/widgets/listings.php?list=listings

Imagine now we want to show 50 directories rather than the default 10, so our URL becomes:

http://www.directoryrate.com/widgets/listings.php?list=
listings&numbertoshow=50

Now imagine we want 50 directories, we want to show the PR for each one and we want them displayed in a table rather than a list, so our URL becomes:

http://www.directoryrate.com/widgets/listings.php?list=
listings&numbertoshow=50&showpr=yes&tableorullist=table

Hopefully these examples are enough to show you how to customize your list, don’t forget the URL needs to be wrapped in a Javascript tag like this:

<script type=”text/javascript” src=”http://www.directoryrate.com/widgets/get_listing.php?list=listings”></script>

Finally

Whilst we have tested it quite heavily, we cant tell for sure we covered everything whilst building this widget, therefore if you have any problems please email us details of what happened when you tried to use it and if possible give us the URL where you installed it so we can take a look and try and fix it for you.

info(at)directoryrate.com

Leave a Reply


Rate Recommends
Blogs Rater is generously supported by the following sites:
Web Hosting Blog    Web Directory    Business Directory   
 

Travel resources: Cosmic Travel Network | Spain Travel | Italy Tours | Italy Vacations | Peru Vacations | Peru |