How to check the user who's update content?

Events happening in the community are now at Drupal community events on www.drupal.org.
megapinn's picture

Hi everybody,

Only local images are allowed.

In this picture, I want to change "By: admin" to "By: user, who update content".

How to I change it?

PS. I use drupal 6.14 and Views Module 6.x-2.8 and this my view's setting.

Only local images are allowed.

Now, I can do it.

Only local images are allowed.

Credit : DeeZone

Comments

More info...

DeeZone's picture

Magapinn,

It's always helpful to provide as much information as you can when posting a question.

For starters:

-> What version of Drupal,
-> The tools you used to generate the content: is it a block from an installed module or generated from Views?

Then it's helpful for you to provide your level of knowledge. It will save everyone time if there's an understanding of the level of detail you're looking for.

Off the top of my head, can you confirm that an account other than "admin" has updated the content? Based on how the block is generated we can go from there to adjust the output.

Ah yes...

DeeZone's picture

I just noticed that we're in the "Views Developers" group so I assume the block is from a View. Next question once again is what version of Views on what version of Drupal? It would also be helpful for you to post a screen shot of the Views configuration page that this block is generated by.

Thank you

megapinn's picture

Thank you , DeeZone.

I used Views module 6.x- 2.8 and drupal 6.14.

Now, I post a screen shot of my views configuration in the content.

I'm not excellent English. Sorry for any wrong sentence composition which may occur.

The answer...

DeeZone's picture

No worries about your English, it's not an issue.

1) Add an entry to "Relationships" -> Group: "Node Revision"

2) select -> Node revision: User

You should now have an entry under "Relationships" of: Node revision: User

3) Add an entry under "Fields" -> Group: "User" select -> User: Name

In the configuration form that is presented, select "User" in the Relationship drop down listing and save

You should now have an entry listed under Fields of "(user) User: Name Name". The brackets "()" tell you that a relationship is in use for the field. In effect, you've created a JOIN in the SQL being generated. This view should now include a field Name:

Please feel free to ask questions if you need this broken down further.

Thank you

megapinn's picture

Thank you very much, DeeZone for your advice.

My Pleasure

DeeZone's picture

It's my pleasure. All I ask is that you help others as you figure things out in Drupal Land :)

Oh Ya

DeeZone's picture

If you can, please post a new screen shot of the view with the addition of the new settings. This will make a good reference for those who are trying to solve the same issue and find this discussion.

Thanks!

Views Developers

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: