chrometweaks.org

Which service provider gives us web-iPage hosting service very cheaply?

Click Here To View All Answers...


My first question is Which service provider gives us web-iPage hosting service very cheaply? Hoping for any response. Another question I got... Hello,.

I'm not sure how best to describe this, but when you click a category to the left, in the center of the page, it repeats the category, following by "new for this month", so you have the option of continuing to click the left bar for further subs, or the category tags laid out in the middle of the page..

If I want to get rid of the category tags in the middle of the page, and just use the left bar, what file do I need to alter, I've tried several and can't seem to find it..

An example would be:.

Http://www.vsauction...dex.php/cPath/1.

I don't want the following to appear above the New Products for July:.

30 - 32 34 36.

38 and up.

Thanks as always..

Comments (137)

I would like to know the answer too. Anyone here know what is the right answer. I'll do some research in Google and get back to you if I got an good answer. You should email the people at iPage as they probably can answer it..

Comment #1

BACK UP FIRST!.

The section that displays this info is in catalog/index.php from about line 80 to line 109..

I commented out that entire range and ran a few pages - it appears to eliminate what you desired without any other ill effects. Leave the opening php tag on line 79 and start commenting out at line 80, then continue commenting down to the line that says..

Comment #2

Hi mugitty,.

That removed the sub cat's from the main page but the page is now blank, which piece of code will remove the actual link from the categories menu (obviously not the sub-cat's just top level)..

Thanks.

Mark..

Comment #3

Mark;.

I'm not sure what you're trying to do. What I posted above was in answer to removing the categories listing that shows in the main part of the page. If one removes the category picture (and title) and the listing, that will indeed leave the main part of the page empty except for the new items box..

If you are trying to remove the link for the category that you happen to be in from the categories box in the left column, I don't know how to do that and am curious why one would want to...

Comment #4

Hi mugitty,.

The reason I want the top level category link removed is because all my categories have sub-categories and I only want the sub-categories to have clickable links..

I want to remove the unnecessary extra links so that the customer will click the sub-category link and go straight to the product listing page..

Has anyone done this or would know how to do it?.

Thanks.

Mark..

Comment #5

Hi,.

I have found the code for the category links, it is in the catalog/includes/boxes/category_dhtml.php file..

This is the code:.

<! categories //>.

         <tr>.

           <td>.

<?php.

/*.

 Dynamic DHTL MenuBar for category listing v 0.2.1.

 This is a combination of modified categories.php and.

 HV Menu javacript written by Ger Versluis (c) 2000 version 5.411 24 December 2001 (updated Jan 31st, 2003 by Dynamic Drive for Opera7).

* HV Menu found on Dynamic Drive ONLY may be used on both commercial and non commerical sites *.

* For info about HV Menu write to.

********************************************************************************.

**************************************************************/.

Var LowBgColor='transparent';  // Background color when mouse is not over.

Var LowSubBgColor='white';  // Background color when mouse is not over on subs.

Var HighBgColor='transparent';  // Background color when mouse is over.

Var HighSubBgColor='white';  // Background color when mouse is over on subs.

Var FontLowColor='black';  // Font color when mouse is not over.

Var FontSubLowColor='black';  // Font color subs when mouse is not over.

Var FontHighColor='#6699cc';  // Font color when mouse is over.

Var FontSubHighColor='#6699cc';  // Font color subs when mouse is over.

Var BorderColor='transparent';  // Border color.

Var BorderSubColor='#6699cc';  // Border color for subs.

Var BorderWidth=1;    // Border width.

Var BorderBtwnElmnts=0;  // Border between elements 1 or 0.

Var FontFamily="Verdana, Arial, sans-serif" // Font family menu items.

Var FontSize=8;    // Font size menu items.

Var FontBold=0;    // Bold menu items 1 or 0.

Var FontItalic=0;    // Italic menu items 1 or 0.

Var MenuTextCentered='left';  // Item text position 'left', 'center' or 'right'.

Var MenuCentered='left';  // Menu horizontal position 'left', 'center' or 'right'.

