Forums / Addon Sideboxes / login sidebox

login sidebox

Locked

Started by d_mick on 14 Jun 2006, 2:46 PM · Views: 5,511

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
14 Jun 2006, 2:46 PM
#1
d_mick avatar

d_mick

New Zenner

Join Date:
Nov 2005
Posts:
39
Plugin Contributions:
0

login sidebox

Hi,

I installed the login sidebox. The only diffrence I would like to see, is that that sidebox stays available even when loged in. So I inserted some new code.

So the login_box.php file looks like this:

  if ((!$_SESSION['customer_id'] && $_GET['main_page'] != FILENAME_LOGIN && $_GET['main_page'] != FILENAME_CREATE_ACCOUNT && $_GET['main_page'] != FILENAME_PASSWORD_FORGOTTEN)) {
      
	  $login_box[] = TEXT_LOGIN_BOX;

      require($template->get_template_dir('tpl_login_box.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_login_box.php');

      $title =  BOX_HEADING_LOGIN_BOX;
      $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);
  }
  else { 
      $login_box[] = TEXT_LOGIN_BOX;

      require($template->get_template_dir('tpl_loged_in.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_loged_in.php');

      $title =  BOX_HEADING_LOGIN_BOX;
      $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);

}

The tpl_loged_in.php page only contains the links to log out and to go to My account. But the problem is, when I'm not logged in and I want to create an account, the sidebox changes into the tpl_loged_in.php layout.

So I must be missing something. Anyone who can help me out?

14 Jun 2006, 3:20 PM
#2
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: login sidebox

If you downloaded a contribution MOD, from the downloads section of this site, I'd suggest replying to the appropriate topic in order to get a more definite response face on the problem you're currently facing with the sidebox login MOD. :wink2:

14 Jun 2006, 4:03 PM
#3
d_mick avatar

d_mick

New Zenner

Join Date:
Nov 2005
Posts:
39
Plugin Contributions:
0

Re: login sidebox

yes, sorry. I saw that topic to late. Maybe a mod could move it ;)