chrometweaks.org

How do I setup a domain name registration business like iPage.com?

Click Here To View All Answers...


First question I have is How do I setup a domain name registration business like iPage.com? Thanks in advance for any answer. Another question... Hi I have just installed PWA 7.0 which seems to be working fine after testing it all the 2 problems that I have is the.

Login.php.

Order_Info.php.

What it had done as changed my header and footer to a diffrent layout which makes it look silly as I have different layout on all the other pages so is they a way of making the 2 files above the same as rest of my iPage site I have the orginal 2 files that was over written by the above 2.

Home.

Login.php.

Order_Info.

Thxs..

Comments (88)

Good question... I dunno what is the right answer to your question. I'll do some research in Google and get back to you if I find an good answer. You should email the people at iPage as they probably could give you an answer..

Comment #1

A wait I think I remember that you are using templates, correct, so what is happening is that these files are calling for the default header.php and footer.php files and not your modified template files for header and footer..

Comment #2

Ok I am stuck hehehehe I can see the header but can.t seem to link it.

My code is here.

<?php.

/*.

$Id: Order_Info.php,v 0.52 2002/09/21 hpdl Exp $.

By Cheng.

OSCommerce v2.2 CVS (09/17/02).

Modified versions of create_account.php and related.

Files. Allowing 'purchase without account'..

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright © 2002 osCommerce.

Released under the GNU General Public License.

*/.

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

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

$breadcrumb->add('Order Info', tep_href_link('Order_Info.php', '', 'SSL'));.

?>.

<!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 (getenv('HTTPS') == 'on' ? HTTPS_SERVER : HTTP_SERVER)DIR_WS_CATALOG; ?>">.

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

<?php require('includes/form_check.js.php'); ?>.

</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="0" cellpadding="0" align="center">.

<tr>.

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

<! left_navigation //>.

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

<! left_navigation_eof //>.

</table></td>.

<! body_text //>.

<td width="100%" valign="top"><form name="account_edit" method="post" <?php echo 'action="' ..

Tep_href_link('Order_Info_Process.php', '', 'SSL').

'"'; ?> onSubmit="return check_form(this);"><input type="hidden" name="action" value="process"><table border="0" width="75%" cellspacing="0" cellpadding="0" align="center">.

<tr>.

<td><table border="0" width="75%" 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_account.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>.

</tr//>.

</table></td>.

</tr>.

<?php.

If (sizeof($navigation->snapshot) > 0) {.

?>.

<tr>.

<td class="smallText"><br><?php echo sprintf(TEXT_ORIGIN_LOGIN, tep_href_link(FILENAME_LOGIN, tep_get_all_get_params(), 'SSL')); ?></td>.

</tr>.

<?php.

}.

?>.

<tr>.

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

</tr>.

<tr>.

<td>.

<?php.

$email_address = tep_db_prepare_input($HTTP_GET_VARS['email_address']);.

$account['entry_country_id'] = STORE_COUNTRY;.

Require(DIR_WS_MODULES'Order_Info_Check.php');.

?>.

</td>.

</tr>.

<tr>.

<td align="right" class="main"><br><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td>.

</tr>.

</table></form></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'); ?>..

Comment #3

Those are the correct calls. I take it that your worldpay info is in your footer.php or is it in a template..

Are you using templates?.

If you are using templates what is the name of the template files for header and footer?.

If not using templates what other files do you have being called to in your header and footer as they are not calling the defaults..

Comment #4

Hi the template I am using is the BTSv1.2 the worldpay logo is not been called so I think like you say it is using the default files how would I correct..

Comment #5

This is the BTS login.php file.

<?php.

