Jump to content

a.niedermann

Members
  • Content count

    139
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    Andreas Niedermann
  1. a.niedermann

    NewsDesk v1.48 Support

    Hey There!! First: Great contribution and I am happy that I am having it...!! Here comes my question: 1. Is it somehow possible to limit the displayed news items on the start site in such a way, that when for example more than 5 newsitems "new sites" would be generated for them?? --> The visitor would see five newsitems, when he scrolls down to the last one, there would be something like..... page 1, 2, 3,.., 55> 2. how is it possible to display the newsitems on the front page in two rows in a way, that news item 2 is next to the newsitem 1 and one row further down newsitem 3 and 4 would be presented.....? I appreciate any help very much and I do hope you guys understand what I am trying to say :) Andreas
  2. a.niedermann

    [CONTRIBUTION] AJAX XML NEWS TICKER (GPL)

    Hey Fabrizio Thanks a lot for your contribution! Sadly I have the same problem with the characters as the oder guys...since our shop is located in Switzerland we use a lot the characters Ä, Ö, Ü, ä, ö, ü Is there any possibility to solve this problem?? Another thing. Is it possible to display the newstext as a marquee?? Thanks a lot, Andreas
  3. a.niedermann

    PayPal Express Checkout IPN Payment Module

    No idea around??
  4. a.niedermann

    PayPal Express Checkout IPN Payment Module

    Hi Alex Sadly it happens with all browsers....!! Any Idea? Andreas
  5. a.niedermann

    PayPal Express Checkout IPN Payment Module

    Hey Alex Since it seems to be that I have a session problem I compared the two session.php but also this did not help.... Do you have any idea what else I have to check?? Thanks Andreas
  6. a.niedermann

    PayPal Express Checkout IPN Payment Module

    Hi Alex I double checked all modifications necessary for your contribution, including checking the address pages, since you wrote it could also have to do something with this. Unfortunately it did not help. Now, I have the problem which I had before only with firefox -> rerouting to the login.php. Here's what I realised The "PAY" Button on the express_checkout has no session ID or token on it, in my store it is just a simple link to checkout_process.php. When then clicking on the pay button it first sends me back to the checkout_process.php before it resends me back to the login.php. If I have the 'Allow Edit Shipping Address at PayPal?' to 'Yes' it first sends me to the shipping page which says that Paypal modified the address and that I should confirm that, although the addresses are exactely the same. when confirming that the story is the same as mentioned three sentences before... I appreciate very much your help!! Andreas
  7. a.niedermann

    PayPal Express Checkout IPN Payment Module

    Hi Alex, Thanks for your help. Although I switched the customer's state to true and allow edit shipping address at paypal to false I still having the same problems. As a second step after switching the customer's state to true was that I created a new account and tried with this, but also this step did not help! Another curious thing when using firefox: after pushing the "button confiurm order" it sends me back to the login.php... Andreas
  8. a.niedermann

    PayPal Express Checkout IPN Payment Module

    Hi Alex...! Do you have any ideas to my mentioned problem above?? Andreas
  9. a.niedermann

    PayPal Express Checkout IPN Payment Module

    Hi Community I still having the problem I mentioned some posts before although I updated my whole store to MS2.2 RC2a.. Everything runs smoothly, it processes correctly to paypal, paypal reroutes me correctly back to the store, where the order has to be finally processed. When then pushing the "final order button" it reroutes me back to the shipping site....a never ending circle... Any idea around?? Andreas
  10. a.niedermann

    PayPal Express Checkout IPN Payment Module

    Hey there!! First of all, thanks a lot for the contribution which worked very very well for me till recently...! Unfortunately now I've got a problem with the contribution and I think it is since my provider updated to php5 from php4, before everything went smoothly... First of all it was not possible to update the payment settings in the admin payment site. to solve this I already added the reset($ar); at the end of the following code in the compatibility site... do_magic_quotes_gpc($ar[$key]); } else { $ar[$key] = addslashes($value); } } reset($ar); } maybe the above stated code helps to understand my problems with the contribution: first of all everything seems to work smoothly, the shop forwards me to the paypal site. when I click on the continue button, which normally should bring me back to the confirmation page on oscommerce it rederects me instead to the page which says that paypal updated my address and that i should confirm that although the paypal address is exactely the same as the one registred in oscommerce. when done that oscommerce forwards me to the confirmation page. but when clicking than on order now (thus normally should this be the very last step) I will be redirected to the oscommerce shipping page... so, a never ending circle....the paypal dump is successful and the diagnostics does not find any error... Any idea what this could cause?? Thank you very much for your help!! andreas
  11. a.niedermann

    Ajax Buy Now

    Hi There! I having some problems with inserting the ajax code in my html_output..! Any help would be great!! <?php /* $Id: html_output.php,v 1.56 2003/07/09 01:15:48 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ //// // Ultimate SEO URLs v2.1 // The HTML href link wrapper function function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) { global $seo_urls; if ( !is_object($seo_urls) ){ if ( !class_exists('SEO_URL') ){ include_once(DIR_WS_CLASSES . 'seo.class.php'); } global $languages_id; $seo_urls = new SEO_URL($languages_id); } return $seo_urls->href_link($page, $parameters, $connection, $add_session_id); } //// // The HTML image wrapper function function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '') { if ( (empty($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') ) { return false; } // begin radders added $src = tep_image_resample($src,$width,$height); //end radders added // alt is added to the img tag even if it is null to prevent browsers from outputting // the image filename as default $image = '<img src="' . tep_output_string($src) . '" border="0" alt="' . tep_output_string($alt) . '"'; if (tep_not_null($alt)) { $image .= ' title=" ' . tep_output_string($alt) . ' "'; } if ( (CONFIG_CALCULATE_IMAGE_SIZE == 'true') && (empty($width) || empty($height)) ) { if ($image_size = @getimagesize($src)) { if (empty($width) && tep_not_null($height)) { $ratio = $height / $image_size[1]; $width = $image_size[0] * $ratio; } elseif (tep_not_null($width) && empty($height)) { $ratio = $width / $image_size[0]; $height = $image_size[1] * $ratio; } elseif (empty($width) && empty($height)) { $width = $image_size[0]; $height = $image_size[1]; } } elseif (IMAGE_REQUIRED == 'false') { return false; } } if (tep_not_null($width) && tep_not_null($height)) { $image .= ' width="' . tep_output_string($width) . '" height="' . tep_output_string($height) . '"'; } /* // BEGIN Code Keep Image Proportions if (tep_not_null($width) && tep_not_null($height)) { if (IMAGE_CONSTRAIN_PROPORTIONS == 'true') { $image_size = @getimagesize($src); if ($image_size[0] <> 0) { $ratio = $width / $image_size[0]; if ($image_size[1]*$ratio > $height) { $ratio = $height / $image_size[1]; $width = $image_size[0] * $ratio; } else { $height = $image_size[1] * $ratio; } } $image .= ' width="' . tep_output_string($width) . '" height="' . tep_output_string($height) . '"'; } } else { $image .= ' width="' . tep_output_string($width) . '" height="' . tep_output_string($height) . '"'; } */// END Code Keep Image Proportions if (tep_not_null($parameters)) $image .= ' ' . $parameters; $image .= '>'; return $image; } //// // The HTML form submit button wrapper function // Outputs a button in the selected language function tep_image_submit($image, $alt = '', $parameters = '') { global $language; $image_submit = '<input type="image" src="' . tep_output_string(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image) . '" border="0" alt="' . tep_output_string($alt) . '"'; if (tep_not_null($alt)) $image_submit .= ' title=" ' . tep_output_string($alt) . ' "'; if (tep_not_null($parameters)) $image_submit .= ' ' . $parameters; $image_submit .= '>'; return $image_submit; } //// // Output a function button in the selected language function tep_image_button($image, $alt = '', $parameters = '') { global $language; return tep_image(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image, $alt, '', '', $parameters); } //// // Output a separator either through whitespace, or with an image function tep_draw_separator($image = 'pixel_black.gif', $width = '100%', $height = '1') { return tep_image(DIR_WS_IMAGES . $image, '', $width, $height); } //// // Output a form function tep_draw_form($name, $action, $method = 'post', $parameters = '') { $form = '<form name="' . tep_output_string($name) . '" action="' . tep_output_string($action) . '" method="' . tep_output_string($method) . '"'; if (tep_not_null($parameters)) $form .= ' ' . $parameters; $form .= '>'; return $form; } //// // Output a form input field function tep_draw_input_field($name, $value = '', $parameters = '', $type = 'text', $reinsert_value = true) { $field = '<input type="' . tep_output_string($type) . '" name="' . tep_output_string($name) . '"'; if ( (isset($GLOBALS[$name])) && ($reinsert_value == true) ) { $field .= ' value="' . tep_output_string(stripslashes($GLOBALS[$name])) . '"'; } elseif (tep_not_null($value)) { $field .= ' value="' . tep_output_string($value) . '"'; } if (tep_not_null($parameters)) $field .= ' ' . $parameters; $field .= '>'; return $field; } //// // Output a form password field function tep_draw_password_field($name, $value = '', $parameters = 'maxlength="40"') { return tep_draw_input_field($name, $value, $parameters, 'password', false); } //// // Output a selection field - alias function for tep_draw_checkbox_field() and tep_draw_radio_field() function tep_draw_selection_field($name, $type, $value = '', $checked = false, $parameters = '') { $selection = '<input type="' . tep_output_string($type) . '" name="' . tep_output_string($name) . '"'; if (tep_not_null($value)) $selection .= ' value="' . tep_output_string($value) . '"'; if ( ($checked == true) || ( isset($GLOBALS[$name]) && is_string($GLOBALS[$name]) && ( ($GLOBALS[$name] == 'on') || (isset($value) && (stripslashes($GLOBALS[$name]) == $value)) ) ) ) { $selection .= ' CHECKED'; } if (tep_not_null($parameters)) $selection .= ' ' . $parameters; $selection .= '>'; return $selection; } //// // Output a form checkbox field function tep_draw_checkbox_field($name, $value = '', $checked = false, $parameters = '') { return tep_draw_selection_field($name, 'checkbox', $value, $checked, $parameters); } //// // Output a form radio field function tep_draw_radio_field($name, $value = '', $checked = false, $parameters = '') { return tep_draw_selection_field($name, 'radio', $value, $checked, $parameters); } //// // Output a form textarea field function tep_draw_textarea_field($name, $wrap, $width, $height, $text = '', $parameters = '', $reinsert_value = true) { $field = '<textarea name="' . tep_output_string($name) . '" wrap="' . tep_output_string($wrap) . '" cols="' . tep_output_string($width) . '" rows="' . tep_output_string($height) . '"'; if (tep_not_null($parameters)) $field .= ' ' . $parameters; $field .= '>'; if ( (isset($GLOBALS[$name])) && ($reinsert_value == true) ) { $field .= stripslashes($GLOBALS[$name]); } elseif (tep_not_null($text)) { $field .= $text; } $field .= '</textarea>'; return $field; } //// // Output a form hidden field function tep_draw_hidden_field($name, $value = '', $parameters = '') { $field = '<input type="hidden" name="' . tep_output_string($name) . '"'; if (tep_not_null($value)) { $field .= ' value="' . tep_output_string($value) . '"'; } elseif (isset($GLOBALS[$name])) { $field .= ' value="' . tep_output_string(stripslashes($GLOBALS[$name])) . '"'; } if (tep_not_null($parameters)) $field .= ' ' . $parameters; $field .= '>'; return $field; } //// // Hide form elements function tep_hide_session_id() { global $session_started, $SID; if (($session_started == true) && tep_not_null($SID)) { return tep_draw_hidden_field(tep_session_name(), tep_session_id()); } } //// // Output a form pull down menu function tep_draw_pull_down_menu($name, $values, $default = '', $parameters = '', $required = false) { $field = '<select name="' . tep_output_string($name) . '"'; if (tep_not_null($parameters)) $field .= ' ' . $parameters; $field .= '>'; if (empty($default) && isset($GLOBALS[$name])) $default = stripslashes($GLOBALS[$name]); for ($i=0, $n=sizeof($values); $i<$n; $i++) { $field .= '<option value="' . tep_output_string($values[$i]['id']) . '"'; if ($default == $values[$i]['id']) { $field .= ' SELECTED'; } $field .= '>' . tep_output_string($values[$i]['text'], array('"' => '"', '\'' => ''', '<' => '<', '>' => '>')) . '</option>'; } $field .= '</select>'; if ($required == true) $field .= TEXT_FIELD_REQUIRED; return $field; } //// // Creates a pull-down list of countries function tep_get_country_list($name, $selected = '', $parameters = '') { $countries_array = array(array('id' => '204', 'text' => 'Switzerland')); $countries = tep_get_countries(); for ($i=0, $n=sizeof($countries); $i<$n; $i++) { $countries_array[] = array('id' => $countries[$i]['countries_id'], 'text' => $countries[$i]['countries_name']); } return tep_draw_pull_down_menu($name, $countries_array, $selected, $parameters); } // begin radders added function tep_image_resample($src,$width,$height) { define(JPEGQUALITY, 90); define(ALLOWSQUASH,0.10); if ($src=='') { return $src; } $i = @getimagesize( $src ); // 1-gif (ignore), 2-jpeg, 3-png if (!(($width == SMALL_IMAGE_WIDTH) && ($height == SMALL_IMAGE_HEIGHT))) { return $src; // can amend to work with other images } if (!( ($i[2] == 3) || ($i[2] ==2))) { return $src; } $file = eregi_replace( '\.([a-z]{3,4})$', "-{$width}x{$height}.\\1", $src ); // name of resampled image if (is_file( $file ) ) { return $file; } $scr_w = $i[0]; $scr_h = $i[1]; if (($scr_w * $scr_h * $width * $height) == 0) { return $src; } $howsquashed = ($width / $height * $scr_h / $scr_w); if (((1 / (1 + ALLOWSQUASH)) < $howsquashed) && ($howsquashed < (1 + ALLOWSQUASH))) $simpleway='true'; $scalefactor = min($width/$scr_w, $height/$scr_h); $scaled_w = (int)($scr_w * $scalefactor); $scaled_h = (int)($scr_h * $scalefactor); $offset_w = max(0,round(($width - $scaled_w) / 2,0)); $offset_h = max(0,round(($height - $scaled_h) / 2)); $dst = DIR_FS_CATALOG . '/' . $file; $dstim = @imagecreatetruecolor ($width, $height); $background_color = imagecolorallocate ($dstim, 255, 255, 255); imagefilledrectangle($dstim, 0, 0, $width, $height, $background_color); if ( $i[2] == 2) { $srcim = @ImageCreateFromJPEG ($src); // open } elseif ( $i[2] == 3) { $srcim = @ImageCreateFromPNG ($src); } if ($simpleway == 'true') { imagecopyresampled ($dstim, $srcim, 0, 0, 0, 0, $width, $height, $scr_w, $scr_h); } else { $intim = @imagecreatetruecolor ($width, $height); imagecopyresampled ($intim, $srcim, $offset_w, $offset_h, 0, 0, $scaled_w, $scaled_h, $scr_w, $scr_h); imagecopy ( $dstim, $intim, $offset_w, $offset_h, $offset_w, $offset_h, $scaled_w, $scaled_h); imagedestroy ($intim); } if ( $i[2] == 2) { imagejpeg ($dstim , $dst , JPEGQUALITY); } elseif ( $i[2] == 3) { imagepng ($dstim , $dst); } imagedestroy ($srcim); imagedestroy ($dstim); return $file; // Use the newly resampled image } // end radders added ////rmh referral // Creates a pull-down list of sources function tep_get_source_list($name, $show_other = false, $selected = '', $parameters = '') { $sources_array = array(array('id' => '', 'text' => PULL_DOWN_DEFAULT)); $sources = tep_get_sources(); for ($i=0, $n=sizeof($sources); $i<$n; $i++) { $sources_array[] = array('id' => $sources[$i]['sources_id'], 'text' => $sources[$i]['sources_name']); } if ($show_other == 'true') { $sources_array[] = array('id' => '9999', 'text' => PULL_DOWN_OTHER); } return tep_draw_pull_down_menu($name, $sources_array, $selected, $parameters); } ?>
  12. a.niedermann

    NewsDesk v1.48 Support

    Hey There!! I experience some problems with the url field. When I add a link to the url field it does not display it on the newsdeks info page! Any help is appreciated! Andreas
  13. a.niedermann

    Payment Question

    Hey community Quick question....in my shop I am allowing customers to pay with credit card and invoice... is there a contribution out there which limits the usage of a payment option?? My thought is to allow the "invoice" option only after unlocking....thus if a customer does not get the unlock, he is forced to pay with credit card....!! Thanks for help...(I do hope you understand what i mean ;) ) Andreas
  14. a.niedermann

    PayPal Express Checkout IPN Payment Module

    Hey Alex! With your new version it works perfectely now in our shop! One question remains...isn't it possible to include the company logo at the paypal site? Thanks a lot for all your help! Andreas
  15. a.niedermann

    Google Analytics module

    hmmm, I still did not get it! Besides the modification on the shipping page, do I really have to add the google code to each page seperately?? So it is not possible to add the code to the footer.php or the header.php?? thanks a lot! Andreas
×