As noted in the UMN reports, new users can tend to rely on the "Welcome to your new Drupal website!" start screen. Yet the first thing we say to them is "Once logged in.." -- even though ~95% of people reading it for the first time are already logged in as user1 (post-install). Why not check first if they are logged in. If so, we can safely cut that (somewhat confusing) text.
Patch attached. (My first one -- let me know if I did something wrong. Thanks!)
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | node.module-detect-if-logged2.patch | 2.67 KB | crookednumber |
| module.node-detect-logged-in.patch | 2.63 KB | crookednumber |
Comments
Comment #1
crookednumber commentedComment #2
catchGood idea!
A couple of things though:
Patch should use
tabs, not spacesspaces, not tabs - see http://drupal.org/coding-standardsAlso I'd probably check for any logged in user rather than UID 1 - this welcome page will hopefully move to a node and/or the help section during D7, which means it won't disappear as soon as a node is promoted to the front page, so anyone with access will be looking at it, and they'll most likely be logged in too.
Comment #3
kika commentedI think the start page in D6 needs to go - some of it should be part of installer (and/or optional installer profiles), some of it part of the improved, task-based help system. No need to beat the dead horse. -1
Comment #4
scoutbaker commentedI think catch meant to say that patches should use spaces, not tabs, per the coding standards referenced.
Comment #5
crookednumber commentedThanks, Catch. I appreciate the feedback.
New patch attached.
I thought of just testing for a uid>0 but there's no guarantee that a user with uid>1 has "access administration pages", yes? I think it's a good idea, but it seems like the code would have to be pretty granular. Checking user_access("access administration pages"), etc.
Not that I think it's a bad idea. But that Welcome screen (soon to be node?) is really geared toward user1.
Comment #6
sutharsan commentedMoving all usability issues to Drupal - component usability.
Comment #7
aspilicious commentedNo longer an issue