chrometweaks.org

What is the best free picture iPage hosting service.?

Click Here To View All Answers...


Got a quick question: What is the best free picture iPage hosting service.? Many thanks for any answer. My other question... Maybe someone can help me to realize this. I want to have 2, 3 or 4 category boxes..

For example, the first and second box:.

Components.

Processors.

CPU Fans.

Mainboards.

RAM.

HDD.

DVD Writer.

Peripherals.

Mice.

Keyboards.

TFT Displays.

Sound Systems.

I want to create a second or third box, and I want to give the categories a flag in which box they have to appear..

I have asked for it in the german forum before, but noone could help me.. so I try here..

Thanks, a lot...

Comments (48)

I'm stumped. I'm not so sure what is the answer to your question. I'll do some Googling and get back to you if I find an decent answer. You should email the people at iPage as they probably could give you an answer..

Comment #1

I already did it that way:.

I made one new field in the db: box. Default is "box = 1"..

Then I marked the categories which have to appear in box1 with "box = 1" in the db, and those who have to appear in box2 with "box = 2".

Then I made a copy of the categories.php and renamed it categories2.php..

In categories.php I changed line 89 like this:.

$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 ."' and c.box = '1' order by sort_order, cd.categories_name");.

In categories2.php I changed this:.

In line 17, 59 and 148 the function:.

Tep_show_category.

Renamed to:.

Tep_show_category2.

Then (in categories2.php) I changed line 98 to this::.

$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 ."' and c.box = '2' order by sort_order, cd.categories_name");.

Now added to column_left.php:.

Require(DIR_WS_BOXES'categories2.php');.

And done.

This works fine, the only problem I have: My first category ist "Processors". This first categorie has to be in both of the boxes, otherwise no other category will appear! can someone tell me how this can be???.

Or you have another good solutin?.

Thanks a lot ....

Im searching for months for a solution. This is the german thread:.

Http://forums.oscommerce.de/viewtopic.php?...der=asc&start;=0..

Comment #2

Hi Gary,.

I am new to PHP. Could anyone tell me what you mean by "I made one new field in the db: box. Default is "box = 1".".

Where can I find the db:box and how do I make changes or add a line to it?.

Sorry this question might be very simple, but any help would be appreciated. Many thanks.

Siba..

Comment #3

Use phpmyadmin. go to tabel products and add the field "box"..

Has noone an idea how I can manage this problem. I have searched for a contribution, but I could find anything.....

Im afraid it's just a little thing, but I cant resolve it on my own...

Comment #4

Maybe someone can help me to realize this. I want to have 2, 3 or 4 category boxes..

For example, the first and second box:.

Components.

Processors.

CPU Fans.

Mainboards.

RAM.

HDD.

DVD Writer.

Peripherals.

Mice.

Keyboards.

TFT Displays.

Sound Systems.

I want to create a second or third box, and I want to give the categories a flag in which box they have to appear..

I have asked for it in the german forum before, but noone could help me.. so I try here..

Thanks, a lot...

Comment #5

You will need to add in an extra field in the categories table of the database to flag which "categories box" each category should go into..

You will then need to amend the Categories adding page in Admin to allow you to choose the falg for the category..

In /includes/boxes/categories.php you must then amend the categories_query to only pull categories if they have the correct flag..

Now make a copy of the cateogories infobox code and change the flag. Include it into your page just like the original categories infobox. (This might error out, so you may need to rename the function as well)..

It is fairly straightforward, and there may already be a contribution to do it:.

Http://www.oscommerc...y/contributions..

Comment #6


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