katman1971 Posted July 11, 2010 Posted July 11, 2010 Hi I removed the greeting by changing this piece of code (on line 301 in catalog/index.php): <td class="main"><?php echo tep_customer_greeting(); ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td class="main"><?php echo TEXT_MAIN; ?></td> I changed it to this (I commented out the echoes): <td class="main"><?php //echo tep_customer_greeting(); ?></td> </tr> <tr> <td><?php //echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td class="main"><?php echo TEXT_MAIN; ?></td> Is this the correct way of doing it? Because, I dont know if it is related but when I click on "create account" in a login box I added (contrib: Login Box V5.7) It should bring me to create_account.php but it brings me to catalog/login.php?action=process with an error message at the top saying: Error Error: No match for E-Mail Address and/or Password. Any ideas? Thanks
NodsDorf Posted July 11, 2010 Posted July 11, 2010 Never used the login box mod, but I can't see how that change would effect it. Easiest way to tell is just un-comment the code and try the login box. Also if you have a spacing issue you can use the <!-- html code commented out here --> to remove the table rows.
katman1971 Posted July 11, 2010 Author Posted July 11, 2010 Never used the login box mod, but I can't see how that change would effect it. Easiest way to tell is just un-comment the code and try the login box. Also if you have a spacing issue you can use the <!-- html code commented out here --> to remove the table rows. Thanks for the suggestion. I un-commented the code and still the same problem with the login box. I think I'll un-install the login box and re-install it and see if it solves it.
NodsDorf Posted July 11, 2010 Posted July 11, 2010 Cool so you know where the problem lies. Based off the error it looks like it is trying to process a blank login. Not sure again how that box works but typical osc fashion there is a separate button or link for the registration page. The login is for only existing customers, so it would never be left blank.
Guest Posted July 11, 2010 Posted July 11, 2010 Instead of commenting out the echos, simply take out the text from your language file.. catalog/includes/languages/english.php find: define('TEXT_GREETING_GUEST', 'Welcome <span class="greetUser">Guest!</span> Would you like to <a href="%s"><u>log yourself in</u></a>? Or would you prefer to <a href="%s"><u>create an account</u></a>?'); Change to: define('TEXT_GREETING_GUEST', ''); or you can say something else in its place. define('TEXT_GREETING_GUEST', 'something else here');
WebDev22 Posted July 12, 2010 Posted July 12, 2010 Instead of commenting out the echos, simply take out the text from your language file.. catalog/includes/languages/english.php find: define('TEXT_GREETING_GUEST', 'Welcome <span class="greetUser">Guest!</span> Would you like to <a href="%s"><u>log yourself in</u></a>? Or would you prefer to <a href="%s"><u>create an account</u></a>?'); Change to: define('TEXT_GREETING_GUEST', ''); or you can say something else in its place. define('TEXT_GREETING_GUEST', 'something else here'); I was searching for how to remove the "Welcome, Guest" message and was able to get it removed. However, there are two 10 pixel tall spacer gifs (pixel_trans.gif) pushing down the content in the middle column. Any idea on how to get rid of that?
WebDev22 Posted July 12, 2010 Posted July 12, 2010 I was searching for how to remove the "Welcome, Guest" message and was able to get it removed. However, there are two 10 pixel tall spacer gifs (pixel_trans.gif) pushing down the content in the middle column. Any idea on how to get rid of that? I found a way to accomplish this by applying this to the div tag: margin-top:-26px.
NodsDorf Posted July 13, 2010 Posted July 13, 2010 Easiest way to remove the spacers is to use the comment out HTML code <!-- Start HTML Removal <tr> <td> This html is grayed out because it won't be displayed</td> </tr> <tr> <td><?php // echo tep_draw_separator('pixel_trans.gif', '100%', '10'); you wont see this either ?></td> </tr> End html removal--> This way you can correctly identify the image that is causing the issue. Once identified you can just delete the code and know it won't cause any issues.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.