Hi All,

Just wondering if it was possible to set the author of a node with any name you want? Some of the authors on my site will not actually have accounts, and I don't want to have to create a dummy account everytime I want to set the author name to what I want. Also, is it possible to configure Drupal so that it uses a custom field from the profile moduke as the node author name? For instance if I had a field in the profile module called "Full Name", could drupal use that and then only use the Drupal username if there was no full name specified?

Comments

Muslim guy’s picture

If not mistaken, you can edit the `Submitted by NAME on `date' by editing your theme file.

For example, using pushbutton theme, you need to go to themes/pushbutton and edit the line

Replace %name with text

Internet for ISLAM, get to know Islam and Muslims :) May Allah brings you to the Straight Path
http://muslimin.org/Islam

themedicineshow’s picture

Yeah I need to do the same thing. The post above just tells you how to override the %name globally, but we need to have custom Author names because the person adding the stories to the site will not be the author of the stories. If there is a way to add a field to the add/edit story page for a Custom "by-line" that would be perfect. Creating a dummy user account for each author of an article is apparently our only option, but this is a huge pain. The "editor" that adds stories to the site will need to log in as 1 author, add a story, log out, log in as another author, etc? That's a terrible workflow, IMHO. I am hoping I don't actually have to tell the client they need to do that.

Someone post a helpful tip, plz.

Thx.

themedicineshow’s picture

Flexinode can be used for this...

http://drupal.org/node/35273

I'm posting this here and other places where I saw this request so no one else has to read 25 pages of search results to find it like I did.

:)

Muslim guy’s picture

The top admin can change the node's author name, as well as the content, title, date, and category.

But the name must exist (i.e registered maybe as a dummy?).

brashquido’s picture

That's the point. If you have many once off authors on your site, you don't want to be creating a dummy account for every single one of them. The Flexinode solution is about the closest thing I've seen to solving this problem, but it then has the reverse problem. That is you are able to enter arbitrary text as the author name, but you are unable to verify author names against existing Drupal accounts. For me, I don't so much want to be able to enter arbitrary text as the author name, but rather use something other than the username to represnt the author such as a custom "Real Name" field from the profile module. Another issue with the Flexinode solution (a small one) is that you are unable to use the "about the author" block that is new in Drupal 4.7. Ideally what I'd like to have is a three tier system that the admin is able to select when publishing/editing nodes;

1) Use Drupal username (as it is now)

2) Use arbitrary text (such as flexinode solution)

3) Use a user definable field from the profile module. Should no value for that field in the profile module exist, then fall back to username or arbitrary text.

----------------
Dominic Ryan
www.it-hq.org

maybourne’s picture

Hello,

I am also interested being able to change the author name to whatever is entered. I don't like the fact that it has to be a user in the system. Seems forced to me. I like freedom. We should be able to type in whatever we want! :)

Is flexinode the only way to get this done? and does anyone know if 4.6.0 flexinode works with drupal 4.7.0?

Thanks in advance!

sepeck’s picture

The origins of Drupal are in community systems allowing pariticipation by users and tying nodes to users is important. Flexinode and cck will work for this and 4.7.

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide