chrometweaks.org

How can I delete an empty folder from iPage website?

Click Here To View All Answers...


Got a question, hope someone can answer... How can I delete an empty folder from iPage website? Hoping for any comment. Second question.. I found a forum yesterday, but I have searched for it today and can't seem to find it. It was pages and pages long, and I ended up getting confused..

I want to add a "Size Chart" page under the "Information" box..

Here is what I have done so far:.

1. Used conditions.php as my template..

2. Made a file under catalog/includes/languages/english/sizechart.php (contents as follows):.

<?php.

/*.

$Id: conditions.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright © 2002 osCommerce.

Released under the GNU General Public License.

*/.

Define('NAVBAR_TITLE', 'Size Chart');.

Define('HEADING_TITLE', 'Size Chart');.

Define('TEXT_INFORMATION', 'Put here your Conditions of Use information.');.

?>.

3. Made a file called catalog/sizechart.php (contents as follows):.

<?php.

/*.

$Id: conditions.php,v 1.22 2003/06/05 23:26:22 hpdl Exp $.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright © 2003 osCommerce.

Released under the GNU General Public License.

*/.

Require('includes/application_top.php');.

Require(DIR_WS_LANGUAGES$language'/'FILENAME_SIZE_CHART);.

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_SIZE_CHART));.

?>.

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">.

<html <?php echo HTML_PARAMS; ?>>.

<head>.

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">.

<title><?php echo TITLE; ?></title>.

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER)DIR_WS_CATALOG; ?>">.

<link rel="stylesheet" type="text/css" href="stylesheet.css">.

</head>.

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">.

<! header //>.

<?php require(DIR_WS_INCLUDES'header.php'); ?>.

<! header_eof //>.

<! body //>.

<table border="0" width="100%" cellspacing="3" cellpadding="3">.

<tr>.

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">.

<! left_navigation //>.

<?php require(DIR_WS_INCLUDES'column_left.php'); ?>.

<! left_navigation_eof //>.

</table></td>.

<! body_text //>.

<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">.

<tr>.

<td><table border="0" width="100%" cellspacing="0" cellpadding="0">.

<tr>.

<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>.

<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES'table_background_specials.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>.

</tr>.

</table></td>.

</tr>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<tr>.

<td class="main"><?php echo TEXT_INFORMATION; ?></td>.

</tr>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<tr>.

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">.

<tr class="infoBoxContents">.

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">.

<tr>.

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

<td align="right"><?php echo '<a href="'tep_href_link(FILENAME_DEFAULT)'">'tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE)'</a>'; ?></td>.

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

</tr>.

</table></td>.

</tr>.

</table></td>.

</tr>.

</table></td>.

<! body_text_eof //>.

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">.

<! right_navigation //>.

<?php require(DIR_WS_INCLUDES'column_right.php'); ?>.

<! right_navigation_eof //>.

</table></td>.

</tr>.

</table>.

<! body_eof //>.

<! footer //>.

<?php require(DIR_WS_INCLUDES'footer.php'); ?>.

<! footer_eof //>.

<br>.

</body>.

</html>.

<?php require(DIR_WS_INCLUDES'application_bottom.php'); ?>.

4. under includes/languages/english.php...added "Size Chart" (as follows):.

// information box text in includes/boxes/information.php.

Define('BOX_HEADING_INFORMATION', 'Information');.

Define('BOX_INFORMATION_PRIVACY', 'Privacy Notice');.

Define('BOX_INFORMATION_CONDITIONS', 'Conditions of Use');.

Define('BOX_INFORMATION_SHIPPING', 'Shipping & Returns');.

Define('BOX_INFORMATION_CONTACT', 'Contact Us');.

Define('BOX_INFORMATION_SIZE_CHART', 'Size Chart');.

NOW I AM STUCK...what is my next move? as "Size Chart" is not yet showing up under the "Information" box...

Comments (31)

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 know..

Comment #1

Thanks..you are a champ. I just got on to leave a note that I found these procedures as well. Gosh...so many things to change..

I hope this helps the next person that comes along as well..

Thanks again..

Comment #2

Can you believe it...I've hit another snag with this one..

Whatever content is in Conditions of Use, is in Size Chart. If I change Size Chart, nothing happens, but if I change Conditions of Use content, it changes the Size Chart as well..

What is the problem here?..

Comment #3

When I right click on the Size Chart link in the Information box, and go to Properties....it says that it is linking to conditions.php (not sizechart.php).

I have changed all of the codes at the top of the pages to read:.

$Id: sizechart.php,v 1.22 2003/06/05 23:26:22 hpdl Exp $.

Instead of conditions.php etc..

But this did not make a difference...

Comment #4

NEVER MIND! I am a doofus. When I went to "Boxes"...I copied and pasted from "Conditions", and only changed the second link to Size Chart. The first link I had left at Conditions. Totally my oversight because I was flustered..

All working perfectly now. AWESOME..

Now onto my next challenge - What can I stuff up now - LOL "I'll Be Back!"..

Comment #5

I completed the code below.

QUOTE(nimz @ Jan 23 2008, 06:46 AM).

You have 2 more steps to take:.

1. Define the file name:.

OPEN catalog/includes/filenames.php.

ADD:.

CODE.

Define('FILENAME_SIZECHART', 'sizechart.php');.

Anywhere before the ending " ?>" at the end of the file.

2. Add a link to the page in the box file (information.php).

Open catalog/includes/boxes/information.php:.

FIND:.

CODE.

'<a href="'tep_href_link(FILENAME_CONTACT_US)'">'BOX_INFORMATION_CONTACT'</a>');.

ADD ABOVE IT:.

CODE.

'<a href="'tep_href_link(FILENAME_SIZECHART)'">'BOX_INFORMATION_SIZE_CHART'</a><br>' ..

Then I got the following problems..

In the information section, instead of having "Sizing Chart" it generated this link:.

"BOX_INFORMATION_SIZE_CHART".

If I click this link "BOX_INFORMATION_SIZE_CHART".

It generates the following error:.

Warning: main(includes/languages/english/FILENAME_SIZE_CHART) [function.main]: failed to open stream: No such file or directory in /export/home/jasonsluck/public_html/www.lingerie-universe.com/store/sizechart.php on line 15.

Warning: main(includes/languages/english/FILENAME_SIZE_CHART) [function.main]: failed to open stream: No such file or directory in /export/home/jasonsluck/public_html/www.lingerie-universe.com/store/sizechart.php on line 15.

Fatal error: main() [function.require]: Failed opening required 'includes/languages/english/FILENAME_SIZE_CHART' (include_path='.:/usr/local/php4cgi/lib/php') in /export/home/jasonsluck/public_html/www.lingerie-universe.com/store/sizechart.php on line 15.

Please help!..

Comment #6

WELL I followed the OSC to add a new page to a box , I'm trying to add an About Us' in info box.

And edited those 5 files: from.

Http://www.oscommerce.info/kb/osCommerce/C...g_Area/Boxes/49.

Catalog/shipping.php <catalog/about_us.php.

Catalog/includes/filenames.php < define('FILENAME_ABOUT_US', 'about_us.php'); <added at the end b4 ?>.

Catalog/includes/languages/english.php <define('BOX_INFORMATION_ABOUT_US', 'About Us'); <added to //information box.

Catalog/includes/languages/english/shipping.php<change it to about_us.php and change this also.

Define('NAVBAR_TITLE', 'About Us');.

Define('HEADING_TITLE', 'About Us');.

And last.

Catalog/includes/boxes/information.php <added about us linK.

'<a href="'tep_href_link(FILENAME_ABOUT_US)'">'BOX_INFORMATION_ABOUT_US'</a><br>' ..

'<a href="'tep_href_link(FILENAME_CONTACT_US)'">'BOX_INFORMATION_CONTACT'</a>');.

And the About Us page loads this error : what is wrong here? is there any other file to change??? Please Help@.

Warning: main(includes/languages/english/ABOUT_US): failed to open stream: No such file or directory in /home/content/t/h/e/xxxxxxx/html/about_us.php on line 15.

Warning: main(includes/languages/english/ABOUT_US): failed to open stream: No such file or directory in /home/content/t/h/e/xxxxxxxx/html/about_us.php on line 15.

Fatal error: main(): Failed opening required 'includes/languages/english/ABOUT_US' (include_path='.:/usr/local/lib/php') in /home/content/t/h/e/xxxxxxxx/html/about_us.php on line 15..

Comment #7

On line 15 does it say this:.

Require(DIR_WS_LANGUAGES$language'/'FILENAME_ABOUT_US);.

(correct).

Or this:.

Require(DIR_WS_LANGUAGES$language'/'ABOUT_US);.

(incorrect)..

Comment #8

FROM CATALO/ABOUT_US.PHP.

Require('includes/application_top.php');.

Require(DIR_WS_LANGUAGES$language'/'FILENAME_ABOUT_US);.

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_ABOUT_US));.

?>.

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">.

<html <?php echo HTML_PARAMS; ?>>.

<head>..

Comment #9

This define('FILENAME_ABOUT_US', 'about_us.php'); at the end of the defines before ?>..

Comment #10

Can I messege the iPage site sou can see that the links are in place please ....

Comment #11

If you mean PM your URL to me, I'm OK with that...

Comment #12

Post the entire contents of.

/catalog/includes/.

Filenames.php.

I think something in there needs amended...

Comment #13

<?php.

/*.

$Id: filenames.php 1739 2007-12-20 00:52:16Z hpdl $.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright © 2003 osCommerce.

Released under the GNU General Public License.

*/.

// define the filenames used in the project.

Define('FILENAME_ACCOUNT', 'account.php');.

Define('FILENAME_ACCOUNT_EDIT', 'account_edit.php');.

Define('FILENAME_ACCOUNT_HISTORY', 'account_history.php');.

Define('FILENAME_ACCOUNT_HISTORY_INFO', 'account_history_info.php');.

Define('FILENAME_ACCOUNT_NEWSLETTERS', 'account_newsletters.php');.

Define('FILENAME_ACCOUNT_NOTIFICATIONS', 'account_notifications.php');.

Define('FILENAME_ACCOUNT_PASSWORD', 'account_password.php');.

Define('FILENAME_ADDRESS_BOOK', 'address_book.php');.

Define('FILENAME_ADDRESS_BOOK_PROCESS', 'address_book_process.php');.

Define('FILENAME_ADVANCED_SEARCH', 'advanced_search.php');.

Define('FILENAME_ADVANCED_SEARCH_RESULT', 'advanced_search_result.php');.

Define('FILENAME_ALSO_PURCHASED_PRODUCTS', 'also_purchased_products.php');.

Define('FILENAME_CHECKOUT_CONFIRMATION', 'checkout_confirmation.php');.

Define('FILENAME_CHECKOUT_PAYMENT', 'checkout_payment.php');.

Define('FILENAME_CHECKOUT_PAYMENT_ADDRESS', 'checkout_payment_address.php');.

Define('FILENAME_CHECKOUT_PROCESS', 'checkout_process.php');.

Define('FILENAME_CHECKOUT_SHIPPING', 'checkout_shipping.php');.

Define('FILENAME_CHECKOUT_SHIPPING_ADDRESS', 'checkout_shipping_address.php');.

Define('FILENAME_CHECKOUT_SUCCESS', 'checkout_success.php');.

Define('FILENAME_CONTACT_US', 'contact_us.php');.

Define('FILENAME_CONDITIONS', 'conditions.php');.

Define('FILENAME_COOKIE_USAGE', 'cookie_usage.php');.

Define('FILENAME_CREATE_ACCOUNT', 'create_account.php');.

Define('FILENAME_CREATE_ACCOUNT_SUCCESS', 'create_account_success.php');.

Define('FILENAME_DEFAULT', 'index.php');.

Define('FILENAME_DOWNLOAD', 'download.php');.

Define('FILENAME_INFO_SHOPPING_CART', 'info_shopping_cart.php');.

Define('FILENAME_LOGIN', 'login.php');.

Define('FILENAME_LOGOFF', 'logoff.php');.

Define('FILENAME_NEW_PRODUCTS', 'new_products.php');.

Define('FILENAME_PASSWORD_FORGOTTEN', 'password_forgotten.php');.

Define('FILENAME_POPUP_IMAGE', 'popup_image.php');.

Define('FILENAME_POPUP_SEARCH_HELP', 'popup_search_help.php');.

Define('FILENAME_PRIVACY', 'privacy.php');.

Define('FILENAME_PRODUCT_INFO', 'product_info.php');.

Define('FILENAME_PRODUCT_LISTING', 'product_listing.php');.

Define('FILENAME_PRODUCT_REVIEWS', 'product_reviews.php');.

Define('FILENAME_PRODUCT_REVIEWS_INFO', 'product_reviews_info.php');.

Define('FILENAME_PRODUCT_REVIEWS_WRITE', 'product_reviews_write.php');.

