Author Topic: Is this possible in 4images?  (Read 4937 times)

0 Members and 1 Guest are viewing this topic.

Offline happy-jack

  • Pre-Newbie
  • Posts: 2
    • View Profile
Is this possible in 4images?
« on: July 24, 2005, 05:18:38 AM »
I want people to be able to upload large images but I also want to control how the image is displayed in details.php. Where would I change the code to control the image size? Here is an example.

Example: http://www.imizobo.com/details.php?image_id=6

I want to let someone upload an image this size and give others the ability to download an image this size, but I want to be able to control the display on the details page so that the displayed image is approximately 400 x 400 px. I want the image display to look similar to this size: http://www.imizobo.com/details.php?image_id=3 but be available to download as this size: http://www.imizobo.com/details.php?image_id=6

How do I do this?

Thanks

Offline Vincent

  • 4images Moderator
  • Addicted member
  • *****
  • Posts: 1.195
    • View Profile
    • www.foto-kocher.com
Re: Is this possible in 4images?
« Reply #1 on: July 24, 2005, 02:16:24 PM »
Have a look at others Homepage and you will see what is possible.
if you have skills in PHP and HTML - the world is open to you!
the size of the picture you could controll it in the Admin center!

sincerly
vincent
Beati pauperi spiritus

4images 1.7 // My Installed Mods


Offline happy-jack

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: Is this possible in 4images?
« Reply #2 on: July 27, 2005, 07:10:57 PM »
I guess I wasn't clear enough with my question....

I know you can control the size of the picture that is uploaded throught he Admin center, but that doesn't control the display on the details page...I want to have the full-size image (1024 x 1024) availble for download, but display on details.php a smaller version of the full size -- say around 300 - 400 pixels.

What I need to know is WHERE (not how) in the details.php page would I edit code to control how the image is displayed on the details.php page? I'm looking at the code, but I'm not seeing what I need....can anyone help?


Offline teszeract

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Is this possible in 4images?
« Reply #3 on: September 15, 2005, 05:17:15 AM »
Hello

I'll second the question. I have looked the the template file (details.html) which has an absolute table width of 640px, but the {image} disobeys this and extends out anyway. By error somewhere, I did get get the detail page to display a smaller image, but when you open the image in a new window, it was full sized. :( but I lost the ability when I "fixed" it somehow.

----edit

I found the follwoing discussion which may solve my dilemma: http://www.4homepages.de/forum/index.php?topic=2890.0

Offline teszeract

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Is this possible in 4images?
« Reply #4 on: September 16, 2005, 12:21:59 AM »
Hallelujah!!

The variable needs to be changed in /templates/your_template/media/jpg.html !!!!!