Otterman speaks... (2003-2007)
Weblog about cycling, macintosh, natural history and life in Singapore.
Otterman - Blog Home

Archives - Blog's RSS - Comments RSS - LJ - Email me - All my blogs - About me: 2004 - 2002

Make a permalink or URL tiny:
Blog email subscription

Enter your email address to receive the previous day's posts:

Categories

Mac and the Internet - NUS
Cycling - Life in Singapore - Meow
Singapore Naturalist - Mangroves
Science - World - Museum
Movies - Literature - Travel

Biology module blogs:
Biodiversity (Year 1)
Ecology (Year 3)
Structure & Function (Year 3)
Marine Biology (Year 4)
Natural History Blogs:
The Biology Refugia
Raffles Museum Toddycats
Intl Coastal Cleanup Singapore
Labrador Park
Pulau Ubin Stories
Pulau Hantu
Yesterday.sg
Cycling in Singapore
Mac Meetup Singapore
Aboard the Götheborg
Otterman Projects
Herpnet
Zendogs/Wheels are Turning
Hopea sangal


Raffles Museum Toddycats!

Pedal Ubin!
Pasir Panjang Heritage
Raffles Museum Internship
MR-BT Briskwalkers



Mac Meetups
Singapore

Some of my kakis

Kakis at home
Lekowala
Ad & Jen
Inertia is a Sin
Halfway between the gutter and the stars
Lost in the Jungle
Dawn, Cat Welfare
Compulsive Maniac
Deadpoet's Cave
Rambling Librarian
Cooler Insights
Pencil Shavings
Moi-Carine
NatureAntz
Ling the Merciless
Philosophize Me Jelly
Dewi A

Kakis overseas
Alvin - Beijing, China:
* Alvin's spiel
Kevin - Buffalo, NY:
Theory is the Reason
Bonny - HCMC, Vietnam:
VietStuff
Jac - London, UK:
Dogged Wanderings
Jasmin - NY, NY:
The Worsted Witch
Marcus - Shanghai, China:
You only live once
Tse-Lynn - Wilmington, NC:
Musings of a barefoot traveller
Jani - Newcastle, UK:
Salted & Fried

Seow Hwa's
The Ice Cream Gallery

Local reads
Commentary Singapore
Singapore Surf
Tomorrow.sg
Screenshots

Resources
SinGeo
Museum Roundtable
Science Daily
Environmental News Network
National Geographic News
New Scientist news
Nature News
Google News
BBC
Resource Shelf
The Unofficial Apple Weblog
Boing Boing
Wired
The Daily Show
www.flickr.com
This is a Flickr badge showing photos in a set called My Handphone Photos. Make your own badge here.
Books


Made on a Mac with
Claris Home Page 3.0.
Blog engine: Samizdat,
based on PHPosxom,
based on Blosxom.
Updated with TextWrangler.

Creative Commons License
© N. Sivasothi, 2003
This work is licensed under a
Creative Commons License.

Subscribe with Bloglines

Otterman speaks...

Cycling, macintosh, natural history and life in Singapore - Archives

List of Categories : travel * museum * cycling * Singapore Naturalist * science * kakis * mangroves * movies * mac and the internet * meow * NUS * life in Singapore * lit * world *

Mon 21 Nov 2005

Adding Haloscan comments to Samizdat

Category : mac and the internet

The original 29 Jul 2005 entry did not work - step 5 was missing; my apologies to anyone who might have been stumped by the earlier instruction like I was..

Samizdat is a phposxom-modified blog engine by Bernard Teo that I use for this blog and three others in the sidebar. It's been modified a little from the original by macaddicts Seng Aik (individual date stamping of posts)., Bernard (archive now lists categories; RSS images fixed).

In June 2005 I scratched my head, and added Haloscan comments, thanks to Richard Newman's script. It strips the permalink to provide a unique identifier for Haloscan to work. However, the strip_ext function he used generated an error but thankfully the net has lots of php help pages and I sorted that out.

So if you use Samizdat, here are the steps for adding Haloscan comments. Note that line numbers are relative.

1. Sign up for a Haloscan account.

2. Choose the mannual installation. In Step 1, Haloscan provides you with a code to copy and paste "anywhere between your HEAD tags in your page." Add this acccordingly to default.php file in the defaultTemplate folder.

3. Open the journal.php file. You will need to add four batches of code which you can download here.

4. Immediately after the start of "# HTML FUNCTIONS" (line 355), add these lines (357 - 361):

5. Add this function to line 370. It strips the ".txt" extension out of the filename, leaving a unique identifier:

6. After the insertion of a permalink line (about line 380), add this script (lines 381-384):

7. Modify the end of the previous line (380) - add a separator after the permalink, and delete the end of paragraph tag.

8. In the function rss story, add lines 425-428:

Haloscan RSS
Under the "Manage Comments" section of your Haloscan account, there is an orange-box RSS feed at the bottom of the page. If you subscribe to that (just click and follow instructions) your news aggregator will alert you whenever someone comments.

If you provide a link to the feed in the default.php file, others to subscribe to the feed to (see link to "comments rss" near top of this page).

Haloscan allows you to modify the comments template, edit or delete comments etc., and a pro account does even more. Now you have the power of Haloscan comments incorporated into the Samizdat blog.

Posted at 8:59AM UTC by N. Sivasothi | permalink | , .