• Resolved Dave

    (@5point)


    Chad, thanks for the plugin.

    I looked through some of your docs, and likely me just being lazy, but didn’t see any info on customizing the log-in widget. Specifically I want to either remove “You are logged in as…” and “You are not logged in” or customize these phrases.

    I was able to track down multiple entries for “You are logged in as” within class-wp-members.php. Could you provide some guidance how to manipulate these, I’m assuming via the theme functions.php?

    Dave.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Dave

    (@5point)

    I’m not beyond trying to figure stuff out on my own.

    Just need confirmation this is the best method to remove the status message from a Login Widget:

    // WP-MEMBERS LOGIN-IN WIDGET
     add_filter( 'wpmem_sb_login_args', 'my_sidebar_args' );
    
     function my_sidebar_args( $args ) {
         /**
          * Change status message
          */
         $args = array(
             'status_msg' => '',
         );
    
         return $args;
     }
    Plugin Author Chad Butler

    (@cbutlerjr)

    Yes, that would remove the status message “you are not logged in”. You’d need to use wpmem_sidebar_status_args to filter the logged in state (similar process but the array key is ‘status_text’).

    With the example you have (which I assume was taken from the documentation for wpmem_sb_login_args), it would probably be better to do this:

    add_filter( 'wpmem_sb_login_args', 'my_sidebar_args' );
    function my_sidebar_args( $args ) {
    	$args['status_msg'] = '';
    	return $args;
    }

    (I updated the documentation to reflect this as the example.)

    Thread Starter Dave

    (@5point)

    Thanks that also worked.

    Does WP Members support forum logins? If I wanted to integrate bbpress for example, can I use WP Members to also restrict access to specific forums?

    Plugin Author Chad Butler

    (@cbutlerjr)

    It can integrate with bbPress, but it won’t natively restrict the forum itself. You can either set the forums as private within bbPress, or the plugin’s Advanced Options extension that is available to premium support subscribers can be used to redirect the forums to the WP-Members login page if the user is not logged in.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Customize widget HTML’ is closed to new replies.