Page 1 of 1

Styling the s2member_pro_login_widget (CSS)

PostPosted: October 29th, 2011, 6:51 pm
by wouthe
Hi all,

My CSS skills are limited and I'm looking to go from this

Image

to this.

Image

I used the login pro code

Code: Select all
    <div id ="login">
        <?php
        $options = array(
        "title" => "",
        "signup_url" => "http://xxx.xxxxxx.org/register/",
        "login_redirect" => "%%previous%%",
        "profile_title" => "",
        "display_gravatar" => "1",
        "link_gravatar" => "1",
        "display_name" => "1",
        "logged_in_code" => "",
        "logout_redirect" => "http://xxx.xxxxxx.org",
        "my_account_url" => "1",
        "my_profile_url" => "1"
        );
        $args = array (
        "before_widget" => "<div class=\"member_login_widget\">",
        "after_widget" => "</div>",
        "before_title" => "<h5>",
        "after_title" => "</h5>"
        );
        echo s2member_pro_login_widget($options, $args);
        ?>
    </div>


1. The problem is that I do not now what element to address to style the input fields and the button.

2. I will probably need to work with jquery to add "username" and "password" inside the fields, but that problem is secondary, and I can probably figure that out myself.

I tried manipulating div#login, and I got it to float on the right of the header, and set the width for the input field, but that's it :(

Code: Select all
    #login {
       width: 220px;
       height: 70px;
       padding-top: 0px;
       padding-right: 0px;
       padding-bottom: 0px;
       padding-left: 0px;
       float: right;
       display:inline-block;
    }


I don't know how to address the login fields, the button, the text and the ticker box. I need them to display horizontally like I did in the image above.

You can see the test blog here; http://www.caesarsreport.com/blog/

If you have any tips how to make this possible, please post them, thank you so much!

Appendix - This is the header code:

Code: Select all
  <?php
    /**
     * Header Template
     *
     * @package Mysitemyway
     * @subpackage Template
     */
    ?><!DOCTYPE html>
    <!--[if lt IE 7]>  <html class="ie ie6 lte9 lte8 lte7" <?php language_attributes(); ?>> <![endif]-->
    <!--[if IE 7]>     <html class="ie ie7 lte9 lte8 lte7" <?php language_attributes(); ?>> <![endif]-->
    <!--[if IE 8]>     <html class="ie ie8 lte9 lte8" <?php language_attributes(); ?>> <![endif]-->
    <!--[if IE 9]>     <html class="ie ie9 lte9" <?php language_attributes(); ?>> <![endif]-->
    <!--[if gt IE 9]>  <html> <![endif]-->
    <!--[if !IE]><!--> <html <?php language_attributes(); ?>> <!--<![endif]-->
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <title><?php mysite_document_title(); ?></title>
    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    <?php mysite_head(); ?>
    <?php wp_head(); ?>
    </head>
   
    <body class="<?php mysite_body_class(); ?>">
    <div class="multibg"><div class="multibg"></div></div>
    <div id="body_inner">
       
    <?php mysite_before_header();
   
    ?><div id="header">
          <div id="header_inner">
             
          <?php mysite_header();
          
          ?>
           
              <div id ="login">
                <?php
                $options = array(
                "title" => "",
                "signup_url" => "http://xxx.xxxxxx.org/register/",
                "login_redirect" => "%%previous%%",
                "profile_title" => "",
                "display_gravatar" => "1",
                "link_gravatar" => "1",
                "display_name" => "1",
                "logged_in_code" => "",
                "logout_redirect" => "http://xxx.xxxxxx.org",
                "my_account_url" => "1",
                "my_profile_url" => "1"
                );
                $args = array (
                "before_widget" => "<div class=\"member_login_widget\">",
                "after_widget" => "</div>",
                "before_title" => "<h5>",
                "after_title" => "</h5>"
                );
                echo s2member_pro_login_widget($options, $args);
                ?>
            </div>
           
            </div><!-- #header_inner -->
                 
       </div><!-- #header -->
   
       
    <?php mysite_after_header();
   
    ?><div id="content">
          <div id="content_inner">
             
             <?php mysite_before_main();
             
             ?><div id="main">
                <div id="main_inner">
                   <?php mysite_before_page_content(); ?>

Re: Styling the s2member_pro_login_widget (CSS)

PostPosted: October 29th, 2011, 7:06 pm
by Bruce C
Ummm.. I'll take a quick look.

I think you can use the onBlur and onClick events to get the Username and Password fields correct.

Re: Styling the s2member_pro_login_widget (CSS)

PostPosted: October 29th, 2011, 7:14 pm
by wouthe
Thanks Ace.

Do you think you can do this? I see you're accepting professional installations. I wouldn't mind paying you for this, since it'll take up you're time.

When it's done I don't mind sharing the code here, so everyone can use it.
Please let me know.

Re: Styling the s2member_pro_login_widget (CSS)

PostPosted: October 29th, 2011, 7:30 pm
by Bruce C
In order to accomplish this, it would take more than just styling the CSS, the actual PHP/HTML needs to be altered to add JavaScript functions to the forms. Also, currently the Username/Password/Submit forms are all in one CSS property. So that needs to be broken down in order to move them around. I would suggest using position:absolute; to move them around freely.

Currently, I am only accepting jobs for $50+, and I don't believe that this customization job calls for that much.

However, if you are interested in a few other customizations that you believe would sum to an amount of 50+, you can PM me, and it should take me about 3-4 days to complete after starting.

Cheers,