/*.

$Id: login.php,v 1.80 2003/06/05 23:28:24 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');.

// redirect the customer to a friendly cookie-must-be-enabled page if cookies are disabled (or the session has not started).

If ($session_started == false) {.

Tep_redirect(tep_href_link(FILENAME_COOKIE_USAGE));.

}.

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

$error = false;.

If (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'process')) {.

$email_address = tep_db_prepare_input($HTTP_POST_VARS['email_address']);.

$password = tep_db_prepare_input($HTTP_POST_VARS['password']);.

// Check if email exists.

$check_customer_query = tep_db_query("select customers_id, customers_firstname, customers_password, customers_email_address, customers_default_address_id from "TABLE_CUSTOMERS" where customers_email_address = '"tep_db_input($email_address)"'");.

If (!tep_db_num_rows($check_customer_query)) {.

$error = true;.

} else {.

$check_customer = tep_db_fetch_array($check_customer_query);.

// Check that password is good.

If (!tep_validate_password($password, $check_customer['customers_password'])) {.

$error = true;.

} else {.

If (SESSION_RECREATE == 'True') {.

Tep_session_recreate();.

}.

$check_country_query = tep_db_query("select entry_country_id, entry_zone_id from "TABLE_ADDRESS_BOOK" where customers_id = '"(int)$check_customer['customers_id']"' and address_book_id = '"(int)$check_customer['customers_default_address_id']"'");.

$check_country = tep_db_fetch_array($check_country_query);.

$customer_id = $check_customer['customers_id'];.

$customer_default_address_id = $check_customer['customers_default_address_id'];.

$customer_first_name = $check_customer['customers_firstname'];.

$customer_country_id = $check_country['entry_country_id'];.

$customer_zone_id = $check_country['entry_zone_id'];.

Tep_session_register('customer_id');.

Tep_session_register('customer_default_address_id');.

Tep_session_register('customer_first_name');.

Tep_session_register('customer_country_id');.

Tep_session_register('customer_zone_id');.

Tep_db_query("update "TABLE_CUSTOMERS_INFO" set customers_info_date_of_last_logon = now(), customers_info_number_of_logons = customers_info_number_of_logons+1 where customers_info_id = '"(int)$customer_id"'");.

// restore cart contents.

$cart->restore_contents();.

If (sizeof($navigation->snapshot) > 0) {.

$origin_href = tep_href_link($navigation->snapshot['page'], tep_array_to_string($navigation->snapshot['get'], array(tep_session_name())), $navigation->snapshot['mode']);.

$navigation->clear_snapshot();.

Tep_redirect($origin_href);.

} else {.

Tep_redirect(tep_href_link(FILENAME_DEFAULT));.

}.

}.

}.

}.

If ($error == true) {.

$messageStack->add('login', TEXT_LOGIN_ERROR);.

}.

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_LOGIN, '', 'SSL'));.

$content = CONTENT_LOGIN;.

$javascript = $content'.js';.

Require(DIR_WS_TEMPLATESTEMPLATENAME_MAIN_PAGE);.

Require(DIR_WS_INCLUDES'application_bottom.php');.

?>..

Comment #6

I do not use the template system, so would not know, so again I will ask you what the files are called maybe header.tpl.php and footer.tpl.php if theses are the names then the code is.

<! header //>.

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

<! header_eof //>.

Or.

<! header //>.

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

<! header_eof //>.

This post has been edited by.

241.

: 17 January 2004, 22:57..

Comment #7

Not sure the only files I have in the template folder are.

Main_page.tpl.

Popup.tpl.

Print.css.

Stylesheet-org.css.

Stylesheet.css.

Where would I find the header.tpl.php and footer.tpl.php..

Comment #8

Hi I have just installed PWA 7.0 which seems to be working fine after testing it all the 2 problems that I have is the.

Login.php.

Order_Info.php.

What it had done as changed my header and footer to a diffrent layout which makes it look silly as I have different layout on all the other pages so is they a way of making the 2 files above the same as rest of my iPage site I have the orginal 2 files that was over written by the above 2.

Home.

Login.php.

Order_Info.

Thxs..

Comment #9

Open the two files and look at the html part where there is a require header.php.

I do not have this contribution installed, so do not know how many files there are or what the files are, but it is your header part that is being messed up so that is where to start looking in the two files..

You should be able to change the code to regain the header..

Comment #10


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