Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

gray out graphic when user does not have permission

Status
Not open for further replies.

littlebitofnc

Technical User
Aug 22, 2001
5
US
Situation:
Using MySQL database for a membership site. Pages are written in HTML. A Standard membership level is not going to have the option to view photo albums of other members (after 3 days of activating their membership). On the profile page, there are 2 graphics inside a table for the photo albums - one for Private Album and one for Public Album.

Question:
What would the scripting be to make the photo album graphics grayed out for standard members so they could not even click on them?

Cindy
Little_Bit@fmtc.net
 
sorry, that would have to be server side coding..

Known is handfull, Unknown is worldfull
 
Hi Cindy,

Javascript is a client side language. This means that the "source code" will always be visible to anyone looking for it. So initially I would say that you can't use javascript to handle your problem 100%.

I would let the web server handle user authentication. If you're on an Apache server, then this is relatively easy. In this case the buzzword is ".htaccess". You can google ".htaccess" or have a look in the Apache forum at tek-tips : forum65

... or you can have a talk with your server support/ISP.

Regards


Jakob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top