Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

lateralus

Archived
  • Posts

    48
  • Joined

  • Last visited

About lateralus

  • Birthday 12/18/1973

Profile Information

  • Real Name
    ludo
  • Gender
    Male
  • Location
    france

lateralus's Achievements

  1. Ouuups, sorry about the lasts posts ;) TinyMCE & reviews : 1/ Copy the tiny_mce folder to your folder catalog/includes/javascript/ 2/ Add between <head></head> in catalog/product_reviews_write.php <head>.... <?php $mce_str = 'product_reviews_write'; echo '<script language="javascript" type="text/javascript" src="includes/javascript/tiny_mce/tiny_mce.js"></script>'; include "includes/javascript/tiny_mce/general.php";?> ...</head> 3/ Configure some settings in catalog/includes/javascript/tiny_mce/general.php <script language="javascript" type="text/javascript"> // Configuration file for tinyMCE editor: general tinyMCE.init({ mode : "textareas", elements: "<?php echo $mce_str ?>", language: "fr", theme : "advanced", plugins : "advhr,advimage,advlink,iespell,contextmenu,paste,autosave,emotions", theme_advanced_buttons1 : "fontselect,fontsizeselect,forecolor,backcolor,bullist,numlist", theme_advanced_buttons2 : "undo,redo,cut,copy,paste,pastetext,pasteword,link,unlink,image", theme_advanced_buttons3 : "", fullscreen_settings : { theme_advanced_path_location : "top"}, document_base_url : "<?php echo HTTP_SERVER.DIR_WS_CATALOG ?>", content_css : "<?php echo HTTP_SERVER.DIR_WS_CATALOG ?>stylesheet.css", external_image_list_url : "tinymce_images.js.php", width : "100%", height : "350", //theme_advanced_disable : "image", theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", theme_advanced_path_location : "bottom", extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|v space|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade ],font[face|size|color|style],span[class|align|style]" }); </script> 4/ For those who uses the french translation, the file is totally wrong catalog/includes/javascript/tiny_mce/plugins/advimage/langs/fr.js DOWNLOAD MY FILES HERE
  2. Please, can anybody send or post his admin/categories.php file to configure the image part of the contrib??? That would be very nice cz I'm not the only one not to understand this stuff :rolleyes: I had a look at the CRELOADED, but TinyMCE seems not to be integrated the same way :'(
  3. Please, can anybody send or post his admin/categories.php file to configure the image part of the contrib???<br>That would be very nice cz I'm not the only one not to understand this stuff ;)<br>I had a look at the CRELOADED, but TinyMCE seems not to be integrated the same way <img style="vertical-align: middle;" emoid=":blink:" src="http://www.oscommerce.com/forums/style_emoticons/default/blink.gif" border="0"><br><br>
  4. Please, can anybody send or post his admin/categories.php file to configure the image part of the contrib??? That would be very nice cz I'm not the only one not to understand this stuff ;) I had a look at the CRELOADED, but TinyMCE seems not to be integrated the same way :blink:
  5. Please, can anybody send or post his admin/categories.php file to configure the image part of the contrib??? That would be very nice cz I'm not the only one not to understand this stuff ;) I had a look at the CRELOADED, but TinyMCE seems not to be integrated the same way :blink:
  6. Please, can anybody send or post his admin/categories.php file to configure the image part of the contrib??? That would be very nice cz I'm not the only one not to understand this stuff ;) I had a look at the CRELOADED, but TinyMCE seems not to be integrated the same way :blink:
  7. Thanks for your answer Rigadin2 ;) Sorry I'm not a programmer, I've tried different places but I didn't manage to find where to put these pieces of code!!! My error message always appears on this function : <td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_textarea('products_image') . ' ' . tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . $pInfo->products_image . tep_draw_hidden_field('products_previous_image', $pInfo->products_image); ?></td> Thank you ;) The right code is : <?php $mce_str = 'product_reviews_write'; I now don't have any error message any more ;) but I still can't see tinyMCE!!!??? I copied the tiny_mce folder to my root folder (catalog) /includes/javascript/tiny_mce Then hopefully, I will be able to configure some settings in (catalog) /includes/javascript/tiny_mce/general.php ;)
  8. If you update the contribution with the 17 Apr 2007 files, don't forget to apply also the same modifications to product_notification.php (admin/includes/modules/newsletters/product_notification.php line 203) $mimemessage = new email(array('X-Mailer: osCommerce bulk mailer')); // START TinyMCE Anywhere if (EMAIL_USE_HTML == 'true') { $mimemessage->add_html($this->content); } else { $mimemessage->add_text(html_entity_decode(strip_tags($this->content), ENT_NOQUOTES)); } // END TinyMCEAnywhere $mimemessage->build_message(); I still don't understand how to install the image section (3.5 Product image - steps 3.5.3 & 3.5.4) Can anyone just tell me which file has to be modified??? 3.5.3) Before displaying the preview, the value of product_image post var must be filtered, so only the filename stays (tinyMCE returns the whole img tag). This function can do the trick: function _filter_save_image ($products_image) { $products_image = htmlspecialchars(stripslashes($products_image)); $products_image = ereg_replace('<img ', '', $products_image); // Remove: <img $products_image = ereg_replace('src=', '', $products_image); // Remove: src= $products_image = ereg_replace('"', '', $products_image); // Remove: " $products_image = ereg_replace('/>', '', $products_image); // Remove: /> $products_image = ereg_replace(DIR_WS_CATALOG . DIR_WS_IMAGES, '', $products_image); // Remove: absolute path return $products_image; } 3.5.4) When loading the image name from the DB or from the HTTP_POST_VARS (when back from preview to editor), the img tag must be added again, something like that: $products_image = '<img src="'.$products_image.'" />'; I'd like to enable TinyMCE for reviews. (3.6 TinyMCE in other places) I've done the modifications in catalog/product_reviews_write.php but I've got an error message : Parse error: syntax error, unexpected T_ECHO in /mnt/105/sdb/3/c/ludovic.berton/duret/product_reviews_write.php on line 78 <head> ..... <?php $mce_str = 'product_reviews_write' // Comma separated list of textarea names // You can add more textareas to convert in the $mce_str, be careful that they are all separated by a comma. echo '<script language="javascript" type="text/javascript" src="includes/javascript/tiny_mce/tiny_mce.js"></script>'; include "includes/javascript/tiny_mce/general.php"; ?> .... </head>
  9. I'm sorry but I don't understand anything to this step! 3.5 Product image 1) First of all, the product image file field (tep_draw_file_field) must be changed to a textarea (tep_draw_textarea). >>>> I must replace 3 times this "field tep_draw_file_field" by this one "tep_draw_textarea"??????? 2) In categories.php, where you have already include the file general.php, add this after: $mce_str = 'products_image'; include "includes/javascript/tiny_mce/product_image.php"; Now you should be able to use tinyMCE/iBrowser to choose your product image. >>>> in between <head></head>??????? <head> <?php // START tinyMCE Anywhere if ($action == 'new_product') { // No need to put JS on all pages. $languages = tep_get_languages(); // Get all languages // Build list of textareas to convert for ($i = 0, $n = sizeof($languages); $i < $n; $i++) { $str.="products_description[".$languages[$i]['id']."],"; } //end for each language $mce_str = rtrim ($str,","); // Removed the last comma from the string. // You can add more textareas to convert in the $str, be careful that they are all separated by a comma. echo '<script language="javascript" type="text/javascript" src="includes/javascript/tiny_mce/tiny_mce.js"></script>'; include "includes/javascript/tiny_mce/general.php"; $mce_str = 'products_image'; include "includes/javascript/tiny_mce/product_image.php"; } // END tinyMCE Anywhere ?> </head> 3) Before displaying the preview, the value of product_image post var must be filtered, so only the filename stays (tinyMCE returns the whole img tag). This function can do the trick: >>>>where to put this??????? function _filter_save_image ($products_image) { $products_image = htmlspecialchars(stripslashes($products_image)); $products_image = ereg_replace('<img ', '', $products_image); // Remove: <img $products_image = ereg_replace('src=', '', $products_image); // Remove: src= $products_image = ereg_replace('"', '', $products_image); // Remove: " $products_image = ereg_replace('/>', '', $products_image); // Remove: /> $products_image = ereg_replace(DIR_WS_CATALOG . DIR_WS_IMAGES, '', $products_image); // Remove: absolute path return $products_image; } 4) When loading the image name from the DB or from the HTTP_POST_VARS (when back from preview to editor), the img tag must be added again, something like that: >>>>where to put this??????? $products_image = '<img src="'.$products_image.'" />'; Thank you ;)
  10. I was wondering how it can be possible to sort the products as we'd like (as they are listed)??? +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ I also use Description in Product Listing Hack MS2 v.2.5 (which includes a small decsription in the product listing) And I'd like to insert my description (these 2 pieces of code).... . osc_trunc_string(strip_tags($new_products['products_description'], '<a><b><em><font><i><s><span><strong><sub><sup><u>'), PRODUCT_LIST_DESCRIPTION_LENGTH) . $new_products['products_description'] = tep_get_products_description($new_products['products_id']); ...into the modifications of product-info.php made for Bundle Mod, in between the 2 echo : echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $bundle_data['products_id']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $bundle_data['products_image'], $bundle_data['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '</a>'; echo "</td><td class=main >» <b>" . $bundle_data['subproduct_qty'] . " x " . $bundle_data['products_name'] . '</b> </td><td align = right class=main><b> ' . $currencies->display_price($bundle_data['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . "</b></td></tr>"; *******I don't know if it is correct ???????????? echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $bundle_data['products_id']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $bundle_data['products_image'], $bundle_data['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '</a>' ; echo "</td><td class=main >» <b>" . osc_trunc_string(strip_tags($products_new['products_description'], ''), PRODUCT_LIST_DESCRIPTION_LENGTH) . '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new['products_id']) . '"><b>' . osc_suite_more(strip_tags($products_new['products_description'], ''), PRODUCT_LIST_DESCRIPTION_LENGTH) . "</b></td></tr>"; echo "</td><td class=main >» <b>" . $bundle_data['subproduct_qty'] . " x " . $bundle_data['products_name'] . '</b> </td><td align = right class=main><b> ' . $currencies->display_price($bundle_data['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . "</b></td></tr>"; ********I don't know where to put the second value : $new_products['products_description'] = tep_get_products_description($new_products['products_id']);
  11. Really nice contrib ;) It works really nice but I'm trying to install it after the "Show Soldout" contrib and there are still a few bugs with "Show soldout"... Did anybody install both contribs??? ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ I've done some improvements but is my code correct ??? (((includes/product_listing.php))) /** show-soldout-v1.0 + bundle+calc **/ $StockChecker1 = tep_get_products_stock($listing['products_id']); If ( $StockChecker1 <> 0){ $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> '; }else{ if($listing['products_quantity'] <= 0 || $listing['products_status']==0) $lc_text = tep_image_button('button_sold_out.gif', IMAGE_BUTTON_SOLD_OUT) . ' '; } /** end show-soldout-v1.0 + bundle+calc**/ ++++ Show-Soldout now works for "normal" products BUT not for "bundled" produtcs (on index.php) whereas the button Sold out is shown on product_info.php ???????????????? May be some coding in idex.php???? ++++ When one out of the product is out of stock ==>> no image is shown but the price???? I'll do some more tries and screenshots tomorrow.. Thanks
  12. I'm using download by redirect, and I don't have to pack my videos : the 'save as' dialog box always come up!!!! I give you some more explanations : I'd like to sell movies (of extrem monoski from http://www.tkbfilms.com). In the past, we've done DVD's (Monopopow) but it's such a hassle to do that we'd like to sell just downloads at a very low cost : pay per view, DRM, autoexe files.... I don't have a clue about the best solution to protect the movies! I know that whatever the protection there will always be solutions to hack, download, burn.... But I still want to make it harder to do.... Some solutions : * DRM & Oscommerce : - http://www.extradrm.com - http://www.digitalrightsdirector.com * Radtools : - http://www.radgametools.com : Make an auto-exe (multi)files for PC &Mac, with a good quality/compression & no codec needed : but they still can share
  13. Now it's OK...I got it to work quite easily...that's a fuckin' nice contrib, man , congratulations :thumbsup: :thumbsup: I wasn't able to add the SQL file in 1 go...I had to insert all the fileds one by one....Don't understand ENGINE = MYISAM, but it doesn't really matter since it worked ;) Here is my NEW group_file_for_download.sql INSERT INTO `configuration` ( `configuration_id` , `configuration_title` , `configuration_key` , `configuration_value` , `configuration_description` , `configuration_group_id` , `sort_order` , `last_modified` , `date_added` , `use_function` , `set_function` ) VALUES ('', 'Enable Group File Download?', 'DOWNLOADS_CONTROLLER_FILEGROUP_STATUS', 'Yes', 'Do you want to enable group file for download? - Default=Yes', '13', '93', NOW(), NOW(), NULL , 'tep_cfg_select_option(array(\'Yes\', \'No\'), '); ALTER TABLE `products_attributes_download` ADD `products_attributes_filegroup_id` INT( 11 ) NULL AFTER `products_attributes_filename`; CREATE TABLE `products_attributes_download_groups` ( `download_group_id` INT( 11 ) NOT NULL , `download_group_name` VARCHAR( 255 ) NULL , `language_id` INT( 11 ) NOT NULL , PRIMARY KEY ( `download_group_id` , `language_id` )) CREATE TABLE `products_attributes_download_groups_files` ( `download_groups_file_id` INT( 11 ) NOT NULL AUTO_INCREMENT PRIMARY KEY , `download_group_id` INT( 11 ) NOT NULL , `download_group_filename` VARCHAR( 255 ) NOT NULL) ALTER TABLE `products_attributes_download_groups_files` DROP PRIMARY KEY , ADD PRIMARY KEY ( `download_groups_file_id` , `download_group_id` ); CREATE TABLE `products_attributes_download_groups_to_files` ( `download_groups_file_id` INT( 11 ) NOT NULL , `language_id` INT( 11 ) NOT NULL , `download_group_file_description` VARCHAR( 255 ) NULL , PRIMARY KEY ( `download_groups_file_id` , `language_id` )) Some more explainations (for beginners like me) : * Order_Status : one is to authorize to download and the other is to reset the download * Folder /PUB/ (chmod 777) ==> for htaccess & .htpwd (log & pass for secure download) <<<How to generate .htpasswd : http://shop.alterlinks.com/htpasswd/passwd.php >>> ((((This is also the folder where temporary files are located if you activate the redirect function))))))) * Folder /DONWLOAD/ (chmod 777) ==>> for the files you want to share (also secured with htaccess & .htpwd) Some report & bugs & questions : 1- when I sort the orders by amount, the result is totally messed up!!! 2- when you click and exceed the amount of authorized download, you reach a blank page!!! 3- I'd like to sell some movies and I wonder about protection for my videos???? Any idea : DRM, auto-exe file????
  14. Hi, Thanks for this contrib but I can't get it to work!! But I can't install group_file_for_download.sql Error : CREATE TABLE `products_attributes_download_groups` ( `download_group_id` INT( 11 ) NOT NULL , `download_group_name` VARCHAR( 255 ) NULL , `language_id` INT( 11 ) NOT NULL , PRIMARY KEY ( `download_group_id` , `language_id` ) )ENGINE = MYISAM MySQL a répondu: You have an error in your SQL syntax near 'ENGINE = MYISAM ' at line 6 I haven't got any trouble on my local config (php 5.0.4) but it doesn't work on my web server (php 4.4.2)... Can you understand something please, Thanks ;)
  15. Hi nice contrib, I'd like to sell movies on my shop that people could watch once bought and logged in... I'm wondering if there could be a trick with this contribution and another one???? Thanks ;)
×
×
  • Create New...