lindsayanng Posted July 26, 2008 Posted July 26, 2008 Again, i'm messing with my header (it seems i never can get it right and when i THINK it is right, i get more ideas) Anyways, i am TRYING to get the "forgot password? Dont have a profile? Create ONE HERE" text to be UNDERNEATH the email and password fields, which i have gotten, but i also want it to be OUTSIDE of the orange. I tried closing off the table and putting another one just below it.. then i tried just closing off the TR and creating a new TR.. the result is what you see now in my page. I think i might have added the colspan in the wrong place or something because i am SOOO CLOSE but not really. here is the link furry family here is the table code i am working with: <table border="0" width="100%" cellspacing="0" cellpadding="1"> <tr class="headerNavigation"> <td class="headerNavigation"> <?php echo $breadcrumb->trail(' » '); ?></td> <?php // added for loginbox if ( (basename($PHP_SELF) != FILENAME_LOGIN) && (basename($PHP_SELF) != FILENAME_CREATE_ACCOUNT) && !tep_session_is_registered('customer_id')) { if (!tep_session_is_registered('customer_id')) { ?> <!-- loginbox //--> <td align="right"><?php echo tep_draw_form('login', tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL')); ?> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td align="right" class="smallText"><?php echo BOX_LOGINBOXH_EMAIL; ?> <?php echo tep_draw_input_field('email_address'); ?> <?php echo BOX_LOGINBOXH_PASSWORD; ?> <?php echo tep_draw_password_field('password'); ?> <?php echo tep_image_submit('button_go.gif', IMAGE_BUTTON_LOGIN); ?></tr> <tr class="header"><td align="right" class="smallText" width="100%"><?php echo '<a href="' . tep_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . BOX_LOGINBOXH_FORGOT_PASSWORD . '</a>'; ?> <?php echo BOX_LOGINBOXH_TEXT_NEW . ' ' . '<a href="' . tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL') . '">' . BOX_LOGINBOXH_NEW . '</a>'; ?> </tr> </tr></table></td> </table></form></td> A great place for newbies to start Road Map to oscommerce File Structure DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways! HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you Proud Memeber of the CODE BREAKERS CLUB!!
lindsayanng Posted July 26, 2008 Author Posted July 26, 2008 anyone? I just tried three other options with my trusty book in hand and still no go. A great place for newbies to start Road Map to oscommerce File Structure DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways! HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you Proud Memeber of the CODE BREAKERS CLUB!!
Guest Posted July 26, 2008 Posted July 26, 2008 Sorry Lindsay.........when I checked your site......I couldn't find any of the login information you were referring to. Perhaps you are working on it when I checked. I will check back soon. The site has come a long way since the last template layout I seen. Chris
lindsayanng Posted July 26, 2008 Author Posted July 26, 2008 oh no.. my redirect stopped working!!! go to furry family catalog A great place for newbies to start Road Map to oscommerce File Structure DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways! HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you Proud Memeber of the CODE BREAKERS CLUB!!
lindsayanng Posted July 27, 2008 Author Posted July 27, 2008 i'm sorry to bother, i just wanted to see if anyone was availble to give me a hand.. I fixed the redirect on my site. A great place for newbies to start Road Map to oscommerce File Structure DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways! HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you Proud Memeber of the CODE BREAKERS CLUB!!
Guest Posted July 27, 2008 Posted July 27, 2008 Sorry Lindsay, I can't picture the file with what you posted. Is this the header.php ? Can you post the complete file ? It would help because I am not seeing all the tables. Chris
spax Posted July 27, 2008 Posted July 27, 2008 If I understand you correctly, you need to add a new row to the table that has your furryfamilylogo.jpg. <tr><td colspan="2" class="smallText" align="right"><a href="link"> forgot password?</a>Don't have a profile yet? <a href="link">CREATE ONE HERE</a></td></tr> <tr class="header"> <td align="right" valign="middle" width="100%"><a href="link"><img src="images/furryfamilylogo.jpg" alt="furryfamilylogo" title=" furryfamilylogo " border="0" height="111" width="912"></a> </td>
lindsayanng Posted July 27, 2008 Author Posted July 27, 2008 Sorrya bout that. I will post the entire file. <?php /* $Id: header.php,v 1.42 2003/06/10 18:20:38 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License ################################################################## IMPORTANT NOTE: This is not part of the official osC distribution but an add-on contributed to the osC community. Please read the README document that are provided with this file for further information and installation notes. This puts a login request in a box with a login button. If already logged in, will not show anything. Modified to utilize SSL to bypass Security Alert LoginboxV5.4_header http://avzwebdesign.nl/oscommerce/ ################################################################## */ // check if the 'install' directory exists, and warn of its existence if (WARN_INSTALL_EXISTENCE == 'true') { if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) { $messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning'); } } // check if the configure.php file is writeable if (WARN_CONFIG_WRITEABLE == 'true') { if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) { $messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning'); } } // check if the session folder is writeable if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') { if (STORE_SESSIONS == '') { if (!is_dir(tep_session_save_path())) { $messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning'); } elseif (!is_writeable(tep_session_save_path())) { $messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning'); } } } // check session.auto_start is disabled if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) { if (ini_get('session.auto_start') == '1') { $messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning'); } } if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) { if (!is_dir(DIR_FS_DOWNLOAD)) { $messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning'); } } if ($messageStack->size('header') > 0) { echo $messageStack->output('header'); } ?> <div id="header"> <table border="0" width="100%" cellspacing="0" cellpadding="1"> <tr class="headerNavigation"> <td class="headerNavigation"> <?php echo $breadcrumb->trail(' » '); ?></td> <?php // added for loginbox if ( (basename($PHP_SELF) != FILENAME_LOGIN) && (basename($PHP_SELF) != FILENAME_CREATE_ACCOUNT) && !tep_session_is_registered('customer_id')) { if (!tep_session_is_registered('customer_id')) { ?> <!-- loginbox //--> <td align="right"><?php echo tep_draw_form('login', tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL')); ?> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td align="right" class="smallText"><?php echo BOX_LOGINBOXH_EMAIL; ?> <?php echo tep_draw_input_field('email_address'); ?> <?php echo BOX_LOGINBOXH_PASSWORD; ?> <?php echo tep_draw_password_field('password'); ?> <?php echo tep_image_submit('button_go.gif', IMAGE_BUTTON_LOGIN); ?></tr> <tr class="header"><td align="right" class="smallText" width="100%"><?php echo '<a href="' . tep_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . BOX_LOGINBOXH_FORGOT_PASSWORD . '</a>'; ?> <?php echo BOX_LOGINBOXH_TEXT_NEW . ' ' . '<a href="' . tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL') . '">' . BOX_LOGINBOXH_NEW . '</a>'; ?> </tr> </tr></table></td> </table></form></td> <?php } // close tep_session_is_registered } else { // If you want something to show in place of the loginbox when logge in or on login or create account page, // place that code between the <td align="left"></td> below ?> <td align="right"></td> <?php } // close if // end loginbox ?> </tr> </table> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr class="header"> <?php // added for loginbox // end loginbox ?> <td width="100%" align="right" valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'furryfamilylogo.jpg', 'furryfamilylogo') . '</a> ' ?></td> <td align="right"><table border="2px" width="175px" cellspacing="0" cellpadding="3"> <tr> <td class="headerCart" align="center"><b><a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerCart"><?php echo 'Your Cart Contents'; ?></a></b><br><?php echo $cart->count_contents() . ' Items'; ?><br><?php echo 'SubTotal:' . $currencies->format($cart->show_total()); ?><br><a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"class="headerCart"><?php echo HEADER_TITLE_CHECKOUT;?></a> | <a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerCart"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></td> </tr> </table></td> </tr> <?php // added for my account nav bar links for loginbox if (tep_session_is_registered('customer_id')) { ?> <tr class="account_links"> <td align="center" colspan="2"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCTS_NEW, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_new_account.png', LOGIN_BOX_PRODUCTS_NEW) . '</a> ' . '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_my_account.png', LOGIN_BOX_MY_ACCOUNT) . '</a> ' . '<a href="' . tep_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_edit_account.png', LOGIN_BOX_ACCOUNT_EDIT) . '</a> ' . '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_history_account.png', LOGIN_BOX_ACCOUNT_HISTORY) . '</a> ' . '<a href="' . tep_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_addresses_account.png', LOGIN_BOX_ADDRESS_BOOK) . '</a> ' . '<a href="' . tep_href_link(FILENAME_ACCOUNT_NOTIFICATIONS, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_notification_account.png', LOGIN_BOX_PRODUCT_NOTIFICATIONS) . '</a> ' . '<a href="' . tep_href_link(FILENAME_LOGOFF, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_logoff_account.png', LOGIN_BOX_LOGOFF) . '</a>'; ?></td> </tr> <?php } // close if // end my account nav bar links for loginbox ?> </table> <? //---PayPal WPP Modification START ---// ?> <?php if (tep_session_is_registered('customer_id')) { $show_user_options = true; if (tep_paypal_wpp_enabled() && tep_session_is_registered('paypal_ec_temp')) { //If this is a temp account that'll be deleted, don't show account information if ($paypal_ec_temp) { $show_user_options = false; } } } else { $show_user_options = false; } ?> <? //---PayPal WPP Modification END ---// ?> <?php if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerError"> <td class="headerError"><?php echo htmlspecialchars(urldecode($HTTP_GET_VARS['error_message'])); ?></td> </tr> </table> <?php } if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerInfo"> <td class="headerInfo"><?php echo htmlspecialchars($HTTP_GET_VARS['info_message']); ?></td> </tr> </table> </table> <?php } ?> </div><div id="content"> A great place for newbies to start Road Map to oscommerce File Structure DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways! HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you Proud Memeber of the CODE BREAKERS CLUB!!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.