Var MenuVerticalCentered='top';  // Menu vertical position 'top', 'middle','bottom' or static.

Var ChildOverlap=.0;    // horizontal overlap child/ parent.

Var ChildVerticalOverlap=.0;  // vertical overlap child/ parent.

Var StartTop=1;    // Menu offset x coordinate.

Var StartLeft=0;    // Menu offset y coordinate.

Var VerCorrect=0;    // Multiple frames y correction.

Var HorCorrect=0;    // Multiple frames x correction.

Var LeftPaddng=2;    // Left padding.

Var TopPaddng=1;    // Top padding.

Var DissapearDelay=500;  // delay before menu folds in.

Var FirstLineHorizontal=0;  // SET TO 1 FOR HORIZONTAL MENU, 0 FOR VERTICAL.

Var MenuFramesVertical=1;  // Frames in cols or rows 1 or 0.

Var TakeOverBgColor=1;  // Menu frame takes over background color subitem frame.

Var FirstLineFrame='navig';  // Frame where first level appears.

Var SecLineFrame='space';  // Frame where sub levels appear.

Var DocTargetFrame='space';  // Frame where target documents appear.

Var TargetLoc='MenuBar';    // span id for relative positioning.

Var HideTop=0;    // Hide first level when loading new document 1 or 0.

Var MenuWrap=1;    // enables/ disables menu wrap 1 or 0.

Var RightToLeft=0;    // enables/ disables right to left unfold 1 or 0.

Var UnfoldsOnClick=0;  // Level 1 unfolds onclick/ onmouseover.

Var WebMasterCheck=0;  // menu tree checking on or off 1 or 0.

Var ShowArrow=1;    // Uses arrow gifs when 1.

Var KeepHilite=1;    // Keep selected path highligthed.

Var Arrws=['<?php echo DIR_WS_IMAGES; ?>tri.gif',5,10,'<?php echo DIR_WS_IMAGES; ?>tridown.gif',10,5,'<?php echo DIR_WS_IMAGES; ?>trileft.gif',5,10]; // Arrow source, width and height.

Function BeforeStart(){return}.

Function AfterBuild(){return}.

Function BeforeFirstOpen(){return}.

Function AfterCloseAll(){return}.

Function Go(){return}.

<?php  .

$number_top_levels = 0;.

$categories_string='';.

 $number_top_levels = build_menus(0,'','');.

 echo 'var NoOffFirstLineMenus= '$number_top_levels. ';';  // Number of first level items.

 echo $categories_string;.

