Guest Posted August 6, 2009 Share Posted August 6, 2009 I really would like to run the contact us choice add on but i have a oscommerce template and the screen were the contact us comes up is smaller than the traditional one and when i run the add on it pushes my left side column onto itself and squeezes it all up on its self and becomes illedgeable i opened the contact us.php and changed the size of the tables but that didnt help i did notice that on the tables they are all set to 100 % so were do i tell it that it will only be 400 wide instead of the traditional 600 wide ? Quote Link to comment Share on other sites More sharing options...
Guest Posted August 6, 2009 Share Posted August 6, 2009 Do you have a link to your site so we can see it? Quote Link to comment Share on other sites More sharing options...
Guest Posted August 7, 2009 Share Posted August 7, 2009 Do you have a link to your site so we can see it? i took it off and went to the original one my website is www.pcncautomation.net you can see the layout i am trying to get it to fit but if you want to see how the addon looks then i would like to set that up at a particular time so its not up for a long period of time till its working right let me know and i will get it set up Quote Link to comment Share on other sites More sharing options...
spooks Posted August 7, 2009 Share Posted August 7, 2009 your site has errors that may cause issues with the contrib http://validator.w3.org/check?uri=http%3A/.../contact_us.php also osC contribs are written for the core version and are often not compatible with templates which often use somewhat modified code. why have such a small width!! 97% ish of user now have a screen resolution of 1024 wide or more, so you are catering for the very few, your site looks lost on my screen!! B) Quote Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
Guest Posted August 7, 2009 Share Posted August 7, 2009 your site has errors that may cause issues with the contrib http://validator.w3.org/check?uri=http%3A/.../contact_us.php also osC contribs are written for the core version and are often not compatible with templates which often use somewhat modified code. why have such a small width!! 97% ish of user now have a screen resolution of 1024 wide or more, so you are catering for the very few, your site looks lost on my screen!! B) how can i make it wider ? Quote Link to comment Share on other sites More sharing options...
Guest Posted August 7, 2009 Share Posted August 7, 2009 That could be a big task with your template. You're going to have to dig through your stylesheet and whats what. Make sure you have everything backed up and start playing around with it. Or you could get a hold of your template provider and see if they can do anything about it. Quote Link to comment Share on other sites More sharing options...
Guest Posted August 7, 2009 Share Posted August 7, 2009 well wouldnt it be easyer to just make the modification then to the add on that i want to use to fit my website size ? and if so what do i look for? like i said i did open the page that had the tables in them and they were all set mostly to 100% so somewere it is being told what the 100% size is what i think is happening but not sure the size of the text box that peaple type the message is too big forcing it to expand bigger than my website but i cant seem to find were the information for that text box is located. I know this is not the normal way peaple here use the out of the box oscommerce and the peaple i got the template from they basicly say they dont support nothing but there product and unless i pay them an exorbaint amount of money they dont make changes when all i really want to do is put my contact info ( company address and phone number on that page the link to a map would be really nice ) i am so new to this php stuff it keeps me baffled any assistance would greatly be appreiciated Quote Link to comment Share on other sites More sharing options...
spooks Posted August 7, 2009 Share Posted August 7, 2009 Your asking people here to work blind, or do extra themeselves. If u really what a fix, put up the modified page, so we can see the problem, and post the code here that your using. Quote Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
Guest Posted August 7, 2009 Share Posted August 7, 2009 sorry I am happy to give any information that would be helpful --- I have installed the add on i am wanting to run if you go to my site ( www.pcncautomation.net ) and click the contact us under information you will see what is happening with the add on in place. the add on i am using is Contact Us Choice v1.0 2004-04-25 for osCommerce 2.2 MS2 Author: Fritz Clapp (consolidating multiple address feature by Jackie Edwards) and all i have done to install this is uploaded 2 files to my site for the basic install here is the instructions i used 1. BASIC INSTALLATION For the minimum enhancement, only two files need be uploaded to replace those of the standard install: catalog/contact_us.php catalog/includes/languages/<language>/contact_us.php The code detects whether or not the optional features are enabled and behaves accordingly. anything else i can provide just let me know thanks again Quote Link to comment Share on other sites More sharing options...
spooks Posted August 7, 2009 Share Posted August 7, 2009 i did say post the code too... your text area has: <td><textarea name="enquiry" wrap="soft" cols="50" rows="15"></textarea></td> reduce the number of cols to fit your width Quote Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
Guest Posted August 7, 2009 Share Posted August 7, 2009 sorry I really dont know were i can find the code you are talking about unless you are talking about the pages that i uploaded to add this addon but i did look for the line of code you displayed and when i look at veiw source on the contact us page i see that code there but i did a search in the contact us.php ( both of them ) and the stylesheet and in /includes/classes/boxes.php and in functions i cant find that text anywere? Quote Link to comment Share on other sites More sharing options...
Guest Posted August 7, 2009 Share Posted August 7, 2009 ok i found the code you are refering too and i changed that number all the way to 10 and it had no effect echo tep_draw_input_field('email'); } ?></td> </tr> <tr> <td class="main"><?php echo ENTRY_ENQUIRY; ?></td> </tr> <tr> <td><?php echo tep_draw_textarea_field('enquiry', 'soft', 10, 15); ?></td> </tr> </table></td></tr></table></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> Quote Link to comment Share on other sites More sharing options...
Guest Posted August 7, 2009 Share Posted August 7, 2009 What is it you want. Do you want your store name address and phone above the form input? Post the entire code from that file. Quote Link to comment Share on other sites More sharing options...
Guest Posted August 7, 2009 Share Posted August 7, 2009 first of all let me appologize for my ignorance here i dont know how to post the code ok for one thing this php really confuses me to death the code for a page is not on one page do want me to zip up the php pages for my site amd put that some were ? now i can go to the page and do a veiw source and see a bunch of html code that does look very familair to me but how php or oscommerce has gennerated that i dont have a clue kk the two php pages i uploaded were from an addon if i take those off it will go back just like the template had it i know my stupidity is keeping you guys from helping me but i dont know how to get you what you are wanting please explain to me how to get the information you need? Quote Link to comment Share on other sites More sharing options...
Guest Posted August 7, 2009 Share Posted August 7, 2009 better yet if you can call my phone and tell me maybe that would be faster 817-483-9398 Quote Link to comment Share on other sites More sharing options...
Guest Posted August 7, 2009 Share Posted August 7, 2009 this is the contact_us.php in catalog -------------------------- <?php /* $Id: contact_us.php,v 1.42 2003/06/12 12:17:07 hpdl Exp $ Revised as Contact Us Choice v1.0 by Fritz Clapp +++ with these enhancements: ++++++++++++++++++++++++++++++++ - store address & phone from configuration is displayed - an optional link may be used to show a map to the store - additional text may be added under the store address & phone - choice of multiple email destinations (if configured) - name and email address of logged on customer is filled in - subject of sent email distinguishes customer from guest - preamble added to message with sender IP address - requires entry of name (>3 chars) if guest - checks that message body has some text - uses new button_send.gif if it exists, instead of continue +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ for more info, refer to the contribution announcement and support threads at www.oscommerce.com/forums +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2004 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CONTACT_US); $error = false; if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send')) { $name = tep_db_prepare_input($HTTP_POST_VARS['name']); $email_address = tep_db_prepare_input($HTTP_POST_VARS['email']); $enquiry = tep_db_prepare_input($HTTP_POST_VARS['enquiry']); $sender_type = tep_db_prepare_input($HTTP_POST_VARS['sendertype']); if (strlen($name)<3) { $error = true; $messageStack->add('contact', ENTRY_NAME_CHECK_ERROR); } if (!tep_validate_email($email_address)) { $error = true; $messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR); } if ($enquiry == '') { $error = true; $messageStack->add('contact', ENTRY_ENQUIRY_CHECK_ERROR); } if ($error == false) { // add IP address and preamble text to message body $enquiry = sprintf(EMAIL_PREAMBLE_TEXT, $sender_type) . " " . tep_get_ip_address() . "\n-----------------------\n" . $enquiry; // use list of contact addresses if configured if (defined('CONTACT_US_LIST') && (CONTACT_US_LIST !='')){ $send_to_array=explode("," ,CONTACT_US_LIST); preg_match('/\<[^>]+\>/', $send_to_array[$send_to], $send_email_array); $send_to_email= eregi_replace (">", "", $send_email_array[0]); $send_to_email= eregi_replace ("<", "", $send_to_email); // append sender type to subject line tep_mail(preg_replace('/\<[^*]*/', '', $send_to_array[$send_to]), $send_to_email, $sender_type . " " . EMAIL_SUBJECT, $enquiry, $name, $email_address); }else{ tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, $sender_type . " " . EMAIL_SUBJECT, $enquiry, $name, $email_address); } tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=success')); } } $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CONTACT_US)); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="3" cellpadding="3"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td width="100%" valign="top"><?php echo tep_draw_form('contact_us', tep_href_link(FILENAME_CONTACT_US, 'action=send')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_contact_us.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php if ($messageStack->size('contact') > 0) { ?> <tr> <td><?php echo $messageStack->output('contact'); ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php } if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'success')) { ?> <tr> <td class="main" align="center"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_man_on_board.gif', HEADING_TITLE,'0','0', 'align="left"') . TEXT_SUCCESS; ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td> </tr> <?php } else { ?> <tr> <td><table border="0" cellspacing="1" cellpadding="4" class="infoBox" width="100%"><tr class="infoBoxContents"> <td class="main" valign="top" align="left" width="160"><center> <?php echo nl2br(STORE_NAME_ADDRESS); if (!CONTACT_MAP_LINK == '') { echo '<br><br><a href="' . tep_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode(eregi_replace('http://','',CONTACT_MAP_LINK)), 'NONSSL', false, false) . "\" target=_blank>" . tep_image_button('button_map.gif', IMAGE_BUTTON_MAP) . '</a>'; } ?> </center> <?php if (!CONTACT_US_ADDL_TEXT =='') { echo '<p align="' . ((CONTACT_US_ADDL_TEXT_ALIGN=='')?'center':CONTACT_US_ADDL_TEXT_ALIGN) . '">' . CONTACT_US_ADDL_TEXT . '</p>'; } ?> </td> <td align="right"> <table border="0" width="100%" cellspacing="1" cellpadding="2"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <?php if ((defined('CONTACT_US_LIST')) && (CONTACT_US_LIST !='')){ echo '<tr><td class="main">'. SEND_TO_TEXT . '</td></tr>' .'<tr><td class="main">'; if(SEND_TO_TYPE=='radio'){ foreach(explode("," ,CONTACT_US_LIST) as $k => $v) { if($k==0){ $checked=true; }else{ $checked=false; } echo tep_draw_radio_field('send_to', "$k", $checked) . " " . preg_replace('/\<[^*]*/', '', $v) ."<br>\n"; } }else{ foreach(explode("," ,CONTACT_US_LIST) as $k => $v) { $send_to_array[] = array('id' => $k, 'text' => preg_replace('/\<[^*]*/', '', $v)); } echo tep_draw_pull_down_menu('send_to', $send_to_array); } echo "\n</td></tr>\n"; } ?> <tr> <td class="main"><?php echo ENTRY_NAME; ?></td> </tr> <tr> <td class="main"><?php // prefill first+last name and email address if customer is logged in if (tep_session_is_registered('customer_id')) { $customer_query_raw = "select customers_firstname, customers_lastname, customers_email_address from " . TABLE_CUSTOMERS . " where customers_id='" . $customer_id . "'"; $customer_query = tep_db_query($customer_query_raw); $customer_array = tep_db_fetch_array($customer_query); echo tep_draw_input_field('name', $customer_array['customers_firstname'] . " " . $customer_array['customers_lastname'],'readonly'); echo "</td></tr><tr><td class=\"main\">" . ENTRY_EMAIL . "</td></tr><tr><td class=\"main\">"; echo tep_draw_input_field('email', $customer_array['customers_email_address'],'readonly'); } else { echo tep_draw_input_field('name'); echo "</td></tr><tr><td class=\"main\">" . ENTRY_EMAIL . "</td></tr><tr><td class=\"main\">"; echo tep_draw_input_field('email'); } ?></td> </tr> <tr> <td class="main"><?php echo ENTRY_ENQUIRY; ?></td> </tr> <tr> <td><?php echo tep_draw_textarea_field('enquiry', 'soft', 10, 15); ?></td> </tr> </table></td></tr></table></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td align="right"><?php // identify sender as customer or guest echo tep_draw_hidden_field('sendertype', tep_session_is_registered('customer_id') ? TEXT_CUSTOMER : TEXT_GUEST); echo tep_image_submit(file_exists(DIR_WS_LANGUAGES . $language . '/images/buttons/button_send.gif')?'button_send.gif':'button_continue.gif', IMAGE_BUTTON_SEND); ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td> </tr> <?php } ?> </table></form></td> <!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> -------------------------------- this is the code in contact_us.php in includes/languge/english/ ------------------- <?php /* $Id: contact_us.php,v 1.7 2002/11/19 01:48:08 dgw_ Exp $ +++ mods for Contact Us Choice v1.0 osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ define('HEADING_TITLE', 'Contact Us'); define('NAVBAR_TITLE', 'Contact Us'); define('TEXT_SUCCESS', 'Your message has been successfully sent.'); define('TEXT_CUSTOMER', 'Customer'); define('TEXT_GUEST', 'Guest'); define('EMAIL_SUBJECT', 'Web Message for ' . STORE_NAME); define('EMAIL_PREAMBLE_TEXT', 'Sent from Contact Us page by the %s at IP '); define('ENTRY_NAME', 'Your Name:'); define('ENTRY_NAME_CHECK_ERROR', ' <small><font color="#FFFFFF">Name must be at least 3 characters.</font></small>'); define('ENTRY_EMAIL', 'Your E-Mail Address:'); define('ENTRY_ENQUIRY', 'Message:'); define('ENTRY_ENQUIRY_CHECK_ERROR', ' <small><font color="#FFFFFF">There is no text in the message.</font></small>'); define('SEND_TO_TEXT', 'Send E-Mail To:'); define('SEND_TO_TYPE', 'radio'); // use '' for a dropdown menu, 'radio' for radio buttons define('CONTACT_MAP_LINK',''); // link to maps.yahoo.com, mapquest.com, etc for store location define('IMAGE_BUTTON_MAP', 'Get Map'); define('IMAGE_BUTTON_SEND', 'Send'); define('CONTACT_US_ADDL_TEXT', ''); // text such as business hours or other contact info define('CONTACT_US_ADDL_TEXT_ALIGN',''); // 'left', 'right' or 'justify' (default is 'center') ?> i hope this is what you are asking for ? Quote Link to comment Share on other sites More sharing options...
spooks Posted August 7, 2009 Share Posted August 7, 2009 Looking over the code, your issue is not with this contrib, its errors on the site (I did mention b4!!) The width used is 100% (of that available) so it size is max available you have set your left column width with BOX_WIDTH, but you have not defined BOX_WIDTH so its value is zero, so your left column is only as wide as the content, as the contact page asks for max available left column width become minimum needed for content add a define for BOX_WIDTH in application_top should sort it. Quote Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
Guest Posted August 7, 2009 Share Posted August 7, 2009 absolutly right when i went there i discovered that my template had a different name than that one for that variable once i changed to the right variable it was fixed now tho i ahve a different problem with the same addon i have added the show map button and when i click on that button it goes directly to my home page not the map when i look at veiw source its got some weird text with the url it is supposed to go too here is the code ------------- this is from the contact_us.php in the includes/lang/english folder define('SEND_TO_TEXT', 'Send E-Mail To:'); define('SEND_TO_TYPE', 'radio'); // use '' for a dropdown menu, 'radio' for radio buttons define('CONTACT_MAP_LINK','http://www.mapquest.com/maps?address=4310+S+Eden+Road+Kennedale+Tx+76060'); // link to maps.yahoo.com, mapquest.com, etc for store location define('IMAGE_BUTTON_MAP', 'button_map.gif'); define('IMAGE_BUTTON_SEND', 'Send'); de the segment of code from contact_us.php from the catalog folder--------------------- <td class="main" valign="top" align="left" width="160"><center> <?php echo nl2br(STORE_NAME_ADDRESS); if (!CONTACT_MAP_LINK == '') { echo '<br><br><a href="' . tep_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode(eregi_replace('http://','',CONTACT_MAP_LINK)), 'NONSSL', false, false) . "\" target=_blank>" . tep_image_button('button_map.gif', IMAGE_BUTTON_MAP) . '</a>'; } ?> </center> the instructions given with the add on is below---------------------------- 3. FOR A LINK FOR AN EXTERNAL PAGE SHOWING A MAP (Optional) Edit the catalog/includes/languages/<language>/contact_us.php file to insert the URL of the external page. Enter the URL in the define statement for the constant named CONTACT_MAP_LINK. To obtain a URL for a map generated by one of the online services (maps.yahoo.com, mapquest.com, multimap.com and others), open a browser window and navigate to the service, and enter the address information required (usually a street address and a postal code will suffice). Once you have successfully gotten a map, copy the URL from the browser's address bar and paste it into the define statement second parameter. These URLs are generally quite long. Here is an example of what the define statement would look like for a location at the intersection of Fifth Avenue and 59th Street in New York City (obtained with maps.yahoo.com): define('CONTACT_MAP_LINK', 'http://maps.yahoo.com/maps_result? ed=3UwHeOp_0TrHpFXnqdJa2OBo90A87wZSuqBI9vRm&csz=new+york%2C+ny &country=us&new=1&name=&qty='); The graphic button supplied for this feature is a compass icon named button_map.gif, and must be uploaded to the folder catalog/includes/languages/<language>/images/buttons/. thanks again allmost got it going Quote Link to comment Share on other sites More sharing options...
spooks Posted August 8, 2009 Share Posted August 8, 2009 (edited) spotted it replace: echo '<br><br><a href="' . tep_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode(eregi_replace('http://','',CONTACT_MAP_LINK)), 'NONSSL', false, false) . "\" target=_blank>" . tep_image_button('button_map.gif', IMAGE_BUTTON_MAP) . '</a>'; with echo '<br><br><a href="' . tep_href_link(FILENAME_REDIRECT, 'action=url&goto=' . eregi_replace('http://','',CONTACT_MAP_LINK), 'NONSSL', false, false) . "\" target=_blank>" . tep_image_button('button_map.gif', IMAGE_BUTTON_MAP) . '</a>'; Edited August 8, 2009 by spooks Quote Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
Guest Posted August 8, 2009 Share Posted August 8, 2009 replaced the code you suggested and made the url come up clean but when i click on the button it goes directly to my home page not the map what next ? Quote Link to comment Share on other sites More sharing options...
spooks Posted August 8, 2009 Share Posted August 8, 2009 OK mods are required for redirect.php put back the echo '<br><br><a href="' . tep_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode(eregi_replace('http://','',CONTACT_MAP_LINK)), 'NONSSL', false, false) . "\" target=_blank>" . tep_image_button('button_map.gif', IMAGE_BUTTON_MAP) . '</a>'; then in redirect.php find: case 'url': if (isset($HTTP_GET_VARS['goto']) && tep_not_null($HTTP_GET_VARS['goto'])) { $check_query = tep_db_query("select products_url from " . TABLE_PRODUCTS_DESCRIPTION . " where products_url = '" . tep_db_input($HTTP_GET_VARS['goto']) . "' limit 1"); if (tep_db_num_rows($check_query)) { tep_redirect('http://' . $HTTP_GET_VARS['goto']); } } break; replace with: case 'url': if (isset($HTTP_GET_VARS['goto']) && tep_not_null($HTTP_GET_VARS['goto'])) { $check_query = tep_db_query("select products_url from " . TABLE_PRODUCTS_DESCRIPTION . " where products_url = '" . tep_db_input($HTTP_GET_VARS['goto']) . "' limit 1"); if (tep_db_num_rows($check_query)) { tep_redirect('http://' . $HTTP_GET_VARS['goto']); } else { tep_redirect('http://' . urldecode($HTTP_GET_VARS['goto'])); } } break; Quote Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
Guest Posted August 8, 2009 Share Posted August 8, 2009 finally all of the contact us addon is working with all my expectiations again thank you for all your help 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.