Insert Disqus into your Sweetcron Lifestream

April 1 2009, 4:48am

Sweetcron is an open source solution for creating a self-hosted Lifestream; a blog-like website that shows your activity across the Web over many social networks. By default there is no commenting system within Sweetcron and this is how you get one!

Open up single.php in your chosen theme found here; /system/application/views/themes/{themename}/single.php

Find “comments_container“

Visit http://disqus.com/admin/tools/

Choose Generic Code

Click Reinstall

Replace the line that begins “Your favourite external commenting service goes here!” with Code Snippet #1

Open _activity_feed.php in your chosen theme (same folder)

Scroll down to “end conditional content” and add “#disqus_thread” to the end of the permalink URL. Change this: <a href=”<?php echo $item->get_permalink()?>”>Comments</a> To this: <a href=”<?php echo $item->get_permalink()?>#disqus_thread”>Comments</ a> Open up _footer.php in your chosen theme (i.e. same folder)

Scroll down to the end, before the </body> tag

Paste Code Snippet #2

And booya! You’re good. Giannii DISQUS Community Manager giannii@disqus.com

disqu