Jump to content

bobeisenberg

Members
  • Content count

    45
  • Joined

  • Last visited

About bobeisenberg

  • Birthday 02/19/1966

Profile Information

  1. bobeisenberg

    [Contribution] oscThumb

    I have recently added the oscThumb contribution, but cannot get it to work. The problem seems to be caused by the application_top.php file: I have manually edited it, by adding the following code as instructed: "// START oscThumb require(DIR_WS_CLASSES . 'oscthumb.php'); $oscthumb = new oscthumb; $oscthumb->check_hash(); // Check if parameters have changed. Delete cache if yes. // END oscThumb" immediately before "// initialize the message stack for output messages require(DIR_WS_CLASSES . 'message_stack.php'); $messageStack = new messageStack;" When I do this, I get the following message on my site (and just a white screen with nothing else on it): "phpThumb() v1.7.7-200612252166 ERROR: missing hash" Can anyone suggest what I should do? Many thanks. Bob
  2. bobeisenberg

    oscThumb

    I have added the oscThumb contribution, but it does not work. The problem seems to be caused by the application_top.php file: I have manually edited it, by adding the following code as instructed: "// START oscThumb require(DIR_WS_CLASSES . 'oscthumb.php'); $oscthumb = new oscthumb; $oscthumb->check_hash(); // Check if parameters have changed. Delete cache if yes. // END oscThumb" immediately before "// initialize the message stack for output messages require(DIR_WS_CLASSES . 'message_stack.php'); $messageStack = new messageStack;" When I do this, I get the following message on my site: "phpThumb() v1.7.7-200612252166 ERROR: missing hash" Can anyone suggest what I should do? Many thanks. Bob.
  3. bobeisenberg

    Thumbnail PDF Catalogue

    Vger Many thanks, this has resolved my issue. Bob.
  4. bobeisenberg

    Thumbnail PDF Catalogue

    Vger I am having a problem with the PDF catalogue. In Configuration --> Images, the Small Image Height must be blank - I need to be able to put images of various heights on my website. When I generate a PDF catalogue in Admin, it makes all the images the same size, and cuts out parts of the larger images. Is there any way to tell the contribution to generate thumbnails relative to the size of the actual image? I apologise if this question has been asked on this thread before, but I haven't found it. Many thanks. Bob
  5. bobeisenberg

    Fancier Invoice & Packingslip v1.0

    Kunal My knowledge of php is very limited. I had the same problems, and making these changes solved it. I am afraid that I cannot suggest anything else. Bob.
  6. bobeisenberg

    Fancier Invoice & Packingslip v1.0

    Kunal At the bottom, change the third line from the end from define('TITLE', 'Packing Slip'); to define('TEXT_TITLE', 'Packing Slip' ); and then add the following line immediately after it define('INVOICE_TEXT_INVOICE', 'Packing Slip'); Regards. Bob
  7. bobeisenberg

    Fancier Invoice & Packingslip v1.0

    Kunal In catalog\admin\includes\languages\packingslip.php, insert the following lines: define('TEXT_TITLE', 'put in here whatever text you want displayed' ); define('INVOICE_TEXT_INVOICE', 'put in here whatever text you want displayed'); and make sure you do not have a line saying define('TITLE', 'whatever text'); That should do it. Regards. Bob.
  8. bobeisenberg

    Thumbnail PDF Catalogue

    I think that I'll reinstall it from scratch and see whether I get it to work that way. Get well soon. Bob.
  9. bobeisenberg

    Thumbnail PDF Catalogue

    Vger I have tried with permissions set to 755 and 777, but it makes no difference. I am just guessing at what the problem might be, but as the problem line is $file=FPDF_FONTPATH.$file; I have checked that FPDF_FONTPATH is defined; it occurs in pdf_catalogue.php and pdf_config.php as define('FPDF_FONTPATH','font/'); . The font files are located in catalog/admin/font. My only other thought is that the error message Could not include font metric file appears becasue of lines 557 & 558: if(!isset($fpdf_charwidths[$fontkey])) $this->Error('Could not include font metric file'); However, I don't know how the $fpdf_charwidths[$fontkey] is set, so I can't see what happens if I change how it is set. Does this make sense? If so, would it make a difference. Many thanks. Bob.
  10. bobeisenberg

    AttributesWizzard

    Thank you very much!!! Rather than the word "localhost", I put the name of my website. I have changed it and now it works perfectly. Bob.
  11. bobeisenberg

    Thumbnail PDF Catalogue

    Hi there. I have installed this contribution as per the Read Me First file, but am having a slight problem. When I select Generate Catalog(s) in Admin -> Tools and click on the Save button, I get the following error message: Warning: setfont(catalog/admin/font/helveticab.php): failed to open stream: No such file or directory in /home/bobnanne/public_html/catalog/admin/pdf_fpdf.php on line 556 Warning: setfont(catalog/admin/font/helveticab.php): failed to open stream: No such file or directory in /home/bobnanne/public_html/catalog/admin/pdf_fpdf.php on line 556 Warning: setfont(): Failed opening 'catalog/admin/font/helveticab.php' for inclusion (include_path='.:/usr/share/pear') in /home/bobnanne/public_html/catalog/admin/pdf_fpdf.php on line 556 FPDF error: Could not include font metric file. The limit of my php knowledge is that I have made sure that helveticab.php is in the right place. The coding of the file, from line 545, is //Check if one of the standard fonts if(isset($this->CoreFonts[$fontkey])) { if(!isset($fpdf_charwidths[$fontkey])) { //Load metric file $file=$family; if($family=='times' or $family=='helvetica') $file.=strtolower($style); $file.='.php'; if(defined('FPDF_FONTPATH')) $file=FPDF_FONTPATH.$file; include($file); if(!isset($fpdf_charwidths[$fontkey])) $this->Error('Could not include font metric file'); } $i=count($this->fonts)+1; $this->fonts[$fontkey]=array('i'=>$i,'type'=>'core','name'=>$this->CoreFonts[$fontkey],'up'=>-100,'ut'=>50,'cw'=>$fpdf_charwidths[$fontkey]); } else $this->Error('Undefined font: '.$family.' '.$style); } Do you have any suggestions as to what I should do to resolve this. Many thanks. Bob.
  12. bobeisenberg

    AttributesWizzard

    Hi there I installed your contribution, but get the German error message when I select either Manage Price Lists or Product Options in Admin -> Catalog. I have seen in the posts above that one reason for this is putting the wrong username etc. I am certain I have put the right details, and (bearing in mind my extremely limited knowledge of all things to do with website design etc) I am at a loss to understand why I get this error mesage. Just to confirm, i) do I put the 'www' and '.com' in the localhost (line 126)? ii) should the word true (line 130) be in double quotes? iii) should my username and password be those I have with my hosting company? Many thanks. Bob.
  13. bobeisenberg

    Attribute Sets Plus

    I am having a similar problem with product_info.php, this time when any item is selected in the shop area of my site: Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /home/bobnanne/public_html/catalog/product_info.php on line 217 Line 217 is: document.write('<?php echo '<a href="java script:popupWindow('' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>'); and in context (from line 203) it is <?php if (tep_not_null($product_info['products_image'])) { ?> <table border="0" cellspacing="0" cellpadding="2" align="right"> <tr> <td align="center" class="smallText"> <script language="javascript"><!-- document.write('<?php echo '<a href="javascript:popupWindow('' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>'); //--></script> <noscript> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> </noscript> </td> </tr> </table> <?php can you help me with this as well? Many thanks. Bob.
  14. bobeisenberg

    Attribute Sets Plus

    Chris hi. Thanks for a great contribution, which will save me hours of inputting. However, I have a small problem. I followed the installation instructions to the letter, and when I select Admin-> Catalog I get the following error message: Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /home/bobnanne/public_html/catalog/admin/categories.php on line 1807 My edits were not in this part of the file. Line 1807 is echo '<tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href='' . tep_href_link(FILENAME_CATEGORIES, tep_get_path($categories['categories_id'])) . ''">' . "n"; and in context, from line 1789 the code is: if ((!isset($HTTP_GET_VARS['cID']) && !isset($HTTP_GET_VARS['pID']) || (isset($HTTP_GET_VARS['cID']) && ($HTTP_GET_VARS['cID'] == $categories['categories_id']))) && !isset($cInfo) && (substr($action, 0, 3) != 'new')) { $category_childs = array('childs_count' => tep_childs_in_category_count($categories['categories_id'])); $category_products = array('products_count' => tep_products_in_category_count($categories['categories_id'])); $cInfo_array = array_merge($categories, $category_childs, $category_products); $cInfo = new objectInfo($cInfo_array); } if (isset($cInfo) && is_object($cInfo) && ($categories['categories_id'] == $cInfo->categories_id) ) { echo '<tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href='' . tep_href_link(FILENAME_CATEGORIES, tep_get_path($categories['categories_id'])) . ''">' . "n"; } else { echo ' <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href='' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $categories['categories_id']) . ''">' . "n"; } ?> I don't know much about php, and I have tried escaping the single quotes and the "n" (the sum total of my knowledge) but this does not work. Do you have any idea what is wrong? Many thanks. Bob.
  15. bobeisenberg

    Fancier Invoice & Packingslip v1.0

    [quote I may have a solution to the last name and status in your email issues, but I want to double check to see that my idea works. I will post back when I have checked - probably later today. Bob. Carol - I tried my idea, but it doesn't make any difference. I think that it would be very useful, and if you do find a solution, can you let me know what it is. I will keep trying, and if I get one, I'll let you know. Regards. Bob.
×