Drupal has a recent posts module and recent comments module, but the thing that bothers me is that you cannot easily make it show the user. I see this on some other sites: "some type of post" , Username.

I want to make my drupal site do this, and I'm fine with altering the files. I just don't know where. I'm thinking I will need to put a ",$username" or something somewhere.

Can anyone help me?

Comments

nevets’s picture

If II understand correctly you want to be able to list recent content showing the content type and author name. If this is correct this can be done with the views module. I would set up either a table or list view, select "Node: Type" and "Node: Author Name" for fields and "Comment: Created Time" (for new content) or "Node: Updated Time" (for updated and new content) for sort criteria.

perien’s picture

but do you know which files I need to alter to change the default on the currently existing Recent Posts or Recent Comments block? I'd like to alter these, if I can.

RVOCE

nevets’s picture

I strongly recommed against changing core file as it make updating your site hard/impractical.

WorldFallz’s picture

definitely don't change core-- you'll regret it immensely later on. Plus the views module is much more flexible. Just set up the views blocks you want, disable the provided blocks you don't want, and publish your new custom blocks.

perien’s picture

I wont mess with the sacrosanct Drupal core files ...
this bugs me about Drupal though: you always have to add some new module to do any fine tuning. It just seems like overkill at times, you know?

Thanks though.

RVOCE

WorldFallz’s picture

it's not a matter of Drupal core being sacrosanct. Drupal is open source, you can do whatever you want with it.

For me it's purely self-preservation. Maintaining core tweaks quickly becomes a nightmare whenever you want to upgrade. I know a tweak here or a tweak there doesnt' seem like such a big deal-- I didn't think so either. Until i had a couple of sites with several different tweak here and tweak there's to upgrade repeatedly. I learned the hard way-- was just trying to spare you that pain is all 8-).

Security updates are a GOOD thing, but I found myself not doing them in a timely fashion because I didn't have time to update my tweaks. Before I knew it, D5.0 was at D5.7.

And I know exactly what you mean about adding modules-- but having used Drupal almost a year now, I've come to love that very modularity I thought was overkill. But as with anything, ymmv.

I've gotten to the point where I maintain all my sites with a drupal multisite configuration using one core checked out from CVS. Updating my sites is simply a matter of one single cvs update command. It's not nearly as difficult as it seems but not possible with individual site core tweaks. Plus, as soon as you have a couple of core tweaks you have to document them, maintain them, and redo them for each upgrade. blech.