Perennially Sane

Reply to comment

Blogroll, first version

No comments

A few weeks ago, I said I would work on a Blogroll module for Drupal. This module was supposed to display a list of sites defined by each user in their profile, and be able to export this via JavaScript as well.

The module requires a new custom profile field of the type "url". Optionally, one can also use a custom profile field of the type "textfield" as a site title - this is really recommended, because a list of raw URLs looks just horrible. Thirdly, it is possible to set a custom profile field of the type "checkbox" which then determines whether the site of this user is listed or not. By making the checkbox admin-only, the Blogroll can be administered effectively, allowing only approved sites to be listed.

The source of the module is here. Note that it is my first attempt to use the Drupal API, and if you value your site and server, you shouldn't install it.

But the Javascript works. By a simple addition of this code,

<script type="text/javascript" src="http://arancaytar.ermarian.net/export/javascript"></script>

you can syndicate the Blogroll on your own blog, requiring nothing more than the ability to edit the template.

My hope is that if this module can be cleaned up a little, it would finally solve the problem we have at the Progressive Blogger Alliance, where people have been waiting to get their blog listed for a lengthy time.

Reply

The content of this field is kept private and will not be shown publicly.
  • You may use these tags: [abbr], [acronym], [b], [center], [code], [color], [cpp], [css], [define], [diff], [dtd], [font], [h3], [h4], [h5], [h6], [hr], [html], [i], [img], [java], [javascript], [justify], [left], [list], [mysql], [node], [ol], [perl], [php], [python], [quote], [right], [s], [sh], [size], [sql], [sub], [sup], [table], [u], [ul], [url], [wikipedia], [xml]
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Easily link to terms in various wikis. For help, see <a href="/interwiki/3">interwiki</a>.
  • Textual smileys will be replaced with graphical ones.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Powered by Drupal, an open source content management system

eXTReMe Tracker