Member
Member
volfro   24-09-2007, 15:04
#1

Hi all,

I'm using ZP for a client's site: they're a construction company who wants a nice image gallery.

The theme is integrated with WordPress, very loosely (the only WP function I'm using is the footer).

When I edit a sub-album's description, it goes blank and becomes the parent album's description. When I try to edit the parent album's description, it just changes back to the sub-album description.

Have a look.

I've searched the forums and looked at several other sub-album enabled themes but can't find where I'm going wrong. This particular theme is built from the default theme (with sub-album support).

Thanks for any and all help!

Member
Member
volfro   24-09-2007, 17:57
#2

It should be noted that I'm using the latest build from trac.

I know this is probably a stupid mistake in my theme, but I can't find where I've gone wrong based on other sub-album themes...any gurus out there care to take a shot at it?

Also, here's the relevant code in my index and album .php files:

Index.php:
`

    ">





    ">

`

And album.php:

`

    ">





    ">














">

`

Administrator
Administrator
acrylian   24-09-2007, 18:17
#3

You don't need any "(true)" in the while loops, just empty brackets, then everything should work fine.

Member
Member
volfro   24-09-2007, 18:56
#4

I thought the (true) allowed for in-line editing? Must've misunderstood...anyway I'll edit that out and let you know how it goes. Thanks for the tip!

update

It worked, but now I've lost in-line editing and have to do all the album description info from the admin panel. Can't I have both?

Administrator
Administrator
acrylian   24-09-2007, 19:31
#5

The inline editing should be always possible if you are logged in but you only can edit an album description if you are within that album, not on the index (album thumb) view. That is the standard. Does that help? But there may be a trick I don't know.

Member
Member
volfro   24-09-2007, 19:50
#6

Well I AM logged in, but there's still no in-line editing...so basically if I want to include the (true) option it should be outside the loop?

Member
Member
volfro   24-09-2007, 20:20
#7

Alright. It was simple enough. With the if (zp_loggedin()) function I created a div outside the loop specifically for editing album data that only shows up if a user is logged in.

Thanks for the tip! That actually solved a few problems.

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