Member
Member
Surlyben   2007-06-26, 08:05
#1

I was wondering if there was any way to trick the index.php page into displaying like an album.php page. And, assuming that is possible, how I would go about telling it which album it is supposed to be displaying?

I'm working on an art portfolio site, and it's never going to have more than a few albums, so I'd just as soon skip the page that lists the albums and get right into the albums themselves...

Any help would be much appreciated...

Thanks,
Ben B

Member
Member
sbillard   2007-06-28, 00:24
#2

The code which prints out the image thumbs is lines 21-29 of album.php in the default theme.

You could try replacing lines 20-36 in index.php with the above.

Member
Member
Surlyben   2007-06-28, 22:26
#3

That gives a Fatal error: Call to a member function on a non-object...

However, putting the thumbnail getting code inside a while statement that calls the albums seems to work:









                    "> 











`

Of course, that'll probably show thumbnails from all albums. Now if only I could figure out how to make it only show the first album (or better yet how to tell it to show thumbs from an arbitrary album) and how to  make the full sized image link to the correct image page (probably the image page for the second image in the album), I could then move on to making it all look pretty...
Member
Member
Surlyben   2007-06-28, 22:28
#4

(I have a site up that I am testing this out on at http://benhard.com/zenphoto )

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