Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Two login boxes - only should be one

Two login boxes - only should be one

Locked

Views: 1,473

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
19 Mar 2009, 6:28 PM
#1
jhbs avatar

jhbs

New Zenner

Join Date:
Feb 2009
Posts:
28
Plugin Contributions:
0

Two login boxes - only should be one

Hi there, i installed the add on which lets me put the login box on the left side below the categories.

However on IE it shows two sets of login controls, but on FF and Chrome there is only one.

My site is https://www.whatevernextonline.com can anybody help?

19 Mar 2009, 8:45 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Two login boxes - only should be one

And you only see one in the Admin, correct?

19 Mar 2009, 9:20 PM
#3
jhbs avatar

jhbs

New Zenner

Join Date:
Feb 2009
Posts:
28
Plugin Contributions:
0

Re: Two login boxes - only should be one

yeah, i added the login side box add-on, set it up, and as i said on FF its just one box - cant work it out!

19 Mar 2009, 11:06 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Two login boxes - only should be one

You actually have 2 in all browsers check the View Source ...

The difference is some are hearing the HTML comments and not displaying the second one and other browsers are not "hearing" the HTML commented code because of how things are constructed ...

Now you just have to find where you have that commented code and why it is loading ...

23 Mar 2009, 2:55 PM
#5
jhbs avatar

jhbs

New Zenner

Join Date:
Feb 2009
Posts:
28
Plugin Contributions:
0

Re: Two login boxes - only should be one

any idea where to start? i have used teh login side box add in to get this, i have looked at all the files and still cant make it out. im lost! :(

23 Mar 2009, 3:23 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Two login boxes - only should be one

Go to your Admin ... Layout Box Controller ... how many listings do you see for the Login Box?

Switch to Classic Template ... does this change anything?

27 Mar 2009, 9:16 PM
#7
jhbs avatar

jhbs

New Zenner

Join Date:
Feb 2009
Posts:
28
Plugin Contributions:
0

Re: Two login boxes - only should be one

no there is only one login box that i turn on, changing the template does not work either :(

28 Mar 2009, 6:40 PM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Two login boxes - only should be one

Go to the Tools ... Developers Tool Kit ... in your Admin and in the bottom input box enter:
loginboxContent

and select Catalog ... and click Search ...

What filename(s) comes up?

28 Mar 2009, 6:55 PM
#9
jhbs avatar

jhbs

New Zenner

Join Date:
Feb 2009
Posts:
28
Plugin Contributions:
0

Re: Two login boxes - only should be one

it comes up with nothing, cant find any files. I used the add in to put my login on the side box, when i look in Tool > layout box controller the login box controller that i use is sideboxes/login_box.php

i dont know if this helps?

28 Mar 2009, 7:17 PM
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Two login boxes - only should be one

The best that I can tell you is that you have the code for 2 login boxes loading ...

The second set of code is commented out ...

Unfortunately, the method used to comment out the second set of code is half working and some browsers show the code as comments in the source and others show it as the "2nd Login Box" ...

Without physically going to your site and finding this code and where this is happening ... I can only tell you to do the View Source and keep searching for peices of code until you locate this or start going through your files to find this commented peice of code that is making the double login sidebox ...

29 Mar 2009, 10:00 PM
#11
jhbs avatar

jhbs

New Zenner

Join Date:
Feb 2009
Posts:
28
Plugin Contributions:
0

Re: Two login boxes - only should be one

yeah, i keep hunting for it but i cant seem to find it. I have used the login sidebox add in and have these 3 php files

login_box.php

<?php // $Id: login_box.php,v 1.0 2003/11/21 22:55:46 ajeh Exp $ if (($_GET['main_page'] != FILENAME_LOGIN && $_GET['main_page'] != FILENAME_CREATE_ACCOUNT && $_GET['main_page'] != FILENAME_PASSWORD_FORGOTTEN)) { $login_box[] = TEXT_LOGIN_BOX; if ((!$_SESSION['customer_id'])) { $title = BOX_HEADING_LOGIN_BOX; } else { $title = BOX_HEADING_LOGGEDIN_BOX; } require($template->get_template_dir('tpl_login_box.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_login_box.php'); $left_corner = false; $right_corner = false; $right_arrow = false; $title_link = false; require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default); } ?>

login_box_define.php

<?php define('BOX_HEADING_LOGIN_BOX','Login'); define('BOX_HEADING_LOGGEDIN_BOX','My Account'); define('LOGIN_BOX_EMAIL_ADDRESS','Email:'); define('LOGIN_BOX_PASSWORD','Password:'); define('LOGIN_BOX_PASSWORD_FORGOTTEN','Forgotten Password'); define('LOGIN_BOX_CREATE_ACCOUNT','Create Account'); define('LOGIN_BOX_SHOPPING_CART','Shopping Cart'); define('LOGIN_BOX_ACCOUNT','My Account'); define('LOGIN_BOX_LOGOFF','Log off'); ?>

tpl_login_box.php

<?php // $Id: tpl_login_box.php,v 1.0 2003/11/21 19:16:29 ajeh Exp $ $content = "<!--loginSideBox-->"; $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">'; if(!$_SESSION['customer_id']) { $content .=zen_draw_form('login_box', zen_href_link(FILENAME_LOGIN, 'action=process', 'SSL')); $content .=LOGIN_BOX_EMAIL_ADDRESS . '<br />' . zen_draw_input_field('email_address', '', 'size="24"').'<br />'; $content .=LOGIN_BOX_PASSWORD . '<br />' . zen_draw_password_field('password', '', 'size="24"') . '<br />'; $content .='<a href="' . zen_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . LOGIN_BOX_PASSWORD_FORGOTTEN . '</a>' . '<br />' . '<a href="' . zen_href_link(FILENAME_LOGIN, '', 'SSL') . '">' . LOGIN_BOX_CREATE_ACCOUNT . '</a>' . '<br />'; $content .= zen_draw_hidden_field('securityToken', $_SESSION['securityToken']); $content .='<div class="centeredContent">'.zen_image_submit(BUTTON_IMAGE_LOGIN, BUTTON_LOGIN_ALT).'</div>'; $content .='</form>'; } $content .= '</div>'; ?>

i have tried to change and remove lines but still getting the two log in boxes and its driving me crazy, i cant see anything thats out of place

30 Mar 2009, 4:55 PM
#12
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Two login boxes - only should be one

I am not seeing it from these files off the top of my head ...

Try a search for:
login

it will be a lot more files than you need, but it may help you find where the extra code is being added ...