Member
Member
barrento   12-12-2009, 17:41
#1

Hi,
In the "Effervescence_plus" theme which file should I edit to the main photo is displayed in full-size? I changed the frame size to the size of my images, but the photos are enlarged... any help, please?

Administrator
Administrator
acrylian   12-12-2009, 17:50
#2

Please consider to read the theming tutorial to learn how Zenphoto themes work.

Member
Member
barrento   12-12-2009, 18:03
#3

That is a good ideia :) but I thought it was easy this way...
I guess what to change (I dont know nothing of PHP) but looking at the files I discover where... but the images are still a bit stange...
Thanks Acrylian

Member
Member
barrento   12-12-2009, 23:11
#4

I read all what I think it is needed, seach the forum, etc, but I still cant do it :(
Does anyone knows a way to put a random image in its full size? I will appreciate any help. http://www.barrento.com/emag/zenphoto/index.php

Member
Member
sbillard   13-12-2009, 00:18
#5

There is really no concept of "full size" for an image displayed by a theme. You have two choices.

1.Pick a size you consider "full" and use it for your image sizes.
2.create an image src link using `getUnprotectedImageURL()'. This will, of course, jeprodise the theme layout since there may not be uniformity of image size and orientation.

Member
Member
barrento   13-12-2009, 01:05
#6

sbillard,
what I mean is that "effervescence_plus" displays at index an image that is not at the size that image has on my folders. It looks like e crops a thumbnail and than enlarge it...
what I was looking for was a method to put a random image - at the size of my images on my "albums" folder - on my page... what I manage now http://www.barrento.com/emag/zenphoto/index.php :)
the bad news is that i can only display image from one folder at the time... :(

Member
Member
sbillard   13-12-2009, 01:33
#7

That image is shown by using the printCustomSizedImage() function. Just change the size parameter to what size you want.

Member
Member
barrento   14-12-2009, 15:38
#8

Thanks, but where can I chande it? I try to read all the things about it, but still no changes...

Administrator
Administrator
acrylian   14-12-2009, 16:22
#9

You probably have to modify the printheadingImage() custom function in customfunctions.php).

Member
Member
barrento   14-12-2009, 17:28
#10

thanks acrylian, I finally did it! With lots of trial and error, lol!... PHP is a strange language to me :)

Member
Member
barrento   14-12-2009, 17:30
#11

ups..there is more one problem: it only works with horizontal images, not with vertical ones :(

Member
Member
barrento   14-12-2009, 17:32
#12

I have this:
}
$randomImageURL = htmlspecialchars(getURL($randomImage));
if (getOption('allow_upscale')) {
$wide = 890;
$high = 600;
} else {
$wide = min(890, $randomImage->getWidth());
$high = min(600, $randomImage->getHeight());
}
echo "

Member
Member
sbillard   14-12-2009, 18:09
#13

You will have to test the image orientation (it's native height & width) and set your picture height/width appropriately.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.