Jump to content



Latest News: (loading..)

* * * * * 3 votes

[Contribution] oscThumb


  • Please log in to reply
441 replies to this topic

#61   clasf

clasf
  • Members
  • 17 posts
  • Real Name:Clas
  • Gender:Male
  • Location:Sweden

Posted 28 January 2008 - 08:53 AM

View Postdscriptor, on Dec 21 2007, 03:29 AM, said:

hi,
what i did is i just make  $PHPTHUMB_CONFIG['nooffsitelink_enabled'] = true;
$PHPTHUMB_CONFIG['nooffsitelink_enabled']	   = true;

then add the domain names in $PHPTHUMB_CONFIG['nooffsitelink_valid_domains'], separated by comma.

like this:
 $PHPTHUMB_CONFIG['nooffsitelink_valid_domains']= array(@$_SERVER['HTTP_HOST'],'www.mysite.com','http://www.mysite.com', 'mysite.com');

everthing works fine now... i hope this help.

=)



Thanks!

It works, fine, I did the same thing but I forgot the first ",", so now it works.

clasf

#62   clasf

clasf
  • Members
  • 17 posts
  • Real Name:Clas
  • Gender:Male
  • Location:Sweden

Posted 28 January 2008 - 08:58 AM

Hi again,

Now I have another small problem.

oscThumb is working great, but when I install the greatlooking contrib Fancy Lightbox Popup

http://addons.oscommerce.com/info/5532

the watermarking is not working on the popup-image anymore. I guess that has something to do with the
call to the tep_image function. Does anyone have a clue how to include the oscThumb function instead?
I really want to use the watermarks again.

clasf

#63   magicmycote

magicmycote
  • Members
  • 45 posts
  • Real Name:MM

Posted 28 January 2008 - 09:38 AM

