Jump to content
Sign in to follow this  
jcall

[Contribution] More Category Boxes

Recommended Posts

this is my first posting here .. hi all

 

i found a solution to the subcategories not showing up when using SEO Urls and removing the ?infoBox=X part of the url, problem.

 

the solution is to submit the "infobox=X" parameter internally using the .htaccess file

 

example

RewriteRule ^mystuff-c-10.html$ mystuff-c-10.html?infoBox=1

 

this way the URL wont be altered (google) but the system will work as planned.

 

just letting you know because this problem drove me mad for months and now that i found a workaround i feel like linus torwald and i hope it helps someone

Share this post


Link to post
Share on other sites

Thanks for this contributions

I d like to say if is possible add multilanguage box title.

Thanks

Is very important for me

 

Roberto

Share this post


Link to post
Share on other sites

I read a previous post as to how to add different header images to each category box,, but how would you place 1) different background images for the actual box.... or 2) use different css stylings for each box? This has been asked before above, however, no usable responses. Would it be similar to the code above? where placed? Thanks in advance.

 

Jonathan :blink:

Share this post


Link to post
Share on other sites

Hello Every one,

 

I would like to show the boxes on the main page at the middle area below the new products box, not the right or left column, tried many ways but did not succeed, I believe a code must be inserted on the index.php file.

 

Can you kindly advise what should I insert (code) ?

 

Also If I want to replace the category name with a just any name, can I do that ?

 

Thanks for your help.

 

Regards

Ahmed

Share this post


Link to post
Share on other sites

Hi everyone!

I've just installed this contribution and it's working perfectly! It is exactly what I needed. The one problem I have is that on each category box, the rounded top left corner is showing. I only want this to show on the top box - all others below it should be have normal corners. I've been through this thread and haven't found the answer. Any ideas?

 

menu_image.jpg

 

 

Thanks,

Karim

 

ps. I could also use a multi-language contribution for this. Each of my category headers is only in English even though my site is also in German and French.

Share this post


Link to post
Share on other sites

Hi everyone!

I've just installed this contribution and it's working perfectly! It is exactly what I needed. The one problem I have is that on each category box, the rounded top left corner is showing. I only want this to show on the top box - all others below it should be have normal corners. I've been through this thread and haven't found the answer. Any ideas?

 

menu_image.jpg

 

 

Thanks,

Karim

 

ps. I could also use a multi-language contribution for this. Each of my category headers is only in English even though my site is also in German and French.

Share this post


Link to post
Share on other sites

Im having the same problem as Kittidid on page 2 :

 

1146 - Table 'emilys_oscommerce_st0.categories_more' doesn't exist

 

select * from categories_more

 

[TEP STOP]

 

when i try to access the Admin side of the Contrib.

 

What was the solution in her case?

 

 

