Banner

Instructions for common blog software

Some of the following examples have not been tested (yet). Use at your own risk. Your milage may vary...

The following instructions are based upon the documentation for each application. Please let use know if the following instructions are helpful or not. Thanks.

WordPress

To add The Spotlight Project to a WordPress blog, use something similar to the following: (line wrapped for reability)

    <a href="http://www.thespotlightproject.org/tsp.php?blogUrl=
                                                 <?php the_permalink(); ?>">Spotlight</a>

See the WordPress documentation for additional details.


blogger.com

blogger.com has recently updated their system. The new version uses a different template system compared to the older version. As a result, adding the Spotlight link to your blogger.com blog is dependent upon which version you are using. If you are unsure, the the tage for the newer version. If that doesn't work, then try the tag for the older version.

new bloger

Be careful with the quoting and note the "expr:" near the beginning of the code.

  <a expr:href='"http://www.thespotlightproject.org/tsp.php?blogUrl=" + data:post.url'>Spotlight</a>
old bloger

blogger.com appears to use a single tag ("<$BlogItemPermalinkURL$>") to refer to the permalink of a blog post. (Line wrapped for readability.)

    <a href="http://www.thespotlightproject.org/tsp.php?blogUrl=
	          <$BlogItemPermalinkURL$>">Spotlight</a>

Moveable Type

Moveable Type appears to use a single tag ("<$MTEntryPermalink$>") to refer to the permalink of a blog post.

    <a href="http://www.thespotlightproject.org/tsp.php?blogUrl=<$MTEntryPermalink$>">Spotlight</a>

Drupal

Drupal's default permalink format uses each blog post's the node ID in the URL. While it is possible to config Drupal to use "pretty" URL's, I have not confirmed if "node id" url's will still work. I suspect they will, but be sure to test...

    <a href="http://www.thespotlightproject.org/tsp.php?blogUrl=
	          <?php echo 'http://www.yoursite.com/node/'. $node->nid; ?>">Spotlight</a>

Soapblox

Soapblox uses slighlty differenct code for front page vs diary only pages.

For the front page (frontPage/frontPage.jsp) use:

    <a href="http://www.thespotlightproject.org/tsp.php?blogUrl=
	       http://www.yoursite.com/showDiary.do?diaryId=<bean:write name="diary" property="diaryId" />">Spotlight</a>

For the showDiary (showDiary/showDiary.jsp) page use:

    <a href="http://www.thespotlightproject.org/tsp.php?blogUrl=
	      http://www.yoursite.com/showDiary.do?diaryId=<bean:write name="showDiaryForm" property="diary.diaryId" />">Spotlight</a>

Others

Scoop
Others..