Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.

login boxes in header!?

Locked
This thread is locked. New replies are disabled.
8 Sep 2010, 12:36 PM
#1
bonnit avatar

bonnit

Zen Follower

Join Date:
Jun 2009
Location:
Kent, UK
Posts:
350
Plugin Contributions:
0

Post #1 by bonnit

i am currently using zencart 1.3.8a and a number of mods including the login sidebox mod.

this is working great but i am considering resizing my header and adding a div on the left hand side with login/password input boxes to sign in directly form the header. i have installed the login_header mod but it seems to disagree with any mods i already have, and it doesnt seem to place within the header it just adds a bar at the bottom much like the ezpages nav bar.

just wondering if theres an easier way of doing this by perhaps using another mod or using the sidebox coding i already have installed?

http://www.mods.livvylougifts.co.uk Zen Cart Mod Site
http://www.livvylougifts.co.uk Personalised gifts for every occasion

9 Sep 2010, 7:01 PM
#2
joyjoy avatar

joyjoy

Totally Zenned

Join Date:
Sep 2010
Posts:
611
Plugin Contributions:
0

Post #2 by joyjoy

Hi guys! I'm trying to find out how I would be able to get a "sidebox" in the header of my page vs being in the colums below the nav bars.

Thank you!

9 Sep 2010, 7:40 PM
#3
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Post #3 by stevesh

The only way I know to actually place a sidebox in the header is to use the position:absolute; tag in the stylesheet.

A little more info about what you're trying to accomplish woul help.

9 Sep 2010, 7:45 PM
#4
joyjoy avatar

joyjoy

Totally Zenned

Join Date:
Sep 2010
Posts:
611
Plugin Contributions:
0

Post #4 by joyjoy

I want to get a sidebox in the header of the page where I can place items within. I'm thinking of doing a "subscribe" form for newsletters or "login/password" there. Thanks!

9 Sep 2010, 7:46 PM
#5
joyjoy avatar

joyjoy

Totally Zenned

Join Date:
Sep 2010
Posts:
611
Plugin Contributions:
0

Post #5 by joyjoy

So if I use what you're suggesting, I could add a blank sidebox then set the absolute positioning? That would work?

9 Sep 2010, 8:06 PM
#7
joyjoy avatar

joyjoy

Totally Zenned

Join Date:
Sep 2010
Posts:
611
Plugin Contributions:
0

Post #7 by joyjoy

Thanks. I'll give this a try.

9 Sep 2010, 9:21 PM
#8
joyjoy avatar

joyjoy

Totally Zenned

Join Date:
Sep 2010
Posts:
611
Plugin Contributions:
0

Post #8 by joyjoy

Okay, I don't know where/how to give this a try...

In the stylesheet I have made this addition, #mainWrapper {position: relative;}. But I don't know how to actually position the sidebox...?

10 Sep 2010, 2:08 AM
#10
joyjoy avatar

joyjoy

Totally Zenned

Join Date:
Sep 2010
Posts:
611
Plugin Contributions:
0

Post #10 by joyjoy

Thank you soooo much! I appreciate it!

10 Sep 2010, 7:01 PM
#11
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,839
Plugin Contributions:
30

Post #11 by balihr

Try adding a div in the header and put this code inside it:

<div id="log_in_header">
<?php echo zen_draw_form('loginheader', zen_href_link(FILENAME_LOGIN, 'action=process', 'SSL')); ?>
<label class="inputLabel" for="login-email-address"><?php echo ENTRY_EMAIL_ADDRESS; ?></label>
<?php echo zen_draw_input_field('email_address', '', 'size="18" id="login-email-address"'); ?>
<br class="clearBoth" />
<label class="inputLabel" for="login-password"><?php echo ENTRY_PASSWORD; ?></label>
<?php echo zen_draw_password_field('password', '', 'size="18" id="login-password"'); ?>
<?php echo zen_draw_hidden_field('securityToken', $_SESSION['securityToken']); ?>
<?php echo zen_image_submit(BUTTON_IMAGE_LOGIN, BUTTON_LOGIN_ALT); ?>
<br class="clearBoth" />
<div class="buttonRow back important"><?php echo '<a href="' . zen_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL') . '">' . TEXT_CREATE_ACCOUNT_HEADER . '</a>'; ?></div>
<div class="buttonRow back important"><?php echo '<a href="' . zen_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . TEXT_PASSWORD_FORGOTTEN_HEADER . '</a>'; ?></div>
</form>
<br class="clearBoth" />
</div>

