Skip to:
Content
Pages
Categories
Search
Top
Bottom

Login redirect coding question

  • Avatar of Jfcarter
    jfcarter
    Participant

    @jfcarter

    I have SEVERAL log-in questions.

    1) I have read through the posts on the login redirection, but have a specific coding question. Here it is:

    In wp-login.php, I have found the following line of code (around line 470):

    <input type=\\\”hidden\\\” name=\\\”redirect_to\\\” value=\\\”<?php echo attribute_escape($redirect_to); ?>\\\” />

    I want to redirect the user to their profile page, so I changed it to:

    <input type=\\\”hidden\\\” name=\\\”redirect_to\\\” value=\\\”http://mysite/members/[want to include username here]\\\” />

    What term/code to generate the username in the URL? Any ideas?

    2) How can I change the wp-login page to include my site\\\’s logo instead of the WordPress logo? Is this possible?

    Thanks in advance for your help!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Avatar of Jeff Sayre
    Jeff Sayre
    Participant

    @jeffsayre

    In wp-login.php, I have found the following line of code (around line 470) ….

    I want to redirect the user to their profile page, so I changed it to …

    I would highly recommend that you stay away from hacking core WPMU files. You’ll have to make the changes all over again the next time you update WPMU.

    This is the way you should do it: http://buddypress.org/forums/topic.php?id=1095

    How can I change the wp-login page to include my site\’s logo instead of the WordPress logo? Is this possible?

    http://premium.wpmudev.org/project/rebranding-wordpress-mu

    By the way, you may receive faster responses in the future if you ask WPMU questions on the WPMU forums and ask BuddyPress-specific questions on this forum.

    Avatar of Jfcarter
    jfcarter
    Participant

    @jfcarter

    Thank you so much, Jeff!

    For the login redirect, I tried to create the plugin as per Burt’s instructions in that thread, but couldn’t get it to work. Not sure why, but I’ll look at it again.

    I’ll look into the rebranding of WPMU.

    Good advice on the questions. I sometimes treat WPMU, BP and bbpress as if they are all the same, which they aren’t.

    Much obliged. :)

    Avatar of Jeff Sayre
    Jeff Sayre
    Participant

    @jeffsayre

    You’re welcome! Good luck!

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

You must be logged in to reply to this topic.