This is an issue I have been struggling with since installing Drupal. That is, the 'author' credit assigned to posted content is the User login ID and not something like a name stored in the Profile.

I did try installing the authorship module:
http://drupal.org/project/authorship
As I thought this was the item to allow me to change the author name based on something stored in the Profile. But, I can't seem to figure out how to make that work. It is installed, and enabled, but from there I'm lost as to how to proceed. Am I supposed to insert some kind of code into the Authorship section of a post to refer to a profile field?

I have seen other posts where the recommendation was to alter the node template itself. While I think I follow how to do those, I'm reluctant to go that far as it seems to be a 'hack' that I'd have to be continually doing whenever Drupal itself is upgraded. Suggestions on alternative approaches are appreciated!

Comments

.carey’s picture

Your node template file (or any template file for that matter) is part of your (custom) theme and is completely separate from Drupal's core, which means on upgrades you will not (and should not) override your custom theme files, they stay the same. Therefore, making alterations to your node template file will not produce adverse effects when you upgrade.

Cheers,
Carey

michelle’s picture

I've never used this module but it looks like it has a pretty detailed readme.

Michelle

--------------------------------------
See my Drupal articles and tutorials or come check out life in the Coulee Region.

IreneKraus’s picture

Michelle, I know the ReadMe file looks like it has the info. Okay, as briefly as I can explain things...

With Authorship installed and the Access Control items turned on for a given role, where do I go to change the information? If I click under the Authoring information section of that content and try to change what is showing in the Authored By field, Drupal gives me an error and says a user by that name does not exist... Unless I'm supposed to make this change somewhere else. I looked at the Profile to see if there was some new field added there a user could store a name they want to be used for display. Nadda... So, I seem to be going 'round in circles!

As a work around - for now - I've gone ahead and change my own user name to my 'real' name as stored in my Profile. So, everything at least looks right! But, I'm going to be integrating SMF's forum into Drupal quite soon, or I intend on doing so, and my user name in SMF is quite different! (Within SMF there's a field called 'display name' in the Profile you can set for posts.)

http://www.design-comp.com/node/34

Thanks for the suggestions though, keep 'em coming!

PS - Just followed the links to your site, Michelle, and I see the info on the Advanced Forum work your planning! Cool! Definitely going to get involved in that group somehow, as soon as I figure out how to do it!

Irene Kraus a.k.a. The Computer Lady

michelle’s picture

Again, I haven't used this module, but just going by what it says in the readme it looks like you need to define a profile field to hold the real name then go to Admin >> Settings >> Authorship and tell it the name of the field you created.

I have no idea how you'd integrate that with SMF as I've never used anything but Drupal's forums.

Michelle

PS: You edited as I was writing so I missed it... Advanced forum is meant to work with the Drupal forum module. It won't do any good with SMF, sorry.

--------------------------------------
See my Drupal articles and tutorials or come check out life in the Coulee Region.