Jump to content

riverwind1962

Members
  • Content count

    90
  • Joined

  • Last visited

Everything posted by riverwind1962

  1. riverwind1962

    error with addon

    that definatly helped i am now able to create and edit events on the calendar but when i go to the site (www.pcncautomation.net) and look at the event i created it does not show on the page seems to all be working but it doesnt display the event and when i went to the error log in cpanel this is the line that was on it -------- [sat Oct 24 16:56:07 2009] [error] [client 75.207.56.90] File does not exist: /home/rvrwind/public_html/500.shtml, referer: http://www.pcncautomation.net/admin/events_manager.php?&eID=&action=preview --------- i know basicly it is saying i dont have a web page for the error but 500.shtml is a page for an internal sever error any ideas on what is happening?
  2. riverwind1962

    error with addon

    i have added the calender of events to and in the admin side i get this error Fatal error: Cannot use string offset as an array in /home/rvrwind/public_html/admin/includes/classes/table_block.php on line 67 any ideas on what is causing this ?
  3. riverwind1962

    error with addon

    not exactly the same in the other post i added it and then it didnt work cuased my site to go totaly down and i removed it and it still wouldnt come back now the site is back up and i did a proper save and now trying to get it to work its a contrib problem now not a get me up again problem so i just thought it would be a new post
  4. riverwind1962

    my site is down and dont know what to do

    again thanks for all the help I am still wanting to get the event calander to work on my site and will attempt it again but can someone tell me first if this will even work my ver of oscommerce is 2.2 rc2 and this is in the install for the the addon i am wanting to use ----- NOTES: * tested on: 2.2 MS2 July 12 2003 snapshot, Browsers: IE 6.0, Netscape 7.0, Opera 6.0 * live example here will this work for me ? or is ms2 and rc2 to different for it to work ?
  5. riverwind1962

    my site is down and dont know what to do

    ok thank you for your help i got it back up and running evidently i had another addon that got effected when i put the originals back on they were one addon outdated and i had to repair that one i needed i recent back up i do have that now and thanks again for all your help
  6. riverwind1962

    my site is down and dont know what to do

    one thing i wojuld like to add is this sql thing is kinda new to me but if the one i added the one for the event calander could it have effected other tables besides adding another one ? and if so how can i fix the one it corrupted?
  7. riverwind1962

    my site is down and dont know what to do

    i know i see that too and i checked on my sql database and the table does exist i am trying to figure out why i am getting that error i know i didnt get it before i am guessing i have corrupted my database somehow and i dont know what to do to fix that
  8. riverwind1962

    my site is down and dont know what to do

    i am sorry i thought i did the site is www.pcncautomation.net
  9. riverwind1962

    my site is down and dont know what to do

    i went to the page you recomended and i am able to see the error log from cpanel on my site but there is no errors reported there, I really dont understand if i replaced all the files i modified with the original ones and then delete the files i added and then remove the sql table i created why would it not be back to normal ?
  10. riverwind1962

    my site is down and dont know what to do

    i do not think that is the problem when i do that and go to the page it will come up but if i hit a refresh or click on any other link i get the same error as before
  11. riverwind1962

    adding the ebay listing addon ?

    thank you very much that fixed it
  12. i am trying to impliment the ebay listing addon and i am getting this error on my website ( www.pcncautomation.net ) when the button is clicked Warning: mktime() expects parameter 2 to be long, string given in /home/rvrwind/public_html/includes/modules/current_auctions_module.php on line 116 Warning: mktime() expects parameter 4 to be long, string given in /home/rvrwind/public_html/includes/modules/current_auctions_module.php on line 116 but after the warnings it displays the ebay listing i have here is the code that is in current_auctions_module.php $seperate[0] = str_replace("Oct", "10", $seperate[0]); $seperate[0] = str_replace("Nov", "11", $seperate[0]); $seperate[0] = str_replace("Dec", "12", $seperate[0]); $month = $seperate[0]; $day = $seperate[1]; $year = $seperate[2]; $hour = $seperate[3] + AUCTION_TIMEZONE; $minute = $seperate[4]; $second = $seperate[5]; // mktime is the marked time, and time() is the current time. $target = mktime($hour,$minute,$second,$month,$day,$year); ( this is line 116 ) $diff = $target - time(); $days = ($diff - ($diff % 86400)) / 86400; $diff = $diff - ($days * 86400); $hours = ($diff - ($diff % 3600)) / 3600; $diff = $diff - ($hours * 3600); $minutes = ($diff - ($diff % 60)) / 60; $diff = $diff - ($minutes * 60); $seconds = ($diff - ($diff % 1)) / 1; // next we put it into a presentable format what do i need to do to get rid of this error ?
  13. 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 ?
  14. riverwind1962

    screen size is too small for addon

    finally all of the contact us addon is working with all my expectiations again thank you for all your help
  15. riverwind1962

    screen size is too small for addon

    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 ?
  16. riverwind1962

    screen size is too small for addon

    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
  17. riverwind1962

    screen size is too small for addon

    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 forums.oscommerce.com +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 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 ?
  18. riverwind1962

    screen size is too small for addon

    better yet if you can call my phone and tell me maybe that would be faster 817-483-9398
  19. riverwind1962

    screen size is too small for addon

    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?
  20. riverwind1962

    screen size is too small for addon

    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>
  21. riverwind1962

    screen size is too small for addon

    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?
  22. riverwind1962

    screen size is too small for addon

    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
  23. riverwind1962

    screen size is too small for addon

    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
  24. riverwind1962

    screen size is too small for addon

    how can i make it wider ?
  25. riverwind1962

    screen size is too small for addon

    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
×