Function build_menus($currentParID,$menustr,$catstr) {.

   global $categories_string, $id, $languages_id;.

   $tmpCount;.

 .

  $tmpCount = 0;.

  $haschildren = 0; //default.

// BOF Enable - Disable Categories Contribution.

// BOF Original line.

    $categories_query_catmenu = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from "TABLE_CATEGORIES" c, "TABLE_CATEGORIES_DESCRIPTION" cd where c.parent_id = '"$currentParID"' and c.categories_id = cd.categories_id and cd.language_id='"$languages_id ."' order by sort_order, cd.categories_name");.

// EOF Original line.

// BOF Enable - Disable Categories.

//   $categories_query_catmenu = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from "TABLE_CATEGORIES" c, "TABLE_CATEGORIES_DESCRIPTION" cd where c.categories_status = '1' and c.parent_id = '"$currentParID"' and c.categories_id = cd.categories_id and cd.language_id='"$languages_id ."' order by sort_order, cd.categories_name");.

// EOF Enable - Disable Categories.

// EOF Enable - Disable Categories Contribution.

 .

  while ($categories = tep_db_fetch_array($categories_query_catmenu))  {.

    $tmpString = '';.

    $tmpCount += 1;.

    $haschildren=tep_has_category_subcategories($categories['categories_id']);.

    if ($haschildren) {.

        if($menustr != ''){.

          $menu_tmp = $menustr'_'$tmpCount;.

        } else {.

          $menu_tmp = $tmpCount;.

        }.

        if($catstr != ''){.

          $cat_tmp = $catstr'_'$categories['categories_id'];.

        } else {.

          $cat_tmp = $categories['categories_id'];.

        }.

      $NumChildren = build_menus($categories['categories_id'],$menu_tmp,$cat_tmp);     } else {.

      $NumChildren = 0;.

     }.

   if ($id==$categories['categories_id']) {.

     $tmpString .= '<b>';.

   }.

   // display category name.

   $tmpString .= $categories['categories_name'];.

   if ( $id==$categories['categories_id'] ) {.

     $tmpString .= '</b>';.

   }.

   if (SHOW_COUNTS == 'true') {.

     $products_in_category = tep_count_products_in_category($categories['categories_id']);.

     if ($products_in_category > 0) {.

       $tmpString .= ' ('$products_in_category')';.

     }.

   }.

    if($catstr != ''){.

       $cPath_new = 'cPath='$catstr'_'$categories['categories_id'];.

    } else {.

       $cPath_new = 'cPath='$categories['categories_id'];.

    }.

 // Menu tree.

// Menu1_1_1=new Array(Text to show, Link, background image (optional), number of sub elements, height, width);.

        if($menustr != ''){.

          $menu_tmp = $menustr'_'$tmpCount;.

        } else {.

          $menu_tmp = $tmpCount;.

        }.

$categories_string .=  'Menu'($menustr!=''?$menustr.'_':'')$tmpCount;.

$categories_string .=  '= new Array("'$tmpString'","';.

$categories_string .=  tep_href_link(FILENAME_DEFAULT, $cPath_new);.

$categories_string .= '","",';.

$categories_string .= $NumChildren;.

$categories_string .= ','LEFT_LINK_HEIGHT','LEFT_LINK_WIDTH;.

$categories_string .= '); ';.

 .

   }// end while.

   return $tmpCount;.

 }  //end build menus.

Echo '</script>';.

$tabletext ="<table><tr><td><div id='MenuBar' style='position:relative; width: "LEFT_LINK_WIDTH"; height: "($number_top_levels*LEFT_LINK_HEIGHT)";'>&nbsp;</div></td></tr></table>";.

 $info_box_contents = array();.

 $info_box_contents[] = array('align' => 'left',.

                              'text'  => $tabletext.

                             );.

New infoBox($info_box_contents);.

?>.

<script LANGUAGE="JavaScript1.2" SRC="includes/menu_animation.js"></SCRIPT>.

          </td>.

         </tr>.

<! categories_eof //>.

And this is the code that controls the category links:.

$categories_string .=  'Menu'($menustr!=''?$menustr.'_':'')$tmpCount;.

$categories_string .=  '= new Array("'$tmpString'","';.

$categories_string .=  tep_href_link(FILENAME_DEFAULT, $cPath_new);.

$categories_string .= '","",';.

$categories_string .= $NumChildren;.

$categories_string .= ','LEFT_LINK_HEIGHT','LEFT_LINK_WIDTH;.

$categories_string .= '); ';.

I know that this is the line that needs to be changed (I think!):.

$categories_string .=  tep_href_link(FILENAME_DEFAULT, $cPath_new);.

If anyone knows just how to include the sub-categories as links I would appreciate it very much..

Thanks.

Mark..

Comment #6

Hello,.

I'm not sure how best to describe this, but when you click a category to the left, in the center of the page, it repeats the category, following by "new for this month", so you have the option of continuing to click the left bar for further subs, or the category tags laid out in the middle of the page..

If I want to get rid of the category tags in the middle of the page, and just use the left bar, what file do I need to alter, I've tried several and can't seem to find it..

An example would be:.

Http://www.vsauction...dex.php/cPath/1.

I don't want the following to appear above the New Products for July:.

30 - 32 34 36.

38 and up.

Thanks as always..

Comment #7

I would also like to be able to do this if anyone knows how?.

Thanks.

Mark..

Comment #8


This question was taken from a support group/message board and re-posted here so others can learn from it.