Justin WFCOMICS Posted August 18, 2003 Share Posted August 18, 2003 Hey gang, Before I make this into an official contribution, I want to see what you all thought. If you have any additional suggestions for me regarding the documentation, let me know. This contribution originally started as LoginBox 5.0 by Aubrey Kilian and then was modified by Linda McGrath to be both a Login Box and a My Account Box once you were logged in. I made the following fixes, changes and additions.... 1) Fixed Product Notification link (stopped working as of 2.2ms2, now works) 2) Added "Secure Login" link 3) Added "Password Forgotten" link 4) Instead of defining seperate in /catalog/includes/languages/english/loginbox.php, LoginBox now simply uses from catalog/includes/languages/english.php: a) HEADER_TITLE_LOGIN for box title b) ENTRY_EMAIL_ADDRESS for email field label c) ENTRY_PASSWORD for password field label d) HEADER_TITLE_LOGOFF for logoff button when signed in 5) Renamed some defaults in /catalog/includes/languages/english/loginbox.php 6) Reordered My Account Info links to match order in main body 7) Fixed problem where formatting defined in catalog/styleseet.css for boxText (the "E-Mail" and "Password" text) was not applying 8) Other very minor editting and formatting of code Yes, I know that when using SSL with osCommerce the FORM call in the LoginBox *is* secure (FORM is called via HTTPS) and that using the LoginBox on any of the pages is secure, but some site visitors want to see the lock icon on their browser before typing in their password. The "Secure Login" link was put in for those people. http://www.worldfamouscomics.com/oscdownlo...x5_2_wfc1_0.zip I hope this helps and let me know what you think!! Justin =) Quote Link to comment Share on other sites More sharing options...
sgflowers Posted August 19, 2003 Share Posted August 19, 2003 Works great thanks running it on ms2 www.secretgardenflowers.com Quote Link to comment Share on other sites More sharing options...
Austin519 Posted August 19, 2003 Share Posted August 19, 2003 Justin WFCOMICS: Thanks man, I'm going to check it out. Austin519 Quote Link to comment Share on other sites More sharing options...
Justin WFCOMICS Posted August 19, 2003 Author Share Posted August 19, 2003 Thanks man, I'm going to check it out. Great. Come back and let us know how it goes :). Justin =) Quote Link to comment Share on other sites More sharing options...
Justin WFCOMICS Posted August 22, 2003 Author Share Posted August 22, 2003 It's official :). http://www.oscommerce.com/community/contributions,1469 I've taken the copy off my server so the link in my first post no longer works. If you are interested in this contribution, you can download it from the above link. I hope this is helpful! Justin =) Quote Link to comment Share on other sites More sharing options...
cgchris99 Posted September 4, 2003 Share Posted September 4, 2003 Does this contribution work with MS1? Thanks for any info Quote Link to comment Share on other sites More sharing options...
Justin WFCOMICS Posted September 4, 2003 Author Share Posted September 4, 2003 Does this contribution work with MS1? I haven't actually tried it, but, unforutunately, I don't think it will :(. The fixes I had to make to the original contribution (before adding my enhancements to it) for it to work in MS2 probably made it incompatible with MS1 as the issues I had fixed didn't look like typos, but the result of upgrades to osC (i.e. renamed variables and definitions). Here's the original contribution that I believe will work in MS1... http://www.oscommerce.com/community/contributions,590 ...you can try adding the same enhancements I did to it but keep it compatible with MS1. I hope this was informative! Justin =) Quote Link to comment Share on other sites More sharing options...
ChA0s Posted October 2, 2003 Share Posted October 2, 2003 First of all, thanx 4 this great distribution Justin. :) But.... I have a small problem with the languages. When I first start up ( with default language UK ) no problem at all, but when I change my language to any other one but UK I get an error in the text >> Password Forgotten? In fact there is no "Password Forgotten?" text at all when other languages are used, only text like >> LOGIN_BOX_PASSWORD_FORGOTTEN The link of "Password Forgotten?" works OK in every language. Does anyone have the solution 4 this small problem ?? THNX in advance. Quote Link to comment Share on other sites More sharing options...
Guest Posted October 2, 2003 Share Posted October 2, 2003 In includes/languages/language.php (replace language with the actual language name), add define('LOGIN_BOX_PASSWORD_FORGOTTEN', '...whatever...'); Replace the ...whatever... with something reasonable in the language you need. Note: this applies to pretty much all contributions. If you use languages other than English, chances are that you will have to add your own language defines. Hth, Matt Quote Link to comment Share on other sites More sharing options...
Justin WFCOMICS Posted October 2, 2003 Author Share Posted October 2, 2003 First of all, thanx 4 this great distribution Justin. :) But.... I have a small problem with the languages. When I first start up ( with default language UK ) no problem at all, but when I change my language to any other one but UK I get an error in the text >> Password Forgotten? In fact there is no "Password Forgotten?" text at all when other languages are used, only text like >> LOGIN_BOX_PASSWORD_FORGOTTEN The link of "Password Forgotten?" works OK in every language. Does anyone have the solution 4 this small problem ?? THNX in advance. And actually, if you login in with the other languages you'll find more of the same problem, it's not just with the "Password Forgotten?" text. However, Matt is basically correct with what he said above. You need a language file for each language you use this contribution with. Specifically, in my contribution... Find the file: languages/english/loginbox.php *NOT* the one in: includes/boxes/loginbox.php Make a copy of that file for each of the different languages you are using osCommerce with, then: 1) Open the file and define all the variable definitions to the appropriate language. They all look like "define ('VARIABLE', 'VALUE')" and just change where you see "VALUE" to the language you are working with. Leave "VARIABLE" alone. 2) Upload it to languages/YOURLANGUAGE/loginbox.php 3) Done B)! I hope this helps!! Justin =) Quote Link to comment Share on other sites More sharing options...
Justin WFCOMICS Posted October 2, 2003 Author Share Posted October 2, 2003 Find the file: languages/english/loginbox.php ... 2) Upload it to languages/YOURLANGUAGE/loginbox.php Oops, in the above two statements, I meant to say... "Find the file: includes/languages/english/loginbox.php" and "2) Upload it to includes/languages/YOURLANGUAGE/loginbox.php" I neglected to mention that all the languages directories you need to work with are in includes/. Justin =) Quote Link to comment Share on other sites More sharing options...
ChA0s Posted October 3, 2003 Share Posted October 3, 2003 2 Matt and Justin The solution provided by U2 works great, have learned a lot from this, THNX for the effort. Quote Link to comment Share on other sites More sharing options...
helen Posted October 4, 2003 Share Posted October 4, 2003 Thanks so much for the contribution, it works great! I have a question: I'd like to implement Autologon with this contribution, does anyone know how I'd do that? Quote Link to comment Share on other sites More sharing options...
Justin WFCOMICS Posted October 6, 2003 Author Share Posted October 6, 2003 Thanks so much for the contribution, it works great! I have a question: I'd like to implement Autologon with this contribution, does anyone know how I'd do that? I'm glad you've found this contribution useful :). I hadn't had a chance to try getting it to work with Autologon. Maybe someone who has will chime in? Justin =) Quote Link to comment Share on other sites More sharing options...
helen Posted November 10, 2003 Share Posted November 10, 2003 I was able to use the Login Box w/My Account/AutoLogon - Enhancement contribution to get Autologin 1.05 and this Loginbox working together. I just had to change catalog/includes/boxes/loginbox.php and catalog/includes/languages/english/loginbox.php. Thanks, Justin! Quote Link to comment Share on other sites More sharing options...
AS-N Posted November 10, 2003 Share Posted November 10, 2003 (edited) When I try to do this I always get this error Fatal error: Call to undefined function: tep_loginbox_greeting_top() in /var/www/web6/html/catalog/includes/boxes/loginbox.php on line 49 and it doesn't work. Any ideas? Ciao Andr? :o Edited November 10, 2003 by AS-N Quote Link to comment Share on other sites More sharing options...
Guest Posted November 21, 2003 Share Posted November 21, 2003 When customers try and login using loginbox they are directed to a page not found. When back is hit they are logged in. Can anyone test this and see where I have messed up, I cannot tell. www.digispan.net Login: [email protected] Password: testing Quote Link to comment Share on other sites More sharing options...
JanetMor Posted November 28, 2003 Share Posted November 28, 2003 (edited) This should be pretty simple. I installed loginbox and put it in my columnsleft.php but because it is so wide, the left column is now toooo wide. The column width was fine before I added loginbox to it. Anyone have any suggestions as to how I can keep it in the column but not have it so wide. Take a look at what I mean. Thanks. I would like to have it look like how it looks at www.digispan.net . www.jaamor.com Edited November 28, 2003 by JanetMor Quote Link to comment Share on other sites More sharing options...
Strife Posted November 30, 2003 Share Posted November 30, 2003 Great contrib Justin, works flawlessly on my site, and I didn't have a single problem getting it to run. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.