I came across some PHP code for a lightweight commenting system (http://www.jswidget.com/lab/easy-comment.html) that works well in my plain HTML tests, and wonder if it might be possible for me to implement in the PP skins. I'll lay out the basics, then you can tell me *if* what I want to do is possible, and point me in the direction of *how*....or please feel free to just tell me to "go pound sand".<g>
Implementing the system involves two Javascript code blocks in the page <HEAD> section, a <DIV> block on the page where the comments are to be displayed (with an ID accessible to the commenting system), and a single function call after the page is loaded to add the comments in the <DIV> block.
The script blocks in the <HEAD> element are essentially:
Code: Select all
<script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<script type="text/javascript"
src="http://www.mysite.com.com/easy-comment/jquery.easy-comment.min.js"></script>
Code: Select all
<div id="visitor-comments"></div>
Code: Select all
<script type="text/javascript">
jQuery(document).ready(function(){
// Your other javascript code if any
$("#visitor-comments").EasyComment({
path:"/easy-comment/", //Change it to the folder where you put the easycomment files
moderate:true,
maxReply:5,
hasSubject:true
});
// Your other javascript code if any
});
</script>
Tim, I don't want or expect you to spend any time with this...like I said, just looking into possibilities, and I won't be offended if you tell me to "go pound sand"!
Thanks,
Mark Wilsdorf