Login box V5.4
for osCommerce Online Merchant v2.2
I have made some changes to this contribution.
1. Rewritten the script loginbox.php in the folder boxes making use of the html_output function for a form which is used throughout os-Commerce instead of using the ordinary html form setup. This is consistent with the design of the other scripts.
2. Lines added to the english.php (and dutch.php) instead of creating new files in the language folders.
3. Layout of login box slightly changed.
4. Added: BOX_LOGINBOX_TEXT_NEW
5. Changed: BOX_LOGINBOX_HEADING to BOX_HEADING_LOGIN_BOX (consistent with the others)
6. NOTE: When Logged off ... it is still a Login Box and when Logged in ... it is still a My Account Box.
Go to: http://snowyimac.local/oscommerce/ to see it in action.
You must first create an account. Your registration will be treated as fictional. The products purchased will not be delivered nor will the customer be billed. Have fun!
Legend: 
Download

Report
I have edited the loginbox.php file so that it utilizes the button_create_account.gif file that is included with Loginbox 5.7. For some reason, it was never changed to use the button.
files included:
loginbox.php
button_create_account.gif (resized to fit box)
E' stata aggiunta la lingua italiana.
- Updated Readme.txt with reference to all changes made up to this date 20.11.07
- Updated package with all changes made since first contribution, including all language translations and different buttons.
- Added norwegian translation and buttons
Previous link provided to see this contribution in action is not working. But you can see it at my site: http://www.barnebutikk.no
This is full package updated to this date, 20.11.07.
Correction made in catalog/includes/boxex/loginbox.php replaced line 56 in catalog/includes/boxes/loginbox.php
. tep_image_submit('b' . COLOUR . '/button_login.gif', IMAGE_BUTTON_LOGIN)
with
. tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN, 'SSL')
otherwise the login button is not showed up.
Has e'rything, including original and updated works from previous authors.
I have a gif for create an account.
Complete package. No more missing files.
This is only the loginbox.php file.
Just edited line 68 so as to display the text link defined in english.php line32
Cambios :
- Editado el archivo para el idioma español
- He usado como base el idioma English publicado el 7 Jan 2005 por Robin Malik
The file english.php (and the other language files) failed to define
the text to be displayed for the link to "products_new.php" in the
login box shown when a user logs in.
It would therefore show:
LOGIN_BOX_PRODUCTS_NEW
General information
Account history
Edit account info.
My address book
Product notifications
Log off
Added the following line into this submissions "english.php" file in order
to fix this.
define('LOGIN_BOX_PRODUCTS_NEW','New products');
--
As this submission requires, just copy and paste the code from english.php
into your english.php (don't overwrite). Follow the rest of the instructions in the original release.
When a user logins now, it says:
New products
General information
Account history
Edit account info.
My address book
Product notifications
Log off
Changes :
- added french language file
- compatible with "Purchase without Account" contribution
- add "Create Account" button in login box instead of link "create an account"
- light re-arrangement of login box
- added "View new products" in login box if customer is logged in. It's the same behavior as on the mainpage where all new products are proposed to the returning client.
- re-arranged "account" box to reflect the order of the account_info page (account edit, history, address book, logoff)
Nice contribution !
This is a great little contrib. I didn't add anything to it but I have realy clearified the instructions and repackaged all the files, images, examples, and bug fixes into this one file so it is complete and you dont have to pice it together from all the other updates.
Keep up the good work Astrid van Zanten-Schelll
Small error in loginbox.php which prevented the image from displaying. Now fixed. Thanks for this great little hack btw, works great. :)
I have also included in this addendum package two images.
* log_off.gif --> to see the Login Box
* log_in.gif --> to see the My Account Box
I have made some changes to this contribution.
1. Rewritten the script loginbox.php in the folder boxes making use of the html_output function for a form which is used throughout os-Commerce instead of using the ordinary html form setup. This is consistent with the design of the other scripts.
2. Lines added to the english.php (and dutch.php) instead of creating new files in the language folders.
3. Layout of login box slightly changed.
4. Added: BOX_LOGINBOX_TEXT_NEW
5. Changed: BOX_LOGINBOX_HEADING to BOX_HEADING_LOGIN_BOX (consistent with the others)
6. NOTE: When Logged off ... it is still a Login Box and when Logged in ... it is still a My Account Box.
You must first create an account. Your registration will be treated as fictional. The products purchased will not be delivered nor will the customer be billed. Have fun!