pretzi Posted July 28, 2009 Share Posted July 28, 2009 Hi everyone, I have installed temlate that has menu bar only in english. I would like to do some work in header.php to make it change (the images of each button) in spanish, when you click the spanish flag. Can I do that and how? Any help will be much appreciated!thanks! Quote Link to comment Share on other sites More sharing options...
multimixer Posted July 28, 2009 Share Posted July 28, 2009 Hi everyone, I have installed temlate that has menu bar only in english. I would like to do some work in header.php to make it change (the images of each button) in spanish, when you click the spanish flag. Can I do that and how? Any help will be much appreciated!thanks! Are the menu buttons images? Where do the images come from? Where are they stored? Quote My community profile | Template system for osCommerce - New: Responsive | Feedback channel Link to comment Share on other sites More sharing options...
pretzi Posted July 28, 2009 Author Share Posted July 28, 2009 This is my header.php: <?php /* $Id: header.php,v 1.42 2003/06/10 18:20:38 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ ?> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="right" height="25" valign="bottom"> <?php include(DIR_WS_BOXES . 'languages.php'); ?> <table border="0" cellspacing="0" cellpadding="0" align="right"> <tr> <td class="headertext" style="color:#1E2526;"><?php echo BOX_HEADING_LANGUAGES; ?> </td> <td width="25"><?php echo $info_box_contents[0]['text'] ?></td> </tr> <tr> <td class="headertext" style="color:#1E2526;"><?php echo BOX_HEADING_LANGUAGES; ?> </td> <td width="25"><?php echo $info_box_contents[1]['text'] ?></td> </tr> </table> </td> </tr> <tr> <td valign="top" style="padding:0px 0 0 20px" height="65"><a href="<?php echo tep_href_link(FILENAME_DEFAULT); ?>" ><?php echo tep_image(DIR_WS_IMAGES . 'logo.gif'); ?></a></td> </tr> <tr> <td><?php echo tep_image(DIR_WS_IMAGES . 'header.gif'); ?></td> </tr> <tr> <td style="padding-bottom:4px"> <table cellspacing="0" cellpadding="0" border="0"> <tr> <td width="139"><a title="<?php echo STORE_NAME;?>" href="<?php echo tep_href_link(FILENAME_DEFAULT); ?>" ><?php echo tep_image_button("../../../../../images/button1.gif", "home"," onMouseOver=\"button_act(this)\" onMouseOut=\"button_pas(this)\""); ?></a></td> <td width="136"><a title="<?php echo BOX_HEADING_WHATS_NEW;?>" href="<?php echo tep_href_link(FILENAME_PRODUCTS_NEW); ?>" ><?php echo tep_image_button("../../../../../images/button2.gif", BOX_HEADING_WHATS_NEW," onMouseOver=\"button_act(this)\" onMouseOut=\"button_pas(this)\""); ?></a></td> <td width="137"><a title="<?php echo BOX_HEADING_SEARCH;?>" href="<?php echo tep_href_link(FILENAME_ADVANCED_SEARCH); ?>" ><?php echo tep_image_button("../../../../../images/button3.gif", BOX_HEADING_SEARCH," onMouseOver=\"button_act(this)\" onMouseOut=\"button_pas(this)\""); ?></a></td> <td width="133"><a title="<?php echo BOX_HEADING_SPECIALS;?>" href="<?php echo tep_href_link(FILENAME_SPECIALS); ?>" ><?php echo tep_image_button("../../../../../images/button4.gif", BOX_HEADING_SPECIALS," onMouseOver=\"button_act(this)\" onMouseOut=\"button_pas(this)\""); ?></a></td> <td width="136"><a title="<?php echo HEADER_TITLE_MY_ACCOUNT;?>" href="<?php echo tep_href_link(FILENAME_ACCOUNT); ?>" ><?php echo tep_image_button("../../../../../images/button5.gif", HEADER_TITLE_MY_ACCOUNT," onMouseOver=\"button_act(this)\" onMouseOut=\"button_pas(this)\""); ?></a></td> <td width="135"><a title="<?php echo BOX_INFORMATION_CONTACT;?>" href="<?php echo tep_href_link(FILENAME_CONTACT_US); ?>" ><?php echo tep_image_button("../../../../../images/button6.gif", BOX_INFORMATION_CONTACT," onMouseOver=\"button_act(this)\" onMouseOut=\"button_pas(this)\""); ?></a></td> </tr> </table> </td> </tr> <tr> <td> <table cellspacing="0" cellpadding="0" border="0"> <tr> <td class="shoppad" align="center"> <table border="0" cellspacing="0" cellpadding="0" align="center" width="180"> <tr valign="middle"> <td class="headertext"><a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?> "><div style="float:left;padding-right:10px;"><?php echo tep_image(DIR_WS_IMAGES . 'cart.gif'); ?></div><?php echo BOX_HEADING_SHOPPING_CART; ?><br><b style="font-weight:normal">now in your cart <span id="shop_items"><b><?php echo $cart->count_contents(); ?></span> items</b><?php if($cart->count_contents()>1) echo "s"; ?></b></a></td> </tr> </table> </td> <td width="3"></td> <td class="number_up"> <table cellspacing="0" cellpadding="0" border="0"> <tr> <td style="padding-left:25px"> <table border="0" cellspacing="0" cellpadding="0"><tr><td valign="middle"> <?php if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_manufacturers_box(); } else { include(DIR_WS_BOXES . 'search.php'); echo $info_box_contents[0]['form'].'<table style="margin:0 0 0 0px"><tr><td valign="middle" class="headertext"><b>'. BOX_HEADING_SEARCH.': </b>'; echo $info_box_contents[0]['text']."</td><td valign='middle' style='padding-left:5px'>".$info_box_contents[0]['img'].'</td></tr></table></form>'; } ?> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> Quote Link to comment Share on other sites More sharing options...
pretzi Posted July 28, 2009 Author Share Posted July 28, 2009 Are the menu buttons images? Where do the images come from? Where are they stored? this is my header.php: <?php /* $Id: header.php,v 1.42 2003/06/10 18:20:38 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ ?> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="right" height="25" valign="bottom"> <?php include(DIR_WS_BOXES . 'languages.php'); ?> <table border="0" cellspacing="0" cellpadding="0" align="right"> <tr> <td class="headertext" style="color:#1E2526;"><?php echo BOX_HEADING_LANGUAGES; ?> </td> <td width="25"><?php echo $info_box_contents[0]['text'] ?></td> </tr> <tr> <td class="headertext" style="color:#1E2526;"><?php echo BOX_HEADING_LANGUAGES; ?> </td> <td width="25"><?php echo $info_box_contents[1]['text'] ?></td> </tr> </table> </td> </tr> <tr> <td valign="top" style="padding:0px 0 0 20px" height="65"><a href="<?php echo tep_href_link(FILENAME_DEFAULT); ?>" ><?php echo tep_image(DIR_WS_IMAGES . 'logo.gif'); ?></a></td> </tr> <tr> <td><?php echo tep_image(DIR_WS_IMAGES . 'header.gif'); ?></td> </tr> <tr> <td style="padding-bottom:4px"> <table cellspacing="0" cellpadding="0" border="0"> <tr> <td width="139"><a title="<?php echo STORE_NAME;?>" href="<?php echo tep_href_link(FILENAME_DEFAULT); ?>" ><?php echo tep_image_button("../../../../../images/button1.gif", "home"," onMouseOver=\"button_act(this)\" onMouseOut=\"button_pas(this)\""); ?></a></td> <td width="136"><a title="<?php echo BOX_HEADING_WHATS_NEW;?>" href="<?php echo tep_href_link(FILENAME_PRODUCTS_NEW); ?>" ><?php echo tep_image_button("../../../../../images/button2.gif", BOX_HEADING_WHATS_NEW," onMouseOver=\"button_act(this)\" onMouseOut=\"button_pas(this)\""); ?></a></td> <td width="137"><a title="<?php echo BOX_HEADING_SEARCH;?>" href="<?php echo tep_href_link(FILENAME_ADVANCED_SEARCH); ?>" ><?php echo tep_image_button("../../../../../images/button3.gif", BOX_HEADING_SEARCH," onMouseOver=\"button_act(this)\" onMouseOut=\"button_pas(this)\""); ?></a></td> <td width="133"><a title="<?php echo BOX_HEADING_SPECIALS;?>" href="<?php echo tep_href_link(FILENAME_SPECIALS); ?>" ><?php echo tep_image_button("../../../../../images/button4.gif", BOX_HEADING_SPECIALS," onMouseOver=\"button_act(this)\" onMouseOut=\"button_pas(this)\""); ?></a></td> <td width="136"><a title="<?php echo HEADER_TITLE_MY_ACCOUNT;?>" href="<?php echo tep_href_link(FILENAME_ACCOUNT); ?>" ><?php echo tep_image_button("../../../../../images/button5.gif", HEADER_TITLE_MY_ACCOUNT," onMouseOver=\"button_act(this)\" onMouseOut=\"button_pas(this)\""); ?></a></td> <td width="135"><a title="<?php echo BOX_INFORMATION_CONTACT;?>" href="<?php echo tep_href_link(FILENAME_CONTACT_US); ?>" ><?php echo tep_image_button("../../../../../images/button6.gif", BOX_INFORMATION_CONTACT," onMouseOver=\"button_act(this)\" onMouseOut=\"button_pas(this)\""); ?></a></td> </tr> </table> </td> </tr> <tr> <td> <table cellspacing="0" cellpadding="0" border="0"> <tr> <td class="shoppad" align="center"> <table border="0" cellspacing="0" cellpadding="0" align="center" width="180"> <tr valign="middle"> <td class="headertext"><a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?> "><div style="float:left;padding-right:10px;"><?php echo tep_image(DIR_WS_IMAGES . 'cart.gif'); ?></div><?php echo BOX_HEADING_SHOPPING_CART; ?><br><b style="font-weight:normal">now in your cart <span id="shop_items"><b><?php echo $cart->count_contents(); ?></span> items</b><?php if($cart->count_contents()>1) echo "s"; ?></b></a></td> </tr> </table> </td> <td width="3"></td> <td class="number_up"> <table cellspacing="0" cellpadding="0" border="0"> <tr> <td style="padding-left:25px"> <table border="0" cellspacing="0" cellpadding="0"><tr><td valign="middle"> <?php if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_manufacturers_box(); } else { include(DIR_WS_BOXES . 'search.php'); echo $info_box_contents[0]['form'].'<table style="margin:0 0 0 0px"><tr><td valign="middle" class="headertext"><b>'. BOX_HEADING_SEARCH.': </b>'; echo $info_box_contents[0]['text']."</td><td valign='middle' style='padding-left:5px'>".$info_box_contents[0]['img'].'</td></tr></table></form>'; } ?> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> Quote Link to comment Share on other sites More sharing options...
pretzi Posted July 28, 2009 Author Share Posted July 28, 2009 yes, the buttos are gif images enbeded in tables in header.php just sent the whol code of the page. Quote Link to comment Share on other sites More sharing options...
pretzi Posted July 28, 2009 Author Share Posted July 28, 2009 can you help? Quote Link to comment Share on other sites More sharing options...
pretzi Posted July 28, 2009 Author Share Posted July 28, 2009 can anyone help me Quote Link to comment Share on other sites More sharing options...
pretzi Posted July 28, 2009 Author Share Posted July 28, 2009 anyone??? Quote Link to comment Share on other sites More sharing options...
multimixer Posted July 28, 2009 Share Posted July 28, 2009 You have at least 3 post with exactly the same question. 1) This one here 2) This one:http://www.oscommerce.com/forums/index.php?sho...=341704&hl= 3) This one: http://www.oscommerce.com/forums/index.php?sho...=341707&hl= You are permanently bumping them every half hour. I aked you a question and you place your complete file again and again. Why? What for? Probably you want that somebody do it for you, right? You scream for help, but you didn't answered the question, I don't know even if you red it. Here is what you need to do: 1) Read the Forum Rules 2) Ask your template provider 3) Answer my question please Quote My community profile | Template system for osCommerce - New: Responsive | Feedback channel Link to comment Share on other sites More sharing options...
pretzi Posted July 28, 2009 Author Share Posted July 28, 2009 First: thanks (for nothing) and sorry for the inconvenience. Second: ofcourse I want somebody to do it for me- it´s called help- is´nt this forum dedicated to this? AND if i could ask my tem.provider, I would done it already. AND I answer your question (right away) and post the code just to make it easyer. What kind of logic is this? How old are you? I need PHP help, not tyour forum police moral jugements- if you don,t like what i send, just go away. Quote Link to comment Share on other sites More sharing options...
multimixer Posted July 28, 2009 Share Posted July 28, 2009 (edited) First: thanks (for nothing) and sorry for the inconvenience 1) You will never know if this "nothing" would be "nothing". Even if somebody takes the time to read your question deserves a "thank you" Second: ofcourse I want somebody to do it for me- it´s called help- is´nt this forum dedicated to this? 2)To ask for help is something else than to ask for somebody. Isn't that clear? if you don,t like what i send, just go away. 3) I'm gone already. I just remind you one more time to read the Forum rules, and put attention to Cross-Posting, or posting the same content in multiple forum channels, is not allowed. and Bumping postings to the top of the forum channel listing, made to get more attention to the post, is not allowed. If you don't care about this, then you will find this post here interesting Wish you luck in your multi cross bump activity Have a nice day Edited July 28, 2009 by multimixer Quote My community profile | Template system for osCommerce - New: Responsive | Feedback channel Link to comment Share on other sites More sharing options...
multimixer Posted July 28, 2009 Share Posted July 28, 2009 (edited) . Edited July 28, 2009 by multimixer Quote My community profile | Template system for osCommerce - New: Responsive | Feedback channel Link to comment Share on other sites More sharing options...
multimixer Posted July 28, 2009 Share Posted July 28, 2009 (edited) PS. You have hardcoded links to yourimages folder. I would try to place images into the language folders and call them from the header, something into this direction Edited July 28, 2009 by multimixer Quote My community profile | Template system for osCommerce - New: Responsive | Feedback channel 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.