Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Displaying of the Comment Preview
Howdy all. I’m working on adding comments to my photoblog, and well, a few issues have arisen.
First off, and I’m sure there’s an easy answer that I’m just missing, but when I preview a comment, the preview is at the top of the page and then the article is below it. Is there a way to get rid of the article being there?
Second, the form for comments is being wrapped in a <code><div class=“comments-wrapper”></code>, and I, for the life of me, can’t figure out how to get rid of that div.
I think that’s all for now. Here are the related forms, if it helps. Cheers.
comments<br />
<code><p class=“commentHeader”><txp:comment_name /></p>
<txp:message />
<p class=“commentFooter”><txp:comment_time /> | <txp:comment_permlink>#</txp:comment_permlink></p></code>
comments_display<br />
<code><txp:if_comments_allowed>
<div id=“commentArea”>
<h2>Comments</h2>
</txp:if_comments_allowed>
<txp:if_comments>
<txp:comments wraptag=“div” class=“commentBox” />
<txp:else />
<p>No one has posted any comments yet. Be the <a href=”#txpCommentInputForm” title=“post a comment”>first</a>.</p>
</txp:if_comments>
<txp:if_comments_allowed>
<txp:comments_form wraptag=”“ class=“whoaaaooo” />
</txp:if_comments_allowed>
<txp:if_comments_disallowed>
<p>I&38217;m sorry, comments are turned off for this photograph.</p>
</txp:if_comments_disallowed></code>
comments_form<br />
<code><fieldset><legend>Comment on this photo</legend>
<txp:comments_error />
<p>Basic Textile is enabled (<txp:comments_help /> ).<br />Emails are required but will never be shown or released.</p>
<p><label for=“name”><txp:text item=“name” /></label><txp:comment_name_input /></p>
<p><label for=“email”><txp:text item=“email” /></label><txp:comment_email_input /></p>
<p><label for=“web”>http://</label><txp:comment_web_input /></p>
<p><label for=“message”><txp:text item=“message” /></label><txp:comment_message_input /></p>
<p><txp:comment_remember /></p>
<txp:comment_preview /><txp:comment_submit />
</fieldset></code>
Offline
Re: Displaying of the Comment Preview
http://textpattern.com/weblog/127/customizing-previews-for-commenting-in-the-upcoming-402
Second, the form for comments is being wrapped in a
<div class="comments-wrapper">
, and I, for the life of me, can’t figure out how to get rid of that div.
What is the reason for wanting to get rid of it? It was added because of XHTML strict, see this discussion:
http://forum.textpattern.com/viewtopic.php?id=13653
Offline
Re: Displaying of the Comment Preview
Thanks for the customized comment preview pointer, Sencer. It came in really handy!
“A hero is no braver than an ordinary man, but he is braver five minutes longer.” – Ralph Waldo Emerson
Offline
Pages: 1