Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Black Jack 21

Archived
  • Posts

    81
  • Joined

  • Last visited

Posts posted by Black Jack 21

  1. Hi,

     

    I have Ultra pics and lightbox installed I get the popup image with the close button, but no next or previous buttons.

     

    Finding the contributions page a nightmare to wade through and trying allsorts but with no success.

     

    I currently have the image dispayed with the titles for each image.

     

    Can you advise please on what i need to change and where to get the next and previous buttons to work.

     

    Thanks

     

    Johnny.

     

    http://www.oscommerce.com/forums/index.php?sho...p;#entry1282237

  2. I'm relatively new to modifying my oscommerce store front, but if I find a contribution that I'd like to install, how do I know which package to download? Does the latest package contain all the files I need? Or are the ones labeled bug fixes and such just bug fixes and I'll also have to download a full version of the contribution? Is there a naming convention that I'm not aware of that would help me know which files I need?

     

    There is no naming convention the uploader was forced to use. If you're unsure, ask for the contrib version used by others here in the forum. In the most cases people use the "this is a full package" statement within the description.

  3. I have a new installation of RC2, and have added a few contribs such as STS 4.5.8, SEO Url's, and Sitemap SEO. They all work great, however I really need to get to work on the images. I've tried installing the Ultrapics MS2 image add-on pack (several times, and several versions) and have followed the instructions precisely, but I cannot get it working. Has anyone had any luck getting this to work with RC2?? Or are there any other suggestions for contributions that work well for this?

     

    This works well, look at this. Read also the comments given in the thread for this contrib: Thread

     

    BJ

  4. I tried doing a search on a nonexistent item and then sent an email with the form with äöüÄÖÜß in it and it was received successfully so it would appear to be a problem with your setup.

     

    Jack

     

    Oh, sorry, my explanation was not clear enough. It's not a problem with the e-mail form. I cannot find items/descriptions with the search if such a char is in the keyword.

     

    BJ

  5. No offense taken, at all. :)

     

    As to why, it was just easier to do it that way. If there is a large enough request for it, I will change the code but I think the likelihood of it causing a problem is small. Javascript is, after all, used elsewhere in the shop (create account, checkout) and that isn't a problem, at least that I've ever seen. Although, such javascript code should be backed up with php code but I didn't see a great need for it. I could be mistaken though.

     

    Jack

     

    Once again. FWR told me a way to pass special language chars through SecurityPro. Now i have the problem described in my former post.

     

    Question:

    It's necessary to handle language specific characters like äöüÄÖÜß (i'm german). Product names and descriptions stored as ISO. Is it possible to cast the special chars to e.g. ä a.s.o. before posting the keywords to the search? Otherwise the search will find nothing...

     

    Thank you in advance!

  6. I have another question. It's necessary to handle language specific characters like äöüÄÖÜß (i'm german). Product names and descriptions stored as ISO. Is it possible to cast the special chars to e.g. ä a.s.o. before posting the keywords to the search? Otherwise the search will find nothing...

     

    Forget the last, i'm blind.

  7. No offense taken, at all. :)

     

    As to why, it was just easier to do it that way. If there is a large enough request for it, I will change the code but I think the likelihood of it causing a problem is small. Javascript is, after all, used elsewhere in the shop (create account, checkout) and that isn't a problem, at least that I've ever seen. Although, such javascript code should be backed up with php code but I didn't see a great need for it. I could be mistaken though.

     

    Jack

     

    Ok, hopefully you push this contrib forward.

     

    I have another question. It's necessary to handle language specific characters like äöüÄÖÜß (i'm german). Product names and descriptions stored as ISO. Is it possible to cast the special chars to e.g. ä a.s.o. before posting the keywords to the search? Otherwise the search will find nothing...

     

    Thank you in advance!

  8. Hi Robert,

     

    one question. It's necessary to pass through special characters like äüöÄÜÖß posted from the search box. What's the way to do it? I've found it works if i modify the function like this:

     

    function tep_clean_get__recursive($get_var)
     {
     if (!is_array($get_var))
     return preg_replace("/[^ {}a-zA-Z0-9ßäüöÄÜÖ_.-]/i", "", urldecode($get_var));
    
     // Add the preg_replace to every element.
     return array_map('tep_clean_get__recursive', $get_var);
     }

     

    What do you think, do you see any problems? Please comment and point me in the right direction!

     

    Thank you in advance

    BJ

  9. 							   'text' => '<table border="0" width="100%" cellspacing="0" cellpadding="1"><tr><td class="infoBoxContents" valign="top" colspan="3">' . BOX_ADVSEARCH_KW . '</td></tr><tr><td class="infoBoxContents" valign="top" colspan="3">' . tep_draw_hidden_field('search_in_description','1') . tep_draw_hidden_field('inc_subcat','1') . tep_draw_input_field('keywords', '', 'size="15" maxlength="30" style="width: ' . (BOX_WIDTH) . 'px" onFocus="form.keywords.value=\'\'"') . '</td></tr>' .

     

    Jack

     

    Thanks a lot, works like a charm! :-)

     

    I know, i'm a pain in the neck, but i have another issue. The code tests valid entries of the e-mail form by javascript, maybe disabled by some customers. What's the reason for to do so instead of using the validation functions, e.g. as in contact_us?

     

    Hopefully you don't misunderstand me, i don't want to grouch. I'm very appreciated to benefit from your work, coding and tips.

     

    Thank you in advance

     

    BJ

  10. I checked the button code here and it works fine so there muct be a problem in your installation or something on the server that is preventing it, assuming that you are actually filling in the form, of course.

     

    Jack

     

    Just a note: I've found that it is necessary to add tep_hide_session_id to the search box form for browsers with secure configuration.

  11. I checked the button code here and it works fine so there muct be a problem in your installation or something on the server that is preventing it, assuming that you are actually filling in the form, of course.

     

    Jack

     

    Mysterious. Because it works fine with your provided submit button code, but not with the tep_image_submit.

     

    Perhaps you can help me with another modification. I have main categories with no products in, but with sub categories storing the products. The search did not find anything if a main category is selected in the search box. I want to force the search box to search also in the sub categories of the selected main cat. Is this possible?

     

    Thank you in advance!

  12. The </a> is a mistake and should be removed. I don't see a problem with the rest of it so maybe the </a> is the problem.

     

    Jack

     

    Thank you for your help. Unfortunately it doesn't work. I will be redirected to advanced_search.php with the warning, that one field must be filled as a minimum. Also no e-mail will be processed. Any suggestion?

     

    Thank you!

  13. Hi Jack,

     

    thank you for the contribution - a very good one.

     

    Questions

     

    In product_listing.php, i want to alter the submit button to the style used in contact_us.php. I've added the following:

     

    '<tr><td height="5"></td></tr><tr><td colspan="2" align="right" class="productListing-data">' . tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE, 'name="request_submit"') . '</a></td></tr>' .
    '</table>');

     

    But it doesn't work. Can you point me in right direction? Thank you in advance!

    I can't also understand the closing </a>...

     

    BJ

  14. hi, i have installed ultrapics and it works great! the only thing i'd like to do is change the layout and have the images displayed in rows of 2 pictures instead of three. could someone help please? thanks!

     

    I've made the same, but cannot remember the steps quickly. Try to replace catalog/includes/modules/additional_images.php with this:

     

    <!-- // BOF MaxiDVD: Modified For Ultimate Images Pack! //-->
       <tr>
         <td>
         <table width="100%">
           <tr>
    <?php if (($product_info['products_image_sm_1'] != '') && ($product_info['products_image_xl_1'] == '')) { ?>
             <td align="center" class="smallText"><?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_1'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?></td>
    <?php } elseif (($product_info['products_image_sm_1'] != '') && ($product_info['products_image_xl_1'] != '')) { ?>
             <td align="center" class="smallText"><?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_xl_1']) . '" target="_blank" rel="lightbox[' . $product_info['products_name'] . ']">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_1'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?></td>
    <?php } elseif (($products_info['products_image_sm_1'] == '') && ($product_info['products_image_xl_1'] != '')) { ?>
             <td align="center" class="smallText"><?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_xl_1'], $product_info['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?></td>
    <?php } else {echo '<td></td>';} ?>
    <?php if (($product_info['products_image_sm_2'] != '') && ($product_info['products_image_xl_2'] == '')) { ?>
             <td align="center" class="smallText"><?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_2'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?></td>
    <?php } elseif (($product_info['products_image_sm_2'] != '') && ($product_info['products_image_xl_2'] != '')) { ?>
             <td align="center" class="smallText"><?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_xl_2']) . '" target="_blank" rel="lightbox[' . $product_info['products_name'] . ']">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_2'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?></td>
    <?php } elseif (($products_info['products_image_sm_2'] == '') && ($product_info['products_image_xl_2'] != '')) { ?>
             <td align="center" class="smallText"><?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_xl_2'], $product_info['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?></td>
    <?php } else {echo '<td></td>';} ?>
           </tr>
           <tr>
    <?php if (($product_info['products_image_sm_3'] != '') && ($product_info['products_image_xl_3'] == '')) { ?>
             <td align="center" class="smallText"><?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_3'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?></td>
    <?php } elseif (($product_info['products_image_sm_3'] != '') && ($product_info['products_image_xl_3'] != '')) { ?>
             <td align="center" class="smallText"><?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_xl_3']) . '" target="_blank" rel="lightbox[' . $product_info['products_name'] . ']">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_3'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?></td>
    <?php } elseif (($products_info['products_image_sm_3'] == '') && ($product_info['products_image_xl_3'] != '')) { ?>
             <td align="center" class="smallText"><?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_xl_3'], $product_info['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?></td>
    <?php } else {echo '<td></td>';} ?>
    <?php if (($product_info['products_image_sm_4'] != '') && ($product_info['products_image_xl_4'] == '')) { ?>
             <td align="center" class="smallText"><?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_4'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?></td>
    <?php } elseif (($product_info['products_image_sm_4'] != '') && ($product_info['products_image_xl_4'] != '')) { ?>
             <td align="center" class="smallText"><?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_xl_4']) . '" target="_blank" rel="lightbox[' . $product_info['products_name'] . ']">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_4'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?></td>
    <?php } elseif (($products_info['products_image_sm_4'] == '') && ($product_info['products_image_xl_4'] != '')) { ?>
             <td align="center" class="smallText"><?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_xl_4'], $product_info['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?></td>
    <?php } else {echo '<td></td>';} ?>
           </tr>
           <tr>
    <?php if (($product_info['products_image_sm_5'] != '') && ($product_info['products_image_xl_5'] == '')) { ?>
             <td align="center" class="smallText"><?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_5'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?></td>
    <?php } elseif (($product_info['products_image_sm_5'] != '') && ($product_info['products_image_xl_5'] != '')) { ?>
             <td align="center" class="smallText"><?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_xl_5']) . '" target="_blank" rel="lightbox[' . $product_info['products_name'] . ']">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_5'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?></td>
    <?php } elseif (($products_info['products_image_sm_5'] == '') && ($product_info['products_image_xl_5'] != '')) { ?>
             <td align="center" class="smallText"><?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_xl_5'], $product_info['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?></td>
    <?php } else {echo '<td></td>';} ?>
    <?php if (($product_info['products_image_sm_6'] != '') && ($product_info['products_image_xl_6'] == '')) { ?>
             <td align="center" class="smallText"><?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_6'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?></td>
    <?php } elseif (($product_info['products_image_sm_6'] != '') && ($product_info['products_image_xl_6'] != '')) { ?>
             <td align="center" class="smallText"><?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_xl_6']) . '" target="_blank" rel="lightbox[' . $product_info['products_name'] . ']">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_6'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?></td>
    <?php } elseif (($products_info['products_image_sm_6'] == '') && ($product_info['products_image_xl_6'] != '')) { ?>
             <td align="center" class="smallText"><?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_xl_6'], $product_info['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?></td>
    <?php } else {echo '<td></td>';} ?>
           </tr>
         </table>
         </td>
       </tr>
    <!-- // BOF MaxiDVD: Modified For Ultimate Images Pack! //-->
    

  15. Jack,

     

    I have installed the program and eveything went well. I ran a test and I got the following message.

     

    Test Results

     

    Missing Database Error:

    The products_head_title_tag field cannot be found in the products_description table.

    The categories_htc_title_tag field cannot be found in the categories_description table.

    The manufacturers_htc_title_tag field cannot be found in the manufacturers_info table.

     

    Please can you explain what I should do to rectify these error messages.

     

    I love the look of the program and am excited about putting it into play.

     

    As a matter of interest, should I also upload a new sitemap to google on the back of this installation?

     

    Thank you for your assistance

     

    I have the same error after upgrading to 3.05 and to 3.06. :-)

  16. I've uploaded a variant of the code. It will compare a definded session id instead of the admins IP address. This is useful for folks using "shared SSL certificate" provided by mass hosters (e.g. Hosteurope, 1und1, Strato a.s.o.).

     

    Furthermore, the suggested warning message of Nathan Robertson is included. I've dropped also an SQL statement in order to provide german language.

     

    Contribution: Simple Down For Maintenance

     

    Please comment!

     

    Black Jack 21

×
×
  • Create New...