"Embedding Comment Box into the Layout Problems", 3rd Aug 2012, 4:02 AM #1
Hey everyone, I'm in need of some help.
I'm trying to get the comment box to show up in the layout itself, so that no pop-up window appears. I've been using the It Figures guide, which is fairly outdated since I had to change up some of the coding manually. But I had some amount of success, I was able to embed an iFrame with a comment box into the layout.
Now, here's where I'm having problems.
1) How/where do you customize the comment box (change the colors/field descriptions)?
2) How do you make it so that the entire page refreshes when someone makes a comment? (Tried the It Figures code -- no dice!)
3) How do you center the iFrame comment box?
Here's what I got for the iFrame.
I might be in need of more help in the future. I'll also note that I'm a complete idiot when it comes to coding, so please excuse my stupidity. Also, for your reference, this is how the comment box is appearing in its natural, gray, non-centered form: test site link.
I'm trying to get the comment box to show up in the layout itself, so that no pop-up window appears. I've been using the It Figures guide, which is fairly outdated since I had to change up some of the coding manually. But I had some amount of success, I was able to embed an iFrame with a comment box into the layout.
Now, here's where I'm having problems.
1) How/where do you customize the comment box (change the colors/field descriptions)?
2) How do you make it so that the entire page refreshes when someone makes a comment? (Tried the It Figures code -- no dice!)
3) How do you center the iFrame comment box?
Here's what I got for the iFrame.
<div style="display: block; margin: 0 auto; width: 800px">
<iframe src="[v:commentlink]" id="commentFrame" style="width: 80%; height: 300px;">
<a href="[commentlink]">Leave a Comment</a>
</iframe>
</div>
<script type="text/javascript" src="/files/static/jquery-1.3.2.min.js"></script>
<script type="text/javascript"><!--
$(function() {
var commentFrameLoads = 0;
$('#frame').load(function() {
if (commentFrameLoads==1){
top.location.assign(location);
}
commentFrameLoads++;
});
});
//--></script>I might be in need of more help in the future. I'll also note that I'm a complete idiot when it comes to coding, so please excuse my stupidity. Also, for your reference, this is how the comment box is appearing in its natural, gray, non-centered form: test site link.
_______________________



