dm_comments
a php script that accepts and stores comments in an XML cache
using a UID (pathtofilename or tableuid) corresponding to the page.
download zipped (3.9k)
usage:
new dm_comments([string uid [, 'debug']])
instantiating a new dm_comments() object will place comments at the point where it is called. a unique identifier can be passed as the object's first argument. if missing it will default to a slashless, dotless string based on the filename of the calling page. this cannot be guaranteed as unique if the content is coming from a database, so in that case pass a custom uid.
an XML cache directory with write permissions (777, y'all!) is needed. this can be specified during the scripts var declarations, or it will default to a directory called /dm_comments_cache in the same location as the script. so like this:
/where/you/put/the/script/dm_comments_cache
additionally, one can pass the string 'debug' as either the second or the only argument in order to turn on debug mode.
several CSS classes are available for styling. they are:
.dm_comments (main dm_comments div)
.dm_comments_mainheader (main title)
.dm_comments_list (div containing the actual comment paragraphs)
.dm_comments_altp (assigned to every other comment paragraph, starting at p2)
.dm_comments_c_name (span containing commenter name)
.dm_comments_c_date (span containing comment date)
.dm_comments_c_text (span containing comment text)
.dm_comments_form (div containing the post form)
.dm_comments_formlabel (span containing form label)
.dm_comments_formfield (input/textarea fields in form -- not button)
.dm_comments_system (error/system messages to user)
.dm_comments_debug (divs containging debug information)
you can see it below...

comments:
Warning: DOMDocument::load() [domdocument.load]: Extra content at the end of the document in /home/dutchmoney/lib.dutchmoney.com/scripts/dm_xml_cache/comments/dm_comments_testphp.xml, line: 8791 in /home/dutchmoney/lib.dutchmoney.com/scripts/dm_comments.php on line 139
add a comment:
(sorry, HTML is not allowed.)