Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Right Column Blues


decapper

Recommended Posts

Hello, Big thanks of cause to everyone that has added there 2cents.. I hope to one day help, but for now I need a little. cheers

 

http://www.hardwaresale.com.au/olshop/cata...talog/index.php

 

I can't find for the life of me how to the make the right column 173 pixels only. I have gone through a lot of files looking for this. Could someone please point me in the right direction. Thanks

Link to comment
Share on other sites

Ok I can't figure out what I'm doing wrong. I adjusted the english files for the different boxes. I added the

define('HEADER_TITLE_MY_ACCOUNT', '<img src=http://www.hardwaresale.com.au/olshop/catalog/includes/languages/english/images/top_menu/my_account.gif border=0 alt=My Account>');

 

But as you can see by my website above the files have not loaded in there right spots... The ones that have I used the contributions for adding those files and it added tables in the different boxes .php . Thx for anyhelp

Link to comment
Share on other sites

This is what I have done but it only puts the gif above the box. Any ideas please I have spent all day trying to work it out.

 

<?php

/*

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 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>

<tr>

<td>

<TABLE WIDTH=173 BORDER=0 CELLPADDING=0 CELLSPACING=0>

<TR>

<TD COLSPAN=3>

<IMG SRC="<?php echo DIR_WS_LANGUAGES . $language; ?>/images/boxes/login_here.gif" WIDTH=173 HEIGHT=18></TD>

</TR>

<TR>

<td>

<?php

$info_box_contents = array();

new infoBoxHeading($info_box_contents, $newtheme, false, false);

$loginboxcontent = "

<table border="0" width="173" cellspacing="0" cellpadding="0">

<form name="login" method="post" action="" . tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL') . "">

<tr>

<td align="center" class="infoBoxContents">

" . tep_loginbox_greeting_top() . "

</td>

</tr>

<tr>

<td align="center" class="infoBoxContents">

" . BOX_LOGINBOX_EMAIL . "

</td>

</tr>

<tr>

<td align="center" class="infoBoxContents">

<input type="text" name="email_address" maxlength="96" size="20" value="">

</td>

</tr>

<tr>

<td align="center" class="infoBoxContents">

" . BOX_LOGINBOX_PASSWORD . "

</td>

</tr>

<tr>

<td align="center" class="infoBoxContents">

<input type="password" name="password" maxlength="40" size="20" value=""

</td>

</tr>

<tr>

<td class="infoBoxContents" align="center">

" . tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN, 'SSL') . "

</td>

</tr>

<tr>

<td align="center" class="infoBoxContents">

" . tep_loginbox_greeting_bottom() . "

</td>

</tr>

</form>

</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' => 'left',

'text' => BOX_HEADING_LOGIN_BOX_MY_ACCOUNT

);

new infoBoxHeading($info_box_contents, $newtheme, false, false);

$loginboxcontent = "

<table border="0" width="173" cellspacing="0" cellpadding="0">

<tr>

<td align="center" class="loginBoxGreeting">

" . tep_loginbox_greeting_top() . "

</td>

</tr>

<tr>

</table>

";

$info_box_contents = array();

$info_box_contents[] = array('align' => 'center',

'text' => $loginboxcontent .

'<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

}

}

?>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...