[ic] Possible bug

Diego Henao interchange-users@icdevgroup.org
Fri Dec 13 19:56:01 2002


I want to bring something up. I don't know if this can be generalized, but
 I have been getting a missing page when I have tried to use the service
button without being logged in. I found the solution, and I want to share
it with you because maybe someone can also suffer this problem later. I
tried to get an answer writting here, but I didn't get any answer.

I am not a programmer, but my logic is that how can you access the
costumer service page if you are not a member?. I saw the code and the
program is doing what it is supposed to be doing.If you are not logged in
there is not way for interchange to show up the costumer service page
because you are not an user yet. Therefore, if you are not logged in you
are supposed to go to the log in area, if you are logged in you will be
able to go to the costumer service area.

I am using interchange 4.9.3. I am going to show you the code below. This
will work as the other updates. Wherever you find a + you add the line, if
you find a - you delete it.

Any feedback will be wonderful.

---------------------------------------------------------------------------


<!-- BEGIN LEFTRIGHT_TOP -->
[if scratch members_only]
    [set members_only][/set]
    [if !session logged_in]
    [set mv_successpage]@@MV_PAGE@@[/set]
    [bounce page=login]
    [/if]
[/if]

<html>
<head>
  [scratchd meta_header]
  <title>[scratch page_title]</title>
  __THEME_CSS__
</head>

<body marginheight="0" marginwidth="0" bgcolor="__BACKGROUND__">

<!--- top left and right logo --->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
  <td align="left" valign="middle" class="maincontent">
    &nbsp;<img src="__THEME_LOGO__">
  </td>
</tr>
</table>

<!--- menu bar along the top --->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr class="categorybar">
  <td width="100%" height="1" class="categorybar"><img src="bg.gif"
height="1"></td>
</tr>
<tr>
  <td width="100%" class="menubar">
    <a href="[area index]"><img name="Home" border="0"
src="__THEME_IMG_DIR__home.gif"></a>
      <img src="__THEME_IMG_DIR__sep.gif">
    <a href="[area login]">
    [if session logged_in]
      <img alt="Log Out" border="0" src="__THEME_IMG_DIR__logout.gif"></a>
    [else]
      <img alt="Log In" border="0" src="__THEME_IMG_DIR__login.gif"></a>
    [/else]
    [/if]
      <img src="__THEME_IMG_DIR__sep.gif">
    <a href="[area ord/basket]"><img alt="Your Cart" border="0"
src="__THEME_IMG_DIR__cart.gif"></a>
      <img src="__THEME_IMG_DIR__sep.gif">
    <a href="[area ord/checkout]"><img alt="Check Out" border="0"
src="__THEME_IMG_DIR__checkout.gif"></a>
      <img src="__THEME_IMG_DIR__sep.gif">
-    <a href="[area customerservice]"><img alt="Customer Service"
border="0" src="__THEME_IMG_DIR__service.gif"></a>
+ <a href="[area customerservice]">
+ [if session logged_in]
+ <img alt="Customer
Service"border="0"src="__THEME_IMG_DIR__service.gif"></a>
+ <img src="__THEME_IMG_DIR__sep.gif">
+ [else]
+ <a href="[area login]"><img alt="Customer Service" border="0"
src="__THEME_IMG_DIR__service.gif"></a><img
src="__THEME_IMG_DIR__sep.gif">
+ [/else]
+ [/if]
      <img src="__THEME_IMG_DIR__sep.gif">
    <a href="[area aboutus]"><img alt="About Us" border="0"
src="__THEME_IMG_DIR__about.gif"></a>
  </td>
</tr>
<tr class="categorybar">
  <td width="100%" height="1" class="categorybar"><img src="bg.gif"
height="1"></td>
</tr>
</table>

<!--- left category column, main content column, and right special column
--->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
  <td width="20%" valign="top" align="left" class="categorybar">
    <!--Left Sidebar-->
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      [component default=search_box_small group=vertical]
      [component default=category_vertical group=vertical]
      [component group=vertical]
    </table>
  </td>
  <td width="65%" valign="top" align="center" class="maincontent">
    [component group=content]