So my first theme is coming along nicely. I am surprised at the amount of progess I've made so far. I am now stuck on something however, and I'm hoping the Drupal geniuses on the site will help me out.

I would like to use an image instead of the red asterisk for notification of new posts and comments on the tracker module. Unfortunately, I have been unable to figure out how the asterisk is generated in the first place. Is it in the tracker module? How would I go about modifying my style.css file to override the asterisk in place of a small .gif file?

I am going for something like this:

http://www.flickr.com/groups/central/discuss/

Any ideas on how I go about doing this?

Thanks in advance...and HAPPY NEW YEAR!

-Justin

Comments

jps0611’s picture

I forgot to ask if it's possible to have user images displayed in the tracker module like in the link above...is there a way for user images to be automatically converted into tiny thumbnails for display in this manner?

Thanks

-Justin

Steve Dondley’s picture

Most output is in a theme_* function that can be overridden. One way to find out if the html generated by the tracker.module is in one of these functions is to do a search on some of html on your page. See if it turns up in a theme_* function and then override that function to change its output. Again, see the handbook for more info on overriding themes.

--
Get better help from Drupal's forums and read this.

Steve Dondley’s picture

You want to override the theme_mark function in the theme.inc file.

Check the handbook if you need info on overriding theme functions.

--
Get better help from Drupal's forums and read this.

paddy_deburca’s picture

Basically,

.marker {
  background: url(path/to/image.jpg) bottom left no-repeat;
  text-indent: -2000px;
}

You may have to play with it a bit (or a lot). The idea is to display a background image and left indent the asterix by 2000px off the screen. Normally no PHP code changes are necessary.

Paddy.

http://deburca.org, and http://amadain.net

L. Allen Poole’s picture

I've looked in
http://drupal.org/handbook/modules/tracker
and in the forums, and I've experimented on my site...
it's still not clear what that red asterix in Tracker (recent posts) means. Some nodes have it, some do not. "Newness" and comments/revisions do not seem to predict the asterix or its absence.

Thanks,
Allen