Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-08-14 18:15:27
- deronsizemore
- Member

- From: Kentucky
- Registered: 2005-11-02
- Posts: 324
Comments are giving me a migraine!
I’m trying to style my comments, and having the hardest time doing so…well this is just one of the things I’m having trouble with. Seems I finally wrapped my mind around creating pages in textpattern, but now the more I dig the harder it seems to be.
Anyway, again for those of you who haven’t been following my 15 other “help” posts here, my website is <a href=“http://www.kentuckygolfing.com/article/15/this-is-another-test#comment”>http://www.kentuckygolfing.com/article/15/this-is-another-test#comment</a>
Fist of all, I’m wondering why there is a “comments” form and a “comments_display” form? Can these not just be combined into one form? Seems they deal with more or less the same thing, and it’s confusing the heck out of me.
One thing I’m trying to do is have alternating colors for my comments (I know, me and everyone else here right?). I’ve read some other threads on this, but with no luck. One thing I’m stuck on is where to even post the ajw_comment_alt code? I view the “help” that comes with installing the plugin and it says it’s made to be used with “your default comment form”…well I have no idea which of the two comment forms is my default one. Second it gives you an example of the code like so:
<code>
<div class=”<txp:ajw_comment_alt />”>
…other comment form stuff…
</div>
</code>
I’m confused on “what other comment form stuff” this is? So I have no idea where to put the code. I had the code in my “comments_display” form like this:
<code>
<h3>Comments</h3>
<br />
<txp:if_comments_allowed>
<div class=”<txp:ajw_comment_alt even=“foo” odd=“bar” />”>
<txp:comments break=“li” wraptag=“ul” />
</div>
<txp:comments_form />
<txp:else />
<p><txp:text item=“comments_closed” /></p>
</txp:if_comments_allowed>
</code>
But that did nothing at all…and I’ve tried placing the plugin code everywhere else I can think of in every form dealing with comments and still nothing happens. I’ve edited the css for this by adding .foo {background: ###} and .bar {background:###} and still nothing happens.
Can anyone point me in the right direction, because going around in circles is getting old.
Offline
Re: Comments are giving me a migraine!
As Mary said, the comment forms will be quite different in TXP 4.0.4
So that may help clear things up at that point..
But regarding ajw_comment_alt, you’ll probably have much better luck if you post this in the ajw_comment_alt thread :)
I figure the “other comment form stuff” refers to things like <code><txp:text item=“name” /> <txp:comment_name_input /> <txp:comment_message_input /></code>, etc.
Last edited by alicson (2006-08-14 18:38:11)
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline
#3 2006-08-14 18:48:37
- deronsizemore
- Member

- From: Kentucky
- Registered: 2005-11-02
- Posts: 324
Re: Comments are giving me a migraine!
Thank you for pointing those out. I’ll have a look. :)
Offline
Re: Comments are giving me a migraine!
To add to alicson’s post, I grabbed the default forms from TextBook, which are what will ship with 4.0.4 and it made my comments section so much better.
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
#5 2006-08-14 19:48:42
- deronsizemore
- Member

- From: Kentucky
- Registered: 2005-11-02
- Posts: 324
Re: Comments are giving me a migraine!
Bert,
I’m thinking that is what I might have to do…just grab the default forms from textbook and start from scratch. I think right now I’ve just got so much going on that it’s confusing me. I’m trying to add a plugin code on top of the modifications that I’ve already made, etc…so maybe starting from scratch with the comments is what I need.
Thanks
Offline
Pages: 1