Page 1 of 1

Using serendipity comments for separate website?

Posted: Tue Jul 29, 2008 5:49 pm
by Mekk
(Just evaluating options, interested in suggestions)

Apart from serendepity blog, I have a non-blog website. And I think it could make sense to add user comments to some of its pages. One of the ideas is to borrow serendipity comments somehow (technically - by <iframe>ing something, ajax-ing something, or sth similar)

Have anybody tried sth similar? Does this idea make any sense, or may happen to be more work than it is worth?

Re: Using serendipity comments for separate website?

Posted: Tue Jul 29, 2008 7:26 pm
by garvinhicking
Hi!

Phew. That's really so much more work to integrate, than building it yourself.

The s9y comment routine relies heavily on the whole s9y framework, you cannot embed it on itself without ripping a lot of s9y functions, the whole database layer etc. An iframe only will not do, and using ajax would mean you'd need a kind of wrapper to access the s9y framework.

Plus, comments in s9y are attached to Entry-IDs. You would need to create fake entry id's for those pages in the database table, or they could not be associated with comments...

Regards,
Garvin

Posted: Tue Jul 29, 2008 7:55 pm
by judebert
And if you're going to make a fake entry for the page, you may as well just copy page contents into a real entry. With a bit of theming work, you could duplicate your whole site in Serendipity. Then you get comments, plus searching, the ability to add new pages, and sidebar contents dynamically.