I have 2.2 RC1 and STS 4.5.8 installed, and I cannot get my images to show up when I switch oscThumb "on". Install went well, I configured my directories and set the permissions - but when I switch it on, my existing product images (and all my other catalog images) no longer show up despite the fact I have oscThumb set to only process product images (Process Store's Graphics   False).

In place of the images is the alt text, and the popup only shows the alt text as well. If I right click on my thumbnail and choose view image (firefox), it says "No input file specified." and the url is:

http://mydomain.com/oscdirectory/oscthumb.php?src=/images/tempimage.jpg&w=100&h=100&f=jpg&q=95&hash=a7476ef97a16710c48fc7459f1f4dcc2

I have encryption turned off, but it looks like it is still trying to do it.

Also, if I click on the product, and then copy the link location from the javascript popup, this is the url:

java script:popupWindow('http://mydomain.com/oscdirectory/popup_image.php?pID=41')

...but when I click it, the address appears correct (except it doesn't work as noted above):

<img src="oscthumb.php?src=/images/tempimage.jpg&w=100&h=100&f=jpg&q=94&hash=17aef4ee81186501296cf72cc271cfc0" w="100" h="100" border="0" alt="50"  LG Plasma TV" title="50"  LG Plasma TV">


#64   magicmycote

magicmycote
  • Members
  • 45 posts
  • Real Name:MM

Posted 28 January 2008 - 10:31 AM

I did not need all of the functionality of this contrib, perhaps I'll revisit it later - but for now went with the old tried and tested one at http://www.oscommerce.com/community/contributions,841.

#65   Fillllle

Fillllle
  • Members
  • 3 posts
  • Real Name:Filip

Posted 12 February 2008 - 11:26 AM

I trying to install osctumb but i got this when i open url:
Fatal error: Call to undefined function: tep_image() in /hsphere/local/home/mysite/mysite.se/webshop/catalog/includes/header.php on line 60  

And this when i open my admin site:

Warning: main(includes/classes/navigation_history.php): failed to open stream: No such file or directory in /hsphere/local/home/mysite/mysite.se/webshop/catalog/admin/includes/application_top.php on line 126 Fatal error: main(): Failed opening required 'includes/classes/navigation_history.php' (include_path='.:/hsphere/shared/apache/libexec/php4ext/php/') in /hsphere/local/home/mysite/mysite.se/webshop/catalog/admin/includes/application_top.php on line 126

Somone who like to help me?

#66   HolgerS.

HolgerS.
  • Members
  • 2 posts
  • Real Name:Holger Severit
  • Gender:Male
  • Location:Germany

Posted 27 February 2008 - 04:16 PM

Hi guys,

I just installed oscthumbs, but get the following error by selecting the Watermark Image File in admin menue:

Quote

Fatal error: Call to undefined function: tep_cfg_pull_down_installed_watermarks() in /homepages/25/d86601661/htdocs/referenzen/catalog/admin/configuration.php(125) : eval()'d code on line 1

This error appears both locally and on server.

Has somebody an idea, how to fix that?!

PS: Sorry for my bad english, but it's not my native language.

#67   HolgerS.

HolgerS.
  • Members
  • 2 posts
  • Real Name:Holger Severit
  • Gender:Male
  • Location:Germany

Posted 27 February 2008 - 08:53 PM

Hi,

I just installed oscthumbs for the third or fourth time and now it's running.  :thumbsup:

I think I did a mistake somewhere during editing the code, but don't know where.  :blush:

Many, many thanks to the author of this great contrib!!

#68   Eighteen48

Eighteen48
  • Members
  • 170 posts
  • Real Name:Ano Hito

Posted 29 February 2008 - 03:56 AM

Quick question kinda noobish, in the manual edits, the intructions for "catalog/includes/functions/html_output.php" read:

FIND function tep_image and RENAME IT function tep_image_original

AFTER this function, ADD:
// START oscThumb
// If you want to call the original function, you can call tep_image_original or call this one with $original=true.
function tep_image($src, $alt = '', $width = '', $height = '', $params = '', $original = false, $thumbnail_type = 0) {
  global $oscthumb;
	
  // We are asked to return the result of the original function
  if ($original || $oscthumb->enabled==false) {
	return tep_image_original ($src, $alt, $width, $height, $params);
  }
	
	$oscthumb->set_type ($src, $width, $height, $thumbnail_type); // Detect the type of image we are currently processing
	if ($oscthumb->set_size ($src, $width, $height)==false) return false; // Choose the displayed width and height of the image, and if display something
	$image = $oscthumb->process($src); // Returns the beginning of the image tag, like <img src="oscthumb.php?src=... or <img src="images/logo.gif"
	
  // Add remaining image parameters if they exist
  if ($width) { 
	$image .= ' w="' . tep_output_string($width) . '"'; 
  } 
  
  if ($height) { 
	$image .= ' h="' . tep_output_string($height) . '"'; 
  }	 
  
  if (tep_not_null($params)) $image .= ' ' . $params;
  
  $image .= ' border="0" alt="' . tep_output_string($alt) . '"';
  
  if (tep_not_null($alt)) {
	$image .= ' title="' . tep_output_string($alt) . '"';
  }
 
  
  $image .= '>';   
  return $image; 
}
// END oscThumb

My first question is am I suppose to change every instance of tep_image to  tep_image_original in the file?

Second Question it says after tep_image add the code above after, but the placement in your modified files is different.  Where should I put this?  I am editing it maunually becasue the section of code where the above is located in your modified files is slightly modified.
Powered By osC 2.2RC2a STS 4.5.8 - HTC 2.6.3 - FP 1.5.9 - BCH 1.0.0

#69   Eighteen48

Eighteen48
  • Members
  • 170 posts
  • Real Name:Ano Hito

Posted 29 February 2008 - 11:36 AM

View PostEighteen48, on Feb 28 2008, 10:56 PM, said:

Quick question kinda noobish, in the manual edits, . . .
. . . files is slightly modified.


Never mind, after taking a break from it, I realized it was sitting right there smack dab in my face.
Powered By osC 2.2RC2a STS 4.5.8 - HTC 2.6.3 - FP 1.5.9 - BCH 1.0.0

#70   Eighteen48

Eighteen48
  • Members
  • 170 posts
  • Real Name:Ano Hito

Posted 29 February 2008 - 11:39 AM

View Postmagicmycote, on Jan 28 2008, 04:38 AM, said:

I have 2.2 RC1 and STS 4.5.8 installed, and I cannot get my images to show up when I switch oscThumb "on". Install went well, I configured my directories and set the permissions - but when I switch it on, my existing product images (and all my other catalog images) no longer show up despite the fact I have oscThumb set to only process product images (Process Store's Graphics   False).

Make sure that in Admin/STS that you put oscthumb.php as a file required for use in the templates.
Powered By osC 2.2RC2a STS 4.5.8 - HTC 2.6.3 - FP 1.5.9 - BCH 1.0.0

#71   Eighteen48

Eighteen48
  • Members
  • 170 posts
  • Real Name:Ano Hito

Posted 29 February 2008 - 10:45 PM

View Postdominik3000, on Nov 13 2007, 11:16 AM, said:

hello,

i am using oscommerce 2.2rc1 with sts 4.5.3. i received the following errors after the install of this contribution:
any ideas what i do wrong?

thanks
dominik

Make sure you put a copy of oscthumb.php in the includes/modules/sts_inc/ folder.
Powered By osC 2.2RC2a STS 4.5.8 - HTC 2.6.3 - FP 1.5.9 - BCH 1.0.0

#72   Emily77

Emily77
  • Members
  • 1 posts
  • Real Name:Emily

Posted 07 March 2008 - 03:06 AM

Hello,

I have set $PHPTHUMB_CONFIG['nohotlink_enabled'] = false, but still constantly get error messages, no Thumbnail is displayed.
please check it from www.bettereyes.com.au

[img]http://www.bettereyes.com.au/error.jpg[/img]


I didn't encounter this problem until yesterday, and I don't have this problem on my local testing server. Anyone can help me with that?

Thanks!
Emily

#73   mendoh

mendoh
  • Members
  • 25 posts
  • Real Name:mendoh

Posted 03 April 2008 - 11:42 AM

Hello everybody!

I just installed this contribution which I believe is great! :thumbsup:

It all works 100% except for the image watermark feature: despite I actually enabled "image watermark in pop-up images", no image watermark shows up inside the pop-up image.
All other features, including graphic watermark work fine, without any error messages.

Anybody has any idea of what could be wrong with my installation?

Thanks a lot and keep up the good work!

Mendoh

#74   celina2007

celina2007
  • Members
  • 123 posts
  • Real Name:Celina
  • Gender:Female

Posted 05 April 2008 - 04:52 AM

Hi all,

I have a serious problem with PHP OsThumb.  I have migrated my os site from a shared server to a a dedicated one, but the products images no longer appear,  i only see this message :

phpThumb () v1.7.7.....
/home/httpd/vhosts/mydomain.com/httpdocs//images/product012.jpg doesn't exist


Please tell me what do do ???  It's really urgent


Best regards.

#75   lavoriamopervoi

lavoriamopervoi
  • Members
  • 11 posts
  • Real Name:Antonello

Posted 18 April 2008 - 09:02 PM

Hi,
in your contribution does not work the size for admin!
That is, in admin images are loaded at actual size, you know how can I solve?
Thank you
Antonello

#76   eMenthal

eMenthal
  • Members
  • 1 posts
  • Real Name:Jorge eMenthal

Posted 24 April 2008 - 01:42 PM

View Postmendoh, on Apr 3 2008, 11:42 AM, said:

Hello everybody!

I just installed this contribution which I believe is great! :thumbsup:

It all works 100% except for the image watermark feature: despite I actually enabled "image watermark in pop-up images", no image watermark shows up inside the pop-up image.
All other features, including graphic watermark work fine, without any error messages.

Anybody has any idea of what could be wrong with my installation?

Thanks a lot and keep up the good work!

Mendoh

--------------------------------------------------------------------------------------------------------
100% WORKING METHOD ON HOW TO DISPLAY GRAPHIC WATERMARK OVER THE IMAGE:

MODIFY \includes\classes\oscThumb.php line 232 like this:

$params .= "&fltr[]=wmi|/phpThumb/watermarks/".WATERMARK_IMAGE."|".WATERMARK_IMAGE_POSITION."|".WATERMARK_IMAGE_OPACITY."|".WATERMARK_IMAGE_MARGIN;
--------------------------------------------------------------------------------------------------------

#77   mendoh

mendoh
  • Members
  • 25 posts
  • Real Name:mendoh

Posted 27 April 2008 - 01:38 PM

Jorge, I would like to say my heartfelt THANK YOU!  :lol:

You are definitely right: your suggestion is 100% working!  :thumbsup:

I modified the code line just as you suggested and right now it is working PERFECTLY on my site!

Once again, thank you. :lol:

Mendoh

#78   mendoh

mendoh
  • Members
  • 25 posts
  • Real Name:mendoh

Posted 27 April 2008 - 03:49 PM

View Postcelina2007, on Apr 5 2008, 04:52 AM, said:

Hi all,

I have a serious problem with PHP OsThumb.  I have migrated my os site from a shared server to a a dedicated one, but the products images no longer appear,  i only see this message :

phpThumb () v1.7.7.....
/home/httpd/vhosts/mydomain.com/httpdocs//images/product012.jpg doesn't exist
Please tell me what do do ???  It's really urgent
Best regards.

Celina, it really seems you have one more slash than what is actually needed in your image path on your server. You ought to remove it and see what happens: please check your configure.php (both catalog and admin) files for actual path; it should read ...../mydomain.com/httpdocs/images/product012.jpg,  and not ...../mydomain.com/httpdocs//images/product012.jpg

Cheers,

Mendoh

#79   seb1188

seb1188
  • Members
  • 165 posts
  • Real Name:Sebastian Keany
  • Location:England, UK

Posted 04 May 2008 - 07:43 PM

I'm slowly getting this to work...

but my drop down list to set the image watermark does not list any images. Can someone tell me what all the fields in a database entry (table: configuration record: configuration_id = 190) looks like so I can input it manually?

Thanks.
osCommerce is GREAT. When it works...

#80   seb1188

seb1188
  • Members
  • 165 posts
  • Real Name:Sebastian Keany
  • Location:England, UK

Posted 04 May 2008 - 08:34 PM

For some reason it just magically started working... not quite sure what I did.  :blink:

Well... I guess it's a good thing!  :lol:
osCommerce is GREAT. When it works...