And i cant find Admin >> Configuration >> More Categories ... it doesn't seem to be there.... :'(

So i cant disable the Default Box.... is it enuff to do that in the DB.. setting the value of DEFAULT_CATEGORY_BOX_ENABLED to false?

 

Thanks in advance

 

Hjaelmen // Martin

Share this post


Link to post
Share on other sites

Hi:

 

I have to install more_catalogies onto my shop.

However, I met some problem.

After I done all the steps.

I cannot login the admin/index.php

but the shop/index.php is ok, I can still view the shop content, it seems nothing has been change from the shop view.

I wonder what cause the problem for me not able to go to the admin/index.php?

 

Before I install the more-catagories, I have back up my original php code, but not the database.

currently, both version of the php code are not working

then, I assume that is because of the mysql dababase, since I have imported the more_catagories.sql

 

Is there anybody know how can i solve this problem?

btw, I am running this at my local computer.

 

thanks

 

Alex

Share this post


Link to post
Share on other sites

Ive installed the More Category Boxes mod. I want to insert a new categories, but when i do, it gets duplicated like this ~

 

cat.gif

 

I only want "sawyer" once in the new box, not in the main category.

 

Does anyone know how i can fix this?

 

Thanks in advance x

Share this post


Link to post
Share on other sites

how can add the box-title to the breadcrumb?

 

like this start > catalog > box 1 > product 1

 

like this start > catalog > box 2 > product 1

 

thx!

Share this post


Link to post
Share on other sites

Hi i installed this Mod, installation went perfectly.

My DB was updated succesfully and i modified all files.

 

But it just won't display the new boxes in my Shop?

When i update them in my administration it says : Success: Categories have been successfully updated.

But they don't show in the shop. >_<

 

Any idea what could cause this?

i already disabeled the default catergory .

 

Thanks in advance!

Mellie

Share this post


Link to post
Share on other sites
Hi i installed this Mod, installation went perfectly.

My DB was updated succesfully and i modified all files.

 

But it just won't display the new boxes in my Shop?

When i update them in my administration it says : Success: Categories have been successfully updated.

But they don't show in the shop. >_<

 

Any idea what could cause this?

i already disabeled the default catergory .

 

Thanks in advance!

Mellie

 

After studying all files, i missed one eventhough i thought i was being very accurate :-"

 

Well, i am one happy gall now.

 

So thanx for just listening :lol: :blush:

 

Byebye

Edited by mellie81

Share this post


Link to post
Share on other sites

Hi.

 

I have just install this mod, but i have bought my template from templatemonster and I cant get the same style at both categories.

How shell I do?

I just want to use the same style that i have at the first.

Here is my categories.php:

 

<?php
/*
 $Id: categories.php,v 1.25 2003/07/09 01:13:58 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/
 function tep_show_category($counter, $count) {
   global $tree, $categories_string, $cPath_array, $ii;

if ($count == 0 ) $kk=' '; else $kk=' class="bg2"'; 

$count++;

if(!$tree[$counter]['level']){ 
$categories_string .= $categories_string ? '' : ''; 
$categories_string .= '							
							<tr'.$kk.'>
							<td width="20" align="center" class="bg3">'.tep_image(DIR_WS_IMAGES.'bg_list.gif').'</td>
							<td width="1" bgcolor="E7E6E6"></td>
							<td width="139" class="bg4"><a href=';

if (SHOW_COUNTS == 'true') {
  $products_in_category = tep_count_products_in_category($counter);
  if ($products_in_category > 0) {
	$num_prod =  ' ('.$products_in_category.')';

  }
}

if ($tree[$counter]['parent'] == 0) {
$cPath_new = 'cPath=' . $counter;
} else {
$cPath_new = 'cPath=' . $tree[$counter]['path'];
}
$categories_string .= tep_href_link('index.php', $cPath_new) . '>';

// display categry name
$categories_string .= $tree[$counter]['name'];
$categories_string .= $num_prod.'</a></td>
						</tr>';

  }else{

 // SUBCATEGORY
if (SHOW_COUNTS == 'true') {
  $products_in_category = tep_count_products_in_category($counter);
  if ($products_in_category > 0) {
	$num_prod =  ' ('.$products_in_category.')';
  }
}	 
$count = 2;
$categories_string .= '';

for($i=0;$i<$tree[$counter]['le vel'];$i++)
 $categories_string .= '';

$categories_string .= '
						<tr'.$kk.'>
							<td width="20" align="center" class="bg3"></td>
							<td width="1" bgcolor="E7E6E6"></td>
							<td width="139" class="bg4">-  <a href=

<li class="bg_list_sub"><a href=';   
if ($tree[$counter]['parent'] == 0) {
  $cPath_new = 'cPath=' . $counter;
} else {
  $cPath_new = 'cPath=' . $tree[$counter]['path'];
}
$categories_string .= tep_href_link('index.php', $cPath_new) . '>';
// display category name
$categories_string .= $tree[$counter]['name'];
$categories_string .= $num_prod.'</a></td>
						</tr>';
 }



if ($tree[$counter]['next_id'] != false && $ii < 30) {
  tep_show_category($tree[$counter]['next_id'], $count);
}  
 }
?>
<!-- categories //-->
	  <tr>
		<td valign="top">
<?php
 $info_box_contents = array();
 $info_box_contents[] = array('text' => BOX_HEADING_CATEGORIES);

 new infoBoxHeading($info_box_contents, true, false);

 $categories_string = '<table cellspacing="0" cellpadding="0" border="0" class="column_left">';
 $tree = array();

 $categories_query = 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 = '0' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name");
 while ($categories = tep_db_fetch_array($categories_query))  {
$tree[$categories['categories_id']] = array('name' => $categories['categories_name'],
											'parent' => $categories['parent_id'],
											'level' => 0,
											'path' => $categories['categories_id'],
											'next_id' => false);

if (isset($parent_id)) {
  $tree[$parent_id]['next_id'] = $categories['categories_id'];
}

$parent_id = $categories['categories_id'];

if (!isset($first_element)) {
  $first_element = $categories['categories_id'];
}
 }

 //------------------------
 if (tep_not_null($cPath)) {
$new_path = '';
reset($cPath_array);
while (list($key, $value) = each($cPath_array)) {
  unset($parent_id);
  unset($first_id);
  $categories_query = 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 = '" . (int)$value . "' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name");
  if (tep_db_num_rows($categories_query)) {
	$new_path .= $value;
	while ($row = tep_db_fetch_array($categories_query)) {
	  $tree[$row['categories_id']] = array('name' => $row['categories_name'],
										   'parent' => $row['parent_id'],
										   'level' => $key+1,
										   'path' => $new_path . '_' . $row['categories_id'],
										   'next_id' => false);

	  if (isset($parent_id)) {
		$tree[$parent_id]['next_id'] = $row['categories_id'];
	  }

	  $parent_id = $row['categories_id'];

	  if (!isset($first_id)) {
		$first_id = $row['categories_id'];
	  }

	  $last_id = $row['categories_id'];
	}
	$tree[$last_id]['next_id'] = $tree[$value]['next_id'];
	$tree[$value]['next_id'] = $first_id;
	$new_path .= '_';
  } else {
	break;
  }
}
 }
$count = 0;
 tep_show_category($first_element, $count); 
$categories_string .='</table>';
 $info_box_contents = array();
 $info_box_contents[] = array('text' => $categories_string);

 new infoBox($info_box_contents);
?>
		</td>
	  </tr>
<!-- categories_eof //-->

 

PLEASE HELP!

Share this post


Link to post
Share on other sites

Hello. I wonder if it's possible with this contribution to make a selector. So only one category box is showing. But the user can select with tabs if he wants category box 1, box 2 or box 3.

Share this post


Link to post
Share on other sites

This is a great contribution and works well. But...

 

Does anyone here know how I can select sub categories to be placed in the boxes? At the moment only main categories are listed.

 

Thanks

 

M.

Share this post


Link to post
Share on other sites

Someone have solved the problem of infoBox parameter in url with seo url?

The solution with htacces is a good idee but dont work.

 

Thanks for all the work done.

Share this post


Link to post
Share on other sites
Hi:

 

I have to install more_catalogies onto my shop.

However, I met some problem.

After I done all the steps.

I cannot login the admin/index.php

but the shop/index.php is ok, I can still view the shop content, it seems nothing has been change from the shop view.

I wonder what cause the problem for me not able to go to the admin/index.php?

 

Before I install the more-catagories, I have back up my original php code, but not the database.

currently, both version of the php code are not working

then, I assume that is because of the mysql dababase, since I have imported the more_catagories.sql

 

Is there anybody know how can i solve this problem?

btw, I am running this at my local computer.

 

thanks

 

Alex

 

hi, I'm having the same problem :(

Share this post


Link to post
Share on other sites

I have use more categories and it works very good :)

I have use the files for max 25 directories.

 

Now i need to use 50 directories?

How can I change?

My store is now very change so I will not make a misstake.

Can I insert more tabells in phpmyadmin?

Or just import to 50 file?

 

 

Thanks ;)

Share this post


Link to post
Share on other sites

I just installed this contribution, worked out a few glitches and started arranging my categories.

 

I finally finished reading through this thread, low and behold I spot a few post regarding SEO URL problems. :blink:

 

Optimizing a site with meta tags and search engine friend URL's are more important than a nicely organized menu structure.

 

Before I backtrack and delete this mod, has anyone found a fix for using it with any SEO's?

Exactly what problem is there when trying to use it with Ultimate SEO URL's?


- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Share this post


Link to post
Share on other sites

Does anyone have this contribution and Ultimate SEO URL contribution working together?

 

What exactly is the problem mentioned in a few previous post pertaining to SEO problems?

 

I would really like to use this contrib...


- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Share this post


Link to post
Share on other sites

I've just installed this on a test server and I am a little bit confused on how to use it to do what I need. I am running category tabs and subtabs for the main category menu. I need to create a category that is not displayed in the category tabs, but rather is displayed in the column left area.

 

From the looks of the contribution - I have to go into the normal Categories area to create my new category - but if I do this then I will end up with that category showing on the category tabs.

 

How do I either keep it from showing on category tabs - or create it in the More Categories area so that it only shows on the More Categories box?


~Tracy
 

Share this post


Link to post
Share on other sites

Hi all,

 

Installed 25categoriesand it works fine, but;

 

- I have made a new category box and can only put 10 categories in the box, if i select a 11th categorie and click update,

it goes back to the ten categories i already had.

 

Does anyone know why i cant put the 11th category in the box??

 

Thank you in advance,

 

Rob Veraar

Share this post


Link to post
Share on other sites

I've installed this contrib as it is exactly what I am looking for.

Now I have a question I hope someone can answer.

 

Is it possible to add an Image in the InfoBox of Each Category, with each one having a different image.

Or is it possible to turn the whole thing in to a graphical menu.

 

Cheers

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×