Since this is site is intended to facilitate social conversation on the submitted items, it would be best if the contributors were clearly identified.  It can be entertaining to see that an item was submitted by xenawarrierprinces531, but this doesn’t help as much with social dialog as it would to see the contributor’s real name associated with the item.

The contributed Authorship module can substitute a real name for the username in the “Submitted by ” line.

First -
Activate the Profile module, part of the core installation; and install & activate the Authorship module.
At
Administration > user management > profiles
create a user profile field to hold the user’s real name:
create a single-line text field
Category – personal information
Title – full name
Form name – profile_fullname
Explanation – your full name, as you would like it to read on items you submit
check the radiobutton, for “Public field, content shown on profile page and on membership list pages”
check the checkboxes for
user must enter a value
visible in user registration form

This will  add a tab “Personal information” on the user profile page, under which a field will appear for the user’s full name; this full-name field will also appear as a required field on the user registration form.

Now, at
Administration > content management > content types; Scoop
near the bottom of the page,
check the radiobutton for “Enable authorship module functionality”
enter “profile_fullname” (without the quotes) in the field labeled “The profile variable name used to store the real name”

The user’s full name (rather than their username) will now appear in the “Submitted by ” line of each submitted item.

One Response to “Drigg site configuration #7 – authorship”
  1. admin says:

    The author’s full name does not display in Comments, even with the authorship module, in the current Drigg theme.

    To fix this (and to include the date of the comment, in addition to how long ago it was posted) -

    in the file comment.tpl.php (in /sites/all/themes/drigg_theme/)

    change the line

    < h4>< ?php print theme('username', $u); ?> < small>< ?php print format_interval(time() - $comment->timestamp, 4); ?> ago< /small>< /h4>

    to

    < h4>< ?php print ' ' . $author; ?> < small>on < ?php print $date; ?> (< ?php print format_interval(time() - $comment->timestamp, 4); ?> ago)< /small>< /h4>

    (be sure to close up the spaces between the opening < h4 and closing < /h4, and the opening < small and closing < /small, in the code above)

Leave a Reply