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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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.