• Hi, I’ve got a couple of questions (duhh πŸ˜‰ and hope someone can help me out:

    1) I want the majority of the users of my site to be read-only users, which I think are level 0 users? When I created such a user, I noticed that for level 0 users only, the Register and Login links don’t change once logged in, which is strange, because you can’t become a level 0 user until you have registered and logged in… When I have a look at their functions in wp-includes/template-functions-general.php, with my limited php knowledge, it seems that they were coded to do just that: not change.
    I’d like to know, is there a particular reason for these links not to change and how can I make them change like all the others? Or have I missed something here?

    2) Once logged in, all users are directed to the admin page. Is there a way to be directed to the index instead?
    The only thing I can come up with is putting a hard link to /wp_admin/ (to be able to get to the profile area) in the sidebar and deleting the reference to /wp-admin/profile.php on line 178 of login.php. Then, if you login you always go to the blog root. I suppose it works, but itÒ€ℒs hardcoding and clunky at that. Does anyone have a more elegant solution?

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’m wondering about about #2 myself. It seems like a really good idea to route the user to the index instead of the admin. A read only or read/comment only user should never see the admin.

    You can change the redirect in the core wp files: specifically wp-login.php. So far the only useful thing I’ve found to do with it is redirect to profile.php from admin.php.

    Here’s a fairly recent thread on the whole thing: http://wordpress.org/support/topic.php?id=31664

    Thanks vkaryl. That thread help me find a solution. I posted what I did over there.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Register & Loginout functions’ is closed to new replies.