chrometweaks.org

How long does it take to get the money from a domain transfer on iPage?

Click Here To View All Answers...


Quick question... How long does it take to get the money from a domain transfer on iPage? Thanks for any comment. Second question.. Can someone tell me what I have done wrong here?!?! The whole cattegories box is empty now - just the name Category and a solid box with an arrow in it and I have a gray box down at the bottom of the column with the stats in it and the copyright info and banner on on the left instead of in the middle! I was just trying to take the ">" off of the Category box..

<?php.

/*.

$Id: categories.php,v 1.23 2002/11/12 14:09:30 dgw_ Exp $.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright 2002 osCommerce.

Released under the GNU General Public License.

*/.

Function tep_show_category($counter) {.

Global $foo, $categories_string, $id;.

For ($a=0; $a<$foo[$counter]['level']; $a++) {.

$categories_string .= "&nbsp;&nbsp;";.

}.

$categories_string .= '<a href="';.

If ($foo[$counter]['parent'] == 0) {.

$cPath_new = 'cPath='$counter;.

} else {.

$cPath_new = 'cPath='$foo[$counter]['path'];.

}.

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

$categories_string .= '"';.

If ( ($id) && (in_array($counter, $id)) ) {.

$categories_string .= '<b>';.

}.

// display category name.

$categories_string .= $foo[$counter]['name'];.

If ( ($id) && (in_array($counter, $id)) ) {.

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

}.

If (tep_has_category_subcategories($counter)) {.

$categories_string .= '-&gt;';.

}.

$categories_string .= '</a>';.

If (SHOW_COUNTS == 'true') {.

$products_in_category = tep_count_products_in_category($counter);.

If ($products_in_category > 0) {.

$categories_string .= '&nbsp;('$products_in_category')';.

}.

}.

$categories_string .= '<br>';.

If ($foo[$counter]['next_id']) {.

Tep_show_category($foo[$counter]['next_id']);.

}.

}.

?>.

<! categories //>.

<tr>.

<td>.

<?php.

$info_box_contents = array();.

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

'text' => BOX_HEADING_CATEGORIES.

);.

New infoBoxHeading($info_box_contents, true, false);.

$categories_string = '';.

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

While ($categories = tep_db_fetch_array($categories_query)) {.

$foo[$categories['categories_id']] = array(.

'name' => $categories['categories_name'],.

'parent' => $categories['parent_id'],.

'level' => 0,.

'path' => $categories['categories_id'],.

'next_id' => false.

);.

If (isset($prev_id)) {.

$foo[$prev_id]['next_id'] = $categories['categories_id'];.

}.

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

If (!isset($first_element)) {.

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

}.

}.

//.

If ($cPath) {.

$new_path = '';.

$id = split('_', $cPath);.

Reset($id);.

While (list($key, $value) = each($id)) {.

Unset($prev_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 = '"$value"' and c.categories_id = cd.categories_id and cd.language_id='"$languages_id ."' order by sort_order, cd.categories_name");.

$category_check = tep_db_num_rows($categories_query);.

If ($category_check > 0) {.

$new_path .= $value;.

While ($row = tep_db_fetch_array($categories_query)) {.

$foo[$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($prev_id)) {.

$foo[$prev_id]['next_id'] = $row['categories_id'];.

}.

$prev_id = $row['categories_id'];.

If (!isset($first_id)) {.

$first_id = $row['categories_id'];.

}.

$last_id = $row['categories_id'];.

}.

$foo[$last_id]['next_id'] = $foo[$value]['next_id'];.

$foo[$value]['next_id'] = $first_id;.

$new_path .= '_';.

} else {.

Break;.

}.

}.

}.

Tep_show_category($first_element);.

$info_box_contents = array();.

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

'text' => $categories_string.

);.

New infoBox($info_box_contents);.

?>.

</td>.

</tr>.

<! categories_eof //>..

Comments (98)

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

Comment #1

How do I go about doing that? I went into Cache Control in admin and all there is a reset option...

Comment #2

O.K. I found Cache in Configuration also and it says "false" which I would assume to be disabled?..

Comment #3

When I get a strange error, the first thing I try to do is trace my steps. In other words was it working before? And if so, what file changes or contribtutions did you install that may have created the new error. Give me a little info and I'll see if I can help you..

Ruth..

Comment #4

I went back and read your original post. Replace your categories.php with the original file and start again and all will be well. I'm not really sure what you were trying to modify. This is how we all learn is by breaking things - lol. If I had a nickle for how many times I've broken my apps, I be a wealthy woman. That why everyone always says...



Ruth..

Comment #5

If after you restore the original file and it still doesn't work, maybe you have PHP Cache (like APC) enabled, so try restarting Apache. If that still doesn't work, try to add a category and then delete it. I've had that happened before and that fixed it, the database got corrupted somehow..

Andrew..

Comment #6

That is the problem.... Because I was only going to take out the ">" in the categories string I didn't think I needed to make a copy of the original. But then I saw the SHOW_COUNTS == 'true' and decided maybe I should change that to "false". Those are the only two things I changed. The only problem is because I didn't do a backup or copy the original, I am not sure exactly what the origninal file was. Is there a place that has the original scripts that you can copy when you make a foolish mistake like this? I have definately learned my lesson about backing up!!!.

$categories_string = '';.

(SHOW_COUNTS == 'true')..

Comment #7

O.K. as long as I add another category the left column goes back to the top the gray stats bar is back to being a bar and not a box, the banner and copyright is back in the middle again - but if I delete the category, everything goes haywire again!!! There are still no categories listed in my categories box either way though but with the category added the box with arrow is gone also...

Comment #8

I have it all fixed now!!! My wonderful BEAUTIFUL friend/mentor had all the files saved knowing that something like this would happen. I was afraid to tell her I had not saved my file, but she was very understanding about it and had me up and running in 30 seconds! She also sent me a Free Text Editor that will save the original file for me even if I save the new one and it has the line #'s on it!.

Thank you so much rwoody and ayn for your help last night! Now I know I don't have to be afraid to post or to let my mentor/friend know that I have blundered!!!.

Thank You!.

Sweetfreedom..

Comment #9

Can someone tell me what I have done wrong here?!?! The whole cattegories box is empty now - just the name Category and a solid box with an arrow in it and I have a gray box down at the bottom of the column with the stats in it and the copyright info and banner on on the left instead of in the middle! I was just trying to take the ">" off of the Category box..

<?php.

/*.

$Id: categories.php,v 1.23 2002/11/12 14:09:30 dgw_ Exp $.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright 2002 osCommerce.

Released under the GNU General Public License.

*/.

Function tep_show_category($counter) {.

Global $foo, $categories_string, $id;.

For ($a=0; $a<$foo[$counter]['level']; $a++) {.

$categories_string .= "&nbsp;&nbsp;";.

}.

$categories_string .= '<a href="';.

If ($foo[$counter]['parent'] == 0) {.

$cPath_new = 'cPath='$counter;.

} else {.

$cPath_new = 'cPath='$foo[$counter]['path'];.

}.

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

$categories_string .= '"';.

If ( ($id) && (in_array($counter, $id)) ) {.

$categories_string .= '<b>';.

}.

// display category name.

$categories_string .= $foo[$counter]['name'];.

If ( ($id) && (in_array($counter, $id)) ) {.

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

}.

If (tep_has_category_subcategories($counter)) {.

$categories_string .= '-&gt;';.

}.

$categories_string .= '</a>';.

If (SHOW_COUNTS == 'true') {.

$products_in_category = tep_count_products_in_category($counter);.

If ($products_in_category > 0) {.

$categories_string .= '&nbsp;('$products_in_category')';.

}.

}.

$categories_string .= '<br>';.

If ($foo[$counter]['next_id']) {.

Tep_show_category($foo[$counter]['next_id']);.

}.

}.

?>.

<! categories //>.

<tr>.

<td>.

<?php.

$info_box_contents = array();.

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

'text' => BOX_HEADING_CATEGORIES.

);.

New infoBoxHeading($info_box_contents, true, false);.

$categories_string = '';.

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

While ($categories = tep_db_fetch_array($categories_query)) {.

$foo[$categories['categories_id']] = array(.

'name' => $categories['categories_name'],.

'parent' => $categories['parent_id'],.

'level' => 0,.

'path' => $categories['categories_id'],.

'next_id' => false.

);.

If (isset($prev_id)) {.

$foo[$prev_id]['next_id'] = $categories['categories_id'];.

}.

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

If (!isset($first_element)) {.

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

}.

}.

//.

If ($cPath) {.

$new_path = '';.

$id = split('_', $cPath);.

Reset($id);.

While (list($key, $value) = each($id)) {.

Unset($prev_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 = '"$value"' and c.categories_id = cd.categories_id and cd.language_id='"$languages_id ."' order by sort_order, cd.categories_name");.

$category_check = tep_db_num_rows($categories_query);.

If ($category_check > 0) {.

$new_path .= $value;.

While ($row = tep_db_fetch_array($categories_query)) {.

$foo[$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($prev_id)) {.

$foo[$prev_id]['next_id'] = $row['categories_id'];.

}.

$prev_id = $row['categories_id'];.

If (!isset($first_id)) {.

$first_id = $row['categories_id'];.

}.

$last_id = $row['categories_id'];.

}.

$foo[$last_id]['next_id'] = $foo[$value]['next_id'];.

$foo[$value]['next_id'] = $first_id;.

$new_path .= '_';.

} else {.

Break;.

}.

}.

}.

Tep_show_category($first_element);.

$info_box_contents = array();.

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

'text' => $categories_string.

);.

New infoBox($info_box_contents);.

?>.

</td>.

</tr>.

<! categories_eof //>..

Comment #10

Check and see if the Cache is enabled in your admin. If it is disable it and see if all returns to normal..

Ruth in AZ..

Comment #11


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