ArxParx Posted December 27, 2009 Posted December 27, 2009 ?> <center> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr align="left" valign="top"> <td> </td> <td width="780" height="425" style="background-image: url(../images/BGHed.jpg) "><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr align="left" valign="top"> <td width="294" height="425"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="367" align="left" valign="top"><img src="../images/LOGO.jpg" width="0" height="0"></td> </tr> <tr> <td align="left" valign="top"><img src="../images/Marker200.jpg" width="2" height="3" style="margin-right:5px; margin-left:15px "><?php echo '<a href="#" class="SSCCC">' . SSCCC9 . '</a>'; ?></td> </tr> </table></td> <td width="486"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="65" align="left" valign="middle"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="60" align="left"><?php include(DIR_WS_BOXES . 'languages.php'); ?></td> <td width="194"><img src="../images/Marker100.jpg" width="3" height="5" style="margin-right:5px; margin-bottom:1px "><?php echo '<a href="#" class="header">' . SSCCC1 . '</a>'; ?><img src="../images/Marker100.jpg" width="3" height="5" hspace="10" style="margin-bottom:1px "><?php echo '<a href="#" class="header">' . SSCCC2 . '</a>'; ?><img src="../images/Marker100.jpg" width="3" height="5" hspace="10" style="margin-bottom:1px "><?php echo '<a href="#" class="header">' . SSCCC3 . '</a>'; ?></td> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="26"><?php echo '<a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'Rec.jpg') . '</a>' ?></td> <td width="85"><?php echo '<span class="header">' . BOX_HEADING_SHOPPING_CART . '</span>' ?></td> <td><?php include(DIR_WS_BOXES . 'shopping_cart.php') ?></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td height="188" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr align="left" valign="top"> <td width="95"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('homePage.jpg') . '</a>'; ?></td> <td width="94"><?php echo '<a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image_button('ShoppingCart.jpg') . '</a>'; ?></td> <td width="93"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT) . '">' . tep_image_button('MyAccount.jpg') . '</a>'; ?></td> <td width="92"><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_PROCESS) . '">' . tep_image_button('Checkout.jpg') . '</a>'; ?></td> <td><?php echo '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . tep_image_button('ContactUs.jpg') . '</a>'; ?></td> </tr> </table></td> </tr> <tr> <td height="102" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr align="right" valign="top"> <td> </td> <td width="265"><span class="header2"><?php echo SSCCC10; ?></span></td> <td width="27" rowspan="2"> </td> </tr> <tr align="right" valign="top"> <td> </td> <td><img src="../images/Marker200.jpg" width="2" height="3" style="margin-right:5px; margin-left:15px "><?php echo '<a href="#" class="SSCCC">' . SSCCC11 . '</a>'; ?></td> </tr> </table></td> </tr> <tr> <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> </tr> </table></td> </tr> </table></td> </tr> </table></td> <td> </td> </tr> </table> </center> Thats my header right now. Can somebody change or add something? Thanks and happy holidays!
germ Posted December 27, 2009 Posted December 27, 2009 The code that does the language icons is here: <?php include(DIR_WS_BOXES . 'languages.php'); ?> /includes/boxes/languages.php If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
ArxParx Posted December 27, 2009 Author Posted December 27, 2009 The code that does the language icons is here: <?php include(DIR_WS_BOXES . 'languages.php'); ?> /includes/boxes/languages.php not much there... do i need to add some lines? ?> <!-- languages //--> <?php //$info_box_contents = array(); //$info_box_contents[] = array('text' => BOX_HEADING_LANGUAGES); // new infoBoxHeading($info_box_contents, false, false); if (!isset($lng) || (isset($lng) && !is_object($lng))) { include(DIR_WS_CLASSES . 'language.php'); $lng = new language; } $languages_string = ''; reset($lng->catalog_languages); while (list($key, $value) = each($lng->catalog_languages)) { $languages_string .= ' <a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type) . '">' . tep_image(DIR_WS_LANGUAGES . $value['directory'] . '/images/' . $value['image'], $value['name']) . '</a> <br>'; } $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => $languages_string); new infoBox($info_box_contents); ?> <!-- languages_eof //-->
germ Posted December 27, 2009 Posted December 27, 2009 In /includes/header.php change: <td width="60" align="left"><?php include(DIR_WS_BOXES . 'languages.php'); ?></td> To: <td align="left"><?php include(DIR_WS_BOXES . 'languages.php'); ?></td> In /includes/boxes/languages.php change: $languages_string .= ' <a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type) . '">' . tep_image(DIR_WS_LANGUAGES . $value['directory'] . '/images/' . $value['image'], $value['name']) . '</a> <br>'; To: $languages_string .= '<td><a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type) . '">' . tep_image(DIR_WS_LANGUAGES . $value['directory'] . '/images/' . $value['image'], $value['name']) . '</a> </td>'; BACKUP BOTH FILES BEFORE EDITING THEM. The code uses the infobox routine and I'm not 100% positive what I posted will come out like I want it to.... >_< If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
ArxParx Posted December 27, 2009 Author Posted December 27, 2009 In /includes/header.php change: <td width="60" align="left"><?php include(DIR_WS_BOXES . 'languages.php'); ?></td> To: <td align="left"><?php include(DIR_WS_BOXES . 'languages.php'); ?></td> In /includes/boxes/languages.php change: To: BACKUP BOTH FILES BEFORE EDITING THEM. The code uses the infobox routine and I'm not 100% positive what I posted will come out like I want it to.... >_< it worked (Y) thanks! is it also possible to start language boxes from left or they move with other lines in header. I think it would have been easier to build all shop starting from zero to real oscommerce platform, not changing template. But still i am learning some things and thank you forum guys! are there any help, tutorial how is the best and easiest way to add links? Like to add something inside this help, support or FAQ buttons? Thanks!
germ Posted December 27, 2009 Posted December 27, 2009 it worked (Y) thanks! is it also possible to start language boxes from left or they move with other lines in header. I think it would have been easier to build all shop starting from zero to real oscommerce platform, not changing template. But still i am learning some things and thank you forum guys! are there any help, tutorial how is the best and easiest way to add links? Like to add something inside this help, support or FAQ buttons? Thanks! There is supposed to be an image on the left side: <img src="../images/LOGO.jpg" height="0" width="0"> But there is no image by that name in your images folder. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
ArxParx Posted December 27, 2009 Author Posted December 27, 2009 There is supposed to be an image on the left side: <img src="../images/LOGO.jpg" height="0" width="0"> But there is no image by that name in your images folder. i took that image off and moved it outside of the seeing angle. if i could make it so like: 1) language boxes on the left side ; 2) FAQ, HELP, SUPPORT on the centre 3) Shopping cart on the right; 4) and the buttons Homepage, contact us etc... on the left again,
germ Posted December 28, 2009 Posted December 28, 2009 You're talking about a total redesign of your header. Since that is a matter of personal preference it's something you should do on your own. Rearranging the language icons was short and sweet, but I'm really not in a position to redesign/recode your header. :blush: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
ArxParx Posted December 28, 2009 Author Posted December 28, 2009 You're talking about a total redesign of your header. Since that is a matter of personal preference it's something you should do on your own. Rearranging the language icons was short and sweet, but I'm really not in a position to redesign/recode your header. :blush: Yes, thanks i understand it and thanks for your past help :) But do i get those buttoms back on right side (Homepage, Checkout, Contact us... etc) without moving language boxes and shopping cart? + could i add somewhere the currency code? Thanks, Argo
ArxParx Posted December 29, 2009 Author Posted December 29, 2009 Yes, thanks i understand it and thanks for your past help :) But do i get those buttoms back on right side (Homepage, Checkout, Contact us... etc) without moving language boxes and shopping cart? + could i add somewhere the currency code? Thanks, Argo currency problem solved.
ArxParx Posted December 29, 2009 Author Posted December 29, 2009 currency problem solved. I was reading thisone today http://www.oscommerce.com/forums/index.php?showtopic=278049&st=0&p=1142045entry1142045 about changing my banner according to language, but i have template oscommerce so it is not for me? or could be integrated inside?
germ Posted December 29, 2009 Posted December 29, 2009 I was reading thisone today http://www.oscommerce.com/forums/index.php?showtopic=278049&st=0&p=1142045entry1142045 about changing my banner according to language, but i have template oscommerce so it is not for me? or could be integrated inside? This is a better way. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
ArxParx Posted December 29, 2009 Author Posted December 29, 2009 This is a better way. Yep, and seems logical as well :) Tell me germ is it better to build shop on plane OScommerce software or template? Thanks!
germ Posted December 29, 2009 Posted December 29, 2009 Yep, and seems logical as well :) Tell me germ is it better to build shop on plane OScommerce software or template? Thanks! That's a matter of opinion, and can depend on several things. Some templates are poorly coded and can be difficult if not impossible to work with. On the other hand, taking an "out of the box" osC install and making it look appealing probably isn't the easiest thing to do unless you've done it a time or two. And most of the addons you'll find here are written for a standard osC install so integrating them into a template can be tedious. If I had to choose, I'd probably choose to start with a template provided it's coded well to begin with. I'm not very artistic in nature so web site design doesn't come all that easy for me personally. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Recommended Posts
Archived
This topic is now archived and is closed to further replies.