WordPress.org

Ready to get started?Download WordPress

Forums

WP Custom Login
[resolved] Profile page (7 posts)

  1. c32v
    Member
    Posted 1 year ago #

    Hi! Super plugin!
    It's possible the same for profile page?
    Thanks!

    http://wordpress.org/extend/plugins/wp-custom-login/

  2. Ninos
    Member
    Plugin Author

    Posted 1 year ago #

    Can you maybe explain which profile pages you mean, have no clue :/

  3. c32v
    Member
    Posted 1 year ago #

  4. Ninos
    Member
    Plugin Author

    Posted 1 year ago #

    I don't think that's easy to implement, because of the stylesheets and not existing hooks..
    Also it's better to write a own page in frontend, as a kind solution like that :)

  5. c32v
    Member
    Posted 1 year ago #

    I found a solution.

    1. In wp-admin/user-edit.php:

    - replace "include( ABSPATH . 'wp-admin/admin-header.php');" with "include( ABSPATH . 'wp-content/themes/mytheme/header.php');"
    - replace "include( ABSPATH . 'wp-admin/admin-footer.php');" with "include( ABSPATH . 'wp-content/themes/mytheme/footer.php');"

    (I don't know how can I call this from functions.php. Please help me Ninos!)

    2. In functions.php add this for remove toolbar:

    "if (!function_exists('disableAdminBar')) {
    function disableAdminBar(){
    remove_action( 'admin_footer', 'wp_admin_bar_render', 1000 );
    remove_action( 'wp_footer', 'wp_admin_bar_render', 1000 );
    function remove_admin_bar_style_backend() {
    echo '<style>body.admin-bar #wpcontent, body.admin-bar #adminmenu { padding-top: 0px !important; }</style>';}
    add_filter('admin_head','remove_admin_bar_style_backend');
    function remove_admin_bar_style_frontend() {
    echo '<style type="text/css" media="screen">
    html { margin-top: 0px !important; }
    * html body { margin-top: 0px !important; }
    </style>';}
    add_filter('wp_head','remove_admin_bar_style_frontend', 99);}}
    add_action('init','disableAdminBar');"

    I hope it's OK.

  6. Ninos
    Member
    Plugin Author

    Posted 1 year ago #

    maybe you can use this hook:
    do_action('in_admin_header');

    or this hook
    do_action('admin_head');

    for the footer use this hook
    do_action('admin_footer', '');

    But I think for a custom admin panel you have to change the default files, otherwise you have got the admin menu and admin styles.. It will be look very bad.

    Have a look on buddypress, maybe you can deactivate the activity stream, member list, forum etc. and use just the profile page.. Otherwise it's simpler to create a own page maybe using shortcodes..

  7. c32v
    Member
    Posted 1 year ago #

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic