cowgo Posted August 9, 2006 Share Posted August 9, 2006 I've downloaded and installed the Loginbox_best contribution and have a functional box up, but it looks nothing like the screen shot from the contrib files: Here's how it looks on my store: MY STORE What changes are necessary? I know I must be overlooking something very simple to do this, but I just can't find the answer. I've read the entire 114 page documentation, I've double checked to make sure I followed the installation notes exactly and I have searched diligently through the contribution support forum for a thread on this contribution, but I'm still just clueless. I'm a rank beginner but I can read and learn, so I just need pointed in the right direction to fix this, knowing full well that I'll feel overwhelmingly embarrassed when the obvious answer is pointed out! Thanks a bunch for any assist here and I really appreciate the help from the community I've received in the past, this forum is great. Maybe someday I'll have the experience to answer questions from those like me who are suffering from newbie dumbassitis Link to comment Share on other sites More sharing options...
MEDIAZONE Posted August 9, 2006 Share Posted August 9, 2006 I've downloaded and installed the Loginbox_best contribution and have a functional box up, but it looks nothing like the screen shot from the contrib files: Here's how it looks on my store: MY STORE What changes are necessary? I know I must be overlooking something very simple to do this, but I just can't find the answer. I've read the entire 114 page documentation, I've double checked to make sure I followed the installation notes exactly and I have searched diligently through the contribution support forum for a thread on this contribution, but I'm still just clueless. I'm a rank beginner but I can read and learn, so I just need pointed in the right direction to fix this, knowing full well that I'll feel overwhelmingly embarrassed when the obvious answer is pointed out! Thanks a bunch for any assist here and I really appreciate the help from the community I've received in the past, this forum is great. Maybe someday I'll have the experience to answer questions from those like me who are suffering from newbie dumbassitis somthing not added to filenames.php Many Thanks Simon Your Media Zone Remember to ALWAYS BACKUP Life is like box of chocs - You never know what your gonna get! Do you feel lucky punk? Well do ya! P-A-R-T WHY COS I GOTTA! Link to comment Share on other sites More sharing options...
matrix2223 Posted August 9, 2006 Share Posted August 9, 2006 You have to define the text in english.php look in the readme.txt file for the code to place in the english.php Also as far as the colors and fonts, thats the stylesheet.css the button is a custom button image. Hope this helps Link to comment Share on other sites More sharing options...
matrix2223 Posted August 9, 2006 Share Posted August 9, 2006 You also may want to check this contrib out it will help remove the conerner images with clear ones http://www.oscommerce.com/community/contri...h,corner+images Link to comment Share on other sites More sharing options...
cowgo Posted August 9, 2006 Author Share Posted August 9, 2006 You also may want to check this contrib out it will help remove the conerner images with clear ones http://www.oscommerce.com/community/contri...h,corner+images I hope I haven't killed the store. I misread the installation instructions wrong. There was code to add underneath a greetings_string in the catalog/includes/functions/general.php files. I wasn't exactly sure where to place the new code, and I messed it up and got an error message. I wiped it out and copied back in the back-up code I had just saved, but got a fatal error where the store wouldn't even show up. After recopying and pasting the saved general.php file several times I cut in a clean general.php file from an uninstalled oscommerce download and now it's reading like this: MY STORE I've also did a restore from files late last night. As you can see I lost my shopping cart box in the right column, there's a snippet of code above the header and my footer is MIA. The code that the error message references is this: <?php/* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License Autologin added by DJ Downey http://www.liquidgfx.com */ // 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> <?php $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => BOX_LOGINBOX_HEADING ); new infoBoxHeading($info_box_contents, $newtheme, false, false); $loginboxcontent = " <form name=\"login\" method=\"post\" action=\"" . tep_href_link(FILENAME_LOGIN, 'action=process') . "\"> <table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"> <tr> <td align=\"center\" class=\"infoBoxContents\"> " . tep_box_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 . " <A HREF=\"" . tep_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'NONSSL') . "\">" . BOX_LOGINBOX_FORGOT_PASSWORD . "</A> </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) . " </td> </tr> <tr> <td align=\"center\" class=\"infoBoxContents\"> " . BOX_LOGINBOX_NEW . " </td> </tr> </table> </form> "; $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=\"100%\" cellspacing=\"0\" cellpadding=\"0\"> <tr> <td align=\"center\" class=\"loginBoxGreeting\"> " . tep_box_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, '', 'NONSSL') . '">' . LOGIN_BOX_MY_ACCOUNT . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ACCOUNT_EDIT, '', 'NONSSL') . '">' . LOGIN_BOX_ACCOUNT_EDIT . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'NONSSL') . '">' . LOGIN_BOX_ACCOUNT_HISTORY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ADDRESS_BOOK, '', 'NONSSL') . '">' . 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') . '"><b>' . LOGIN_BOX_LOGOFF . '</b></a>' ); new infoBox($info_box_contents); ?> </td> </tr> <!-- my_account_info_eof //--> <?php } } ?> I'm just hoping and praying you or anyone can help me out of this mess and I will be forever grateful and also perfectly happy to have the plain vanilla milquetoast welcome guest login in the middle. Phew. This is frustrating. :'( Link to comment Share on other sites More sharing options...
cowgo Posted August 9, 2006 Author Share Posted August 9, 2006 Phew, I carefully retraced every step and got back to square one before I ever downloaded the LoginBox_Best contribution. I'm sure it works for those who know what they're doing, but until I reach that level... I love the "Welcome Guest! Would you like to log yourself in? Or would you prefer to create an account?" line......I love the "Welcome Guest! Would you like to log yourself in? Or would you prefer to create an account?" line....I love the "Welcome Guest! Would you like to log yourself in? Or would you prefer to create an account?" line........ If I say it enough it'll be true. Is there an easier contrib for this? I'm off to try your clear corner images contrib, hopefully that'll work! Thanks for the help, I'm sure you were right, I was just messing it up too much to continue trying. Common sense and paranoia are good qualities when working blindly with php. Link to comment Share on other sites More sharing options...
matrix2223 Posted August 9, 2006 Share Posted August 9, 2006 if you still have the files in order for the login box you can add the code for the general.php and refresh your browser and everything should be fine. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.