Skip to:
Content

BuddyPress.org

Ticket #174: bp-admin-bar-login-signup.patch

File bp-admin-bar-login-signup.patch, 1.4 KB (added by Deadpan110, 17 years ago)

I should have tested while logged out and not allowing registrations... last patch had a spelling error... should have been checking the site option 'registration' and not 'registrations'.

  • bp-core/css/admin-bar.css

     
    5353                        background: url( ../images/admin-menu-arrow.gif ) 88% 53% no-repeat;
    5454                }
    5555
     56                #wp-admin-bar ul .bp-login { /* all list items */
     57                        background: url( ../images/blogadmin_icon.gif ) 88% 53% no-repeat;
     58                }
     59
     60                #wp-admin-bar .bp-signup {
     61                        background: url( ../images/invite_bullet.gif ) 88% 53% no-repeat;
     62                }               
     63
    5664                #wp-admin-bar ul li ul a {
    5765                        color: #666 !important;
    5866                }
  • bp-core/bp-core-adminbar.php

     
    117117                echo '</ul>';
    118118                echo '</li>';
    119119        }
     120        // **** "Log In" and "Sign Up" links (Visible when not logged in) ********
     121
     122        if ( !is_user_logged_in() ) {   
     123                echo '<li  class="bp-login"><a href="/wp-login.php?redirect_to=' . urlencode(get_bloginfo('siteurl') . $_SERVER['REQUEST_URI']) . '">' . __('Log In', 'buddypress') . '</a></li>';
     124                // Show "Sign Up" link if registrations are allowed
     125                if (get_site_option('registration') != 'none') {
     126                        echo '<li class="bp-signup"><a href="/wp-signup.php">' . __('Sign Up', 'buddypress') . '</a></li>';
     127                }
     128        }       
    120129       
    121130        // **** "Blog Authors" Menu (visible when not logged in) ********
    122131