Assailant Posted February 27, 2004 Posted February 27, 2004 Hey, I posted this yesterday but nobody answered, hopefully someone is roamin around who knows what im doing wrong. on basketdelite.com you can see the loginbox is the only one without a footer graphic, i cant figure out where to put the code, any help is appreciated, heres the infobox code and followed by a infobox where it works correctly. <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License IMPORTANT NOTE: This script is not part of the official osC distribution but an add-on contributed to the osC community. Please read the README and INSTALL documents that are provided with this file for further information and installation notes. loginbox.php - Version 1.0 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 */ // WebMakers.com Added: Do not show if on login or create account if ( (!strstr($_SERVER['PHP_SELF'],'login.php')) and (!strstr($_SERVER['PHP_SELF'],'create_account.php')) and !tep_session_is_registered('customer_id') ) { ?> <!-- loginbox //--> <?php if (!tep_session_is_registered('customer_id')) { ?> <tr> <td> <TABLE WIDTH=140 BORDER=0 CELLPADDING=0 CELLSPACING=0> <TR> <TD COLSPAN=3> <IMG SRC="images/boxes/account.gif" WIDTH=145 HEIGHT=22></TD> </TR> <?php //$info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => BOX_LOGINBOX_HEADING ); //new infoBoxHeading($info_box_contents, false, false); $loginboxcontent = " <table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"> <form name=\"login\" method=\"post\" action=\"" . tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL') . "\"> <tr> <td align=\"center\" class=\"main\"> " . BOX_LOGINBOX_EMAIL . " </td> </tr> <tr> <td align=\"center\" class=\"main\"> <input type=\"text\" name=\"email_address\" maxlength=\"96\" size=\"20\" value=\"\"> </td> </tr> <tr> <td align=\"center\" class=\"main\"> " . BOX_LOGINBOX_PASSWORD . " " . BOX_LOGINBOX_FORGOT_PASSWORD . " </td> </tr> <tr> <td align=\"center\" class=\"main\"> <input type=\"password\" name=\"password\" maxlength=\"40\" size=\"20\" value=\"\" </td> </tr> <tr> <td class=\"main\" align=\"center\"> " . tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN, 'SSL') . " </td> </tr> </form> <tr> <td align=\"center\" class=\"main\"> " . BOX_LOGINBOX_NEW . " </td> </tr> </table> "; $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => $loginboxcontent ); new infoBox($info_box_contents); ?> </td> </tr> <?php } else { // If you want to display anything when the user IS logged in, put it // in here... Possibly a "You are logged in as :" box or something. } ?> <!-- loginbox_eof //--> <?php // WebMakers.com Added: My Account Info Box } else { if (tep_session_is_registered('customer_id')) { ?> <!-- my_account_info //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => BOX_HEADING_LOGIN_BOX_MY_ACCOUNT ); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . LOGIN_BOX_MY_ACCOUNT . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL') . '">' . LOGIN_BOX_ACCOUNT_EDIT . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '">' . LOGIN_BOX_ACCOUNT_HISTORY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL') . '">' . LOGIN_BOX_ADDRESS_BOOK . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ACCOUNT_NOTIFICATIONS, '', 'NONSSL') . '">' . LOGIN_BOX_PRODUCT_NOTIFICATIONS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_LOGOFF, '', 'NONSSL') . '">' . LOGIN_BOX_LOGOFF . '</a>' ); new infoBox($info_box_contents); ?> </td> </tr> <!-- my_account_info_eof //--> <?php } } ?> heres the code working in the categories infobox, the code for the footer graphic is at the bottom <?php /* $Id: categories.php,v 1.21 2002/07/03 09:48:06 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 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 .= " "; } $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 .= '->'; } $categories_string .= '</a>'; if (SHOW_COUNTS == 'true') { $products_in_category = tep_count_products_in_category($counter); if ($products_in_category > 0) { $categories_string .= ' (' . $products_in_category . ')'; } } $categories_string .= '<br>'; if ($foo[$counter]['next_id']) { tep_show_category($foo[$counter]['next_id']); } } ?> <!-- categories //--> <!-- This is where you will include you custom box header, left column and open up your Cell for your center column Make sure you leave the first 2 tags in here "<tr> and <td>" they maintain the control over your entire page. If you remove these tags all of you info will be shifted below you categories box on your pages. If you dont Believe me, try it....lol. //--> <tr> <td> <TABLE WIDTH=140 BORDER=0 CELLPADDING=0 CELLSPACING=0> <TR> <TD COLSPAN=3> <IMG SRC="images/boxes/table_categories.gif" WIDTH=140 HEIGHT=22></TD> </TR> <TR> <td> <?php $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) { $id = split('_', $cPath); reset($id); while (list($key, $value) = each($id)) { $new_path .= $value; 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); 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']; } if ($category_check != 0) { $foo[$last_id]['next_id'] = $foo[$value]['next_id']; $foo[$value]['next_id'] = $first_id; } $new_path .= '_'; } } tep_show_category($first_element); $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => $categories_string ); new infoBox($info_box_contents); ?> <!-- This is where you will close your center cell and include your right side of your box and then finally close out your custom box. Be sure and leave the "</td> and </tr>" tags. they ensure the sanctity of your overall page layout. //--> </TD> </TR> <TR> <TD COLSPAN=3> <IMG SRC="images/boxes/table_footer1.gif" WIDTH=140 HEIGHT=10></TD> </TR> </TABLE> </td> </tr> <!-- categories_eof //-->
241 Posted February 27, 2004 Posted February 27, 2004 Try this for the bottom part of your code new infoBox($info_box_contents); ?> </TD> </TR> <TR> <TD COLSPAN=3> <IMG SRC="images/boxes/table_footer1.gif" WIDTH=140 HEIGHT=10></TD> </TR> </TABLE> </td> </tr> <!-- my_account_info_eof //--> <?php } } ?> I have included some code above and below so that you can make a direct replacement. Remember to backup the file first in case it does not work as I have not had a chance to test the code No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes.
Assailant Posted February 27, 2004 Author Posted February 27, 2004 hey steve you're always savin my ass hehe, thanks for the reply, it had no effect on the box however though strangely, i thought it was going to work, im almost positive i did it correctly <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License IMPORTANT NOTE: This script is not part of the official osC distribution but an add-on contributed to the osC community. Please read the README and INSTALL documents that are provided with this file for further information and installation notes. loginbox.php - Version 1.0 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 */ // WebMakers.com Added: Do not show if on login or create account if ( (!strstr($_SERVER['PHP_SELF'],'login.php')) and (!strstr($_SERVER['PHP_SELF'],'create_account.php')) and !tep_session_is_registered('customer_id') ) { ?> <!-- loginbox //--> <?php if (!tep_session_is_registered('customer_id')) { ?> <tr> <td> <TABLE WIDTH=140 BORDER=0 CELLPADDING=0 CELLSPACING=0> <TR> <TD COLSPAN=3> <IMG SRC="images/boxes/account.gif" WIDTH=145 HEIGHT=22></TD> </TR> <?php //$info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => BOX_LOGINBOX_HEADING ); //new infoBoxHeading($info_box_contents, false, false); $loginboxcontent = " <table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"> <form name=\"login\" method=\"post\" action=\"" . tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL') . "\"> <tr> <td align=\"center\" class=\"main\"> " . BOX_LOGINBOX_EMAIL . " </td> </tr> <tr> <td align=\"center\" class=\"main\"> <input type=\"text\" name=\"email_address\" maxlength=\"96\" size=\"20\" value=\"\"> </td> </tr> <tr> <td align=\"center\" class=\"main\"> " . BOX_LOGINBOX_PASSWORD . " " . BOX_LOGINBOX_FORGOT_PASSWORD . " </td> </tr> <tr> <td align=\"center\" class=\"main\"> <input type=\"password\" name=\"password\" maxlength=\"40\" size=\"20\" value=\"\" </td> </tr> <tr> <td class=\"main\" align=\"center\"> " . tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN, 'SSL') . " </td> </tr> </form> <tr> <td align=\"center\" class=\"main\"> " . BOX_LOGINBOX_NEW . " </td> </tr> </table> "; $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => $loginboxcontent ); new infoBox($info_box_contents); ?> </td> </tr> <?php } else { // If you want to display anything when the user IS logged in, put it // in here... Possibly a "You are logged in as :" box or something. } ?> <!-- loginbox_eof //--> <?php // WebMakers.com Added: My Account Info Box } else { if (tep_session_is_registered('customer_id')) { ?> <!-- my_account_info //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => BOX_HEADING_LOGIN_BOX_MY_ACCOUNT ); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . LOGIN_BOX_MY_ACCOUNT . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL') . '">' . LOGIN_BOX_ACCOUNT_EDIT . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '">' . LOGIN_BOX_ACCOUNT_HISTORY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL') . '">' . LOGIN_BOX_ADDRESS_BOOK . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ACCOUNT_NOTIFICATIONS, '', 'NONSSL') . '">' . LOGIN_BOX_PRODUCT_NOTIFICATIONS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_LOGOFF, '', 'NONSSL') . '">' . LOGIN_BOX_LOGOFF . '</a>' ); new infoBox($info_box_contents); ?> </TD> </TR> <TR> <TD COLSPAN=3> <IMG SRC="images/boxes/table_footer1.gif" WIDTH=140 HEIGHT=10></TD> </TR> </TABLE> </td> </tr> <!-- my_account_info_eof //--> <?php } } ?>
241 Posted February 27, 2004 Posted February 27, 2004 Sorry about that I only placed the code in the else statement and not the other, so include this code again I give a bit of the code above and below new infoBox($info_box_contents); ?> </TD> </TR> <TR> <TD COLSPAN=3> <IMG SRC="images/boxes/table_footer1.gif" WIDTH=140 HEIGHT=10></TD> </TR> </TABLE> </td> </tr> <?php } else { // If you want to display anything when the user IS logged in, put it // in here... Possibly a "You are logged in as :" box or something. } ?> No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes.
Assailant Posted February 27, 2004 Author Posted February 27, 2004 k did that and it gave me a parse error on line 138, this is whats on 138 ?>
241 Posted February 27, 2004 Posted February 27, 2004 give me a few lines above and below line 138 and check that you do not have two instances of ?> at lines 137-139 No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes.
Assailant Posted February 27, 2004 Author Posted February 27, 2004 heres the entire code in case you need it <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License IMPORTANT NOTE: This script is not part of the official osC distribution but an add-on contributed to the osC community. Please read the README and INSTALL documents that are provided with this file for further information and installation notes. loginbox.php - Version 1.0 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 */ // WebMakers.com Added: Do not show if on login or create account if ( (!strstr($_SERVER['PHP_SELF'],'login.php')) and (!strstr($_SERVER['PHP_SELF'],'create_account.php')) and !tep_session_is_registered('customer_id') ) { ?> <!-- loginbox //--> <?php if (!tep_session_is_registered('customer_id')) { ?> <tr> <td> <TABLE WIDTH=140 BORDER=0 CELLPADDING=0 CELLSPACING=0> <TR> <TD COLSPAN=3> <IMG SRC="images/boxes/account.gif" WIDTH=145 HEIGHT=22></TD> </TR> <?php //$info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => BOX_LOGINBOX_HEADING ); //new infoBoxHeading($info_box_contents, false, false); $loginboxcontent = " <table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"> <form name=\"login\" method=\"post\" action=\"" . tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL') . "\"> <tr> <td align=\"center\" class=\"main\"> " . BOX_LOGINBOX_EMAIL . " </td> </tr> <tr> <td align=\"center\" class=\"main\"> <input type=\"text\" name=\"email_address\" maxlength=\"96\" size=\"20\" value=\"\"> </td> </tr> <tr> <td align=\"center\" class=\"main\"> " . BOX_LOGINBOX_PASSWORD . " " . BOX_LOGINBOX_FORGOT_PASSWORD . " </td> </tr> <tr> <td align=\"center\" class=\"main\"> <input type=\"password\" name=\"password\" maxlength=\"40\" size=\"20\" value=\"\" </td> </tr> <tr> <td class=\"main\" align=\"center\"> " . tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN, 'SSL') . " </td> </tr> </form> <tr> <td align=\"center\" class=\"main\"> " . BOX_LOGINBOX_NEW . " </td> </tr> </table> "; $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => $loginboxcontent ); new infoBox($info_box_contents); ?> </td> </tr> <?php } else { // If you want to display anything when the user IS logged in, put it // in here... Possibly a "You are logged in as :" box or something. } ?> <!-- loginbox_eof //--> <?php // WebMakers.com Added: My Account Info Box } else { if (tep_session_is_registered('customer_id')) { ?> <!-- my_account_info //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => BOX_HEADING_LOGIN_BOX_MY_ACCOUNT ); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . LOGIN_BOX_MY_ACCOUNT . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL') . '">' . LOGIN_BOX_ACCOUNT_EDIT . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '">' . LOGIN_BOX_ACCOUNT_HISTORY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL') . '">' . LOGIN_BOX_ADDRESS_BOOK . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ACCOUNT_NOTIFICATIONS, '', 'NONSSL') . '">' . LOGIN_BOX_PRODUCT_NOTIFICATIONS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_LOGOFF, '', 'NONSSL') . '">' . LOGIN_BOX_LOGOFF . '</a>' ); new infoBox($info_box_contents); ?> </TD> </TR> <TR> <TD COLSPAN=3> <IMG SRC="images/boxes/table_footer1.gif" WIDTH=140 HEIGHT=10></TD> </TR> </TABLE> </td> </tr> <?php } else { // If you want to display anything when the user IS logged in, put it // in here... Possibly a "You are logged in as :" box or something. } ?>
241 Posted February 27, 2004 Posted February 27, 2004 <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License IMPORTANT NOTE: This script is not part of the official osC distribution but an add-on contributed to the osC community. Please read the README and INSTALL documents that are provided with this file for further information and installation notes. loginbox.php - Version 1.0 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 */ // WebMakers.com Added: Do not show if on login or create account if ( (!strstr($_SERVER['PHP_SELF'],'login.php')) and (!strstr($_SERVER['PHP_SELF'],'create_account.php')) and !tep_session_is_registered('customer_id') ) { ?> <!-- loginbox //--> <?php if (!tep_session_is_registered('customer_id')) { ?> <tr> <td> <TABLE WIDTH=140 BORDER=0 CELLPADDING=0 CELLSPACING=0> <TR> <TD COLSPAN=3> <IMG SRC="images/boxes/account.gif" WIDTH=145 HEIGHT=22></TD> </TR> <?php //$info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => BOX_LOGINBOX_HEADING ); //new infoBoxHeading($info_box_contents, false, false); $loginboxcontent = " <table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"> <form name=\"login\" method=\"post\" action=\"" . tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL') . "\"> <tr> <td align=\"center\" class=\"main\"> " . BOX_LOGINBOX_EMAIL . " </td> </tr> <tr> <td align=\"center\" class=\"main\"> <input type=\"text\" name=\"email_address\" maxlength=\"96\" size=\"20\" value=\"\"> </td> </tr> <tr> <td align=\"center\" class=\"main\"> " . BOX_LOGINBOX_PASSWORD . " " . BOX_LOGINBOX_FORGOT_PASSWORD . " </td> </tr> <tr> <td align=\"center\" class=\"main\"> <input type=\"password\" name=\"password\" maxlength=\"40\" size=\"20\" value=\"\" </td> </tr> <tr> <td class=\"main\" align=\"center\"> " . tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN, 'SSL') . " </td> </tr> </form> <tr> <td align=\"center\" class=\"main\"> " . BOX_LOGINBOX_NEW . " </td> </tr> </table> "; $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => $loginboxcontent ); new infoBox($info_box_contents); ?> </TD> </TR> <TR> <TD COLSPAN=3> <IMG SRC="images/boxes/table_footer1.gif" WIDTH=140 HEIGHT=10></TD> </TR> </TABLE> </td> </tr> <?php } else { // If you want to display anything when the user IS logged in, put it // in here... Possibly a "You are logged in as :" box or something. } ?> <!-- loginbox_eof //--> <?php // WebMakers.com Added: My Account Info Box } else { if (tep_session_is_registered('customer_id')) { ?> <!-- my_account_info //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => BOX_HEADING_LOGIN_BOX_MY_ACCOUNT ); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . LOGIN_BOX_MY_ACCOUNT . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL') . '">' . LOGIN_BOX_ACCOUNT_EDIT . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '">' . LOGIN_BOX_ACCOUNT_HISTORY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL') . '">' . LOGIN_BOX_ADDRESS_BOOK . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ACCOUNT_NOTIFICATIONS, '', 'NONSSL') . '">' . LOGIN_BOX_PRODUCT_NOTIFICATIONS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_LOGOFF, '', 'NONSSL') . '">' . LOGIN_BOX_LOGOFF . '</a>' ); new infoBox($info_box_contents); ?> </TD> </TR> <TR> <TD COLSPAN=3> <IMG SRC="images/boxes/table_footer1.gif" WIDTH=140 HEIGHT=10></TD> </TR> </TABLE> </td> </tr> <!-- my_account_info_eof //--> <?php } } ?> this should be the code No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes.
Assailant Posted February 27, 2004 Author Posted February 27, 2004 hehe something funny happened now, theres a space between the box and the footer graphic and the cart box is now on the lower left side.
241 Posted February 27, 2004 Posted February 27, 2004 <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License IMPORTANT NOTE: This script is not part of the official osC distribution but an add-on contributed to the osC community. Please read the README and INSTALL documents that are provided with this file for further information and installation notes. loginbox.php - Version 1.0 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 */ // WebMakers.com Added: Do not show if on login or create account if ( (!strstr($_SERVER['PHP_SELF'],'login.php')) and (!strstr($_SERVER['PHP_SELF'],'create_account.php')) and !tep_session_is_registered('customer_id') ) { ?> <!-- loginbox //--> <?php if (!tep_session_is_registered('customer_id')) { ?> <tr> <td> <TABLE WIDTH=140 BORDER=0 CELLPADDING=0 CELLSPACING=0> <TR> <TD COLSPAN=3> <IMG SRC="images/boxes/account.gif" WIDTH=145 HEIGHT=22></TD> </TR> <?php //$info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => BOX_LOGINBOX_HEADING ); //new infoBoxHeading($info_box_contents, false, false); $loginboxcontent = " <table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"> <form name=\"login\" method=\"post\" action=\"" . tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL') . "\"> <tr> <td align=\"center\" class=\"main\"> " . BOX_LOGINBOX_EMAIL . " </td> </tr> <tr> <td align=\"center\" class=\"main\"> <input type=\"text\" name=\"email_address\" maxlength=\"96\" size=\"20\" value=\"\"> </td> </tr> <tr> <td align=\"center\" class=\"main\"> " . BOX_LOGINBOX_PASSWORD . " " . BOX_LOGINBOX_FORGOT_PASSWORD . " </td> </tr> <tr> <td align=\"center\" class=\"main\"> <input type=\"password\" name=\"password\" maxlength=\"40\" size=\"20\" value=\"\" </td> </tr> <tr> <td class=\"main\" align=\"center\"> " . tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN, 'SSL') . " </td> </tr> </form> <tr> <td align=\"center\" class=\"main\"> " . BOX_LOGINBOX_NEW . " </td> </tr> </table> "; $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => $loginboxcontent ); new infoBox($info_box_contents); ?> </TD> </TR> <TR> <TD COLSPAN=3> <IMG SRC="images/boxes/table_footer1.gif" WIDTH=140 HEIGHT=10></TD> </TR> </TABLE> </td> </tr> <?php } else { // If you want to display anything when the user IS logged in, put it // in here... Possibly a "You are logged in as :" box or something. } ?> <!-- loginbox_eof //--> <?php // WebMakers.com Added: My Account Info Box } else { if (tep_session_is_registered('customer_id')) { ?> <!-- my_account_info //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => BOX_HEADING_LOGIN_BOX_MY_ACCOUNT ); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . LOGIN_BOX_MY_ACCOUNT . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL') . '">' . LOGIN_BOX_ACCOUNT_EDIT . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '">' . LOGIN_BOX_ACCOUNT_HISTORY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL') . '">' . LOGIN_BOX_ADDRESS_BOOK . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ACCOUNT_NOTIFICATIONS, '', 'NONSSL') . '">' . LOGIN_BOX_PRODUCT_NOTIFICATIONS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_LOGOFF, '', 'NONSSL') . '">' . LOGIN_BOX_LOGOFF . '</a>' ); new infoBox($info_box_contents); ?> </td> </tr> <!-- my_account_info_eof //--> <?php } } ?> Do you want to try this one No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes.
Assailant Posted February 27, 2004 Author Posted February 27, 2004 i'll try anything at this point, still the same thing. didnt change anything
241 Posted February 27, 2004 Posted February 27, 2004 <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License IMPORTANT NOTE: This script is not part of the official osC distribution but an add-on contributed to the osC community. Please read the README and INSTALL documents that are provided with this file for further information and installation notes. loginbox.php - Version 1.0 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 */ // WebMakers.com Added: Do not show if on login or create account if ( (!strstr($_SERVER['PHP_SELF'],'login.php')) and (!strstr($_SERVER['PHP_SELF'],'create_account.php')) and !tep_session_is_registered('customer_id') ) { ?> <!-- loginbox //--> <?php if (!tep_session_is_registered('customer_id')) { ?> <tr> <td> <TABLE WIDTH=140 BORDER=0 CELLPADDING=0 CELLSPACING=0> <TR> <TD COLSPAN=3> <IMG SRC="images/boxes/account.gif" WIDTH=145 HEIGHT=22></TD> </TR> <?php //$info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => BOX_LOGINBOX_HEADING ); //new infoBoxHeading($info_box_contents, false, false); $loginboxcontent = " <table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"> <form name=\"login\" method=\"post\" action=\"" . tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL') . "\"> <tr> <td align=\"center\" class=\"main\"> " . BOX_LOGINBOX_EMAIL . " </td> </tr> <tr> <td align=\"center\" class=\"main\"> <input type=\"text\" name=\"email_address\" maxlength=\"96\" size=\"20\" value=\"\"> </td> </tr> <tr> <td align=\"center\" class=\"main\"> " . BOX_LOGINBOX_PASSWORD . " " . BOX_LOGINBOX_FORGOT_PASSWORD . " </td> </tr> <tr> <td align=\"center\" class=\"main\"> <input type=\"password\" name=\"password\" maxlength=\"40\" size=\"20\" value=\"\" </td> </tr> <tr> <td class=\"main\" align=\"center\"> " . tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN, 'SSL') . " </td> </tr> </form> <tr> <td align=\"center\" class=\"main\"> " . BOX_LOGINBOX_NEW . " </td> </tr> </table> "; $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => $loginboxcontent ); new infoBox($info_box_contents); ?> </td> </tr> </TD> </TR> <TR> <TD COLSPAN=3> <IMG SRC="images/boxes/table_footer1.gif" WIDTH=140 HEIGHT=10></TD> </TR> </TABLE> <?php } else { // If you want to display anything when the user IS logged in, put it // in here... Possibly a "You are logged in as :" box or something. } ?> <!-- loginbox_eof //--> <?php // WebMakers.com Added: My Account Info Box } else { if (tep_session_is_registered('customer_id')) { ?> <!-- my_account_info //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => BOX_HEADING_LOGIN_BOX_MY_ACCOUNT ); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . LOGIN_BOX_MY_ACCOUNT . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL') . '">' . LOGIN_BOX_ACCOUNT_EDIT . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '">' . LOGIN_BOX_ACCOUNT_HISTORY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL') . '">' . LOGIN_BOX_ADDRESS_BOOK . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ACCOUNT_NOTIFICATIONS, '', 'NONSSL') . '">' . LOGIN_BOX_PRODUCT_NOTIFICATIONS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_LOGOFF, '', 'NONSSL') . '">' . LOGIN_BOX_LOGOFF . '</a>' ); new infoBox($info_box_contents); ?> </td> </tr> <!-- my_account_info_eof //--> <?php } } ?> This should change something, just a pity I dont have your setup then I could try the code out before posting No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes.
Assailant Posted February 27, 2004 Author Posted February 27, 2004 hehe still didnt change anything, if it would be easier I can give you the ftp info? i feel bad you're tryin so hard for me, I can offer you some free hosting if you like, im a reseller
241 Posted February 27, 2004 Posted February 27, 2004 two more goes <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License IMPORTANT NOTE: This script is not part of the official osC distribution but an add-on contributed to the osC community. Please read the README and INSTALL documents that are provided with this file for further information and installation notes. loginbox.php - Version 1.0 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 */ // WebMakers.com Added: Do not show if on login or create account if ( (!strstr($_SERVER['PHP_SELF'],'login.php')) and (!strstr($_SERVER['PHP_SELF'],'create_account.php')) and !tep_session_is_registered('customer_id') ) { ?> <!-- loginbox //--> <?php if (!tep_session_is_registered('customer_id')) { ?> <tr> <td> <TABLE WIDTH=140 BORDER=0 CELLPADDING=0 CELLSPACING=0> <TR> <TD COLSPAN=3> <IMG SRC="images/boxes/account.gif" WIDTH=145 HEIGHT=22></TD> </TR> <?php //$info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => BOX_LOGINBOX_HEADING ); //new infoBoxHeading($info_box_contents, false, false); $loginboxcontent = " <table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"> <form name=\"login\" method=\"post\" action=\"" . tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL') . "\"> <tr> <td align=\"center\" class=\"main\"> " . BOX_LOGINBOX_EMAIL . " </td> </tr> <tr> <td align=\"center\" class=\"main\"> <input type=\"text\" name=\"email_address\" maxlength=\"96\" size=\"20\" value=\"\"> </td> </tr> <tr> <td align=\"center\" class=\"main\"> " . BOX_LOGINBOX_PASSWORD . " " . BOX_LOGINBOX_FORGOT_PASSWORD . " </td> </tr> <tr> <td align=\"center\" class=\"main\"> <input type=\"password\" name=\"password\" maxlength=\"40\" size=\"20\" value=\"\" </td> </tr> <tr> <td class=\"main\" align=\"center\"> " . tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN, 'SSL') . " </td> </tr> </form> <tr> <td align=\"center\" class=\"main\"> " . BOX_LOGINBOX_NEW . " </td> </tr> </table> "; $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => $loginboxcontent ); new infoBox($info_box_contents); ?> <TR> <TD COLSPAN=3> <IMG SRC="images/boxes/table_footer1.gif" WIDTH=140 HEIGHT=10></TD> </TR> </TABLE> </td> </tr> <?php } else { // If you want to display anything when the user IS logged in, put it // in here... Possibly a "You are logged in as :" box or something. } ?> <!-- loginbox_eof //--> <?php // WebMakers.com Added: My Account Info Box } else { if (tep_session_is_registered('customer_id')) { ?> <!-- my_account_info //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => BOX_HEADING_LOGIN_BOX_MY_ACCOUNT ); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . LOGIN_BOX_MY_ACCOUNT . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL') . '">' . LOGIN_BOX_ACCOUNT_EDIT . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '">' . LOGIN_BOX_ACCOUNT_HISTORY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL') . '">' . LOGIN_BOX_ADDRESS_BOOK . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ACCOUNT_NOTIFICATIONS, '', 'NONSSL') . '">' . LOGIN_BOX_PRODUCT_NOTIFICATIONS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_LOGOFF, '', 'NONSSL') . '">' . LOGIN_BOX_LOGOFF . '</a>' ); new infoBox($info_box_contents); ?> <TR> <TD COLSPAN=3> <IMG SRC="images/boxes/table_footer1.gif" WIDTH=140 HEIGHT=10></TD> </TR> </TABLE> </td> </tr> <!-- my_account_info_eof //--> <?php } } ?> try this No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes.
Assailant Posted February 27, 2004 Author Posted February 27, 2004 geez its being a pain in the ass, still no effect
241 Posted February 27, 2004 Posted February 27, 2004 <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License IMPORTANT NOTE: This script is not part of the official osC distribution but an add-on contributed to the osC community. Please read the README and INSTALL documents that are provided with this file for further information and installation notes. loginbox.php - Version 1.0 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 */ // WebMakers.com Added: Do not show if on login or create account if ( (!strstr($_SERVER['PHP_SELF'],'login.php')) and (!strstr($_SERVER['PHP_SELF'],'create_account.php')) and !tep_session_is_registered('customer_id') ) { ?> <!-- loginbox //--> <?php if (!tep_session_is_registered('customer_id')) { ?> <tr> <td> <TABLE WIDTH=140 BORDER=0 CELLPADDING=0 CELLSPACING=0> <TR> <TD COLSPAN=3> <IMG SRC="images/boxes/account.gif" WIDTH=145 HEIGHT=22></TD> </TR> <?php //$info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => BOX_LOGINBOX_HEADING ); //new infoBoxHeading($info_box_contents, false, false); $loginboxcontent = " <table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"> <form name=\"login\" method=\"post\" action=\"" . tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL') . "\"> <tr> <td align=\"center\" class=\"main\"> " . BOX_LOGINBOX_EMAIL . " </td> </tr> <tr> <td align=\"center\" class=\"main\"> <input type=\"text\" name=\"email_address\" maxlength=\"96\" size=\"20\" value=\"\"> </td> </tr> <tr> <td align=\"center\" class=\"main\"> " . BOX_LOGINBOX_PASSWORD . " " . BOX_LOGINBOX_FORGOT_PASSWORD . " </td> </tr> <tr> <td align=\"center\" class=\"main\"> <input type=\"password\" name=\"password\" maxlength=\"40\" size=\"20\" value=\"\" </td> </tr> <tr> <td class=\"main\" align=\"center\"> " . tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN, 'SSL') . " </td> </tr> </form> <tr> <td align=\"center\" class=\"main\"> " . BOX_LOGINBOX_NEW . " </td> </tr> </table> "; $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => $loginboxcontent ); new infoBox($info_box_contents); ?> <TR> <TD COLSPAN=3> <IMG SRC="images/boxes/table_footer1.gif" WIDTH=140 HEIGHT=10></TD> </TR> </TABLE> </td> </tr> <?php } else { // If you want to display anything when the user IS logged in, put it // in here... Possibly a "You are logged in as :" box or something. } ?> <!-- loginbox_eof //--> <?php // WebMakers.com Added: My Account Info Box } else { if (tep_session_is_registered('customer_id')) { ?> <!-- my_account_info //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => BOX_HEADING_LOGIN_BOX_MY_ACCOUNT ); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . LOGIN_BOX_MY_ACCOUNT . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL') . '">' . LOGIN_BOX_ACCOUNT_EDIT . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '">' . LOGIN_BOX_ACCOUNT_HISTORY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL') . '">' . LOGIN_BOX_ADDRESS_BOOK . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ACCOUNT_NOTIFICATIONS, '', 'NONSSL') . '">' . LOGIN_BOX_PRODUCT_NOTIFICATIONS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_LOGOFF, '', 'NONSSL') . '">' . LOGIN_BOX_LOGOFF . '</a>' ); new infoBox($info_box_contents); ?> </td> </tr> <!-- my_account_info_eof //--> <?php } } ?> hopefully this as some effect No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes.
241 Posted February 27, 2004 Posted February 27, 2004 Ok I have an ftp of the site and will set up on local machine then get back to you, in the meantime try this <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License IMPORTANT NOTE: This script is not part of the official osC distribution but an add-on contributed to the osC community. Please read the README and INSTALL documents that are provided with this file for further information and installation notes. loginbox.php - Version 1.0 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 */ // WebMakers.com Added: Do not show if on login or create account if ( (!strstr($_SERVER['PHP_SELF'],'login.php')) and (!strstr($_SERVER['PHP_SELF'],'create_account.php')) and !tep_session_is_registered('customer_id') ) { ?> <!-- loginbox //--> <?php if (!tep_session_is_registered('customer_id')) { ?> <tr> <td> <TABLE WIDTH=140 BORDER=0 CELLPADDING=0 CELLSPACING=0> <TR> <TD COLSPAN=3> <IMG SRC="images/boxes/account.gif" WIDTH=145 HEIGHT=22></TD> </TR> <?php //$info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => BOX_LOGINBOX_HEADING ); //new infoBoxHeading($info_box_contents, false, false); $loginboxcontent = " <table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"> <form name=\"login\" method=\"post\" action=\"" . tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL') . "\"> <tr> <td align=\"center\" class=\"main\"> " . BOX_LOGINBOX_EMAIL . " </td> </tr> <tr> <td align=\"center\" class=\"main\"> <input type=\"text\" name=\"email_address\" maxlength=\"96\" size=\"20\" value=\"\"> </td> </tr> <tr> <td align=\"center\" class=\"main\"> " . BOX_LOGINBOX_PASSWORD . " " . BOX_LOGINBOX_FORGOT_PASSWORD . " </td> </tr> <tr> <td align=\"center\" class=\"main\"> <input type=\"password\" name=\"password\" maxlength=\"40\" size=\"20\" value=\"\" </td> </tr> <tr> <td class=\"main\" align=\"center\"> " . tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN, 'SSL') . " </td> </tr> </form> <tr> <td align=\"center\" class=\"main\"> " . BOX_LOGINBOX_NEW . " </td> </tr> </table> "; $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => $loginboxcontent ); new infoBox($info_box_contents); ?> </td> </tr> <?php } else { // If you want to display anything when the user IS logged in, put it // in here... Possibly a "You are logged in as :" box or something. } ?> <!-- loginbox_eof //--> <?php // WebMakers.com Added: My Account Info Box } else { if (tep_session_is_registered('customer_id')) { ?> <!-- my_account_info //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => BOX_HEADING_LOGIN_BOX_MY_ACCOUNT ); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . LOGIN_BOX_MY_ACCOUNT . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL') . '">' . LOGIN_BOX_ACCOUNT_EDIT . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '">' . LOGIN_BOX_ACCOUNT_HISTORY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL') . '">' . LOGIN_BOX_ADDRESS_BOOK . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ACCOUNT_NOTIFICATIONS, '', 'NONSSL') . '">' . LOGIN_BOX_PRODUCT_NOTIFICATIONS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_LOGOFF, '', 'NONSSL') . '">' . LOGIN_BOX_LOGOFF . '</a>' ); new infoBox($info_box_contents); ?> <TR> <TD COLSPAN=3> <IMG SRC="images/boxes/table_footer1.gif" WIDTH=140 HEIGHT=10></TD> </TR> </TABLE> </td> </tr> <!-- my_account_info_eof //--> <?php } } ?> No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes.
Assailant Posted February 27, 2004 Author Posted February 27, 2004 i pm'd you my ftp info if that would be easier, ok the shopping cart box is back where it should be, however now theres no footer at all on the login box. I appreciate your dedicated effort.
241 Posted February 27, 2004 Posted February 27, 2004 Here we go, I was unable to try this with a logged in account as I am experiencing some localised problems, as I am migrating systems at the moment. <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License IMPORTANT NOTE: This script is not part of the official osC distribution but an add-on contributed to the osC community. Please read the README and INSTALL documents that are provided with this file for further information and installation notes. loginbox.php - Version 1.0 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 */ // WebMakers.com Added: Do not show if on login or create account if ( (!strstr($_SERVER['PHP_SELF'],'login.php')) and (!strstr($_SERVER['PHP_SELF'],'create_account.php')) and !tep_session_is_registered('customer_id') ) { ?> <!-- loginbox //--> <?php if (!tep_session_is_registered('customer_id')) { ?> <tr> <td> <TABLE WIDTH=140 BORDER=0 CELLPADDING=0 CELLSPACING=0> <TR> <TD COLSPAN=3> <IMG SRC="images/boxes/account.gif" WIDTH=145 HEIGHT=22></TD> </TR> <?php //$info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => BOX_LOGINBOX_HEADING ); //new infoBoxHeading($info_box_contents, false, false); $loginboxcontent = " <table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"> <form name=\"login\" method=\"post\" action=\"" . tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL') . "\"> <tr> <td align=\"center\" class=\"main\"> " . BOX_LOGINBOX_EMAIL . " </td> </tr> <tr> <td align=\"center\" class=\"main\"> <input type=\"text\" name=\"email_address\" maxlength=\"96\" size=\"20\" value=\"\"> </td> </tr> <tr> <td align=\"center\" class=\"main\"> " . BOX_LOGINBOX_PASSWORD . " " . BOX_LOGINBOX_FORGOT_PASSWORD . " </td> </tr> <tr> <td align=\"center\" class=\"main\"> <input type=\"password\" name=\"password\" maxlength=\"40\" size=\"20\" value=\"\" </td> </tr> <tr> <td class=\"main\" align=\"center\"> " . tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN, 'SSL') . " </td> </tr> </form> <tr> <td align=\"center\" class=\"main\"> " . BOX_LOGINBOX_NEW . " </td> </tr> </table> "; //$info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => $loginboxcontent ); new infoBox($info_box_contents); ?> <IMG SRC="images/boxes/table_footer1.gif" WIDTH=146 HEIGHT=10></td></tr> <?php } else { // If you want to display anything when the user IS logged in, put it // in here... Possibly a "You are logged in as :" box or something. } ?> <!-- loginbox_eof //--> <?php // WebMakers.com Added: My Account Info Box } else { if (tep_session_is_registered('customer_id')) { ?> <!-- my_account_info //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => BOX_HEADING_LOGIN_BOX_MY_ACCOUNT ); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . LOGIN_BOX_MY_ACCOUNT . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL') . '">' . LOGIN_BOX_ACCOUNT_EDIT . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '">' . LOGIN_BOX_ACCOUNT_HISTORY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL') . '">' . LOGIN_BOX_ADDRESS_BOOK . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ACCOUNT_NOTIFICATIONS, '', 'NONSSL') . '">' . LOGIN_BOX_PRODUCT_NOTIFICATIONS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_LOGOFF, '', 'NONSSL') . '">' . LOGIN_BOX_LOGOFF . '</a>' ); new infoBox($info_box_contents); ?> </td> </tr> <!-- my_account_info_eof //--> <?php } } ?> No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes.
Assailant Posted February 27, 2004 Author Posted February 27, 2004 lol it works now, kinda sorta, its kinda funny, when you click a category or a product, links appear in the box, store policies etc, and the box expands when you go to a product. better than it was better than it was before tho hehe thanks at least i have something to work with now
241 Posted February 27, 2004 Posted February 27, 2004 The expanding width was there original to my mods however I forgot to comment back in one line <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License IMPORTANT NOTE: This script is not part of the official osC distribution but an add-on contributed to the osC community. Please read the README and ?INSTALL documents that are provided with this file for further information and installation notes. loginbox.php - ? Version 1.0 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 */ // WebMakers.com Added: Do not show if on login or create account if ( (!strstr($_SERVER['PHP_SELF'],'login.php')) and (!strstr($_SERVER['PHP_SELF'],'create_account.php')) and !tep_session_is_registered('customer_id') ) ?{ ?> <!-- loginbox //--> <?php if (!tep_session_is_registered('customer_id')) { ?> ? ? ? <tr> ? ? ?<td> <TABLE WIDTH=140 BORDER=0 CELLPADDING=0 CELLSPACING=0> <TR> <TD COLSPAN=3> <IMG SRC="images/boxes/account.gif" WIDTH=145 HEIGHT=22></TD> </TR> <?php //$info_box_contents = array(); $info_box_contents[] = array('align' => 'center', ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?'text' ?=> BOX_LOGINBOX_HEADING ? ? ? ? ? ? ? ? ? ? ? ? ? ? ); //new infoBoxHeading($info_box_contents, false, false); $loginboxcontent = " ? ? ? ? <table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"> ? ? ? ? <form name=\"login\" method=\"post\" action=\"" . tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL') . "\"> ? ? ? ? ? <tr> ? ? ? ? ? ? <td align=\"center\" class=\"main\"> ? ? ? ? ? ? ? " . BOX_LOGINBOX_EMAIL . " ? ? ? ? ? ? </td> ? ? ? ? ? </tr> ? ? ? ? ? <tr> ? ? ? ? ? ? <td align=\"center\" class=\"main\"> ? ? ? ? ? ? ? <input type=\"text\" name=\"email_address\" maxlength=\"96\" size=\"20\" value=\"\"> ? ? ? ? ? ? </td> ? ? ? ? ? </tr> ? ? ? ? ? <tr> ? ? ? ? ? ? <td align=\"center\" class=\"main\"> ? ? ? ? ? ? ? " . BOX_LOGINBOX_PASSWORD . " " . BOX_LOGINBOX_FORGOT_PASSWORD . " ? ? ? ? ? ? </td> ? ? ? ? ? </tr> ? ? ? ? ? <tr> ? ? ? ? ? ? <td align=\"center\" class=\"main\"> ? ? ? ? ? ? ? <input type=\"password\" name=\"password\" maxlength=\"40\" size=\"20\" value=\"\" ? ? ? ? ? ? </td> ? ? ? ? ? </tr> ? ? ? ? ? <tr> ? ? ? ? ? ? <td class=\"main\" align=\"center\"> ? ? ? ? ? ? ? " . tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN, 'SSL') . " ? ? ? ? ? ? </td> ? ? ? ? ? </tr> ? ? ? ? </form> ? ? ? ? ? <tr> ? ? ? ? ? ? <td align=\"center\" class=\"main\"> ? ? ? ? ? ? ? " . BOX_LOGINBOX_NEW . " ? ? ? ? ? ? </td> ? ? ? ? ? </tr> ? ? ? ? </table> ? ? ? ? ? "; $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?'text' ?=> $loginboxcontent ? ? ? ? ? ? ? ? ? ? ? ? ? ? ); new infoBox($info_box_contents); ?> <IMG SRC="images/boxes/table_footer1.gif" HEIGHT=10></td></tr> <?php } else { // If you want to display anything when the user IS logged in, put it // in here... ?Possibly a "You are logged in as :" box or something. } ?> <!-- loginbox_eof //--> <?php // WebMakers.com Added: My Account Info Box } else { if (tep_session_is_registered('customer_id')) { ?> <!-- my_account_info //--> ? ? ? <tr> ? ? ? ?<td> ? ?<?php $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', ? ? ? ? ? ? ? ? ? ? ? ? ? ?'text' ?=> BOX_HEADING_LOGIN_BOX_MY_ACCOUNT ? ? ? ? ? ? ? ? ? ? ? ? ? ); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', ? ? ? ? ? ? ? ? ? ? ? ? ? ?'text' ?=> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . LOGIN_BOX_MY_ACCOUNT . '</a><br>' . ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? '<a href="' . tep_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL') . '">' . LOGIN_BOX_ACCOUNT_EDIT . '</a><br>' . ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '">' . LOGIN_BOX_ACCOUNT_HISTORY . '</a><br>' . ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? '<a href="' . tep_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL') . '">' . LOGIN_BOX_ADDRESS_BOOK . '</a><br>' . ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? '<a href="' . tep_href_link(FILENAME_ACCOUNT_NOTIFICATIONS, '', 'NONSSL') . '">' . LOGIN_BOX_PRODUCT_NOTIFICATIONS . '</a><br>' . ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? '<a href="' . tep_href_link(FILENAME_LOGOFF, '', 'NONSSL') . '">' . LOGIN_BOX_LOGOFF . '</a>' ? ? ? ? ? ? ? ? ? ? ? ? ? ); new infoBox($info_box_contents); ?> ?</td> ? ? </tr> <!-- my_account_info_eof //--> <?php } } ?> That will close out the links for you No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes.
Assailant Posted February 27, 2004 Author Posted February 27, 2004 woohoo you the man, looks good, now all I gotta do is figure out how to remove that tell a friend box so I'll just search the forums for that solution, thanks so much man you're always around to help me. thanks thanks thanks thanks
241 Posted February 27, 2004 Posted February 27, 2004 Tell a friend is in catalog/includes/column_right.php this is the code if (isset($HTTP_GET_VARS['products_id'])) { if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php'); } else { include(DIR_WS_BOXES . 'specials.php'); } comment out to give this /* if (isset($HTTP_GET_VARS['products_id'])) { if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php'); } else { include(DIR_WS_BOXES . 'specials.php'); } */ or if you wish to keep the specials box if (isset($HTTP_GET_VARS['products_id'])) { /* if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php'); } else { */ include(DIR_WS_BOXES . 'specials.php'); } No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.