gallery link not being disabled by returnto = "no"

merikur

Joined: 2002-08-31
Posts: 2
Posted: Sat, 2002-08-31 17:35

Hey all.
I just set up 1.3.1 last night, and there is a problem that i ran in to. A user wants to embed their album in a web page, and they want to get rid of the gallery link in the breadcrumbs on view_album, view_photo, etc. i reset the returnto value in the setup, but the gallery link is still there.

i was looking at the code, and i think the possible line may be the culprit:
lines 100-102 of view_album.php (code is similar in other offending pages)
---
do {
if (!strcmp($pAlbum->fields["returnto"], "no")) {
break;
----
etc..
should that ! be there? i took it out, and everything seems to work fine.
has anyone noticed this before? am i missing something?

thanks in advance :smile:

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sat, 2002-08-31 18:53

The config wizard sets default values. It doesn't set master switch values for all your albums (which it does say pretty clearly at the top of page 3 of the wizard).

By removing that code, you're disabling the no return to feature. Instead, put the code back and then click [properties] on the album in question and change the return-to setting there.

-Bharat

 
merikur

Joined: 2002-08-31
Posts: 2
Posted: Sat, 2002-08-31 19:04

OK.. thanks.. i see it now.
Since the album was already created, changing that default value didn't ake any difference, and i missed that option on the album properties.

me bad :sad:

thanks for the prompt reply :smile: