Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Salvo

Pioneers
  • Posts

    1,001
  • Joined

  • Last visited

Posts posted by Salvo

  1. have you tried the query without the enclosed tables apostrophes.

     

    $links_query ?= mysql_query('SELECT `link_category_id` , `link_id` , `link_title` , `link_url` , `link_description` , `link_contact` , `link_email` , `link_reciprocal` , `link_rating` , `link_date` , `link_status` FROM `exchange_links_links`');
    ? ? if ($row = mysql_fetch_array($links_query)) {

     

    change to

     

    $links_query ?= mysql_query('SELECT link_category_id, link_id, link_title, link_url, link_description, link_contact, link_email, link_reciprocal, link_rating, link_date, link_status FROM exchange_links_links');
    ? ? if ($row = mysql_fetch_array($links_query)) {

    The problem is that I don't have exchange_links_links on the latest contribution.. Maybe it was on an old one or I have something missing..

     

    has anybody installed these latest two contribution?

  2. Hi all

     

    Link manger; this below and works very well

    http://www.oscommerce.com/community/contributions,1256

     

     

    I have installed the checklinks contribution below, but it seams that it doesn't work

    http://www.oscommerce.com/community/contributions,1322

     

    this is what I get:

    Warning: Supplied argument is not a valid MySQL result resource in /home/salvo/public_html/london/admin/checklinks.php on line 46 Sorry, no records were found!

     

    Does anybody have it working?

     

     

    Thanks

     

    Salvo

  3. HI all

     

    I have this beautiful contribution installed and works very well for me.

    I have 1 need and I think the many other like the idea.

     

    Can anybody put a together a little code to show the category on top of each group of recommended by?

    ie

    -- We also Recommend Products:

     

    DVD

    image DVD 1

    image DVD 2

     

    CD

    image CD 1

    image CD 2

     

    Hope I made myself clear

     

     

    Salvo

  4. Hi all

     

    I am sorry for asking, but I have been reading many posts from people that added contributions to create Thumb images and didn't work proberly.

     

    You could be kind enough to advice on which contribution is best to create Thumb.

     

    I am told that my sever has GM 1.x or imagemagick

     

    Any adivice on best contribution and easy to add would be appreciate

     

    Thanks

     

    Salvo

  5. how about when you want to delete an additional image?

    At momente it give the option to delete it but it won't show the image you are deleting. just the description and name..

     

    here what you have to do to have the image too. so you will not make mistake..

    about line 1090

     

    Just add the bold

     

    case 'delete_images':

    $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_NEW_IMAGES . '</b>');

    $contents = array('form' => tep_draw_form('delete_images', FILENAME_CATEGORIES, 'action=del_images&cPath=' . $cPath . '&pID=' . $HTTP_GET_VARS['pID']));

    $contents[] = array('text' => TEXT_DEL_IMAGES_INTRO);

     

    $images_product = tep_db_query("SELECT additional_images_id, images_description, medium_images FROM " . TABLE_ADDITIONAL_IMAGES . " where products_id = '" . $HTTP_GET_VARS['pID'] . "'");

    if (!tep_db_num_rows($images_product)) {

    $contents[] = array('align' => 'center', 'text' => '<br><font color="red">No Additional Images!</font>');

    $contents[] = array('align' => 'center', 'text' => '<br><a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $HTTP_GET_VARS['pID']) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');

    } else {

    while ($new_images = tep_db_fetch_array($images_product)) {

    $contents[] = array('text' => ' ' . tep_image(DIR_WS_CATALOG_IMAGES_ATTITIONAL . $new_images['medium_images'], $new_images['images_description'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'align="absmiddle"') . '<br><br> (' . $new_images['medium_images'] . ')');

    $contents[] = array('text' => ' ' . tep_draw_checkbox_field('additional_images_id[]', $new_images['additional_images_id'], true) . $new_images['images_description'] . ' (' . $new_images['medium_images'] . ')<hr>');

    }

    $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_delete.gif', IMAGE_SAVE) . ' <a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $HTTP_GET_VARS['pID']) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');

    }

    break;

  6. Hello everyone,

    I've just installed this contribution and everything is working great. There's one item I wonder if someone might be able to help me with: can the Popup Image's file name be shown in the Admin section (as the Products Image file name currently is):

     

    add_images_admin.gif

     

    What code do I have to add so that the Edit page of the Admin section displays the name of the Popup Image file currently assigned to the product (it would go where it is orange)?

     

    Thank you in advance for your help,

    BD

     

    :D

    did you find the answer?

     

    here it is:

     

    in categories.php

     

    around line 454

    add products_image_pop

    **********

     

    if ($action == 'new_product') {

    $parameters = array('products_name' => '',

    'products_description' => '',

    'products_url' => '',

    'products_id' => '',

    'products_quantity' => '',

    'products_model' => '',

    'products_image' => '',

    'products_image_pop' => '', 'products_price' => '',

    'products_weight' => '',

    'products_date_added' => '',

    'products_last_modified' => '',

    'products_date_available' => '',

    'products_status' => '',

    'products_tax_class_id' => '',

    'manufacturers_id' => '');

    **********

     

    a little be below line 468

     

    $product_query = tep_db_query("select pd.products_name, pd.products_description, pd.products_url, p.products_id, p.products_quantity, p.products_model, p.products_image, p.products_image_pop, p.products_price, p.products_weight, p.products_date_added, p.products_last_modified, date_format(p.products_date_available, '%Y-%m-%d') as products_date_available, p.products_status, p.products_tax_class_id, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . (int)$HTTP_GET_VARS['pID'] . "' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "'");

     

     

    Salvo

  7. HI all

     

    The additional images has a field to enter description. I have created / amended to be able to enter the decription in multi language (as many as you have).

     

    Is anybody interested? if there is demand, I will post and try to implement it further as it might not be osc complience..

     

    Thanks

     

    Salvo

  8. To the users asking for instructions:

    Instructions can be found in readme.txt.

    Use only the simple installation if your OSC is a brand new installation.

    If you have any MOD, use the advanced instructions. They are quite straightforward.

    HI,

     

    I can't see the Advanced instructions in the download area......

    t

    I am after the watermark only

    sorry..

     

    Salvo

  9. HI all

     

    I am not quite use how the watermark should work, but it doesn't work in my site..

     

    I have puto the files how it said in readme.txt

     

    anywhere the image.php + watermark.png

    water.htaccess where are the images which I like to watermark....

     

    Do I have do to anything else?

     

    I have the big image in a different directory the the small.

     

    images/images_big/

     

    I have little modification in the popup, and I like to watermark the popup..

     

    Should it work?

     

    Salvo

  10. Hi again,

     

    I am trying to build a nice gallery (and osc gallery) that can be used to sell photo, picture or others) with this additional images...

     

    I need some help by an expert in being able to upload/ many photos at once..

     

    have a look my pop up images (where there are additional images) it is a very nice way of showing the photos, but it is not good if you have upload 1 by 1...

     

    Thanks for help

     

    If the origianl authors would like to help, I would appreciate

     

    of course, everything will be as a contributions once done

     

    Thanks

     

    Salvo

  11. Hi to all again

     

    Is there someone using additional images that would like to help in expanding this contribution?

     

    Or maybe the author would like to add this feature to a beautiful contribution?

     

    When clicking add image, have the option to add more images than just 1 image as said above.

     

    Thank you all

     

    ANY COMMENT, HELP IS APPRECIATED.

     

    Salvo

  12. Hi all,

     

    I looking to implement the attitional images in the same way the "More_Pics_6 for 2.2 ms2" http://www.oscommerce.com/community/contributions,1611 implemented theirs...

     

    and I need some help...

     

    The additional images works in a way that the script search the table "additional_images", and displays all the small images in the products_info.php

     

    What it does now:

    Clicking on the small image, "popup_images.php" a window with the larger image opens.

     

    What I need to do

    When the window is open instead of showing only the big image, I would like to show all the small images too. When I click on any small image in the popup window, the big will change to that clicked.

     

    I have tried but I get always error. Unfortunatelly, the More_Pics_6 works in different way and I can't follow it..

     

    Thanks for any help

     

    Salvo

     

    PS: one VERY GOOD example is

    Gallery integrated http://www.oscommerce.com/community/contributions,1171

     

    I like ti very much, but it doesn't use a table to for the images... I would like to do the same with ADDITIONAL IMAGES

  13. amending the lines to include stripslashes() around line 61 of admin/events_manager.php seemed to do the trick if you need to do this. ie if you have Magic Quotes GPC turrned on:

    'title' => tep_db_prepare_input(stripslashes($HTTP_POST_VARS['title'][$language_id])),
    ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?'description' => tep_db_prepare_input(stripslashes($HTTP_POST_VARS['description'][$language_id])),

    Hi all

     

    can anyone them me why it doesn't work for me?

     

    'title' => tep_db_prepare_input(stripslashes($HTTP_POST_VARS['title'][$language_id])),

    'description' => tep_db_prepare_input(stripslashes($HTTP_POST_VARS['description'][$language_id])),

    'event_image' => tep_db_prepare_input($HTTP_POST_VARS['event_image']),

    'OSC_link' => tep_db_prepare_input(stripslashes($HTTP_POST_VARS['OSC_link'])),

    OK, THIS IS NOT THE CORRECT ANSWER

     

    This is why it didn't work...

     

    the stripslashes should be place the the echo code ..

     

    ie:

    echo stripslashes($event_array['description'])

  14. amending the lines to include stripslashes() around line 61 of admin/events_manager.php seemed to do the trick if you need to do this. ie if you have Magic Quotes GPC turrned on:

    'title' => tep_db_prepare_input(stripslashes($HTTP_POST_VARS['title'][$language_id])),
    ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?'description' => tep_db_prepare_input(stripslashes($HTTP_POST_VARS['description'][$language_id])),

    Hi all

     

    can anyone them me why it doesn't work for me?

     

    'title' => tep_db_prepare_input(stripslashes($HTTP_POST_VARS['title'][$language_id])),

    'description' => tep_db_prepare_input(stripslashes($HTTP_POST_VARS['description'][$language_id])),

    'event_image' => tep_db_prepare_input($HTTP_POST_VARS['event_image']),

    'OSC_link' => tep_db_prepare_input(stripslashes($HTTP_POST_VARS['OSC_link'])),

  15. HI all

     

    I have just downloaded the Events Calendar contributions for MS2, it works very very well. and I like it...

     

     

    But I have just noticed that it doesn't creats event for the whole period, or at leat copy them..

     

    ie:

     

    event start on 20 May 2004 to 25 May 2004.

     

    In the calendar shows only the first day: 20 Ma 2004. that means if someone looks for events on the 23 May 2004, as far as the Event calendar is concern, there are no events on that day.... DO YOU SEE WHAT I MEAN?

     

    My question... is anybody interested in this? has anybody done it?

     

    1- way would be to copy the event day by day in the same way that e product is copied, ( I might be able to do it myself ).

     

    2- way would be that a script would create all the events from date.. to date...

    but I would need help....

     

    CAN ONYBODY HELP WITH THIS?

     

    Thanks for help

     

    Salvo

×
×
  • Create New...