Guest Posted January 2, 2003 Share Posted January 2, 2003 This is an enhancement to the Loginbox/My Account v5.2 infobox contribution authored by Linda McGrath with www.TheWebMakersCorner.com. Everyone should make it a point to thank Linda for all of her hard work and excellent osCommerce add-ons and mod's that she has made available to all of us! Please visit her website for a multitude of osCOmmerce add-ons, mods and resources... http://www.thewebmakerscorner.com. THANK YOU LINDA... FOR EVERYTHING!!! You can find it here... http://www.oscommerce.com/community/contributions,849 Prerequisites To use this enhancement, you MUST have already installed Linda McGrath's Loginbox/My Account v5.2 infobox contribution. If you haven't installed it yet, stop now and go do it! Let me know if you have any questions. Good Luck! -R Quote Link to comment Share on other sites More sharing options...
Guest Posted January 2, 2003 Share Posted January 2, 2003 BTW... You can see it in action here... http://www.ugottasalsa.com/catalog -R Quote Link to comment Share on other sites More sharing options...
Guest Posted January 2, 2003 Share Posted January 2, 2003 You should have posted it in the same package as Linda's contribution so the Contributions section doesn't get all messed up again. Also what specific enhancements does it add? You don't say that anywhere. Quote Link to comment Share on other sites More sharing options...
Guest Posted January 2, 2003 Share Posted January 2, 2003 Very nice! It will allow me to get rid of the situation where the create account is in one section and the login box in another. Hopefully someone will move the contribution to where it belongs in the package rather than on its own..ie. read the sticky at the top of the forum. :wink: Quote Link to comment Share on other sites More sharing options...
Guest Posted January 2, 2003 Share Posted January 2, 2003 JB, glad you like it. Since this was an enhancement, not a complete re-write, thats why I put it where I did. I thought that was the right thing to do. If it needs to go within Linda's contribution, then by all means, I say move it there. I just didn't want anyone to get confused. Anyways, this contribution is an enhancement to Linda McGrath's "Login Box w/My Account" infobox contribution. Linda's contribution creates a Loginbox infobox, which would appear in either the left or right column. The loginbox infobox contains an email address and password text box to allow a customer to login. Once they do, the Loginbox infobox turns into a "My Account info" infobox. This enhancement places a Guest greeting above the text boxes which states, "Welcome Guest, If you are already registered, please login below". It also creates another Guest greeting below the text boxes which states, "First time Here? Not Registered yet? Click here to create an account" Once the customer has logged in, and the Loginbox infobox turns into a "My Account Info" infobox. The enhancement places a Personal Greeting above the Account links which states, "Welcome Back... [firstname]" Fairly simple and staightforward. The enhancement seems to be a bit more visually appealing and gives it a personal feel. Hopefully, this clarifies what this enhancement does. Please feel free to contact me with any questions, issues, ideas, suggestions, opinions or verbal abuse of any sort. :) Good Luck and Happy New Year! -R Quote Link to comment Share on other sites More sharing options...
Guest Posted January 3, 2003 Share Posted January 3, 2003 ugottasalsa, Where did you get that Yahoo IM mod? I am interested in that. Any idea if there is one for AOL IM ? Thanks! Quote Link to comment Share on other sites More sharing options...
Guest Posted January 3, 2003 Share Posted January 3, 2003 You can try this one, though I have not as of yet.... http://www.oscommerce.com/community/contributions,848 Or, you can use the one that I have... http://www.oscommerce.com/community/contributions,475 I made some slight modifications to make it look the way it does. Good Luck! -R Quote Link to comment Share on other sites More sharing options...
livefooduk Posted January 4, 2003 Share Posted January 4, 2003 I really like this enhancement, I already had the login box as part of Linda's Quantity controller mod but I was not using it because it lacked the features you have added. Thank you :D I think there is just one more thing that is now needed on the login box and that is the "forgotten password" link. Quote Best wishes Steve Link to comment Share on other sites More sharing options...
Guest Posted January 4, 2003 Share Posted January 4, 2003 YOUR RIGHT!!! :idea: I'm gonna work on that right now! -R Quote Link to comment Share on other sites More sharing options...
Guest Posted January 4, 2003 Share Posted January 4, 2003 Wow... that was easier than I thought. I must be getting the hang of this! :D Check out what the Loginbox infobox looks like now... http://www.ugottasalsa.com/catalog Is this the functionality that you were describing? That was a great suggestion, livefooduk! Thanks! There are only two very minor changes that need to be done. One is to /catalog/includes/languages/english.php, and the other is a small addition to /catalog/functions/general.php. I'm running out the door to go compete in a Salsa Dance Contest (Wish me luck!), where the Grand Prize is a 1 week, all expense paid trip to Hawaii! Damn, that would be cool! I wil post the code changes when I get back in later tonite! Thanks again! -R Quote Link to comment Share on other sites More sharing options...
livefooduk Posted January 4, 2003 Share Posted January 4, 2003 Check out what the Loginbox infobox looks like now... http://www.ugottasalsa.com/catalog Is this the functionality that you were describing? Yes like that I can now remove the login link from the top of the page and just use the login box. Good luck with the Salsa competition Quote Best wishes Steve Link to comment Share on other sites More sharing options...
Guest Posted January 4, 2003 Share Posted January 4, 2003 Here's the update as promised... First off, you must have already installed Linda McGrath's "Login Box / My Account" infobox contribution, as well as my "Login Box / My Account - Enhancement" contribution. This particular enhancement to my "Login Box / My Account - Enhancement" will add a comment and link just below the email and password fields in the loginbox infobox that states, "Forgot Your Password? Click Here". You can see it here... http://www.ugottasalsa.com/catalog There are only two very minor changes that have to be made. Open your /catalog/includes/languages/english.php and find the following line... define('LOGINBOX_GREETING_BOTTOM_GUEST', '<br><span class="greetUser">First Time Here?</span><br>Not registered yet?<br>Click here to<br><a href="%s"><u>create an account</u></a>?'); ...and change it to... define('LOGINBOX_GREETING_BOTTOM_GUEST', '<br><span class="greetUser">Forgot Your Password?</span><br><a href="%s"><u>Click Here</u></a><br><br><span class="greetUser">First Time Here?</span><br>Not registered yet?<br>Click here to<br><a href="%s"><u>create an account</u></a>?'); Save and close english.php. Now open /catalog/includes/functions/general.php and locate the following code... // Return a loginbox infobox customer greeting bottom function tep_loginbox_greeting_bottom() { global $customer_id, $customer_first_name; if (tep_session_is_registered('customer_first_name') && tep_session_is_registered('customer_id')) { $greeting_loginbox_bottom_string = sprintf(LOGINBOX_GREETING_BOTTOM_PERSONAL, $customer_first_name, tep_href_link(FILENAME_PRODUCTS_NEW, '', 'NONSSL')); } else { $greeting_loginbox_bottom_string = sprintf(LOGINBOX_GREETING_BOTTOM_GUEST, tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL')); } return $greeting_loginbox_bottom_string; } //// ...and change it to... // Return a loginbox infobox customer greeting bottom function tep_loginbox_greeting_bottom() { global $customer_id, $customer_first_name; if (tep_session_is_registered('customer_first_name') && tep_session_is_registered('customer_id')) { $greeting_loginbox_bottom_string = sprintf(LOGINBOX_GREETING_BOTTOM_PERSONAL, $customer_first_name, tep_href_link(FILENAME_PRODUCTS_NEW, '', 'NONSSL')); } else { $greeting_loginbox_bottom_string = sprintf(LOGINBOX_GREETING_BOTTOM_GUEST, tep_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL'), tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL')); } return $greeting_loginbox_bottom_string; } //// That's it. When you refresh osC, your loginbox infobox will now include a comment and link just below the email and password fields that states, "Forgot Your Password? Click Here". I once again want to thank Linda McGrath for here original Login Box / My Account contribution. Without her contribution, we wouldn't have a Loginbox infox at all! Visit her website... www.webmakerscorner.com Hope you like it. Contact me with any questions. -R Quote Link to comment Share on other sites More sharing options...
antics22 Posted January 6, 2003 Share Posted January 6, 2003 Does this enhancement work with Linda's Quantity Controller v5.1? I tried to install it but I get the following message now on the right column... Fatal error: Call to undefined function: tep_loginbox_greeting_top() in /u/htdocs/antdot/catalog/includes/boxes/loginbox.php on line 44 Quote Link to comment Share on other sites More sharing options...
Guest Posted January 6, 2003 Share Posted January 6, 2003 Did you add the functions to /catalog/includes/functions/general.php per the readme.txt? Sounds like the functions are missing. Let me know. -R Quote Link to comment Share on other sites More sharing options...
antics22 Posted January 6, 2003 Share Posted January 6, 2003 Duh :shock: It must be late for me, I did add the coding in your instructions, but uploaded the wrong files to my site.... Double DUH! Thanks for the great contribution! Everything A-OK now! Quote Link to comment Share on other sites More sharing options...
Guest Posted January 6, 2003 Share Posted January 6, 2003 It happens to all of us. Enjoy. -R Quote Link to comment Share on other sites More sharing options...
innerfire Posted December 12, 2003 Share Posted December 12, 2003 I love the original login box. When I installed the enhancement after installation in the list of account controls instead of the proper text I got : LOGIN_BOX_PRODUCT_NOTIFICATIONS Any idea what I did to make this happen. When I swap the loginbox.php back to the original contribution, the list gets corrected, so I am lead to believe that it might be in the programming of loginbox.php but this is a language I am a beginner at. Also, I followed this string and tried adding in the code to allow new visitors to create an account in the login box. I got a syntax error for general.php Any ideas? I just cut and paste. I though that perhaps the error could have been from too many spaces, so I took out the spaces. The error remained. I am going to try again in a few hours when I get back from work. -mark Quote Link to comment Share on other sites More sharing options...
Guest Posted May 2, 2004 Share Posted May 2, 2004 Hi all, I have installed the new version of the Shoppe Enhancement Controller, But how do I: 6. Set the following permissions on directories and files: CHMOD Settings: /catalog/images 777 /catalog/pub 777 /catalog/includes/configure.php 664 Set in each language directory: /catalog/includes/languages/english/mainpage.php 666 /catalog/includes/languages/english/define_about_us.php 666 /catalog/includes/languages/english/define_shipping.php 666 /catalog/includes/languages/english/define_conditions.php 666 /catalog/includes/languages/english/define_privacy.php 666 /catalog/includes/languages/english/define_contact_us.php 666 /admin/backups 777 /admin/images/graphs 777 /admin/includes/configure.php 664 Any help you can offer would be great. Thanks Sam [email protected] 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.