Define('FILENAME_PRODUCTS_NEW', 'products_new.php');.

Define('FILENAME_REDIRECT', 'redirect.php');.

Define('FILENAME_REVIEWS', 'reviews.php');.

Define('FILENAME_SHIPPING', 'shipping.php');.

Define('FILENAME_SHOPPING_CART', 'shopping_cart.php');.

Define('FILENAME_SPECIALS', 'specials.php');.

Define('FILENAME_SSL_CHECK', 'ssl_check.php');.

Define('FILENAME_TELL_A_FRIEND', 'tell_a_friend.php');.

Define('FILENAME_UPCOMING_PRODUCTS', 'upcoming_products.php');.

Define('FILENAME_RETURNS', 'returns.php');.

Define('FILENAME_ABOUT_US', 'about_us.php');.

I'll be back, gtg to traderJoes..

Comment #14

Let me know what else , but I followerd everything right!..

Comment #15

OK..

Now copy/paste the first 20 lines from your.

About_us.php.

In the root folder...

Comment #16

[quote name='germ' date='Sep 13 2008, 03:25 AM' post='1306334'].

OK..

You mean the catalog/about_us.php ? and my root folder would be ??..

Comment #17

Okay i'm doing it in my iPage hosting control center..

Comment #18

That file..

I just want it copy/pasted in to a post..

And you are reading these files from the server, right?.

Not just FTP'ing them there (assuming they get there) then just posting your local copy...

Comment #19

Well I do php editor then ftp and now I 'll double check on the server , bc you said so yes..

Comment #20

You should be reading files from the server and posting what THEY have in them, NOT your local copy...

Comment #21

Okay I just pasted the fist 20 lines in catalo/about us.php in the server, but it was the same from my local dir, or ftp..

Comment #22

What is that ?? exactly?.

I think is bc I don't hav a www.the....com here.

Fatal error: main(): Failed opening required 'includes/languages/english/ABOUT_US' (include_path='.:/usr/local/lib/php') in /home/content/t/h/e/thexxxxx/html/about_us.php on line 15 <..

Comment #23

What I meant was you still haven't copy/pasted the first 20 lines from the catalog about_us.php into a post..

I was just trying a little humor... Unsuccessfully I might add.....

Comment #24

<?php.

/*.

$Id: shipping.php 1739 2007-12-20 00:52:16Z hpdl $.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright © 2003 osCommerce.

Released under the GNU General Public License.

*/.

Require('includes/application_top.php');.

Require(DIR_WS_LANGUAGES$language'/'FILENAME_ABOUT_US);.

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_ABOUT_US));.

?>.

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">.

<html <?php echo HTML_PARAMS; ?>>.

<head>.

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">.

<title><?php echo TITLE; ?></title>.

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER)DIR_WS_CATALOG; ?>">.

<link rel="stylesheet" type="text/css" href="stylesheet.css">.

</head>.

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">.

<table width="100%" cellpadding="75" border="0" background="images/stripespinkblues.gif" align="center">.

<tbody>.

<tr>.

<td>.

<table width="100%" bordercolor="f4b1d7" border="4" bgcolor="#ffffff" align="center">..

Comment #25

I thought it was successful, but thought better than to replay that it wasn't paid enough..

Maybe tinkerbell46325 should post what method is being used to do the pasting...

Comment #26

Somewhere in your code you have.

ABOUT_US.

And it should be.

FILENAME_ABOUT_US.

That's my educated guess..

@coop..

Thnx..

Comment #27

Sorry to hear that Ma'am..

Looks like it should be working, but I still don't know if all the data you've supplied is from the server or not...

Comment #28

Okay I'm lookin and FOUND this in the middle FILENAME_DEFAUT change it to ABOUT _Us.

<td align="right"><?php echo '<a href="'tep_href_link(FILENAME_ABOUT_US)'">'tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE)'</a>'; ?></td>.

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

</tr>.

Don't know yet if this helps..

Comment #29

The code you've posted, and the error messages I see on your iPage site are in direct confilct with each other..

I haven't a clue what to say..

Read your.

/includes/.

Filenames.php.

Off the server and post it again, please. THE WHOLE THING...

Comment #30

<?php.

/*.

$Id: filenames.php 1739 2007-12-20 00:52:16Z hpdl $.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright © 2003 osCommerce.

Released under the GNU General Public License.

*/.

// define the filenames used in the project.

