Announcement

#1 2010-06-06 11:43:37

Sugar888
Translation Team
Zurich
2009-11-29
54

Link authorization

Hi

I'd like to ask if there is a way to insert a link, which is visible only for the users (or a group of the galery) and not for all.

Sugar888

Offline

 

#2 2010-06-06 13:44:56

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: Link authorization

Activate and use of LocalFiles Editor ([extension by Piwigo Team] LocalFiles Editor)



and in the first tabsheet "Local config"
following the php writing rules insert for example:

$conf['links'] = array(
    'http://piwigo.org' => array(
        'label' => 'Piwigo website',
        'new_window' => false,
        'visible' => 'return !is_a_guest();'),
);

You will get in the Links menu a single link to Piwigo only for your registered visitors.


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#3 2010-06-06 14:38:55

Sugar888
Translation Team
Zurich
2009-11-29
54

Re: Link authorization

Hi

I tried your suggestion and used for testing it what you've used as an example, but it seems not to work. I see in the Link menue the link, but it is visible for guests too.

Offline

 

#4 2010-06-06 17:47:28

Sugar888
Translation Team
Zurich
2009-11-29
54

Re: Link authorization

Now I was wondering if this option could be included in the plug-in Advanced Menu Manager.

Offline

 

#5 2010-06-06 18:08:42

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: Link authorization

Sugar888 wrote:

Hi

I tried your suggestion and used for testing it what you've used as an example, but it seems not to work. I see in the Link menue the link, but it is visible for guests too.

That's true, and it's a regression from prior releases.

:-(


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#6 2010-06-06 18:10:08

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: Link authorization

Sugar888 wrote:

Now I was wondering if this option could be included in the plug-in Advanced Menu Manager.

That's true.
IMO, it is much more complex.
I am going to notify the AMM author.
;-)


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 

#7 2010-06-06 18:20:18

grum
Former Piwigo Team
Pantin
2007-09-10
1371

Re: Link authorization

[Bugtracker] ticket 1723
but for now, I don't have the time to implement the feature.


My pictures with Piwigo, of course !
[ www.grum.fr ]

Offline

 

#8 2010-06-06 19:56:49

Sugar888
Translation Team
Zurich
2009-11-29
54

Re: Link authorization

Thanks :-)

No problem. I'll wait for the upgrade.

Last edited by Sugar888 (2010-06-06 19:57:45)

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact