PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro How Do I...?

Photopost Pro How Do I...? Wondering how to do things in PhotoPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old July 9th, 2007, 10:28 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Feb 2004
Posts: 117
Associate a photo with a user

How can I associate a photo with a particular user? For example, I have my site set up to where only members of certain user groups can view full sized photos and comment on them, however all members may submit photos. What I would like to do is set it so that the user who submitted the photo can view their photos and the comments left for them, but not be able to view the photos they did not post, unless they have joined that particular group.

For example:

Joe is a member of Group 1. Group 1 can view all full sized photos and leave comments.

Bob is a member of Group 2. Group 2 can only submit photos, but cannot view the full sized photos or leave comments.

Bob submits a photo and Joe comments on it. Under the current group set up, Bob is unable to see the comment left by Joe.

How can I set in showphoto.php so that Bob's userid from the logon can be be referenced to the userid from the photo so that access can be allowed to view even though it is not a part of the group.

Something similar to this

Code:
Content visible to verified customers only.
ghinton is offline   Reply With Quote
Old July 9th, 2007, 12:36 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,665
The variable your looking for is $iuserid and I cant tell you how to code anything cause it all depends how you setup and coded your files to grab a user's usergroup. Thus only you know the answer to your question so you define your if clause how you want based on how you have priorly hacked the code.

$User['userid'] != $iuserid

That would mean if the user was not the poster they could not see it and if they are the poster they could see it

So your clause in effect would be to say if they are not the poster and do not belong to usergroup x then they have no permission so you take it from there. Now before to put any check also in the if clause for admins or mods
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old July 9th, 2007, 01:05 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Feb 2004
Posts: 117
Thanks Chuck! I play around with the code and see if I can get that to work.
ghinton is offline   Reply With Quote
Old July 9th, 2007, 02:05 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,665
You follow what I am saying right? Your if clause is gonna have to basically say this

IF NOT ADMIN IF NOT MOD IF USERID DOES NOT EQUAL PHOTO USERID IF NOT USERGROUP X then NO PERMISSION
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Associate Image Neil Washbrook How Do I? - vBulletin 3.0.X 4 August 17th, 2005 04:12 AM
Upload photo as a different user rbl vBGallery Suggestions 2 December 20th, 2004 02:53 PM
option to allow users to associate albums to categories: how? rbl General Discussion 17 December 3rd, 2004 02:32 PM


All times are GMT -5. The time now is 06:56 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0