Define('FILENAME_ACCOUNT', 'account.php');.

Define('FILENAME_ACCOUNT_EDIT', 'account_edit.php');.

Define('FILENAME_ACCOUNT_HISTORY', 'account_history.php');.

Define('FILENAME_ACCOUNT_HISTORY_INFO', 'account_history_info.php');.

Define('FILENAME_ACCOUNT_NEWSLETTERS', 'account_newsletters.php');.

Define('FILENAME_ACCOUNT_NOTIFICATIONS', 'account_notifications.php');.

Define('FILENAME_ACCOUNT_PASSWORD', 'account_password.php');.

Define('FILENAME_ADDRESS_BOOK', 'address_book.php');.

Define('FILENAME_ADDRESS_BOOK_PROCESS', 'address_book_process.php');.

Define('FILENAME_ADVANCED_SEARCH', 'advanced_search.php');.

Define('FILENAME_ADVANCED_SEARCH_RESULT', 'advanced_search_result.php');.

Define('FILENAME_ALSO_PURCHASED_PRODUCTS', 'also_purchased_products.php');.

Define('FILENAME_CHECKOUT_CONFIRMATION', 'checkout_confirmation.php');.

Define('FILENAME_CHECKOUT_PAYMENT', 'checkout_payment.php');.

Define('FILENAME_CHECKOUT_PAYMENT_ADDRESS', 'checkout_payment_address.php');.

Define('FILENAME_CHECKOUT_PROCESS', 'checkout_process.php');.

Define('FILENAME_CHECKOUT_SHIPPING', 'checkout_shipping.php');.

Define('FILENAME_CHECKOUT_SHIPPING_ADDRESS', 'checkout_shipping_address.php');.

Define('FILENAME_CHECKOUT_SUCCESS', 'checkout_success.php');.

Define('FILENAME_CONTACT_US', 'contact_us.php');.

Define('FILENAME_CONDITIONS', 'conditions.php');.

Define('FILENAME_COOKIE_USAGE', 'cookie_usage.php');.

Define('FILENAME_CREATE_ACCOUNT', 'create_account.php');.

Define('FILENAME_CREATE_ACCOUNT_SUCCESS', 'create_account_success.php');.

Define('FILENAME_DEFAULT', 'index.php');.

Define('FILENAME_DOWNLOAD', 'download.php');.

Define('FILENAME_INFO_SHOPPING_CART', 'info_shopping_cart.php');.

Define('FILENAME_LOGIN', 'login.php');.

Define('FILENAME_LOGOFF', 'logoff.php');.

Define('FILENAME_NEW_PRODUCTS', 'new_products.php');.

Define('FILENAME_PASSWORD_FORGOTTEN', 'password_forgotten.php');.

Define('FILENAME_POPUP_IMAGE', 'popup_image.php');.

Define('FILENAME_POPUP_SEARCH_HELP', 'popup_search_help.php');.

Define('FILENAME_PRIVACY', 'privacy.php');.

Define('FILENAME_PRODUCT_INFO', 'product_info.php');.

Define('FILENAME_PRODUCT_LISTING', 'product_listing.php');.

Define('FILENAME_PRODUCT_REVIEWS', 'product_reviews.php');.

Define('FILENAME_PRODUCT_REVIEWS_INFO', 'product_reviews_info.php');.

Define('FILENAME_PRODUCT_REVIEWS_WRITE', 'product_reviews_write.php');.

Define('FILENAME_PRODUCTS_NEW', 'products_new.php');.

Define('FILENAME_REDIRECT', 'redirect.php');.

Define('FILENAME_REVIEWS', 'reviews.php');.

Define('FILENAME_SHIPPING', 'shipping.php');.

Define('FILENAME_SHOPPING_CART', 'shopping_cart.php');.

Define('FILENAME_SPECIALS', 'specials.php');.

Define('FILENAME_SSL_CHECK', 'ssl_check.php');.

Define('FILENAME_TELL_A_FRIEND', 'tell_a_friend.php');.

Define('FILENAME_UPCOMING_PRODUCTS', 'upcoming_products.php');.

Define('FILENAME_RETURNS', 'returns.php');.

Define('FILENAME_ABOUT_US', 'about_us.php');.

?>..

Comment #31

Payment and sales tax is using the privacy.php bc I still dont know how to add pages.

The return was original shipping, but still it won't work eather..

Comment #32


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