By anriettec on
Hi,
I would like to add stories to my websites, but the author will be people not registered on the site, if I add a user in the 'Authored by' field, and submit, I keep getting the 'THIS_USER' is not registered.
How can I bypass this so that I can add authors that are not registered?
Comments
Authored by field is by design not a free text field
It is intended to be used for a registerd user (like yourself) or left as 'anonymous' if created by an unregistered user.
I can recommend two solutions: the first is to simply add the Author's name in the body field of your submission.
The second, better solution would be to upgrade your site with the CCK (Content Construction Kit) module and add a new "Author" text field to your content type. You could then enter the author's name in this new field.
Brian Gilday
Municode
www.municode.com
Thanks for the heads up, but
I have created an extra field in the Story node type, named 'field_author'. How do I go about accessing?
How can I modify what Drupal outputs for the 'Authored by' line?
I remember I have seen a function for doing that, but I can't remember where/when.I have used the following function to output it:
function hanna_node_submitted($node) {
if ($node->type == 'story') {
return t('Article by !username',
array(
'!username' => theme('field_author', $node),
));
}
}
BUT it outputs:
Article
Author:
Author's Name
It there somehow that I can hide Author:?
Fixed it
It took a bit of hunting, but I eventually got the answer: