• flybuzz

    (@flybuzz)


    Hi, I tried to add the following code to blix side bar to create a loginbox at the homepage. Seems to be working but the layout is kinda messed up. Specially under firefox. I can’t make those box appear smaller and aligned… Any ideas?

    take look at http://www.tvshowblogs.com/

    <?php
    global $user_ID, $user_identity;
    get_currentuserinfo();
    if (!$user_ID):
    ?>
    <h2><?php _e(‘Login’); ?></h2>
    <form name=”loginform” id=”loginform” action=”<?php echo get_settings(‘siteurl’); ?>/wp-login.php” method=”post”>
    <div><label><?php _e(‘Login’) ?>:
    <input type=”text” name=”log” id=”log” value=”” size=”5″ tabindex=”7″ /></label>
    <label><?php _e(‘Password’) ?>:
    <input type=”password” name=”pwd” id=”pwd” value=”” size=”5″ tabindex=”8″ /></label>
    <input type=”submit” name=”submit” value=”<?php _e(‘Login’); ?> »” tabindex=”9″ />
    <?php wp_register(”, ”); ?>
    <input type=”hidden” name=”redirect_to” value=”<?php echo $_SERVER[‘REQUEST_URI’]; ?>”/></div>
    </form>
    <?php
    else:
    ?>
    <h2><?php echo $user_identity; ?></h2>

    <?php wp_register(); ?>

    “><?php _e(‘Logout’); ?>
    <?php
    endif;
    ?>

Viewing 8 replies - 1 through 8 (of 8 total)
  • spencerp

    (@spencerp)

    If you’re using this hack here for it:
    http://www.ioerror.us/2005/04/14/wordpress-sidebar-login-form-hack/

    You’ll prolly have to adjust how it displays via the CSS file. If you’re not using that hack above, I had tried it and it seemed to work ok. I was just too lazy to modify the display of it via the css.. so I didn’t keep it lol!

    spencerp

    P.S. I’m not sure about that above hack though anymore, meaning, the plugin author might have updated it or not, depends. Not even sure if it will work with 2.0.2 or not either.. But it’s a shot in the dark.. =P

    Thread Starter flybuzz

    (@flybuzz)

    Yeah, it’s the same place I got the code. Just not sure how to modify the css to make it work…

    spencerp

    (@spencerp)

    Oh ok, well like I said above, that’s basically why I didn’t bother with it, cause I was too lazy to try and add/adjust the CSS codes for it.

    But my guess would be, you’d have to make a “class” for it in the CSS file. If you want, I could try adding this to a test blog again once, and then see if I can get this stuff working..then paste the setup here for ya..

    spencerp

    Thread Starter flybuzz

    (@flybuzz)

    Found the place inside layout.css just look for
    form input, form textarea {

    and make the width smaller and then get rid of span tag in the mod code… that seems to make things better.

    Thanks.

    spencerp

    (@spencerp)

    Oh ok..thanks for sharing that hehe. =) With the theme I had, I was just being cautious because I had used that “class” for various other things..didn’t feel like modifying it. But, I’ll give it a whirl then on this other one I’m using. Thanks again for sharing that. =)

    spencerp

    bczar

    (@bczar)

    Hi Flybuzz, I just took a look at your site and you have the sidebar exactly the way I would like on my website.

    Can you direct towards how to use the code that you posted earlier? As you can tell i’m a newbie, I checked the other link for more detail but have had no lock?

    do i paste it into the sidebar.php file in my blix theme editor? if so where?

    thank a million!

    bczar

    (@bczar)

    flybuzz – I successfully added the bar into my sidebar and am having similar issues with the formatting looking kind of funny. I went into layout and modified the width.

    can you just clarify what you mean by “delete the span tag”?

    thanks again.

    mrtunes

    (@mrtunes)

    Does anyone know how to tweak the Login button and Register? I found how to resize and move the form around but those two elements I can’t figure out.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Add login box to blix sidebar’ is closed to new replies.