Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

humaneasy

Archived
  • Posts

    84
  • Joined

  • Last visited

About humaneasy

  • Birthday 09/04/1966

Profile Information

  • Real Name
    Lopo Lencastre de Almeida
  • Location
    Portugal
  • Interests
    Reading, traveling, music and relax.
  • Website

humaneasy's Achievements

  1. IMPORTANT NOTICE: This contribution was made for the CRE Loaded osCommerce's flavour and was only tested with it. If you use any other flavour of osCommerce you must see how it outputs buttons with the *_image_submit() and *_image_button() functions. So, after this preamble, I will explain how to change the necessary files. In your CATALOG directory open html_output.php and seek for the following functions and make sure they look like the following corresponding code: function tep_image_submit //// // The HTML form submit button wrapper function // Outputs a button in the selected language ?function tep_image_submit($image, $alt = '', $parameters = '') { ? ?global $language; ? ?// ADDED BY HUMANEASY.COM - LOPO ? ?if ( tep_check_button_maker ( $alt ) ) ?$image = tep_create_button($image, $alt); ? ?$image_submit = '<input type="image" border=0 src="' . tep_output_string(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image) . '" border="0" alt="' . tep_output_string($alt) . '"'; ? ?if (tep_not_null($alt)) $image_submit .= ' title=" ' . tep_output_string($alt) . ' "'; ? ?if (tep_not_null($parameters)) $image_submit .= ' ' . $parameters; ? ?$image_submit .= '>'; ? ?return $image_submit; ?} function tep_image_button //// // Output a function button in the selected language ?function tep_image_button($image, $alt = '', $parameters = '') { ? ?global $language; ? ?// ADDED BY HUMANEASY.COM - LOPO ? ?if ( tep_check_button_maker ( $alt ) ) $image = tep_create_button($image, $alt); ? ?return tep_image(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image, $alt, '', '', $parameters); ?} In your TEMPLATE directory open extra_html_output.php and seek for the following functions and make sure they look like the following corresponding code: function tep_template_image_submit //// // The HTML form submit button wrapper function // Outputs a button in the selected language ?function tep_template_image_submit($image, $alt = '', $parameters = '') { ? ?global $language; ? ?// ADDED or MODIFIED BY HUMANEASY.COM - LOPO ? ?if ( tep_check_button_maker ( $alt ) ) ? ? ? $image = tep_create_button($image, $alt, true); ? ?if (strstr(strtolower($image),'imagegenerator.php')) ? ? ? $imageOut = tep_output_string($image); ? ?else ? ? ? $imageOut = tep_output_string(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/images/buttons/' . $language . '/' . ?$image); ? ?$image_submit = '<input type="image" src="' . $imageOut . '" border="0" alt="' . tep_output_string($alt) . '"'; ? ?// ADDED or MODIFIED BY HUMANEASY.COM - LOPO ? ?if (tep_not_null($alt)) $image_submit .= ' title=" ' . tep_output_string($alt) . ' "'; ? ?if (tep_not_null($parameters)) $image_submit .= ' ' . $parameters; ? ?$image_submit .= '>'; ? ?return $image_submit; ?} function tep_template_image_button //// // Output a function button in the selected language ?function tep_template_image_button($image, $alt = '', $parameters = '') { ? ?global $language; ? ?// ADDED or MODIFIED BY HUMANEASY.COM - LOPO ? ?if ( tep_check_button_maker ( $alt ) ) ? ? ? $image = tep_create_button($image, $alt); ? ?if (strstr(strtolower($image),'imagegenerator.php')) return tep_image($image, $alt, '', '', $parameters); ? ?else return tep_image(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/images/buttons/' . $language . '/' . ?$image, $alt, '', '', $parameters); ? ?// ADDED or MODIFIED BY HUMANEASY.COM - LOPO ?} Hope now everyone can make it work :rolleyes: :-" Best, B) Lopo
  2. Of course you can. Upload your *NEW* pack with a full description of what you did. Call it PDF data-sheet v.1.3-ExternalProductsModel.zip This will avoid problems. Best and thanks. Lopo PS: When done post it here and I'll be warned. Thanks!
  3. A foreword: BACKUP BACKUP BACKUP :D :lol: *************************************************************** Just explaining some values in Button Maker Admin Generation is Active - no need to explain Bypass Sign - you must add a bypass sign to all button images that you don't want to be generated, for instance; the 'search' and the 'mail' buttons. - this sign is a mark (ex. #$#) that you will had to the tags of those buttons, for instance; '#$#Search' in the define() function. Button Style - buttons are made of three parts. This text in the middle part (case sensisitive). See the samples included. Resulting Buttons Height - your 'Style' buttons Height Center Image File Width - the 'Style' center image width Cap Images File Width - the 'Style' left/right images width (must be the same in this version) Text Overlap - the value in pixels that text will overlap caps (left and right 'Style' images) Image HUE Rotation - keep it 0 (zero) for the time being Image Type - Could be 'jpg', 'png' or 'gif', but since some GD versions don't have GIF Write set it to 'png' that works Path to TTF Font - full path from starting from / (must test the specifics for other systems diferent from *nix, but I think you can use your MS Windows regular FONT path) TTF Font Filename - the file to use. Must be in the FONTS path indicated previously. Font Size - need no explanation Font Color - in hexadecimal value Transparent color - the image color that will be used as transparent color. In hexadecimal. Only for 'gif' and 'png'. The system uses "DIR_FS_CATALOG . DIR_WS_IMAGES" to define where is 'bm_images' directory so you need to create the 'bm_images' directory (with all image 'Style' files on it) UNDER your current CATALOG IMAGES directory ;) Next version will be much better and will avoid some of this bad coding standards :D Don't forget to modify your general 'html_output.php' and your template 'extra_html_output.php' accordingly to my instructions. Sorry, but this version still requires some PHP knowledge to make it work. See the code in the button_maker.php (under 'functions' dir) and the two previous mentioned files (also included). I've tryed to extensively explain what I was doing step-by-step. Best and thanks for using it. B) Lopo
  4. I meant... http://yourdomain/path_where_is_catalog/imageGenerator.php?ttfont=arial.ttf&d=/home/youruser/fonts/&style=Red&p=/home/youruser/public_html/path_where_is_catalog/path/to/bm_images/&o=png&text=Comments Sorry! B) Lopo
  5. I only test it with Linux so I don't know of any imcompatibility. In Linux you must have TTF compiled in PHP and also GD. Path to where fonts are must be full path (ex. /home/youruser/fonts/). Fonts don't need to be installed under 'webroot' path. If your GD version doesn't have 'GIF Write' possibility (some versions don't) choose 'png' as the image format. Put http://yourdomain/path_where_is/imageGenerator.php?ttfont=Generic.ttf&d=W%3A%2Fwww%2Ffonts%2F&color=&trans=&size=&h=&w=&cw=&co=&style=Red&o=png&text=%20Hi%20there!%20]http://yourdomain/path_where_is/imageGener...20there!%20 That's the way to see the errors. hence it is clear that it is not returning an image. See what it reports. And sorry for the dealy in replying :) B) Lopo
  6. It gives a server not found error. This fix will include it all or I must download last version and the fix? Best, B) Lopo
  7. Could you please upload this to the contribs? I would like to give this update a try... Jas Me too :D You can add it to the same place where PDF data-sheet maker is. Anyway. Post a link to it in here ;) Thanks a lot. B) Lopo
  8. Official post at http://www.oscommerce.com/forums/index.php?showtopic=73135 ASAP I will post there a PM conversation I had with nmad (or he can post it if possible with some details of what he did ;) ) Best and thanks, B) Lopo
  9. Hi, Many had already asked my by PM on several issues regarding Button Maker. I will try to answer here some of the questions. Others that make it work can also post, of course. Thanks for your support and interest. 1, B) Lopo
  10. That nice feature It doesn't seem that this was ever sent as a contrib. Some guys never contrib back the nice features they implement. <_< It's nice to grab osCommerce and all the work that others make for free but giving back... Well! This is the world we live in. ;) If someone knows where this nice contribution lays please post back :rolleyes: 1, B) Lopo
  11. Hi, What Shipping modules are being used in Portugal? MRW, DHL, UPS, ChronoPost? I saw several stores with Shipping methods working but I didn't found those in the Contribs section. Does anyone know of something? Urgent :( Best, B) Lopo
  12. Hi, Just add a "pte" prefixed Class to the BankTransfer package so you can use the NIB and IBAN codes to allow easy bank transfers using ATM machines in Portugal or abroad. Get it at http://www.oscommerce.com/community/contributions,926 Best, B) Lopo
  13. Yes it is... but will require that you recode and test a bit in Header() function in the extended PDF class made for osC ;) At the FPDF site (http://www.fpdf.org) you have a very good tutorial that explains how you can do it. Read more at http://www.fpdf.org/en/tutorial/tuto2.htm Resulting sample at http://www.fpdf.org/en/tutorial/tuto2.php Hope it helped you. 1, 8) Lopo
  14. Thank God there is a slight diference between hacker and cracker, so no one should be offended :D :D :wink: Best, 8) Lopo
  15. Hi, One question and one remark :D Q: Does anyone upload this contribution with corrections made? It will avoid that others have the same problems ;) R: When you download the PDF at www.chilipper.it everything wents well but... the resulting PDF as the footer wrong. Only to warn the developer :) Best, 8) Lopo
×
×
  • Create New...