Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.


  • Content count

  • Joined

  • Last visited

About firben

  • Birthday 11/03/1978

Profile Information

  1. Hello jim, Thanks for your reply, but my coding seems to limit me here... I've had a look at the reviews coding, and tried to replace some bits to the one used there, but it didn't seem to work (definitely my fault.. ) I guess that what i can't figure out is how to add the image table to get the data from it.. any hints?
  2. Did the trick! Thanks for the help (i was a but worried to install the newest contrib. because my product listing page is heavily contributed, and my coding isn't that good...) The only function i needed was to show the products in a grid and nothing else, and this sure did the trick :-D Tank you again
  3. I'm having a little problem with this contribution, combined with a contribution called Optional Related Products... Can anybody spot anything wrong here? The code starts off like this: $orderBy = 'ORDER BY '; $orderBy .= (RELATED_PRODUCTS_RANDOMIZE)?'rand()':'pop_order_id, pop_id'; $orderBy .= (RELATED_PRODUCTS_MAX_DISP)?' limit ' . RELATED_PRODUCTS_MAX_DISP:''; $attributes = " SELECT pop_products_id_slave, products_name, products_model, products_price, products_quantity, products_tax_class_id, products_image FROM " . TABLE_PRODUCTS_RELATED_PRODUCTS . ", " . TABLE_PRODUCTS_DESCRIPTION . " pa, ". TABLE_PRODUCTS . " pb and further down the page, where images are processed, it looks like this: // show thumb image if Enabled if (RELATED_PRODUCTS_SHOW_THUMBS == 'True') { echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_id_slave) . '">' . "\n" . tep_image(DIR_WS_IMAGES . $reviews['image_filename'], $attributes_values['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"').'</a><br>' . "\n"; } $caption = ''; if (RELATED_PRODUCTS_SHOW_NAME == 'True') { $caption .= '<p>' . $products_name_slave; if (RELATED_PRODUCTS_SHOW_MODEL == 'True') { Does anybody have any hint on to what i could change, to make this work? Maybe you will need to know that the page this code in on, is placed in includes/modules Thank you in advance
  4. hello, I installed the previous version (Product Thumbnail listing V1.1) nut i guess my problem can be similar in this contribution. I installed with no problems at all! the only thing is that the border around each box only shows up on IE and Safari (not Firefox) Does anybody have an idea on what could fix this? Thanks for your help
  5. Hello, I just installed the latest version of this contribbution, and everything seems to be working fine, except for the thumbs... I am also running More_Pics_6 so i guess this has something to do with it.. but i am no php expert... It har helped in other instanses to change ['products_image'] to ['image_filename'] but i just can't seem to get it to work this time.. has anybody got any experience with this? Thank you in advance :-D
  6. firben

    Ask a Question

    I've installed the eazyCommentz cotribution, but have problems editing the feel and looks of it.. anybody that can helt me make the tekst blend in with the font and size from the stylesheet?
  7. I'm tempted to say i love you :-D :-D Thank you very much!
  8. can anybody spot something wrong in my reviews.php file? The pictures don't show... <?php /* $Id: reviews.php 1739 2007-12-20 00:52:16Z hpdl $ $Loc: catalog/ $ $Mod: 20081228 More Pics 2.0.3 kymation $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_REVIEWS); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_REVIEWS)); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </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 //--> </table></td> <!-- body_text //--> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_reviews_new.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <?php $reviews_query_raw = "select r.reviews_id, left(rd.reviews_text, 100) as reviews_text, r.reviews_rating, r.date_added, p.products_id, pd.products_name, pi.image_filename, r.customers_name from " . TABLE_REVIEWS . " r, " . TABLE_REVIEWS_DESCRIPTION . " rd, " . TABLE_PRODUCTS . " p left join " . TABLE_PRODUCTS_IMAGES . " pi on p.products_id = pi.products_id and pi.product_page = '1', " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = r.products_id and r.reviews_id = rd.reviews_id and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' and rd.languages_id = '" . (int)$languages_id . "' order by r.reviews_id DESC"; $reviews_split = new splitPageResults($reviews_query_raw, MAX_DISPLAY_NEW_REVIEWS); if ($reviews_split->number_of_rows > 0) { if ((PREV_NEXT_BAR_LOCATION == '1') || (PREV_NEXT_BAR_LOCATION == '3')) { ?> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="smallText"><?php echo $reviews_split->display_count(TEXT_DISPLAY_NUMBER_OF_REVIEWS); ?></td> <td align="right" class="smallText"><?php echo TEXT_RESULT_PAGE . ' ' . $reviews_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info'))); ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php } $reviews_query = tep_db_query($reviews_split->sql_query); while ($reviews = tep_db_fetch_array($reviews_query)) { ?> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id=' . $reviews['products_id'] . '&reviews_id=' . $reviews['reviews_id']) . '"><u><b>' . $reviews['products_name'] . '</b></u></a> <span class="smallText">' . sprintf(TEXT_REVIEW_BY, tep_output_string_protected($reviews['customers_name'])) . '</span>'; ?></td> <td class="smallText" align="right"><?php echo sprintf(TEXT_REVIEW_DATE_ADDED, tep_date_long($reviews['date_added'])); ?></td> </tr> </table></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td width="<?php echo SMALL_IMAGE_WIDTH + 10; ?>" align="center" valign="top" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id=' . $reviews['products_id'] . '&reviews_id=' . $reviews['reviews_id']) . '">' . tep_image(DIR_WS_IMAGES . $reviews['products_image'], $reviews['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>'; ?></td> <td valign="top" class="main"><?php echo tep_break_string(tep_output_string_protected($reviews['reviews_text']), 60, '-<br>') . ((strlen($reviews['reviews_text']) >= 100) ? '..' : '') . '<br><br><i>' . sprintf(TEXT_REVIEW_RATING, tep_image(DIR_WS_IMAGES . 'stars_' . $reviews['reviews_rating'] . '.gif', sprintf(TEXT_OF_5_STARS, $reviews['reviews_rating'])), sprintf(TEXT_OF_5_STARS, $reviews['reviews_rating'])) . '</i>'; ?></td> <td width="10" align="right"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php } ?> <?php } else { ?> <tr> <td><?php new infoBox(array(array('text' => TEXT_NO_REVIEWS))); ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php } if (($reviews_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '2') || (PREV_NEXT_BAR_LOCATION == '3'))) { ?> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="smallText"><?php echo $reviews_split->display_count(TEXT_DISPLAY_NUMBER_OF_REVIEWS); ?></td> <td align="right" class="smallText"><?php echo TEXT_RESULT_PAGE . ' ' . $reviews_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info'))); ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php } ?> </table></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'); ?>
  9. Hello, I have installed a contributions that automatically hides all standart osCommerce table bacjgrounds and clip-art images.. At the same time it deletes hides the banner area at hte bottom, and gennerally makes the shop very streamline in just a few seconds... The thing is that it seems to dissable the funtion og showing subcategories as images (with the name underneath it..) Does anyone know where i have to look, to recover this function? Thank you in advance..
  10. firben

    News Blog V1.0

    In adition, i have noticed that once i have posted a news, the link for "new article" dissapears.. Any ideas here?
  11. firben

    News Blog V1.0

    Hello, I have installed this contrib. and all seems fine.. Fixed the danish translation too, so if anybody wants, i can send the danish files.. My only problem is that i can't edit articles that already have been written.. This is the news that i have written, don't show up when i go to "edit" mode.. Any idea what i might have done wrong, or what file i have to see through? I am sure that it is in the admin folder, but where? Thank you in advance..
  12. has anybody figured out how to install this contribution when AttributeSetsPlus 1.3.3 is installed? Some of the coding overlaps each other.. :-S
  13. firben

    Attribute Sets Plus

    I have tried installing this contribution several times. but with the same problem. I have now tried installing on a completely new shop and it works, so i am pretty sure that i am doing something wrong with the manual configuration of a file.. i am just not sure what! My shopping cart is ok, but when i proceed to the checkout_shipping.php i get a blank page.. The admin part seems to be just fine... I have a couple of contributions in there allready, so maybe someone could help out?
  14. Hey Scott, Thanks for the reply. I thought that maybe it would be possible to reuse som of the exiting package to make it possible, but my PHP skills are really nok good enough... Anyway.. I guess i have to live with it as it is right now ;-)
  15. hello, Thanks for a great contr. One question.. Is it possible to sort the Product Options too? I have managed to sort the Product Attributes (the drop down menu) but not the product options (the drop down boxes themselves). Lets say that i have to product options size, and color. I want size to be on top, and color at the bottom.. How can i do this?