| 1 | Randomized Blogroll Plugin Readme
|
|---|
| 2 |
|
|---|
| 3 | The plugin was tested on WordPress 1.2.2 and the latest Beta of WordPress 1.5
|
|---|
| 4 | on both Windows and Linux.
|
|---|
| 5 |
|
|---|
| 6 | A) Installation
|
|---|
| 7 |
|
|---|
| 8 | 1. Copy the file "random-blogroll-plugin.php" to the folder "wp-content/plugins"
|
|---|
| 9 | 2. Create a folder named "rbr-cache" in the "wp-content" directory. Make sure it
|
|---|
| 10 | is writable by the server (chmod 0777).
|
|---|
| 11 | 3. Upload the OPML file that contains your subsriptions to the server (e.g. to
|
|---|
| 12 | "wp-content"). If your subscription is provided by a server like technorati.com,
|
|---|
| 13 | you can skip this step. Read section C of this readme, though.
|
|---|
| 14 | 4. Hack your site to display the blogroll.
|
|---|
| 15 |
|
|---|
| 16 | For WordPress 1.2.x:
|
|---|
| 17 |
|
|---|
| 18 | Add the following lines to your "index.php", right where the other links are
|
|---|
| 19 | located.
|
|---|
| 20 | Beneath the section entitled archives would be a good place.
|
|---|
| 21 | <?php
|
|---|
| 22 | if (function_exists("rbr_output"))
|
|---|
| 23 | {
|
|---|
| 24 | ?>
|
|---|
| 25 | <li id="blogroll"><?php _e('Blogs I read'); ?>
|
|---|
| 26 | <ul>
|
|---|
| 27 | <?php rbr_output(OPML-FILE-NAME); ?>
|
|---|
| 28 | </ul>
|
|---|
| 29 | </li>
|
|---|
| 30 | <?php
|
|---|
| 31 | }
|
|---|
| 32 | ?>
|
|---|
| 33 |
|
|---|
| 34 | For WordPress 1.3 and higher:
|
|---|
| 35 |
|
|---|
| 36 | The links are located in the file "wp-content/themes/[theme name]/sidebar.php".
|
|---|
| 37 | If you use the classic theme, add the same code like above, for example before
|
|---|
| 38 | the section entitled "Meta" to the file "wp-content/themes/classic/sidebar.php".
|
|---|
| 39 |
|
|---|
| 40 | If you use the default theme, the code must be slighly modified to fit the theme:
|
|---|
| 41 | <?php
|
|---|
| 42 | if (function_exists("rbr_output"))
|
|---|
| 43 | {
|
|---|
| 44 | ?>
|
|---|
| 45 | <li id="blogroll"><h2><?php _e('Blogs I read'); ?></h2>
|
|---|
| 46 | <ul>
|
|---|
| 47 | <? rbr_output(OPML-FILE-NAME); ?>
|
|---|
| 48 | </ul>
|
|---|
| 49 | </li>
|
|---|
| 50 | <?php
|
|---|
| 51 | }
|
|---|
| 52 | ?>
|
|---|
| 53 | You can place it before the "Meta" section in the file "wp-content/themes/default/sidebar.php".
|
|---|
| 54 |
|
|---|
| 55 | 5. Replace OPML-FILE-NAME with the path to the OPML file you uploaded before or the URL
|
|---|
| 56 | if your subscriptions are taken from another server.
|
|---|
| 57 | 6. Enable the plugin in your WordPress administration environment.
|
|---|
| 58 |
|
|---|
| 59 |
|
|---|
| 60 | B) Details
|
|---|
| 61 |
|
|---|
| 62 | The function rbr_output takes the following parameters:
|
|---|
| 63 |
|
|---|
| 64 | OPML-FILE-NAME: The name of your opml file to be read or its URL. E.g. "wp-content/export.xml"
|
|---|
| 65 | or "http://some-blogroll-provider/my-subscriptions.xml".
|
|---|
| 66 | NUMBER-OF-ENTRIES: Optional. The number of entries to display, default is 10.
|
|---|
| 67 | REFRESH-TIME-IN-MINUTES: Optional. Defines after how many minutes, the randomized roll should be
|
|---|
| 68 | updated. Default is 60 minutes.
|
|---|
| 69 | START-TAG: Optional. Anything you would like to see before each generated anchor tag. Default is "<li>".
|
|---|
| 70 | END-TAG: Optional. Anything you would like to see after each generated anchor tag. Default is "</li>".
|
|---|
| 71 |
|
|---|
| 72 |
|
|---|
| 73 | C) Bugs And Inconveniences
|
|---|
| 74 |
|
|---|
| 75 | The plugin requires your OPML file to provide the attributes "htmlUrl" and either "title" or
|
|---|
| 76 | "text" for each of your subscriptions. It was successfully testes with plugins from SharpReader
|
|---|
| 77 | and BlogLines.com.
|
|---|
| 78 |
|
|---|
| 79 | Unfortunately some feed readers (like FeedReader) don't provide the "htmlUrl" attribute and OPML
|
|---|
| 80 | files exported from this applications are not processed. If the plugin generates an empty list
|
|---|
| 81 | saying "No blogroll entries found", your OPML file may not be as complete as it could be.
|
|---|
| 82 |
|
|---|
| 83 | In this case import your OPML into another feed reader and reexport it, for example using SharpReader
|
|---|
| 84 | (http://www.sharpreader.net/), which is free.
|
|---|
| 85 |
|
|---|
| 86 | If you take the subsriptions from a server like technorati.com and an error occurs saying the file
|
|---|
| 87 | could not be found, this possibly is because you are not allowed to access files on other servers.
|
|---|
| 88 | This is due the the PHP init parameter allow_url_open set to 0. Contact your administrator in this
|
|---|
| 89 | case or download the subscription file and upload it on your server.
|
|---|
| 90 |
|
|---|
| 91 | If you find any other bugs, please report them at http://dev.wp-plugins.org/newticket |
|---|