Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-01-12 02:59:40
- deronsizemore
- Member
- From: Kentucky
- Registered: 2005-11-02
- Posts: 324
A few questions concerning comments
My site: http://www.deronsizemore.com
I have a few questions pertaining customizing some aspects of my site.
1. On the homepage where my entries are displayed you’ll see “Comment [2]” or whatever. This is just a personal thing, but I’d like it to display that same thing only like this format: “2 Comments”. I’m having a difficult time figuring out how to do that. I see the txt:comments_invite tag in the default article form, but I don’t see how to edit that.
2. Once clicking on the blog entry it takes you to the post and then has the comments displayed below the entry. I would like to word “Comments” displayed above the comments to just kinda give a break in the flow and show that this is where the comments start. I added an H1 heading of “Comments” to the comment form, but it ended up displaying the words “comments” before it displayed the permlink to the article, if that makes any sense.
3. As far as the comments themselves go, I feel like I need some kind of background highlight to separate them. I feel like they are running together somewhat. I like how Solar Dream Studios has their comments set up in this article with the light grey background: http://solardreamstudios.com/archives/news/revbutton-tutorial. Am I going to need to edit my comments form in TXP or is this something that is done in my CSS file?
4. Last question is I was wondering if there is any way to completely get rid of the “preview” button? I’d like it to just say “submit” first rather then having to preview it first. If not, it’s cool. This is just me being picky. :) I took the txp:comment_preview tag out of the comments form, but that didn’t work. So was just curious.
Thanks in advance for all of the help I continue to get here. To think I was ready to give up on TextPattern a month ago because I thought it was way to hard.
-Deron
Last edited by deronsizemore (2006-01-12 03:00:04)
Offline
Re: A few questions concerning comments
1. Change the comments_invite tag to <code><txp:comments_invite showcount=“0” /></code> and then infront of it add <code><txp:comments_count /></code> tag.
2. Add your h1 to the top of the comments_display form template.
3. To separate the comments like that you need to style ol.comments li in your CSS.
4. I don’t think there is one that is working properly with the current TXP version though I could be wrong there. It’s not something I follow closely. Don’t forget that by doing this you remove a certain amount of spam protection.
Last edited by thebombsite (2006-01-12 04:53:00)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#3 2006-01-12 14:17:51
- deronsizemore
- Member
- From: Kentucky
- Registered: 2005-11-02
- Posts: 324
Re: A few questions concerning comments
On question number 1, is there anyway to have it displayed as “2 Comments” when there is more than one? Right now it has “2 Comment”. I was looking though txp magazine and noticed a lot of sites had it saying “comments”.
I don’t know what question number this one pertains to, if any, but if you click on either the first or second article you’ll see that below the article it now has either the number “1” or “2” below the article and before the comments. Is there a reason it’s there? I don’t remember it before I made these last changes, but I’ve only changed what you said to change.
Yeah, you’re right about question 4. I never thought about that.
Lastly, is there are list of classes somewhere that I can write down or save, so I will know what to style in my CSS to get a desired look? Or are the classes for different txp tags/forms just obvious and I’ve not picked up on it yet?
Thanks for the help! :)
Offline
Re: A few questions concerning comments
You can set the default “comments” text in your “preferences”. I’m not sure if the change is applied backwards though. You may have to resave your existing articles. The number that is appearing in individual_article view is the number of comments. Surround the tag with another set of tags like so:-
<code><txp:if_article_list><txp:comments_count /></txp:if_article_list></code>
<br />
As for classes there aren’t that many that TXP puts in itself. They will mostly be ones that you add. If you need to find a TXP generated class or id simply view your page and switch over to source code.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#5 2006-01-12 23:29:49
- deronsizemore
- Member
- From: Kentucky
- Registered: 2005-11-02
- Posts: 324
Re: A few questions concerning comments
Oh okay. I see now. So I could basically do something like this: <txp:comments_count class=“blah” /> and set the class that way?
-Deron
Offline
Re: A few questions concerning comments
No you can’t add classes to the tags. You need to add your own formatting tags, so you might end up with something like:-
<code><p class=“invite”><txp:if_article_list><txp:comments_count /></txp:if_article_list> <txp:comments_invite showcount=“0” /></p></code>
<br />
You need to use < code>< /code> tags here (without the space) to show code properly.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#7 2006-01-13 03:28:55
- deronsizemore
- Member
- From: Kentucky
- Registered: 2005-11-02
- Posts: 324
Re: A few questions concerning comments
Oh okay. I see now. Sorry about the code…I was wondering what was going on. I’m used to VBulletin and the [] brackets. Thanks :)
Offline
Pages: 1