Any chance you could put each part of the statistics output in its own <div> so they can each be styled independently?

Specifically, I do not want to see the "Welcome to our latest member..." line so would like to style it display: none, but that line is part of forum-statistics-statistics-body so suppressing it will also eliminate the "Topics: x, Posts: y, Users: z" line. (It would also be good to <div> each of these elements so they can be independently styled.)

Thanks for considering this.

Comments

michelle’s picture

Version: 6.x-1.1 » 6.x-2.x-dev

I'll look into more specific naming, but that would be in 2.x. Using display none really isn't the proper way of doing it, though. You should copy the .tpl file to your theme and remove the parts you don't want to show.

Michelle

kgm’s picture

I'm reluctant to create my own .tpl because I would need to (remember to) re-apply the changes everytime I update the module, if necessary. Thus I'd prefer to do it with custom.css which won't require changes on module update, unless an id gets renamed, which I would guess is less likely than the .tpl receiving some modifications.

Kevin.

michelle’s picture

Er... Huh? Why would you need to re-apply changes to your own .tpl every time you update the module? AF doesn't reach into your theme and delete your files. :) Creating your own copy of a template is the "best practice" way of modifying the theming of a module. You can, if you want, use CSS to hide things, but it's really not necessary.

Michelle

kgm’s picture

I meant re-apply the changes to a new copy of the base .tpl from the module. If the base .tpl I copy changes between module versions in a fashion that makes my original copy invalid, I need to do it again. Are you saying that the set of .tpl files and their available variables never changes across versions? if so, great.

michelle’s picture

In 1.x, which you're using, I can pretty much guarantee that won't change unless some security issue pops up. 1.x is done and I'm only touching the styles when absolutely necessary. As long as you stay on the stable version, changes to templates will be minimal. That's intentional because I realize that people customize their styles and I don't want to be making them redo their changes every point release.

Michelle

michelle’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.