Only allow registered user to view Image Info Only allow registered user to view Image Info
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Only allow registered user to view Image Info

Started by tip, November 02, 2005, 08:59:40 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tip

Hi,

I'm trying to set up a gallery of products in which I hope to use one of the Image Information fields as the Price of the product.
And I want to hide the price from any unregistered user.
Is it possible to only allow a group of user to view a particular image infomation field?(ex. title, description, comment...any field that I could use as the Price)
Preferrably the Price field would be able to show up in Thumbnails view..

Thanks in advance!

xplicit

All things can be done, but I dont think you'll get propper support if you ask for 3 features in one post
Don't ask me: Can you do this .... or Give me that...or I need Quick help in PM's. I'm not Santaclaus so post your questions on the board so it will be in the benefit for everyone.

tip

sorry, let me rephrase my question.

Could you tell me how I could make an image field only visible to registered users?

thanks very much.

Joachim Müller

edit displayimage.php, find$pic_info = html_picinfo();and replace withif (USER_ID) {
    $pic_info = html_picinfo();
} else {
    $pic_info = 'You need to register to see details';
}
(not tested though).

tip

Thank you! that works fine.

How about if I want to do the same on the thumbnails view, which file do I edit?

Thanks.