Jump to content

mmosttler

Members
  • Content count

    21
  • Joined

  • Last visited

Profile Information

  • Real Name
    Marcus Mosttler
  1. mmosttler

    Auctions V2.1 Support Thread

    FYI, I have gotten more of the auctions working on my dvel site. I have had to make some changes along the way. -More changes for HTTP_GET/POST_VAR to _GET/POST -Auction admin page didn't allow for updating of the bid increments so i added that ability. below is the new update section of the admin/auctions.php case 'update': $auctions_id = tep_db_prepare_input($_POST['auctions_id']); $products_price = tep_db_prepare_input($_POST['products_price']); $auctions_price = tep_db_prepare_input($_POST['auctions_price']); $overbid_amount = tep_db_prepare_input($_POST['overbid_amount']); $day = tep_db_prepare_input($_POST['day']); if (substr($auctions_price, -1) == '%') { $auctions_price = ($products_price - (($auctions_price / 100) * $products_price)); } tep_db_query("update " . TABLE_AUCTIONS_PRODUCTS . " set auctions_starting_price = '" . tep_db_input($auctions_price) . "', auctions_last_modified = now(), expires_date = '" . $day . "', overbid_amount = '". tep_db_input($overbid_amount) . "' where auctions_id = '" . (int)$auctions_id . "'"); tep_redirect(tep_href_link(FILENAME_AUCTIONS_PRODUCTS, 'page=' . $_GET['page'] . '&aID=' . $auctions_id)); break;
  2. mmosttler

    Auctions V2.1 Support Thread

    I have also had to update the post var to get the insert to work. I am reviewing the admin files and wondering what admin/auctions2.php is used for, it seems to be a copy of admin/auctions.php is this file actually needed?
  3. mmosttler

    Auctions V2.1 Support Thread

    Well, I believe I located the first issue. The code does not work well with PHP5. I was able to get more working in the admin tool by replacing HTTP_GET_VAR with $_GET. Anyone using this contribution with PHP5 or are there any plans to modify it for PHP5? thx, mm
  4. mmosttler

    Auctions V2.1 Support Thread

    I have completed the install and went to the admin auctions page. I then clicked the New Product to add an auction item, but I all i get is the same page back. I did not see any errors in the log or on the page. Can someone describe what is supposed to happen at this time? I am unsure how it is supposed to function so without stepping through the code I am unable to continue. thx
  5. mmosttler

    Google Chekout Issues

    Hi, I just got the google checkout button working (level1) and i did have to make some changes to the code. In the /googlecheckout/classes/gOscCommunicator.php about line 75 there are some options that are setup, including urls. The urls need to be updated with /checkout/.... $options = array( 'GCheckout_currency' => 'USD', 'GCheckout_xmlSchema' => 'http://checkout.google.com/schema/2', 'GCheckout_button' => "http://".$GCheckout_subdomain.".google.com/checkout/buttons/checkout.gif", 'GCheckout_button_w' => '180', 'GCheckout_button_h' => '46', 'GCheckout_button_loc' => 'en_US', 'GCheckout_button_style' => 'trans', 'GCheckout_base_url' => "https://".$GCheckout_subdomain.".google.com/checkout/cws/v2/Merchant/".$GCheckout_merchant_id, 'GCheckout_url' => "https://".$GCheckout_subdomain.".google.com/checkout/cws/v2/Merchant/".$GCheckout_merchant_id. "/checkout", 'GCheckout_diagnose_url' => "https://".$GCheckout_subdomain.".google.com/checkout/cws/v2/Merchant/".$GCheckout_merchant_id. "/checkout/diagnose", 'GCheckout_request_url' => "https://".$GCheckout_subdomain.".google.com/checkout/cws/v2/Merchant/".$GCheckout_merchant_id. "/request", 'GCheckout_request_diagnose_url' => "https://".$GCheckout_subdomain.".google.com/checkout/cws/v2/Merchant/".$GCheckout_merchant_id. "/request/diagnose", 'GCheckout_or_use_text' => GOOGLECHECKOUT_OR_USE ); mm
  6. mmosttler

    Event Calender

    I don't believe it makes sense to tie a date format to a language since its not really standardized for all languages. Many of the areas in the calendar code use the $dateDisplayFormat to format the date for display. This should be defined at the top of /includes/modules/events_calendar/events_calendar_body.php if it is further down in the page then you may want to move it up to the top of the page. For your format you need to define: $dateDisplayFormat = "dmY"; (for details see http://us3.php.net/date) The drop down is apparently one that uses the date display format variable. To change it you need to modify the following line in /includes/modules/events_calendar/events_calendar_body.php (Line 70) $event_array[] = array('id' => $q_events['event_id'], 'text' => $cal->monthNames[$month - 1] . ' ' . $day . ' -> ' . $q_events['title']); you can change it to something like: $event_array[] = array('id' => $q_events['event_id'], 'text' => date($dateDisplayFormat, mktime(0,0,0,$month,$day,$year)) . ' -> ' . $q_events['title']); For month names, I don't beleive any of this has been changed to be more multilingual friendly. So to change the month names (and days of the week) you need to change the array values defined in: /includes/classes/calendar.php at line 467 /* The labels to display for the months of the year. The first entry in this array represents January. */ var $monthNames = array(January,February,March,April,May,June,July,August,September,October,Novemb er,December); Hope this helps you get going with what you want. marcus
  7. mmosttler

    Event Calender

    I am not sure exactly where you are wanting to change the format or what ot change it to, but I can point you to a spot where you can change it: /includes/modules/events_calendar/events_calendar_body.php change the following to what you want: $dateDisplayFormat = "F d, Y"; if you let me know more about where you want the format changed i can try to help. thanks, marcus
  8. mmosttler

    Event Calender

    To start the calendar with Monday instead of Sunday you will need to change the FIRST_DAY_OF_WEEK which is defined in: /includes/languages/english/events_calendar.php THe change to make is similar to what you did, change from 0 to 1.
  9. mmosttler

    Event Calender

    I am not sure exactly what version of the event calendar you have or if you have made changes to the admin page. The reason I mention that is because the screen shot seems to be missing a lot (like the other language fields). Before i could offer help i would need to know a bit more about the version or changes that have been made to the page.
  10. mmosttler

    Event Calender

    0
  11. mmosttler

    Event Calender

    I have uploaded some changes to the contribution page. * Updated display and listing of events that cross over months (start date is in month 1 and end date is in month 2). - now displays in All Event view - now displays in both Month views - now displays in Other Events listing in an event detail view. - now displays in Day views. * Event Nav Bar Titles moved to the events_calendar.php language file. * Event Detail dates border and display style moved to style sheet - new class = .event_header_dates * Display date format centralized to a variable in the events_calendar.php: $dateDisplayFormat
  12. mmosttler

    Event Calender

    Just wanted to let you know that I did find some sql that i could change to fix the display of the event that crosses over 2 months. I am working on finishing that up so that I can upload the changes. As for the strange date display from 2005-04-30 to displaying 4 June 2008, I am not sure what happened but my initial thought is it may have something to do with changing the format of the date. Either a spot missed or not changed quite right or something, not sure yet.
  13. mmosttler

    Event Calender

    Well I will try to answer your questions. 1) I'll look into this, it will take a little more time. 2) Are you wanting to change the heading labels? If so then you have found a spot where we need to change to make mulit lingual possible. a) Open includes/languages/english/events_calendar.php (same for other languages) B) Locate the line with define('TEXT_EVENT_DATE', 'Date :'); c) Add the following lines below that line define('TEXT_EVENT_DATE_START', 'Start Date :'); define('TEXT_EVENT_DATE_END', 'End Date :'); d) Save and Open includes/modules/events_calendar_listing.php e) Locate line with 'text' => ' Start ' . TEXT_EVENT_DATE . ' '); and change it to 'text' => ' ' . TEXT_EVENT_DATE_START . ' '); f) Locate line with 'text' => ' End ' . TEXT_EVENT_DATE . ' '); and change it to 'text' => ' ' . TEXT_EVENT_DATE_END . ' '); Now you can translate the start and end date labels in the event_calendar language files. 3) Do you have a link where I can take a look at this? 4) I believe you mean the partial box lines drawn around the start and end dates. If I am correct then you would change that by opening the events_calendar.php and locate style="border: 1px inset #F2F4F7" . Its only in there twice, and both times are for the start and end date. Just delete that text and the lines will go away.
  14. mmosttler

    Event Calender

    I am not sure what you are trying to do, but I would like to try and help where I can. I just looked at your stylesheet and it appears you have commented out the event calendar style sheet. I also noticed there were <PRE> tags around the event calendar import statement. If these were there at any time when it was not commented out then they would have caused a problem. You may try removing the <pre> open and close tag.
  15. mmosttler

    Event Calender

    Can you tell me how to get to the calendar on your site. When I goto the link in your posts I don't see it and not sure how to get to it.
×