forum.coppermine-gallery.net
Support => cpg1.3.x Support => Older/other versions => cpg1.3 Permissions & Access Rights => Topic started by: tip on November 02, 2005, 08:59:40 am
-
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!
-
All things can be done, but I dont think you'll get propper support if you ask for 3 features in one post
-
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.
-
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).
-
Thank you! that works fine.
How about if I want to do the same on the thumbnails view, which file do I edit?
Thanks.