Author Topic: Original image if I clic in image  (Read 2628 times)

0 Members and 1 Guest are viewing this topic.

Offline holas

  • Newbie
  • *
  • Posts: 38
    • View Profile
Original image if I clic in image
« on: September 17, 2007, 08:50:46 PM »
I'll like to appears the original image when I clic in one of image. I know that there is this mod http://www.4homepages.de/forum/index.php?topic=3236.0 but it's necessary upload all photos. It's possible to make it whitout this mod?. Thank you.

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Original image if I clic in image
« Reply #1 on: September 17, 2007, 09:19:25 PM »
There are no other than this MOD ...
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

manurom

  • Guest
Re: Original image if I clic in image
« Reply #2 on: September 17, 2007, 10:05:49 PM »
Hello, holas;
there is another "dirty" way to show a medium image and display it in its original dimensions in a new window, using a javascript code.
Hopefully, there is a very more cosmetic way here: Lightbox 2.

Let's say you need to have your images restrained to 520 pixels wide because of your template's definition. For JPG images, you will have to set your templates/your_template/media/jpg.html to this, using Lightbox 2:
Code: [Select]
<!-- Template file for JPG Files-->
<div align="center">
          <a href="{media_src}" target="_blank" rel="lightbox" title="{image_name}"><img src="{media_src}" border="1" alt="{image_name}" width="520" /></a>
</div>

You can do the same thing for other image formats.

Desde luego, paisano, no te apures. Si lo necesitas, puedo ayudarte para ponerlo en tu sitio. Contactame entonces. :wink: