Recent Comment plugin is working!

April 17, 2007

Thanks Owen again for the direction and tutorial and his new documentation here about writing a plugin.

It was all my fault of not looking into the core class files hard enough. There are 2 classes one url.php and site.php both can give you url of some format to suit your need.

The culprit I found is URL::out('display_posts_by_slug',array('slug'=>$post->slug)). This line echos the url out of control whereas URL::get(.....) returns the url to add up to a string to be returned by the plugin function. Alternatively I could also use Site::get_url('host') or Site::get_url('habari') depending on whether installation is under domain or a subfolder.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: