Thread: login sidebox

Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Nov 2005
    Posts
    40
    Plugin Contributions
    0

    Default 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:

    Code:
      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?

  2. #2
    Join Date
    Aug 2004
    Posts
    1,590
    Plugin Contributions
    1

    Default 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.

  3. #3
    Join Date
    Nov 2005
    Posts
    40
    Plugin Contributions
    0

    Default Re: login sidebox

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

 

 

Similar Threads

  1. Sidebox Login Mod 1.3
    By JollyJim in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 18 May 2006, 06:45 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •