magdalena

Members
  • Content count

    158
  • Joined

  • Last visited

  • Days Won

    1

magdalena last won the day on October 3 2011

magdalena had the most liked content!

Community Reputation

1 Neutral

1 Follower

About magdalena

Profile Information

  • Real Name
    Lillian
  • Gender
    Female
  • Location
    DFW, Tx

Contact Methods

  1. I posted this in general and think maybe that was the wrong place. It's moved down quite a bit so hopefully I'm not double posting. When using Paypal Express in 2.3.1 there is not a checkout confirmation page displaying for either the true express checkout or "checkout" using paypal. Also, when using the Express portion it does not write out the phone number to the customer record or the order. Any ideas? Thanks in advance.
  2. I think this question was asked above but I'm afraid I don't understand the answer. I assume it's the same problem. Here it is: We collectively own three sites. We are having the same hack/email problem. I installed a new site montitor on one, and reinstalled it on another. The check for hacked code works, but the execute site monitor comes up with the following on both sites. Warning: opendir(/home/username/public_html) [function.opendir]: failed to open dir: No such file or directory in /home/********/public_html/admin/includes/functions/sitemonitor_functions.php on line 162 Warning: readdir(): supplied argument is not a valid Directory resource in /home/********/public_html/admin/includes/functions/sitemonitor_functions.php on line 164 I do have this directory and the php file in that directory. The reinstalled site now says we have 1791 deleted files and won't check for any thing else. Any help would be appreciated.
  3. Will do and thanks again!
  4. Thanks MM! I'll take a look at this. It should be interesting if I try to actually code something. I can read the code, install a contribution, maybe even a one word tweak, but haven't done any significant PHP. I think your right about shopping cart vs. checkout. Let's look at your Walmart theory. If I'm standing in line waiting for a checkout clerk with my shopping cart :blink: , I might get some impulse items because I'm waiting. But using Checkout would tantamount to Walmart saying "that will be 85.50. Want a bag of MM's". See simple minds, need simple solutions! :lol: Thanks again. Pee Ess: It might take awhile for me to get to this, but I will post the results.
  5. Does any one know of a contrib that shows impulse items/promotional items during checkout. For instance I sell phone covers and want to pop up phone car chargers for an impulse add on. I did look in contributions but there was only 1 I could find and it was very old and never tested live. I don't know php very well so that's not a good idea for me to go there (especially after my last fiasco). Any input appreciated.
  6. Thanks, I'll dig around in there.
  7. Hi. This is a great, and easy to run/install, contribution. I put it in a rc2a system and had one minor problem: Warning: chmod() [function.chmod]: Operation not permitted in /home/jwewbro1/public_html/admin/check_permissions.php on line 326 if (!$testrun) { if(substr($current_file,-3,3) == 'bak'){ unlink($path); } else { switch ($correct_mod) { case 777: $ch = chmod($current_file, 0777); break; case 755: $ch = chmod($current_file, 0755); break; case 744: $ch = chmod($current_file, 0744); break; case 644: THIS IS LINE 326 $ch = chmod($current_file, 0644); break; case 444: $ch = chmod($current_file, 0444); break; case 440: $ch = chmod($current_file, 0440); break; case 400: $ch = chmod($current_file, 0400); break; default: $ch = chmod($current_file, 0644); } // if ($ch ){echo '<br>ok '.$current_file; }else{echo '<br>ohoh '.$current_file;} } } echo "<tr> <td>File</td> <td>" . $current_file . "</td> <td>" . decoct($mode) . "</td> <td>" . ((decoct($mode)==$correct_mod) ? "OK" : (($testrun) ? "Action Required, should be " . $correct_mod : ($ch ? "Updated to " . $correct_mod : "Update failed"))) . "</td> </tr>"; } // if if_dir if ($i > 5000) { break; } It looks like everything worked. I ran a check with the same 644/755 values and it checked out. Also, on CPANEL. Is there a way to eliminate the error message? Let me know. Once again, great mod!
  8. That's okay if you can't help with the other. This is good information for someone down the line that installs the contribution. Thanks, germ.
  9. bumpty bump. anyone?
  10. For anyone installing the most current version of this contribution, there are several files that don't have carriage returns in the file. The code/CSS/etc. is all run together. That's what causes the parse error on line 1. Open up the files with FrontPage, Word, or something that will parse the file and then copy it up to your host. I installed this contribution on RC2 and it works fine. I found one minor bug, if anyone has any thoughts. When looking at the dropdown for events, it doesn't include the event if it starts on today's date. I looked at the select, but didn't see the problem offhand. If you want to look at the code see: http://injewelrynow.com/events_calendar.php?view=all_events Or here is the original PHP code: <?php /* $Id: events_calendar v2.00 2003/06/16 18:09:20 ip chilipepper.it Exp $ osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Copyright © 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_EVENTS_CALENDAR); define('SECTION', NAVBAR_TITLE); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_EVENTS_CALENDAR, '', 'NONSSL')); //add breadcrumb for requested if(isset($single_event) || $HTTP_GET_VARS['select_event']) { $navbarEventTitle = NAVBAR_EVENT_TITLE_DETAIL; } else if($HTTP_GET_VARS['year_view'] == 1) { $navbarEventTitle = NAVBAR_EVENT_TITLE_YEAR; } else if($HTTP_GET_VARS['_day']) { $navbarEventTitle = NAVBAR_EVENT_TITLE_DAY; } else if($HTTP_GET_VARS['view'] == 'all_events') { $navbarEventTitle = NAVBAR_EVENT_TITLE_ALL; } else { $navbarEventTitle = NAVBAR_EVENT_TITLE_MONTH; } $breadcrumb->add($navbarEventTitle, $HTTP_SERVER_VARS["REQUEST_URI"], '', 'NONSSL'); $i =1; $cal = new Calendar; $cal->setStartDay(FIRST_DAY_OF_WEEK); $this_month = date('m'); $this_year = date('Y'); if ($HTTP_GET_VARS['_month']) { $month = $_month; $year = $_year; $a = $cal->adjustDate($month, $year); $month_ = $a[0]; $year_= $a[1]; } else { $year = $this_year; $month = $this_month; $yeventear_= $year; $month_= $month; $year_= $year; } if($HTTP_GET_VARS['_day']) { $ev_query = tep_db_query("select event_id from " . TABLE_EVENTS_CALENDAR . " where DAYOFMONTH(start_date)= '" . $_day . "' and MONTH(start_date) = '" . $_month . "' and YEAR(start_date) = '" . $_year . "' AND language_id = '" . $languages_id . "'"); if(tep_db_num_rows($ev_query) == 1) { $ev = tep_db_fetch_array($ev_query); $single_event = true; $select_event = $ev['event_id']; } } ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML <?php echo HTML_PARAMS; ?>> <HEAD> <TITLE><?php echo TITLE . ' - ' . NAVBAR_TITLE; ?></TITLE> <META http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <META name="KeyWords" content=""> <META name="Description" content=""> <BASE href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <LINK rel="stylesheet" type="text/css" href="stylesheet.css"> <LINK rel="shortcut icon" href="favicon.ico" > <LINK rel="icon" href="favicon.ico" > </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 //--> </td></tr></table> <!-- body_text //--> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <!-- Take out the extra header and put in a link to all events --> <tr> <td align=center><a href="http://www.injewelrynow.com/events_calendar.php?view=all_events"><font size=2 face=verdana>CLICK HERE TO SEE ALL EVENTS</font></td> </tr> <!-- LJ add missing row --> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <!-- add calendar LJ --> <tr><td> <?php require(DIR_WS_BOXES . 'calendar.php'); ?> </td></tr> <!-- LJ add a blank line --> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td class="main" nowrap align=center> <?php echo tep_draw_form('goto_event', FILENAME_EVENTS_CALENDAR, '', 'get'); $ev_query = tep_db_query("select *, DAYOFMONTH(start_date) AS day, MONTH(start_date) AS month, YEAR(start_date) AS year" . " from " . TABLE_EVENTS_CALENDAR . " where start_date >= '" . date('Y-m-d H:i:s') . "' and language_id = '" . $languages_id . "'" . " order by start_date"); if(tep_db_num_rows($ev_query) > 0) { $event_array[] = array('id' => '', 'text' => TEXT_SELECT_EVENT); while ($q_events = tep_db_fetch_array($ev_query)) { $year = $q_events['year']; $month = $q_events['month']; $day = $q_events['day']; $event_array[] = array('id' => $q_events['event_id'], 'text' => $cal->monthNames[$month - 1] . ' ' . $day . ' -> ' . $q_events['title']); } echo tep_draw_pull_down_menu('select_event', $event_array, NULL, 'onChange="(this.value != \'\') ? this.form.submit() : \'\' " ;', $required = false); } ?> </form> </td> </tr> </table> </td> </tr> <tr> <td> <?php $dateDisplayFormat = "F d, Y"; if(isset($single_event) || $HTTP_GET_VARS['select_event']) { //Show Details of a single event. $events_query = tep_db_query("select *, DAYOFMONTH(start_date) AS event" . " from " . TABLE_EVENTS_CALENDAR . " where event_id = '" . $select_event . "' and language_id = '" . $languages_id . "'"); while($events = tep_db_fetch_array($events_query)) { list($year, $month, $day) = split ('[/.-]', $events['start_date']); $date_start = date($dateDisplayFormat, mktime(0,0,0,$month,$day,$year)); ?> <?php if($events['end_date']) { list($year_end, $month_end, $day_end) = split ('[/.-]', $events['end_date']); $date_end = date($dateDisplayFormat, mktime(0,0,0,$month_end,$day_end,$year_end)); } $event_array = array('id' => $events['event_id'], 'title' => $events['title'], 'image' => $events['event_image'], 'description' => $events['description'], 'first_day' => $date_start, 'last_day' => $date_end, 'OSC_link' => $events['OSC_link'], 'link' => $events['link']); $clsp = 2; ?> <!-- LJ add a blank line and move the header down --> <?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?> <table width="100%" cellspacing="0" cellpadding="4" class="event_description"> <tr><td> <?php echo $events['title']?> </td></tr> <tr> <td class="event_header_dates" nowrap> <?php if($event_array['last_day']) { echo '<b>' . TEXT_EVENT_START_DATE . '</b>'; } ?> <?php echo $event_array['first_day'];?> </td> <?php if($event_array['last_day']) { ?> <td class="event_header_dates" nowrap> <b><?php echo TEXT_EVENT_END_DATE;?></b> <?php echo $event_array['last_day'];?> </td> <?php $clsp++; } ?> <td width="100%" class="event" nowrap> </td> </tr> <tr> <td colspan="<?php echo $clsp;?>" class="event_description"> <?php if ($event_array['image']) { ?> <table border="0" cellspacing="0" cellpadding="0" align="right"> <tr> <td class="main"> <?php echo tep_image(DIR_WS_IMAGES .'events_images/' . $event_array['image'], $event_array['title'], '', '', 'align="right" hspace="5" vspace="5"');?> </td> </tr> </table> <?php } echo stripslashes($event_array['description']); ?> </td> <?php if($event_array['OSC_link']) { ?> </tr> <tr> <td colspan="<?php echo $clsp;?>" align="left" class="event_header"> <?php echo TEXT_EVENT_OSC_LINK;?> <a href="<?php echo $event_array['OSC_link'];?>"> <?php echo $event_array['OSC_link'];?> </a> </td> <?php } if($event_array['link']) { ?> </tr> <tr> <td colspan="<?php echo $clsp;?>" align="left" class="event_header"> <?php echo TEXT_EVENT_LINK;?> <a href="http://<?php echo $event_array['link'];?>" target="_blank"> <?php echo $event_array['link'];?> </a> </td> <?php } ?> </tr> </table> <?php } //Show all other events for the same day or during the duration of the selected event. $beginDay = $year . '-' . $month . '-' . $day; $endDay = $year_end . '-' . $month_end . '-' . $day_end; $other_events_query = tep_db_query("select *, DAYOFMONTH(start_date) AS event from ". TABLE_EVENTS_CALENDAR . " where ( (start_date BETWEEN '" . $beginDay . "' and '". $endDay . "')" . " or (end_date BETWEEN '" . $beginDay . "' and '" . $endDay . "')" . " or ( (start_date <= '" . $beginDay . "' and start_date <= '" . $endDay . "')" . " and (end_date >= '" . $beginDay . "' and end_date >= '" . $endDay . "') ) )" . " and language_id = '" . $languages_id . "' and event_id != '" . $select_event . "' order by start_date"); if (tep_db_num_rows($other_events_query) > 0) { ?> <h3><?php echo TEXT_OTHER_EVENTS;?></h3> <table border="0" width="100%" cellspacing="0" cellpadding="2" class="event_header"> <?php while ($other_events = tep_db_fetch_array($other_events_query)) { $event_array = array('id' => $other_events['event_id'], 'event' => $other_events['event'], 'title' => $other_events['title']); ?> <tr> <td align="center" width="24" class="event_header" nowrap> <b><?php echo $i; ?></b> </td> <td width="100%" class="event"> <a href="<?php echo FILENAME_EVENTS_CALENDAR;?>?select_event=<?php echo $event_array['id'];?>"> <?php echo $event_array['title'];?> </a> </td> </tr> <?php $i++; } ?> </table> <?php } } elseif($HTTP_GET_VARS['year_view'] == 1) { //Show the full year view. ?> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><?php echo $cal->getYearView($year_); ?></td> </tr> </table> <?php } elseif($HTTP_GET_VARS['_day']) { //Show all Events for the specified date. $events_query_raw = "select *, DAYOFMONTH(start_date) AS event from " . TABLE_EVENTS_CALENDAR . " where '" . $_year . "-" . $_month . "-" . $_day . "' BETWEEN start_date and end_date" . " and language_id = '" . $languages_id . "' order by start_date"; $listingTitle = date($dateDisplayFormat, mktime(0, 0, 0, $_month, $_day, $_year)); $displayPagingSuffix = $listingTitle; require(DIR_WS_MODULES . 'events_calendar_listing.php'); } else if($HTTP_GET_VARS['view'] == 'all_events') { //Show all Events from current date. $events_query_raw = "select *, DAYOFMONTH(start_date) AS event from " . TABLE_EVENTS_CALENDAR . " where (start_date >= '" . date('Y-m-d H:i:s') . "' or end_date >= '" . date('Y-m-d H:i:s') . "')" . " and language_id = '" . $languages_id . "' order by start_date"; $listingTitle = 'All Events'; $displayPagingSuffix = NULL; require(DIR_WS_MODULES . 'events_calendar_listing.php'); } else { //Show All Events for the current or specified month/year $events_query_raw = "select *, DAYOFMONTH(start_date) AS event from " . TABLE_EVENTS_CALENDAR . " where ((MONTH(start_date) = '" . $month_ . "' and YEAR(start_date) = '" . $year_ . "')" . " or (MONTH(end_date) = '" . $month_ . "' and YEAR(end_date) = '" . $year_ . "'))" . " and language_id = '" . $languages_id . "' order by start_date"; $months = $cal->monthNames[$month_ - 1]; $listingTitle = $months . ' ' . $year_; $displayPagingSuffix = $listingTitle; require(DIR_WS_MODULES . 'events_calendar_listing.php'); } ?> </td> </tr> </table> </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'); ?> Thanks in advance. :rolleyes: