Jump to content

pedro.antunes

Members
  • Content count

    44
  • Joined

  • Last visited

Profile Information

  • Real Name
    pedro
  • Gender
    Male

Recent Profile Visitors

6,506 profile views
  1. pedro.antunes

    [Contribution] Database Manager

    My issue was with Auto Backup Database contribution, not with this one. I fixed it and uploaded file to: http://addons.oscommerce.com/info/2314 as I can't upload to the spooks location.
  2. pedro.antunes

    Contribution: Auto Backup Database

    I fixed this issue.Uploaded file is in: http://addons.oscommerce.com/info/2314 as I can't upload to the spooks location.
  3. pedro.antunes

    [Contribution] Database Manager

    Hi Sam, I'm using your latest version, and I think I found a bug: If a product model starts with 0, when we restore the database, the product model looses the starting 0. I checked the SQL and the correct product model is there, so the problem should be the database restore... For example, if the product model is 012345, when we restore the database it will become 12345. Can you have a look? I tried to check the code but I don't understand where the issue is... Br
  4. pedro.antunes

    [Contribution] oscThumb

    I also use WAMPServer and I never saw this problem. All images that go through tep_image function should be thumbnailed. Br
  5. pedro.antunes

    [Contribution] oscThumb

    For questions 1 and 3, the missing functions should be on catalog\admin\includes\functions\general.php. Check if you have add them. For question 4, on my case the default font when I imported the SQL file into the database was missing. For sure it will be also your case, so after adding the missing functions and after changing the font to an existing one it might work (I haven't test it myself). For question 2, the setting for each image type is done in function _get_params. You might need change something here if it is not working for you. It takes into account the image type defined in the fucntion set_size, depending on the image width and height. To have the frame just in the popup image, you may need to add new settings in the database and then change accordingly in the function _get_params. As an example, you may add a new setting to (de)activate frames for popup images and then in the _get_params change: case 5: // Popup. if (FRAME_POPUP=="Yes") $frame=true; if (BEVEL_POPUP=="Yes") $bevel=true; if (USE_WATERMARK_IMAGE_POPUP =="Yes") $image_watermark=true; if (USE_WATERMARK_TEXT_POPUP =="Yes") $text_watermark=true; $quality=(int)POPUP_JPEG_QUALITY; break; into case 5: // Popup. if (PUT HERE THE NEW ACTIVATION FLAG FOR FRAMES IN POPUP=="Yes") $frame=true; if (BEVEL_POPUP=="Yes") $bevel=true; if (USE_WATERMARK_IMAGE_POPUP =="Yes") $image_watermark=true; if (USE_WATERMARK_TEXT_POPUP =="Yes") $text_watermark=true; $quality=(int)POPUP_JPEG_QUALITY; break;
  6. pedro.antunes

    [Contribution] oscThumb

    I was going to ask you to check the size of the image in the box reviews (mine is SMALL_IMAGE_WIDTH and SMALL_IMAGE_HEIGHT) and check the values in the configuration, but if it works on the left side is because it is correctly set... I disabled the reviews on my shop because people were using it to make questions instead of ratin the products, but I added it back and it displays correctly on the left and right sides... Please try to display the picture size value in the box to see if it displays correctly on the left and the right size. Add echo "Width: ". SMALL_IMAGE_WIDTH . " - Height: ".SMALL_IMAGE_HEIGHT; before: $info_box_contents[] = array('text' => '<div align="center"><a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id=' . $random_product['products_id'] . '&reviews_id=' . $random_product['reviews_id']) . '">' . tep_image(DIR_WS_IMAGES . $random_product['products_image'], $random_product['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></div><a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id=' . $random_product['products_id'] . '&reviews_id=' . $random_product['reviews_id']) . '">' . $review . ' ..</a><br><div align="center">' . tep_image(DIR_WS_IMAGES . 'stars_' . $random_product['reviews_rating'] . '.gif' , sprintf(BOX_REVIEWS_TEXT_OF_5_STARS, $random_product['reviews_rating'])) . '</div>'); in the includes/boxes/reviews.php file! Maybe you are also setting the SMALL_IMAGE_WIDTH and/or SMALL_IMAGE_HEIGHT to the same size of the product info image (somewhere in the product_info.php file).
  7. pedro.antunes

    [Contribution] oscThumb

    I didn't understood your problem entirely. In the right column you the thumbnail is not working? Can you post a picture showing the problem?
  8. pedro.antunes

    [Contribution] oscThumb

    My best guess is that you forgot to import the SQL into your database...
  9. Hi all, I have just installed this contribution but the images are not showing. In the image properties I see the path www.myserver.com/imagemagic.php?img=images/products/656321.jpg&w=160&h=160&page= If I copy/paste this link to an empty page in the browser I see the same text where I should see the image instead. Looking at the cache folder, the thumbnail is there, with the correct size. I guess the problem comes from the imagemagic.php file where is returning the image path instead of the image itself (is it possible)... Any help is welcome...
  10. pedro.antunes

    [Contribution] oscThumb

    Just as a matter of curiosity, I just checked my server statistics and I see that my traffic increased by more than 4x after I disabled this addon (October 5th). I spent 4.3GB last month, while this month I already spent more than 18GB... Almost 16GB were used by JPG files, a clear increase just by not using thumbnails... I was not aware of the this huge BW savings brought by the thumbnails usage instead of the scaled pictures...
  11. pedro.antunes

    [Contribution] oscThumb

    1 week ago I agreed with you, encryption is a minor issue, but not now... It's not only encription issue, it's the whole addon... Why? Because... Since I had this addon already installed and I didn't want to rollback to the older one because a fix could appear, I thought: "Addon is disabled, so I don't have thumbnails anymore... If I disable the encription and the watermark parts I can have at least the thumbnails..." I though wrongly, the same problem of the missing images appear again, on another images. There is always something missing, randomly depending on the option I use, providing the addon is enabled. On a shop like mine, with almost 3000 products/images, the probability of having a missing image is quite big, and since I don't know where is the real file the addon is trying to show I don't even know if the image is there or not. I also find strange that I'm the only one to have this problem, and gets me thinking it is something with my server configuration, but since the missing images change to other products when I change something in the options, I'm not too sure about that. Pedro
  12. pedro.antunes

    [Contribution] oscThumb

    Bugs leading to missing images seem to be a major problem, at least to me. I don't understand why you are so upset with my question, you mentioned some weeks a go that you were going to have a look on the code to try to fix the problems. I also volunteared myself to try to fix it if someone explained me how to debug, since just with the echo I normaly use don't work. Anyway, I was using the 'On the Fly' Auto Thumbnailer using GD Library (http://addons.oscommerce.com/info/2226) and never failed to me, even working with LightBox. Just changed for oscThumb to get the watermark feature, but since there is no fix, no plan for a fix and I can't figure how to debug this code I will change back to the addon I was using before and continue to add the watermark by hand. Pedro
  13. pedro.antunes

    [Contribution] oscThumb

    Hi Spooks, do you have any news regarding the possibility of a fix? I think without a fix on the security things it makes no sense to use this addon, unless it is used just for creating the thumbnails but there are better addons for thumbnails with less processing on the server... Br, Pedro
  14. pedro.antunes

    Backup All Store Files In Zip Format

    Last one, I guess... I used your method to remove the folders if (strpos($arquivo,DIR_FS_BACKUP) === 0 || strpos($arquivo,DIR_FS_CACHE) === 0 || strpos($arquivo,DIR_FS_CATALOG . DIR_WS_IMAGES) === 0) continue; but the cache folders (from admin and from catalog) are still in the backup file. The if needs to be updated to: if (strpos($arquivo,DIR_FS_BACKUP) === 0 || strpos($arquivo,DIR_FS_ADMIN . DIR_FS_CACHE) === 0 || strpos($arquivo,DIR_FS_CATALOG . DIR_FS_CACHE) === 0 || strpos($arquivo,DIR_FS_CATALOG . DIR_WS_IMAGES) === 0) continue; to remove cache folders from admin and catalog. Regards.
  15. pedro.antunes

    Backup All Store Files In Zip Format

    Found the solution to both questions... the code $nome=substr($arquivo, 3); is "eating" the 3 first letters from the file: /va... from /var/www/... changing the 3 to 1 makes the 1st folder name complete var/www/... By changing that line to $nome=str_replace(DIR_FS_DOCUMENT_ROOT,'',$arquivo); removes the full path /var/www/vhosts/my_server.com/httpdocs/ Regards!
×