Register Login plugin

Discussion in 'WordPress' started by muffet, May 12, 2012.

  1. #1
    Where can i find a Register Login plugin for WP or WPMU? I want other users to be able to Register or Login to my WP site to post their specific fundraisers. I want to avoid having to create every individual account for other users as site admin or super admin.
     
    muffet, May 12, 2012 IP
  2. raoraj

    raoraj Well-Known Member

    Messages:
    849
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    110
    #2
    raoraj, May 12, 2012 IP
  3. muffet

    muffet Active Member

    Messages:
    720
    Likes Received:
    7
    Best Answers:
    4
    Trophy Points:
    68
    #3
    The URL link you provided gives 404 Error. Anybody else recommend a plugin or way to add Login or Register form for users to signin on my site?

     
    muffet, May 12, 2012 IP
  4. fotogrph

    fotogrph Peon

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You can paste this in your functions to create a login widget. You could easily modify it to show a register link. And change any of the lines in all caps to something suitable for your site.

    
    class arixwp_login_widget extends WP_Widget {
      
        function arixwp_login_widget() {
            $widget_ops = array( 'classname' => 'arixwp_login', 'description' => __( 'Displays a login form in your sidebar.', THEMENAME ) );
            $this->WP_Widget( 'arixwp_login', 'arixwp Login', $widget_ops );
     
        }
      
        // User Options Form
        function form($instance) {
      
            global $post;
            
            $instance = wp_parse_args( (array) $instance, array( 'title' => '' ) );
            $title = $instance['title'];        
    
            ?>
    
                <p>
                    <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Widget Title:', THEMENAME ); ?></label>
                    <input id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" class="widefat" value="<?php echo $title;?>" />
                </p>   
              
            <?php    
        } 
      
        function update($new_instance, $old_instance) {
            $instance['title'] = $new_instance['title'];
            return $new_instance;
        }
      
        // Display Gallery Widget
        function widget( $args, $instance ) {
      
            global $post; 
             extract($args, EXTR_SKIP);
            
            // Default values if no option set.    
            
            $title = empty($instance['title']) ? ' ' : apply_filters('widget_title', $instance['title']);
        
            if (empty($instance['title'])) { $title= ARIXWP_LOGIN_WIDGET_TITLE; }
            
            // Show Content
                global $wpdb;
                
                echo $before_widget;
                echo $before_title . $title . $after_title;
                
    
                if ( is_user_logged_in() ) {
                                                        
                    echo '<a href="' . wp_logout_url( home_url() ) . '" title="' . __('Logout',THEMENAME) . '" class="logout">' . __('Logout',THEMENAME) . '</a>';
    
                } else {                                                
                ?>
                                                    
                    <form id="loginform" name="loginform" method="post" action="<?php echo home_url(); ?>/wp-login.php">
                                                        
                        <input type="text" id="user_login" name="log" title="<?php _e( 'Your Username' , THEMENAME ); ?>" size="15" class="arixwp_input" />
                        <input type="password" id="user_pass" name="pwd" title="<?php _e( 'Your Password' , THEMENAME ); ?>" size="15" class="arixwp_input" />
                                                            
                        <p>
                            <a href="<?php echo home_url(); ?>/wp-login.php?action=lostpassword" class="lostpass"><?php _e( 'Lost Password' , THEMENAME ); ?></a>
                            <input type="submit" value="<?php _e( 'Sign In' , THEMENAME ); ?>" class="arixwp_button" />
                        </p>
    
                        <input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>" />
                        
                    </form>
                    <script type="text/javascript">
                        jQuery('#loginform').formerize();
                    </script>
                                                    
                <?php 
                } 
    
                echo $after_widget;
                
        } 
      
    }
    
    add_action('widgets_init', create_function('', 'return register_widget("arixwp_login_widget");'));
    
    
    
    Code (markup):
     
    fotogrph, May 12, 2012 IP
  5. raoraj

    raoraj Well-Known Member

    Messages:
    849
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    110
    #5
    raoraj, May 13, 2012 IP
  6. mccomf

    mccomf Active Member

    Messages:
    517
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #6
    There is a wordpress plugin called "sidebar login" that easily add a login widget to your site's sidebar.
     
    mccomf, May 13, 2012 IP
  7. muffet

    muffet Active Member

    Messages:
    720
    Likes Received:
    7
    Best Answers:
    4
    Trophy Points:
    68
    #7
    How do I modify code to place Register Login links in header menu linking to login widget page on my website? I want to be able let members instantly start drafting their fundraising project than once they click Publish their project will be either published immediately or super admin will receive a notice message dependent upon which category the fundraiser is categorize under for approval.

     
    muffet, May 13, 2012 IP