Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#13 2006-03-16 19:28:47
- Jack
- Member
- Registered: 2005-10-10
- Posts: 14
Re: Display Comment Number
hm.. I’m no expert at this but if you’re printing out the comments as a list maybe you can try wraptag “ol”? An ordered list will have numbers instead of bullets, and then you can modify it to do what you want.
Offline
#14 2006-03-16 23:24:41
- whatbrick
- Member
- From: Texas
- Registered: 2006-03-13
- Posts: 100
Re: Display Comment Number
alexandra wrote:
I would love to know how the guru guys customized the comments? Anybody an idea?
Hopefully I do since I’m the one that did it. :)
I used two small plugins that I hacked together (before seeing that they were already done here…argh!). One to alternate colors, and one to count the comments.
The one that alternates colors simply switches classes that are defined in a stylesheet. You can tell it to use three classes, and the third class is used for the site-owner’s comments. If the email entered for the comment matches the one set in the plugin, then it uses the third class. However, that option is easily faked so I haven’t used it much.
I didn’t use an ordered list because I’m no expert at styling those things, so I have no idea if you can put the numbers the list items generate anywhere you want.
Do not taunt the Markup Monkey!
Offline
#15 2006-03-17 01:56:54
- NyteOwl
- Member
- From: Nova Scotia, Canada
- Registered: 2005-09-24
- Posts: 539
Re: Display Comment Number
Jack wrote:
hm.. I’m no expert at this but if you’re printing out the comments as a list maybe you can try wraptag “ol”? An ordered list will have numbers instead of bullets, and then you can modify it to do what you want.
Comments are already wrapped in ol and li when you select “display comments as numbered list”. My problem is that I’m not seeing any numbers.
Obsolescence is just a lack of imagination. / 36-bits Forever! / #include <disclaimer.h>;
Offline
#16 2006-03-17 02:31:22
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Display Comment Number
Comments are already wrapped in ol and li when you select “display comments as numbered list”. My problem is that I’m not seeing any numbers.
Edit your stylesheet.
Alex
Offline
#17 2006-03-17 03:29:52
- NyteOwl
- Member
- From: Nova Scotia, Canada
- Registered: 2005-09-24
- Posts: 539
Re: Display Comment Number
zem wrote:
Edit your stylesheet.
Zen, thank you. I have been bleary eyed tired and it never occured to me that I had cleared both ul and ol of all styles at the start of the stylesheet. I now have numbers to work with :)
Obsolescence is just a lack of imagination. / 36-bits Forever! / #include <disclaimer.h>;
Offline