This forum is for assistance with theme development.

phpTemplate: Alternating classes for comments

In my continued effort to make forums look as different as possible from other node/comment pairs, I was wondering if anyone had suggestions on how to alternate the class for a series of comments.

I think node.tpl.php has something like $node_count - I'm looking for something equivilent for comments if such a thing exists.

Objective is to have alternating background colors for a series of forum comments.

xtemplate: don't show "submitted by"

i'm trying to make my own theme out from the bluemarine theme.

i've disabled showing post information for pages, which is working with the bluemarine theme.
but not so in my own theme, there it is displayed!

this is strange, because i've just copied the bluemarine theme to a new directory and at the moment i've not done any changes to the template, except some css.

i'm afraid, i can't see why?
could somebody explain it to me?
thanks..

phpTemplate: $node object in comment.tpl.php ??

Background: I'd like to theme my forums comments differently than blog comments. To do this, I'll need to know the parent node 'type' within comment.tpl.php

The documentation touches on overriding functions to add variables, so I tried adding a template.php file containing the following:

Where do I include myfunctions.php to make it available sitewide during node content creation?

I would like to make an external function library or class available site wide during content creation (Input format: PHP code). So that when I'm creating content I can use class member functions.

I've tried to include myfunctions.php at the top of the page.tpl.php but the functions (and variables) are not available during node creation. Could someone tell me where I should put this include?

Thanks

Lock text size

I run a corporate website, I have clients that alter the text size in their browsers. Then they call me saying the text is so small they can't read anything.

Is there a way in css to lock the text size?

I'm really starting to like CSS

Greetings,
I'm using Marvin, but I didn't like the the Forum looked. I wanted to look like peole are use to seeing. Very like the Forum here. So, I browsed through the other themes and found that the Pinpoint theme had a closer to what i was looking for Forum.

So, not knowing any better; I went any copied the extra definations from the pinpoint CSS for the forum and did a paste into the bottom of my style.css. Did a little bit of color changes and presto-mesto. It worked. :-)))

Pages

Subscribe with RSS Subscribe to RSS - Theme development