allowing authenticated users to post stories

Asked by Finn

We want to allow authenticated users to post stories as well as staff users. We have checked these options on the user management>permissions.

However, the problem is that the "by" field does not update to show the authenticated user's name. How can we either get this field to update or to simply not show up and automatically insert the user's name in the "by" field.

Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
ProsePoint Edit question
Assignee:
No assignee Edit question
Solved by:
Finn
Solved:
Last query:
Last reply:
Revision history for this message
bengtan (bengtan) said :
#1

Hi,

The "By" field does not show a list of users, but instead shows a list of "source" content items. This is by design (see http://www.prosepoint.org/docs/content-types.html).

To fill in extra values for this field, create a "source" node for each story provider.

Revision history for this message
Finn (macuhail) said :
#2

With some investigation I did see that the by field came from sources. Since most of our stories are likely to be posted by users, how do I change the by field to be auto populated by the user creating the story?

Revision history for this message
bengtan (bengtan) said :
#3

Hi,

> how do I change the by field to be auto populated by the user creating the story?

You won't be able to do this through site configuration, because this feature is not supported by the source code.

The feature can be added, but that requires editing code.

Revision history for this message
Finn (macuhail) said :
#4

Thanks for the help. Can you tell me where I will need to go (which file) to edit the source code?

Thanks again for the help.

Revision history for this message
bengtan (bengtan) said :
#5

Hi,

Uh, I assume you know Drupal development, otherwise what I have to say will make no sense.

It's not a simple code edit. You'd have to work out your own solution and implementation, which may involve an additional Drupal module or two. One possibility is to auto-create source nodes with each new user account, and then alter the node edit form to automatically select the source node for the current. However, I can't give detailed directions because they wouldn't be meaningful without some sort of software design as a bigger picture.

Also, if you make your own code changes to ProsePoint, we do not have the resources to provide you with free support. You'd have to do your own design and testing yourself then.

Sorry. You (or someone you know) probably need to be a developer to do this.

Revision history for this message
Finn (macuhail) said :
#6

Thanks for all of the help