Pages (2): 1 2   
Member
Member
Stephane   12-06-2006, 18:45
#1

Just put the finishing touches on the theme for the gallery associated to my blog (http://sblog.angoulvant.net/). It will probably not be for release unless I get a lot of demand, in which case I would probably adapt the color scheme.

Check it out and tell me what you think:
http://s.angoulvant.net/

The main header takes a random image from the gallery that is cropped using the ZP function, so sometimes it looks great and other times it seems a bit more abstract...

-Stephane

Member
Member
Skwid   12-06-2006, 19:10
#2

Wow ...
Very nice !
Lovely pictures too ...

As for your validating problem, i think it might be possible to fix by using html entities rather than just the character.
(Example: "&" instead of "&")

Member
Member
Stephane   12-06-2006, 19:50
#3

I think you're right but that's at a deeper level in the ZP code.

Thanks!

Member
Member
Skwid   12-06-2006, 20:59
#4

Hum, you just need to edit the template-functions.php (i think) and change the call to i.php

Member
Member
DarrellD   12-06-2006, 23:01
#5

Nice theme. I love the colors.

Member
Member
Chilifrei64   12-06-2006, 23:33
#6

very clean.. I like the random image on the top..

Member
Member
cowboydan   13-06-2006, 08:19
#7

Very nice theme. Great colors. What font did you use for the site title ?

Member
Member
Stephane   13-06-2006, 09:09
#8

Thanks for the comments! The font is Trebuchet MS.

Member
Member
edasque   14-06-2006, 13:38
#9

Hey, I'd love to try this out on my site. Some very nice photographs too.

Member
Member
Daxeno   15-06-2006, 06:43
#10

Hi Steph... Are you going to share this theme?

Just asking.. coz i like to try this on my zen. :D

Member
Member
svlsvl   16-08-2006, 19:26
#11

Nice! I like it very much as well!

please.... ;)

Member
Member
marc   17-08-2006, 00:10
#12

Very sweet theme. I think you should release it so we have more themes out there to share. How did you do the random image at the top. I was in fact just looking for a way to do this.

Member
Member
edasque   17-08-2006, 14:36
#13

Please share the theme or at least the random image stuff. I would love to get the theme though.

Member
Member
thinkdreams   17-08-2006, 16:12
#14

if you search the forums, there is a random image feature that Skwid and I integrated into the Thinkdreams theme. In fact, you can probably grab the whole theme and pick out the custom function from there. It's up on the Wiki.

Member
Member
Stephane   17-08-2006, 18:10
#15

As thinkdreams pointed out, the code for random images is on the forums somewhere, that's what I used. However, you have convinced me to work on a releaseable version. It might take some time to clean up, so don't hold your breath.

Member
Member
thinkdreams   17-08-2006, 22:51
#16

In the meantime, here is the function I use in my themes:

// Get Random Images

function getRandomImages() {
$result = query_single_row('SELECT '.prefix("images").'.filename,'.prefix("images").'.title, '.prefix("albums").'.folder FROM '.prefix("images").' INNER JOIN '.prefix("albums").' ON '.prefix("images").'.albumid = '.prefix("albums").'.id ORDER BY RAND() LIMIT 1');
$image = new Image(new Album(new Gallery(), $result['folder']), $result['filename']);
return $image;
}

You can use this block of code to display it:

Member
Member
Stephane   18-08-2006, 13:16
#17

I've released the theme and created a new topic about it here.

Check it out!

-Stephane

Member
Member
marc   19-08-2006, 03:16
#18

thinkdreams, I did grab your function, right after I posted above, from your theme and it works great, thanks.

However if one wanted to have a bigger image as a random image like in Stephane's theme, all that random image creation will take up some extra server space. Furthermore since its random and cropped depending on the picture it sometime looks weird, depending on the focal point of the picture.

How could the SQL statement in the thinkdreams getRandomImage function be modified to only get album thumbnails randomly instead of any picture in the entire database? That way you could ensure there aren't a ton of extra images being created and that they would look good cropped.

Member
Member
thinkdreams   19-08-2006, 15:17
#19

If you look at the zenphoto code, the SQL is not determining the image size the random function displays. The SQL, in any of the zenphoto functions, just retrieves the images from the albums, and then runs them through i.php to create an image, a sized image, or a thumb depending on the function.

Rather, the getsizedimage('120') is what does it. It actually uses the i.php to generate the images, which is what zenphoto is using anyway. So I'm not sure how much more overhead there is for the random function generation, as ALL of the images have to be processed through the i.php at some point anyway. If you're worried about caching space, you may want to consider just sizing your images to a smaller size before uploading to zenphoto, that way you're working with a "display" version of the image. Most of my images don't get uploaded over 1024x768, since anything more than that is quite a bit big for regular web users. You also, for copyright reasons, don't want too high of a resolution....

You can adjust the ('120') to any size you want to change the size of the image you can display. Stephane is probably just adjusting the image size higher for her front page random image. The 120 is what I used to display my random image in the thinkdreams theme.

Member
Member
marc   19-08-2006, 15:59
#20

Sorry I think I didn't explain my self correctly.

I know how to resize the photo. What I'm wondering how to do is restrict the radom image function to only be a subset of all the images in the database. Specifically I only want to display random album thumbnails. So in all the album thumbnails I know they will looked good when cropped to center.

So I believe that it is the SQL statment in the random image function that selects which photos out of the database should be considered. How do I make that SQL statement just find the images that are being used as album thumbnails?

Pages (2): 1 2   
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.