Guest Posted July 5, 2008 Share Posted July 5, 2008 (edited) Mootools isn't too large, but it can work wonders.Just updated to 1.4, now includes the TO and FROM for emails To add to another page just use: <img src="social/buttonshare_trans.png" class="socializer" id="social_but" title="<?php echo TITLE; ?>" alt="<?php echo tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('')) . ''); ?>" /> For each button: Title = THE TITLE ALT = THE WEB_ADDRESS the socialiser.js has // EMAIL IT - START var img = new Element('img'); img.alt = 'send to multiply.com'; <----------------- img.src = 'social/images/email.png'; img.injectInside(right); Edited July 5, 2008 by Coopco Quote Link to comment Share on other sites More sharing options...
dailce Posted July 5, 2008 Author Share Posted July 5, 2008 the socialiser.js has // EMAIL IT - START var img = new Element('img'); img.alt = 'send to multiply.com'; <----------------- img.src = 'social/images/email.png'; img.injectInside(right); Opps, just change it to: img.alt = 'Email...'; Quote Link to comment Share on other sites More sharing options...
Guest Posted July 6, 2008 Share Posted July 6, 2008 Opps, just change it to: img.alt = 'Email...'; Thanks Dailce V1.4 works well and does look better. The email seems a bit slow to come up on subsequent attempts (may be a good thing). Quote Link to comment Share on other sites More sharing options...
EuroTimmy Posted July 6, 2008 Share Posted July 6, 2008 Hey Dailce, I'm following the upgrade path here and loving the changes / additions in each release. Thank you. I have a little issue occurring when using the current (v1.4) installation of the Socializer. When my FF or IE browsers are rendering the 'product_info.php' pages in my site the little magnifying glass icon on my search bar (at the top) now appears to drop down to the next line. Nothing else in that page is moved / modified at all from what I can tell. This issue doesn't happen when I remove the Socialiser lines of code from 'product_info.php' <script language="javascript" type="text/ecmascript" src="social/js/mootools-1.2-core.js"></script> <script language="javascript" type="text/ecmascript" src="social/js/socializer.js"></script> <link href="social/css/socializer.css" rel="stylesheet" type="text/css" /> When I compare the rendered source of the page (View source in browser) with the Socializer code in the page and then once again without the Socializer code in the page the pages look almost identical. There are a couple of rows of whitespace in different line numbers but none of them appear to be within any significant html tags. If you wouldn't mind taking a look to see if there is anything you could suggest?? My Website Any advice is greatly appreciated!! EuroTimmy Quote Link to comment Share on other sites More sharing options...
dailce Posted July 6, 2008 Author Share Posted July 6, 2008 Hey Dailce,I'm following the upgrade path here and loving the changes / additions in each release. Thank you. I have a little issue occurring when using the current (v1.4) installation of the Socializer. When my FF or IE browsers are rendering the 'product_info.php' pages in my site the little magnifying glass icon on my search bar (at the top) now appears to drop down to the next line. Nothing else in that page is moved / modified at all from what I can tell. This issue doesn't happen when I remove the Socialiser lines of code from 'product_info.php' <script language="javascript" type="text/ecmascript" src="social/js/mootools-1.2-core.js"></script> <script language="javascript" type="text/ecmascript" src="social/js/socializer.js"></script> <link href="social/css/socializer.css" rel="stylesheet" type="text/css" /> When I compare the rendered source of the page (View source in browser) with the Socializer code in the page and then once again without the Socializer code in the page the pages look almost identical. There are a couple of rows of whitespace in different line numbers but none of them appear to be within any significant html tags. If you wouldn't mind taking a look to see if there is anything you could suggest?? My Website Any advice is greatly appreciated!! EuroTimmy Yes found the error on your site. Check the CSS file. input { margin-bottom: 2px; margin-top: 2px; margin-right: 5px; } Remove that code or change it. Quote Link to comment Share on other sites More sharing options...
EuroTimmy Posted July 7, 2008 Share Posted July 7, 2008 Yes found the error on your site. Check the CSS file. input { margin-bottom: 2px; margin-top: 2px; margin-right: 5px; } Remove that code or change it. Awesome... only thing is I am not sure where that is coming from. I can't find which part in the CSS to edit. I'm sorry to ask but could you be specific to what part I'm looking for? Thank you Quote Link to comment Share on other sites More sharing options...
Guest Posted July 7, 2008 Share Posted July 7, 2008 Awesome... only thing is I am not sure where that is coming from. I can't find which part in the CSS to edit. I'm sorry to ask but could you be specific to what part I'm looking for? Thank you The end of the socializer.css file. Quote Link to comment Share on other sites More sharing options...
Guest Posted July 8, 2008 Share Posted July 8, 2008 Opps, just change it to: img.alt = 'Email...'; Still the same in version 1.5 The email share still seems slow to open. Quote Link to comment Share on other sites More sharing options...
sukarya Posted July 10, 2008 Share Posted July 10, 2008 Hi, This is great contribution, quick install and slick look - thanks! I have installed v1.5 and searched for answers in this forum but nothing... help please? 1. no pop up in firefox (both new window and pop up) 2. email takes quite a while to send (with the processing gif) 3. email wasnt sent... Thanks, Sharon. Quote Installed contributions: Ultimate_SEO, Article Manager 1.5, Dynamic SiteMap 2.0, Infopages, Google SiteMap XMl w/admin 2.1, HeaderTagControler 2.6.1, FCKosc 2.21, X-sell 2.3, Google Analytics Modul, All Products, Page Cache 1.5, EasyPopulate2.7d, Multi Product Manager 2.5, Define Main Page, and probably few others... Link to comment Share on other sites More sharing options...
Guest Posted July 10, 2008 Share Posted July 10, 2008 Hi, This is great contribution, quick install and slick look - thanks! I have installed v1.5 and searched for answers in this forum but nothing... help please? 1. no pop up in firefox (both new window and pop up) 2. email takes quite a while to send (with the processing gif) 3. email wasnt sent... Thanks, Sharon. Works for me in FF. Quote Link to comment Share on other sites More sharing options...
sukarya Posted July 10, 2008 Share Posted July 10, 2008 Works for me in FF. Thanks - Solved: problem with server. Still, want to make few changes (not a coder but trying to make them myself...: 1. make the "send to friend" as a stand alone button, parallel to the share button (and same function will be right from button) 2. usability issues: A. Making the error response more specific to the user (sent from + send to errors) - i saw that the code goes through the chars both of those fields. B. After an email error was displayed to the user, basically he needs to re-enter the info (we REEEEALLY want him to send it...) so we need to create a back button OR "any click" in the box will drive him right back to the email from/to pop up (basically: back option) Any help on this one will be a great! (i tried to didnt work out, will give it another shot next week) Great contrib! Quote Installed contributions: Ultimate_SEO, Article Manager 1.5, Dynamic SiteMap 2.0, Infopages, Google SiteMap XMl w/admin 2.1, HeaderTagControler 2.6.1, FCKosc 2.21, X-sell 2.3, Google Analytics Modul, All Products, Page Cache 1.5, EasyPopulate2.7d, Multi Product Manager 2.5, Define Main Page, and probably few others... Link to comment Share on other sites More sharing options...
Kean Posted August 2, 2008 Share Posted August 2, 2008 Everything works well! Does anyone know where i change where the box is positioned? I don't see a simple area where it defines this. I would like it to "pop upwards" instead of downwards. Usually i can position it by simple negative pixels but i cannot find the code that affects the positioning. Thanks Kean. Quote Link to comment Share on other sites More sharing options...
Fullasoul Posted August 24, 2008 Share Posted August 24, 2008 OK, I'm very lost....hopefully someone won't mind helping me out with this :( This looks like a great contrib and as such I've tried to install it....however, after following the directions, I see absolutely no change whatsoever on the site. When I select a product, I see only what was always there, and not the 'add' button. I should say that I did make one assumption during the install....the instructions said to modify products_info.php, but I only have a product_info.php (no 's'), so that's the file I modified. Could anyone help me figure out where I'm going wrong with this? Quote Link to comment Share on other sites More sharing options...
Guest Posted August 25, 2008 Share Posted August 25, 2008 (edited) OK, I'm very lost....hopefully someone won't mind helping me out with this :( This looks like a great contrib and as such I've tried to install it....however, after following the directions, I see absolutely no change whatsoever on the site. When I select a product, I see only what was always there, and not the 'add' button. I should say that I did make one assumption during the install....the instructions said to modify products_info.php, but I only have a product_info.php (no 's'), so that's the file I modified. Could anyone help me figure out where I'm going wrong with this? product_info.php is correct. Recheck your edits to what was left out. Edited August 25, 2008 by Coopco Quote Link to comment Share on other sites More sharing options...
Fullasoul Posted August 25, 2008 Share Posted August 25, 2008 product_info.php is correct. Recheck your edits to what was left out. hmm...I'm just not seeing any omissions...yet somehow it does not work all for me :( Any chance someone can have a look here for me? Quote Link to comment Share on other sites More sharing options...
Guest Posted August 26, 2008 Share Posted August 26, 2008 hmm...I'm just not seeing any omissions...yet somehow it does not work all for me :( Any chance someone can have a look here for me? Not showing is confirmed. Recheck your edits and make sure that the new files have been uploaded. Quote Link to comment Share on other sites More sharing options...
miamizx Posted August 26, 2008 Share Posted August 26, 2008 Great contribution,, thanks! Quote Link to comment Share on other sites More sharing options...
Fullasoul Posted August 26, 2008 Share Posted August 26, 2008 Not showing is confirmed. Recheck your edits and make sure that the new files have been uploaded. well that's what's confusing me....I have rechecked several times now....in fact if you view the page source when you go to an item page, you'll see the code is there. I wondered whether or not I'd placed the code in the wrong place (I worry when the instructions tell me to just place code anywhere in a file that I'll pick that one wrong place, lol!)....but it's just not making any sense.... Quote Link to comment Share on other sites More sharing options...
Guest Posted August 27, 2008 Share Posted August 27, 2008 well that's what's confusing me....I have rechecked several times now....in fact if you view the page source when you go to an item page, you'll see the code is there. I wondered whether or not I'd placed the code in the wrong place (I worry when the instructions tell me to just place code anywhere in a file that I'll pick that one wrong place, lol!)....but it's just not making any sense.... That was the next point. You need to place it anywhere you want the stuff to appear on the page. Why not post what you have? Quote Link to comment Share on other sites More sharing options...
Fullasoul Posted August 27, 2008 Share Posted August 27, 2008 That was the next point. You need to place it anywhere you want the stuff to appear on the page. Why not post what you have? OK...here's my product_info.php: <?php /* $Id: product_info.php,v 1.87 2002/08/24 10:36:31 project3000 Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCT_INFO); // WebMakers.com Added: Attribute Sorter - Definitions // Move to /languages/english ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <?php // BOF: WebMakers.com Changed: Header Tag Controller v1.0 // Replaced by header_tags.php if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) { require(DIR_WS_INCLUDES . 'header_tags.php'); } else { ?> <title><?php echo TITLE ?></title> <?php } // EOF: WebMakers.com Changed: Header Tag Controller v1.0 ?> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.php"> <script language="javascript"><!-- function popupWindow(url) { window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,re sizable=yes,copyhistory=no,width=100,height=100,screenX=50,screenY=50,top=25,left =25') } //--></script> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <script language="javascript" type="text/ecmascript" src="social/js/mootools-1.2-core.js"></script> <script language="javascript" type="text/ecmascript" src="social/js/socializer.js"></script> <link href="social/css/socializer.css" rel="stylesheet" type="text/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> <?php if (COLUMN_DISPLAY == 'Left' || COLUMN_DISPLAY == 'Both') { ?> <td width="200" valign="top"><table border="0" width="200" cellspacing="<?php echo BOX_SPACING; ?>" cellpadding="0"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <?php } ?> <!-- body_text //--> <td width="100%" valign="top"><form name="cart_quantity" method="post" action="<?php echo tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product', 'NONSSL'); ?>"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <?php $product_info = tep_db_query("select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, p.products_image_seo_name, p.products_mediumimage, p.products_mediumimage_seo_name, p.products_largeimage, p.products_largeimage_seo_name, p.products_image_sm_1, p.products_image_sm_1_seo_name, p.products_image_xl_1, p.products_image_xl_1_seo_name, p.products_image_sm_2, p.products_image_sm_2_seo_name, p.products_image_xl_2, p.products_image_xl_2_seo_name, p.products_image_sm_3, p.products_image_sm_3_seo_name, p.products_image_xl_3, p.products_image_xl_3_seo_name, p.products_image_sm_4, p.products_image_sm_4_seo_name, p.products_image_xl_4, p.products_image_xl_4_seo_name, p.products_image_sm_5, p.products_image_sm_5_seo_name, p.products_image_xl_5, p.products_image_xl_5_seo_name, p.products_image_sm_6, p.products_image_sm_6_seo_name, p.products_image_xl_6, p.products_image_xl_6_seo_name, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . $HTTP_GET_VARS['products_id'] . "' and pd.products_id = '" . $HTTP_GET_VARS['products_id'] . "' and pd.language_id = '" . $languages_id . "'"); if (!tep_db_num_rows($product_info)) { // product not found in database ?> <tr> <td class="main"><br><?php echo TEXT_PRODUCT_NOT_FOUND; ?></td> </tr> <tr> <td align="right"><br><a href="<?php echo tep_href_link(FILENAME_DEFAULT, '', 'NONSSL'); ?>"><?php echo tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></a></td> </tr> <?php } else { tep_db_query("update " . TABLE_PRODUCTS_DESCRIPTION . " set products_viewed = products_viewed+1 where products_id = '" . $HTTP_GET_VARS['products_id'] . "' and language_id = '" . $languages_id . "'"); $product_info_values = tep_db_fetch_array($product_info); if ($new_price = tep_get_products_special_price($product_info_values['products_id'])) { $products_price = '<s>' . $currencies->display_price($product_info_values['products_price'], tep_get_tax_rate($product_info_values['products_tax_class_id'])) . '</s><br><span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info_values['products_tax_class_id'])) . '</span>'; } else { $products_price = $currencies->display_price($product_info_values['products_price'], tep_get_tax_rate($product_info_values['products_tax_class_id'])); } $products_attributes = tep_db_query("select popt.products_options_name from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . $HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . $languages_id . "'"); if (tep_db_num_rows($products_attributes)) { $products_attributes = '1'; } else { $products_attributes = '0'; } require(DIR_WS_INCLUDES . 'products_next_previous.php'); ?> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <?php // BOF: WebMakers.com Added: Show Category and Image if (SHOW_CATEGORIES=='1') { ?> <tr><td colspan="2"><table align="right"> <tr> <td class="main" align="center"><?php echo tep_image(DIR_WS_IMAGES . tep_get_categories_image(tep_get_products_catagory_id($product_info_values['products_id']))); ?></td> </tr> <tr> <td class="main" align="center"><?php echo tep_get_categories_name(tep_get_products_catagory_id($product_info_values['products_id'])); ?></td> </tr> </table></td></tr> <?php } // EOF: WebMakers.com Added: Show Category and Image ?> <tr height="40"> <td class="pageHeading"><?php echo $product_info_values['products_name']; ?></td> <td align="right" class="pageHeading"><?php echo $products_price; ?></td> </tr> <?php if (PRODUCT_LIST_MODEL) { echo ' <tr>' . "\n" . ' <td colspan="2" class="pageHeading">' . $product_info_values['products_model'] . '</td>' . "\n" . ' </tr>' . "\n"; } ?> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td class="main"><table border="0" cellspacing="0" cellpadding="2" align="right"> <?php if ($product_info_values['products_image'] != '') { ?> <?php if ($product_info_values['products_image_seo_name'] !=''){ $seo_image_name = $product_info_values['products_image_seo_name']; }else{ $seo_image_name = $product_info_values['products_name']; } ?> <tr> <td align="center" class="smallText"> <script language="javascript"><!-- document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info_values['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info_values['products_image'], addslashes($seo_image_name), MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . $product_info_values['products_image_seo_name'] . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>'); //--></script> <noscript> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info_values['products_image']) . '">' . tep_image(DIR_WS_IMAGES . $product_info_values['products_image'], $seo_image_name, MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . $product_info_values['products_image_seo_name'] . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?> </noscript> </td> </tr> <?php } ?> </table><p><?php echo stripslashes($product_info_values['products_description']); ?></p> <?php // BOF MaxiDVD: Modified For Ultimate Images Pack! if (ULTIMATE_ADDITIONAL_IMAGES == 'enable') { include(DIR_WS_MODULES . 'additional_images.php'); } $products_attributes_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "'"); $products_attributes = tep_db_fetch_array($products_attributes_query); if ($products_attributes['total'] > 0) { ?> <tr> <td><table border="3" width="100%" cellspacing="0" cellpadding="2" bordercolor="#D4D4D4"></td> <tr> <td class="main" colspan="2"><center><B><U><?php echo TEXT_PRODUCT_OPTIONS; ?></B></U></td> </tr> <?php //clr 030714 update query to pull option_type $products_options_name_query = tep_db_query("select distinct popt.products_options_id, popt.products_options_name, popt.products_options_type, popt.products_options_length, popt.products_options_comment, popt.products_options_sort_order, products_options_images_enabled from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "' order by popt.products_options_name"); while ($products_options_name = tep_db_fetch_array($products_options_name_query)) { //clr 030714 add case statement to check option type switch ($products_options_name['products_options_type']) { case PRODUCTS_OPTIONS_TYPE_TEXT: //CLR 030714 Add logic for text option $products_attribs_query = tep_db_query("select distinct patrib.options_values_price, patrib.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = '" . $products_options_name['products_options_id'] . "'"); $products_attribs_array = tep_db_fetch_array($products_attribs_query); $tmp_html = '<input type="text" name ="id[' . TEXT_PREFIX . $products_options_name['products_options_id'] . ']" size="' . $products_options_name['products_options_length'] .'" maxlength="' . $products_options_name['products_options_length'] . '" value="' . $cart->contents[$HTTP_GET_VARS['products_id']]['attributes_values'][$products_options_name['products_options_id']] .'"> ' . $products_options_name['products_options_comment']; if ($products_attribs_array['options_values_price'] != '0') { $tmp_html .= '(' . $products_attribs_array['price_prefix'] . $currencies->display_price($products_attribs_array['options_values_price'], $product_info_values['products_tax_class_id']) .')'; } ?> <tr> <td class="main"><?php echo $products_options_name['products_options_name'] . ':'; ?></td> <td class="main"><?php echo $tmp_html; ?></td> </tr> <?php break; case PRODUCTS_OPTIONS_TYPE_RADIO: //CLR 030714 Add logic for radio buttons $tmp_html = '<table>'; // $products_options_query = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pa.options_id = '" . $products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . $languages_id . "'"); if ( PRODUCTS_OPTIONS_SORT_BY_PRICE !='1' ) { $products_options_query = tep_db_query("select pa.products_options_sort_order, pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pa.options_id = '" . (int)$products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . (int)$languages_id . "'" . " order by pa.products_options_sort_order, pov.products_options_values_name"); } else { $products_options_query = tep_db_query("select pa.products_options_sort_order, pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pa.options_id = '" . (int)$products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . (int)$languages_id . "'" . " order by pa.products_options_sort_order, pa.options_values_price"); } $checked = true; while ($products_options_array = tep_db_fetch_array($products_options_query)) { $tmp_html .= '<tr><td class="main">'; $tmp_html .= tep_draw_radio_field('id[' . $products_options_name['products_options_id'] . ']', $products_options_array['products_options_values_id'], $checked); $checked = false; $tmp_html .= $products_options_array['products_options_values_name']; $tmp_html .=$products_options_name['products_options_comment']; if ($products_options_array['options_values_price'] != '0') { $tmp_html .= '(' . $products_options_array['price_prefix'] . $currencies->display_price($products_options_array['options_values_price'], $product_info_values['products_tax_class_id']) .') '; } $tmp_html .= '</tr></td>'; } $tmp_html .= '</table>'; ?> <tr> <td class="main"><?php echo $products_options_name['products_options_name'] . ':'; ?></td> <td class="main"><?php echo $tmp_html; ?></td> </tr> <?php break; case PRODUCTS_OPTIONS_TYPE_CHECKBOX: //CLR 030714 Add logic for checkboxes $products_attribs_query = tep_db_query("select distinct patrib.products_options_sort_order, patrib.options_values_id, patrib.options_values_price, patrib.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = '" . $products_options_name['products_options_id'] . "'"); $products_attribs_array = tep_db_fetch_array($products_attribs_query); echo '<tr><td class="main">' . $products_options_name['products_options_name'] . ': </td><td class="main">'; echo tep_draw_checkbox_field('id[' . $products_options_name['products_options_id'] . ']', $products_attribs_array['options_values_id']); echo $products_options_name['products_options_comment']; if ($products_attribs_array['options_values_price'] != '0') { echo '(' . $products_attribs_array['price_prefix'] . $currencies->display_price($products_attribs_array['options_values_price'], $product_info_values['products_tax_class_id']) .') '; } echo '</td></tr>'; break; default: //clr 030714 default is select list //clr 030714 reset selected_attribute variable $selected_attribute = false; $products_options_array = array(); if ( PRODUCTS_OPTIONS_SORT_BY_PRICE !='1' ) { $products_options_query = tep_db_query("select pa.products_options_sort_order, pov.products_options_values_id, pov.products_options_values_name, pov.products_options_values_thumbnail, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pa.options_id = '" . (int)$products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . (int)$languages_id . "'" . " order by pa.products_options_sort_order, pov.products_options_values_name"); } else { $products_options_query = tep_db_query("select pa.products_options_sort_order, pov.products_options_values_id, pov.products_options_values_name, pov.products_options_values_thumbnail, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pa.options_id = '" . (int)$products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . (int)$languages_id . "'" . " order by pa.products_options_sort_order, pa.options_values_price"); } while ($products_options = tep_db_fetch_array($products_options_query)) { $products_options_array[] = array('id' => $products_options['products_options_values_id'], 'text' => $products_options['products_options_values_name'], 'thumbnail' => $products_options['products_options_values_thumbnail']); if ($products_options['options_values_price'] != '0') { $products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options['price_prefix'] . $currencies->display_price($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') '; } } if (isset($cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name['products_options_id']])) { $selected_attribute = $cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name['products_options_id']]; } else { $selected_attribute = false; } ?> <tr> <td class="main"><?php echo $products_options_name['products_options_name'] . ':'; ?></td> <?php if ($products_options_name['products_options_images_enabled'] == 'false'){ echo '<td class="main">' . tep_draw_pull_down_menu('id[' . $products_options_name['products_options_id'] . ']', $products_options_array, $selected_attribute) . '</td></tr>'; } else { $count=0; echo '<td class="main"><table><tr>'; foreach ($products_options_array as $opti_array){ echo '<td><table cellspacing="1" cellpadding="0" border="0">'; if (OPTIONS_IMAGES_CLICK_ENLARGE == 'true') echo '<td align="center"><a href="java script:popupWindow(\'' . tep_href_link(FILENAME_OPTIONS_IMAGES_POPUP, 'oID=' . $opti_array['id']) .'\')">' . tep_image(DIR_WS_IMAGES . 'options/' . $opti_array['thumbnail'], $opti_array['text'], OPTIONS_IMAGES_WIDTH, OPTIONS_IMAGES_HEIGHT) . '</a></td></tr>'; else echo '<tr><td align="center">' . tep_image(DIR_WS_IMAGES . 'options/' . $opti_array['thumbnail'], $opti_array['text'], OPTIONS_IMAGES_WIDTH, OPTIONS_IMAGES_HEIGHT) . '</td></tr>'; echo '<tr><td class="tinyText" align="center">' . $opti_array['text'] . '</td></tr>'; echo '<tr><td align="center"><input type="radio" name ="id[' . $products_options_name['products_options_id'] . ']" value="' . $opti_array['id'] . '" checked></td></tr></table></td>'; $count++; if ($count%OPTIONS_IMAGES_NUMBER_PER_ROW == 0) { echo '</tr><tr>'; $count = 0; } } echo '</table>'; } ?> </td></tr> <?php } //clr 030714 end switch } //clr 030714 end while ?> </table> <?php } //clr 030714 end if ?> </td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php //// Begin Reviews on Product Information page hack if (MAX_REVIEWS_IN_PRODUCT_INFO <= 0) { //// End Reviews on Product Information page hack $reviews = tep_db_query("select count(*) as count from " . TABLE_REVIEWS . " where products_id = '" . $HTTP_GET_VARS['products_id'] . "'"); $reviews_values = tep_db_fetch_array($reviews); if ($reviews_values['count'] > 0) { ?> <img src="social/buttonshare_trans.png" class="socializer" id="social_but" title=" <?php echo (STORE_NAME); ?> : <?php echo $product_info['products_name']; ?>" alt="<?php echo tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $product_info['products_id'], 'NONSSL'); ?>" /> <tr> <td class="main"><br><?php echo TEXT_CURRENT_REVIEWS . ' ' . $reviews_values['count']; ?></td> </tr> <?php } //// Begin Reviews on Product Information page hack } //// End Reviews on Product Information page hack if ($product_info_values['products_url']) { ?> <tr> <td class="main"><br><?php echo sprintf(TEXT_MORE_INFORMATION, tep_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($product_info_values['products_url']), 'NONSSL', true, false)); ?></td> </tr> <?php } ?> <?php //// Begin Reviews on Product Information page hack if (MAX_REVIEWS_IN_PRODUCT_INFO > 0) { ?> <tr> <td><br><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, substr(tep_get_all_get_params(), 0, -1)) . '">' . tep_image_button('button_write_review.gif', IMAGE_BUTTON_WRITE_REVIEW) . '</a>'; ?></td> <td align="right" class="main"><input type="hidden" name="products_id" value="<?php echo $product_info_values['products_id']; ?>"><?php echo tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td> </tr> </table></td> </tr> <?php $reviews_query = tep_db_query("select r.reviews_id, rd.reviews_text, r.reviews_rating, r.date_added, r.customers_name from " . TABLE_REVIEWS . " r, " . TABLE_REVIEWS_DESCRIPTION . " rd where r.products_id = '" . $HTTP_GET_VARS['products_id'] . "' and rd.reviews_id = r.reviews_id and rd.languages_id = '" . $languages_id . "' order by r.reviews_id DESC"); $num_rows = tep_db_num_rows($reviews_query); if ($num_rows > 0) { $row = 0; while (($reviews_values = tep_db_fetch_array($reviews_query)) && ($row < MAX_REVIEWS_IN_PRODUCT_INFO)) { $row++; $date_added = tep_date_short($reviews_values['date_added']); ?> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td valign="top" class="main"><?php echo sprintf(tep_image(DIR_WS_IMAGES . 'stars_' . $reviews_values['reviews_rating'] . '.gif', sprintf(BOX_REVIEWS_TEXT_OF_5_STARS, $reviews_values['reviews_rating']))) . ' – <i>' . $reviews_values['customers_name'] . ', ' . $date_added . '</i><br>' . htmlspecialchars($reviews_values['reviews_text']) ?></td> </tr> <?php } ?> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td class="smallText"><?php echo sprintf(TEXT_DISPLAY_NUMBER_OF_REVIEWS, '1', $row, $num_rows); ?></td> </tr> <?php if ($num_rows > MAX_REVIEWS_IN_PRODUCT_INFO) { ?> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><a href="<?php echo tep_href_link(FILENAME_PRODUCT_REVIEWS, substr(tep_get_all_get_params(), 0, -1)); ?>"><?php echo tep_image_button('button_more_reviews.gif', IMAGE_BUTTON_MORE_REVIEWS); ?></a></td> </tr> <?php } } else { ?> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td class="smallText"><?php echo TEXT_NO_REVIEWS; ?></td> </tr> <?php } } else { ?> <tr> <td><br><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="main"><a href="<?php echo tep_href_link(FILENAME_PRODUCT_REVIEWS, substr(tep_get_all_get_params(), 0, -1)); ?>"><?php echo tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS); ?></a></td> <td align="right" class="main"><input type="hidden" name="products_id" value="<?php echo $product_info_values['products_id']; ?>"><?php echo tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td> </tr> </table></td> </tr> <?php } //// End Reviews on Product Information page hack ?> <tr> <td><br> <?php //added for cross -sell if ( (USE_CACHE == 'true') && !SID) { echo tep_cache_also_purchased(3600); include(DIR_WS_MODULES . FILENAME_XSELL_PRODUCTS); } else { include(DIR_WS_MODULES . FILENAME_XSELL_PRODUCTS); include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS); } } ?> </td> </tr> </table></form></td> <?php if (COLUMN_DISPLAY == 'Right' || COLUMN_DISPLAY == 'Both') { ?> <!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="<?php echo BOX_SPACING; ?>" cellpadding="0"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> <?php } ?> </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'); ?> Quote Link to comment Share on other sites More sharing options...
Fullasoul Posted August 27, 2008 Share Posted August 27, 2008 Just re-rechecked everything and thought I'd mention that the complete 'social' folder and all subfolders/files are indeed in my root folder... Quote Link to comment Share on other sites More sharing options...
Guest Posted August 27, 2008 Share Posted August 27, 2008 Just re-rechecked everything and thought I'd mention that the complete 'social' folder and all subfolders/files are indeed in my root folder... Try something like <!-- Socializer OSC v1.4 start //--> <tr> <td align="center" class="smallText"><br> <img src="social/buttonshare_trans.png" class="socializer" id="social_but" title=" <?php echo (STORE_NAME); ?> : <?php echo $product_info['products_name']; ?>" alt="<?php echo tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $product_info['products_id'], 'NONSSL'); ?>" /><br><br><hr><br> </td> </tr> <!-- Socializer OSC v1.4 finish //--> Quote Link to comment Share on other sites More sharing options...
Fullasoul Posted August 27, 2008 Share Posted August 27, 2008 Try something like <!-- Socializer OSC v1.4 start //--> <tr> <td align="center" class="smallText"><br> <img src="social/buttonshare_trans.png" class="socializer" id="social_but" title=" <?php echo (STORE_NAME); ?> : <?php echo $product_info['products_name']; ?>" alt="<?php echo tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $product_info['products_id'], 'NONSSL'); ?>" /><br><br><hr><br> </td> </tr> <!-- Socializer OSC v1.4 finish //--> tried that, but it didn't work :( I DID just make a discovery that seems important, although I'm not so sure what it means... If you go to any product page on my site, then view the page source, you see the 3 '<script>' lines that the instructions tell you to add to the header, but you do NOT see the bit that we just did above (the part the displays the button). How can that be knowing that code is in my product_info.php?? Quote Link to comment Share on other sites More sharing options...
Guest Posted August 27, 2008 Share Posted August 27, 2008 tried that, but it didn't work :( I DID just make a discovery that seems important, although I'm not so sure what it means... If you go to any product page on my site, then view the page source, you see the 3 '<script>' lines that the instructions tell you to add to the header, but you do NOT see the bit that we just did above (the part the displays the button). How can that be knowing that code is in my product_info.php?? I have this <!-- Socializer OSC v1.4 start //--> <script language="javascript" type="text/ecmascript" src="social/js/mootools-1.2-core.js"></script> <script language="javascript" type="text/ecmascript" src="social/js/socializer.js"></script> <link href="social/css/socializer.css" rel="stylesheet" type="text/css" /> <!--[if lte IE 7]> <link href="social/css/socializer_ie7.css" rel="stylesheet" type="text/css" /> <![endif]--> <!-- Socializer OSC v1.4 finish //--> Quote Link to comment Share on other sites More sharing options...
ronrrico Posted August 28, 2008 Share Posted August 28, 2008 Hi guys, Awsome script! I need some help with this. I currently have installed Graphical Borders & Individual Boxes on my site. In the box header of product_info I managed to insert Ask a question, Tell a friend and Add to favorites See demo youreshopping.com/king-replacement-p-4.html I'm trying to replace the current Add to favorites text link I have in product_info with a Add to favorites text link that opens the socializer. I can't get it to work This is the current header box script: <?php $text='<center><a href="' . tep_href_link(FILENAME_ASK_QUESTION, 'products_id='.$HTTP_GET_VARS['products_id']) . '">' . TEXT_ASK_A_QUESTION .tep_image(DIR_WS_IMAGES . 'table_background_question.gif').'</a> <a href="' . tep_href_link(FILENAME_TELL_A_FRIEND, 'products_id=' . $HTTP_GET_VARS['products_id'], 'NONSSL') . '">' . TEXT_TELL_A_FRIEND .tep_image(DIR_WS_IMAGES . 'table_background_tell_a_friend.gif').'</a> <a href="java script:window.external.AddFavorite(location.href,document.title);" class="main">'.ADD_TO_FAVORITES.tep_image(DIR_WS_IMAGES . 'table_background_add_to_favorites.gif').'</a></font>'; echo mws_header ($text);?></center> Thank in advance, Ronnie Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.