I'm not 100% sure it will work, but you can try it and let us all know if it works... :smile:

My site - Pro ZC Help
My portfolio | My plugins

11 Sep 2010, 1:26 PM
#12
bonnit avatar

bonnit

Zen Follower

Join Date:
Jun 2009
Location:
Kent, UK
Posts:
350
Plugin Contributions:
0

Post #12 by bonnit

yep works fine, after floating one left and one right and a little tweaking of the logo wrapper width and my logo width it works a treat, slightly misaligned but nothing that cant be sorted with a little css.

thanks your a star:clap:

http://www.mods.livvylougifts.co.uk Zen Cart Mod Site
http://www.livvylougifts.co.uk Personalised gifts for every occasion

11 Sep 2010, 10:48 PM
#13
joyjoy avatar

joyjoy

Totally Zenned

Join Date:
Sep 2010
Posts:
611
Plugin Contributions:
0

Post #13 by joyjoy

Help again please...I have uploaded the a new sidebox and renamed it. I have inserted the position tag into my #mainwrapper and have also inserted the postion tag for the sidebox into my stylesheet...It's messing up my page. By bottom nav bar has disappeared. I don't know what I'm doing wrong. =(

https://www.funh.com/shop

Thank you.

11 Sep 2010, 11:05 PM
#14
joyjoy avatar

joyjoy

Totally Zenned

Join Date:
Sep 2010
Posts:
611
Plugin Contributions:
0

Post #14 by joyjoy

Hi Bonnie, where exactly did you place that div code to create the login box in your header? I've been trying to figure this out. But I'm stuck. Thank you!

12 Sep 2010, 5:50 AM
#15
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,764
Plugin Contributions:
0

Post #15 by Kim

Moderator's note: two threads on the same topic have been merged. Please continue in this thread.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

12 Sep 2010, 1:50 PM
#16
bonnit avatar

bonnit

Zen Follower

Join Date:
Jun 2009
Location:
Kent, UK
Posts:
350
Plugin Contributions:
0

Post #16 by bonnit

joyjoy:

Hi Bonnie, where exactly did you place that div code to create the login box in your header? I've been trying to figure this out. But I'm stuck. Thank you!

i put the div box in just before my logo wrapper, but i have heavily customised mine so this may be different for yours?

http://www.mods.livvylougifts.co.uk Zen Cart Mod Site
http://www.livvylougifts.co.uk Personalised gifts for every occasion

22 Sep 2010, 7:53 AM
#17
joyjoy avatar

joyjoy

Totally Zenned

Join Date:
Sep 2010
Posts:
611
Plugin Contributions:
0

Post #17 by joyjoy

Hi,

I finally got around to doing the positioning of the login box. But it changes position with different browsers. Is there a way to get the positioning fixed? It should remain to the right edge of the screen in the header.

Thank you.

22 Sep 2010, 8:22 AM
#19
joyjoy avatar

joyjoy

Totally Zenned

Join Date:
Sep 2010
Posts:
611
Plugin Contributions:
0

Post #19 by joyjoy

I think it works now. It was lagging for some reason.

I removed the login box and tried to add login header as a suggestion from another post.

So the one that is on the page right now is the login header add on.

Should I stick to this one or should I go back to login box?

22 Sep 2010, 8:22 AM
#20
joyjoy avatar

joyjoy

Totally Zenned

Join Date:
Sep 2010
Posts:
611
Plugin Contributions:
0

Post #20 by joyjoy