Author Topic: smaller detail picture (to save traffic)  (Read 31115 times)

0 Members and 1 Guest are viewing this topic.

Offline vanish

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
    • White Album
Re: smaller detail picture (to save traffic)
« Reply #15 on: March 31, 2005, 10:22:53 PM »
how to force the BROWSER to cache the "image" (even if it is not an image, but a php-file with jpg output...)
absolutely right... but my browser cache this "php-images" only if in cache settings I check "Never".

Offline vanish

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
    • White Album
Re: smaller detail picture (to save traffic)
« Reply #16 on: March 31, 2005, 11:27:46 PM »
I resolve this problem. Insert this code into phpThumb.php at the begin:

list($usec, $sec) = explode(" ", microtime());$sec += 1*24*60*60; // one day caching
$expireDate = gmdate("D, d M Y H:i:s", $sec) . " GMT";
header("Expires:$expireDate");

Offline martrix

  • Hero Member
  • *****
  • Posts: 755
    • View Profile
    • overlord.cz
Re: smaller detail picture (to save traffic)
« Reply #17 on: March 31, 2005, 11:57:49 PM »
nice :)
MAяTRIX


Offline lsd_se

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: smaller detail picture (to save traffic)
« Reply #18 on: July 15, 2005, 01:32:05 PM »
hi

one question about this phpthumb script.  I downloaded it and have uploaded it to my server.  I inserted the line:

Code: [Select]
<img src="phpThumb.php?src={media_src}&w=380" border="0" alt="{image_name}" />
into jpg.html

but the images aren't showing up in the detail window.
what else do I have to do to make this work and integrate it?  is there something else?

thanks  :D

Offline vanish

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
    • White Album
Re: smaller detail picture (to save traffic)
« Reply #19 on: July 15, 2005, 02:26:07 PM »
You must remove start "." in $media_src

Offline lsd_se

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: smaller detail picture (to save traffic)
« Reply #20 on: July 15, 2005, 06:20:28 PM »
You must remove start "." in $media_src

you mean in

Code: [Select]
<img src="phpThumb.php?src={media_src}&w=380" border="0" alt="{image_name}" />?

I'm sorry, I' not exactly sure what you mean

Offline vanish

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
    • White Album
Re: smaller detail picture (to save traffic)
« Reply #21 on: July 15, 2005, 10:16:42 PM »
Find:
"media_src" => $media_src

replace:
"media_src" => substr($media_src, 1, (strlen($media_src)-1))

Offline lsd_se

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: smaller detail picture (to save traffic)
« Reply #22 on: July 16, 2005, 02:31:23 AM »
Find:
"media_src" => $media_src

replace:
"media_src" => substr($media_src, 1, (strlen($media_src)-1))

thanks for the reply.

i tried this and unfortunetely all the images show up as broken now, and as 404 errors..

basically this is what I am having problems with:

1. i uploaded phpThumb to my server, in the root directory.  All the files (phpThumb script files) are there under a folder called "phpThumb"
2. I inserted the line: <img src="phpThumb.php?src={media_src}&w=380" border="0" alt="{image_name}" /> into jpg.html

at this point the thumbnails are showing up, but nothing in the details window

do I need to configure phpThumb?

Offline antonio2005

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: smaller detail picture (to save traffic)
« Reply #23 on: April 05, 2006, 12:00:17 AM »
Hi,

I cant make this in 1.7.2.
What am i missing?

Is it to mod the jpeg.htm under the template directory?

Can someone please explain the mod step by step?

Does it work with cache (1.7.2)?

Regards and thanks in advance,
António

Offline skidpics

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Re: smaller detail picture (to save traffic)
« Reply #24 on: October 12, 2007, 04:43:54 PM »
Trying to use phpthumbs, but no luck..

I have php thrumbs in my  /4_images directory, and edited the jpg.html file in my media directory for my template with:

 <img src="phpthumb/phpThumb.php?src={media_src}&w=380" border="0" alt="{image_name}" />

I have thumbs, but no images are showing.  should the phpthumbs/ above be something like ../phpthumbs/ ??

I cannot fine the media_src+$media_src as mentioned assuming it is in the details.html page of course.  Any help would be appreciated!



Offline skidpics

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Re: smaller detail picture (to save traffic)
« Reply #25 on: October 12, 2007, 08:45:51 PM »
Find:
"media_src" => $media_src

replace:
"media_src" => substr($media_src, 1, (strlen($media_src)-1))

which file is this located in?