User sees "Story created" even though story is "not Published"
slimandslam - July 15, 2007 - 08:47
Using Drupal 5.1
Default theme
Perhaps I'm doing something wrong, but I have none of the checkboxes checked in the "workflow" section for the content type of "story". So, when a user creates a story, it defaults to the "not Published" state. I assume that's the normal way to have a story go into the moderation queue.
The problem is that when a user submits a story, Drupal displays the message "Your Story has been created". So, the user thinks their story is live, but what's really happened is that the story is in the moderation queue. Am I doing something wrong? Shouldn't Drupal display something like, "your story has been submitted for moderation and will be displayed after review"?
--SS

Created vs Published
Well it doesn't say "Your story has been published", so I wouldn't be concerned. But if it's important, you can probably use the Locale module to change that particular string to whatever you want. I'd also do a search for changing status (?) messages.
This is definitely a
This is definitely a useability issue because the message "Your story has been created" makes the user think their story is live on the site. So my users are doing things like submitting their story multiple times because they think an error has occured.
Two things
First, be careful with the word "moderate" - it has a particular meaning in Drupal that is not appropriate here. Your story is merely "unpublished," not moderated, unless you're using a moderation module.
Second, you can code a hook_nodeapi that does show a message something like, "Your story has been queued for approval." I use this technique on two sites for unpublished content types, plus it shows a block of unpublished content for those who can approve them.
function pinkslip_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
if ($node->type != 'pinkslip') { return; } /* don't do any others */
switch ($op) {
case 'submit':
if (!$node->status) {
$msg = t('Your Pink Slip article is queued for approval. ');
if (!user_access('Administer Pink Slip')) { /* see if they can approve it themselves */
$msg .= t('The admininstrator will decide whether and when it will be published.');
} /* end if */
drupal_set_message($msg);
} /* end status */
}
}
Nancy W.
Drupal Cookbook (for New Drupallers)
Adding Hidden Design or How To notes in your database
Hi Nancy, I appreciate
Hi Nancy,
I appreciate your thorough response. However, it does seem like you're just playing with words here. If a user can only submit, but not approve, their story, what do you call that? That seems like a moderation queue to me. I do see that there is a module called modr8 and that it says that moderation was removed from drupal 5. Still, this just seems like a bit of semantic toying around. Please elaborate....
Cheers,
J
Or, maybe try this
I'm new to Drupal and was playing around with the organic groups module. I think somehow I corrupted my permissions, but didn't know it.
Later I created a "contributor" role, and had another browser open with a user with that role entering content. I had the same problem you did. After I entered the content it said "Your Story has been created", but the story never showed up, unless when logged in as an administrator.
Then I stumbled on this:
administer >> content management >> post settings, where I clicked 'rebuild permissions'
Things seemed to work after that.
H.