• PHPTHumb for Smaller detail image preview (to save traffic) 3 0 5 1
Currently:  

Author Topic: PHPTHumb for Smaller detail image preview (to save traffic)  (Read 49424 times)

0 Members and 1 Guest are viewing this topic.

Offline khan

  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: PHPTHumb for Smaller detail image preview (to save traffic)
« Reply #15 on: February 21, 2010, 04:58:43 PM »
hi,
great mode, i just add this to my gallery every thing works fine except there is no link to the original image on image displays on detial page, how to make the link to the original image?

Offline SilverShadow

  • Newbie
  • *
  • Posts: 15
    • View Profile
    • SilverShadow Gallery
Re: PHPTHumb for Smaller detail image preview (to save traffic)
« Reply #16 on: July 04, 2010, 06:51:47 PM »
Works fine but I got the same issue as khan, there's no link for the original image
any help guys :)


EDIT
its only shows the new size "800X600" and no pop-up with the original image !!

UPDATE
Sorry, I didn't notice the Nicky's code :) resizing note appears now but still no link for the original image :(
« Last Edit: July 04, 2010, 07:23:10 PM by SilverShadow »

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: PHPTHumb for Smaller detail image preview (to save traffic)
« Reply #17 on: July 20, 2010, 12:50:20 AM »
i have this in my details.html template

Code: [Select]
<a href="#" onClick="window.open('./showwall.php?src={media_src}&amp;image_id={image_id}&amp;title={image_name}', 'showpic', 'fullscreen=yes,resizable=yes,status=no,menubar=no,toolbar=no,scrollbars=yes,left=0,top=0'); return false;" title="{image_name}">
<img src="./media.php?src={media_src}&w=400&fltr[]=wmt|resized:+^Xx^Y+to+^xx^y|10|B|FFFFFF|arial.ttf|100|7||000000|100|" border="0" alt="{image_name}"></a>

media.php would be phpThumb.php

showwall.php is this: http://phpthumb.sourceforge.net/index.php?source=demo%2FphpThumb.demo.showpic.php
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
Re: PHPTHumb for Smaller detail image preview (to save traffic)
« Reply #18 on: November 10, 2010, 12:58:20 PM »
For those who're using PHPthumb and have gallery with many images, I would recomment using this modification:
http://mrphp.com.au/code/image-cache-using-phpthumb-and-modrewrite

Quote
Generate thumbs by visiting a URL such as your.com/thumbs/50x50/images/image.jpg. This will create a 50x50px thumbnail of your.com/images/image.jpg.

The thumb will be stored on your server at your.com/thumbs/50x50/images/image.jpg so the next request for the same image will be loaded without loading php for ultra fast image cache.

Offline kai

  • Administrator
  • Addicted member
  • *****
  • Posts: 1.423
    • View Profile
    • 4images - Image Gallery Management System
Re: PHPTHumb for Smaller detail image preview (to save traffic)
« Reply #19 on: November 10, 2010, 05:16:51 PM »
Attention:

We recommend NOT to use PHPTHumb until they released a fixed version!

The current version 1.7.9-200805132119 (released May 28, 2008) has a big security leak.
Attackers can compromise your server.

Secunia rated this vulnerability as "highly critical".

http://secunia.com/advisories/39556/
« Last Edit: November 10, 2010, 06:04:36 PM by kai »
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search


Offline clubbu

  • Newbie
  • *
  • Posts: 47
    • View Profile
Re: PHPTHumb for Smaller detail image preview (to save traffic)
« Reply #21 on: July 29, 2011, 06:11:13 PM »
Very thanks for your bug fix