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 January 26th, 2009, 10:19 AM   #1 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,217
PP 6.2 in which file is the code for viewing permissions?

Hi

PP 6.2

In which file of photopost do I find the code where viewing permissions are defined per usergroup for categories and member galleries?

Any word I should search for within this file to find the spot easier?

Thanks in advance
snoopy5 is offline   Reply With Quote
Old January 26th, 2009, 10:41 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,667
function set_group_perms()

That is located in the pp-inc.php file which is our global file which contains most of the main functions in use in the program.
__________________
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 January 26th, 2009, 04:42 PM   #3 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,217
mmmhhh, that is not looking easy...

Code:
Content visible to verified customers only.

I only wanted to allow non-registered users to look at the member galleries in full size, although I have set in ACP that you need to be registered to be able to look at images. (ACP/regstration options/Require users to be registered to view images? = yes)

Any hint where/how to put this in there?
snoopy5 is offline   Reply With Quote
Old January 26th, 2009, 05:07 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,667
You dont want to look there then maybe a hard coded override in showphoto might help?

Code:
Content visible to verified customers only.
Have not tested it myself.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.

Last edited by Chuck S; January 27th, 2009 at 04:21 PM.
Chuck S is offline   Reply With Quote
Old January 27th, 2009, 01:28 AM   #5 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,217
Quote:
Originally Posted by Chuck S View Post
You dont want to look there then maybe a hard coded override in showphoto might help?

Code:
Content visible to verified customers only.
Have not tested it myself.
Coooooooooooool

that seems to work!

Is there also a specific ID-numer for public albums of all users? Like the 500 for member galleries?

Thanks a lot!
snoopy5 is offline   Reply With Quote
Old January 27th, 2009, 09:07 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,667
There is no specific catid for personal albums for users but there is this

$CatPerms['cattype'][$dbcat] == "a"

$cattype == "a"
__________________
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 January 27th, 2009, 03:13 PM   #7 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,217
mmmhhhh...

I tried first this without success:


Code:
Content visible to verified customers only.

I then looked further down in showphoto.php to find any kind of códe with cat a in it. But the code there seems not to allow or deny anything, which I could then revert or change, or do I oversee something?:

Code:
Content visible to verified customers only.
snoopy5 is offline   Reply With Quote
Old January 27th, 2009, 03:29 PM   #8 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,217
Quote:
Originally Posted by snoopy5 View Post
mmmhhhh...

I tried first this without success:


Code:
Content visible to verified customers only.

I then looked further down in showphoto.php to find any kind of códe with cat a in it. But the code there seems not to allow or deny anything, which I could then revert or change, or do I oversee something?:

Code:
Content visible to verified customers only.
I also tried this:

Code:
Content visible to verified customers only.
But this gives again access to everything, not just albums or membergalleries...
snoopy5 is offline   Reply With Quote
Old January 27th, 2009, 03:41 PM   #9 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,667
well the logic in your statements is wrong.

what exactly are you trying to do.
__________________
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 January 27th, 2009, 04:13 PM   #10 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,217
Quote:
Originally Posted by Chuck S View Post
well the logic in your statements is wrong.

what exactly are you trying to do.



I want all categories accessable only for logged-in users (done via ACP/registration options/Require users to be registered to view images? = yes)

and in my second example only the public albums free of the login requirement.
snoopy5 is offline   Reply With Quote
Old January 27th, 2009, 04:22 PM   #11 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,667
Look at post 4 again then.
__________________
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 January 27th, 2009, 04:35 PM   #12 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,217
mmmhhh

does not work. Everything is visible now for not logged-in users.

But strangely the old codechange for the membergalleries works neither anymore

Code:
Content visible to verified customers only.
Am I dump? Do I need more coffee?
snoopy5 is offline   Reply With Quote
Old January 27th, 2009, 04:46 PM   #13 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,667
well the variables I posted are all valid for the showphoto.php file. Start fresh with a new file one minute you said something works then you tried something else and it did not so all in what your trying to do. Remember all I am doing is offering pointers here I have not checked anything to ensure it works.
__________________
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 January 27th, 2009, 04:59 PM   #14 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,667
If you just want users to view album photos when guests then simply move the clause I noted in post 4 down below the query in showphoto like noted here.

Code:
Content visible to verified customers only.
__________________
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 January 28th, 2009, 06:51 AM   #15 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,217
Hi

Sorry, this was my mistake.

I thought that the member galleries would be accessable, because I saw the thumbnail. But as soon as I click on the thumbnails it sais that I have to register to view the image

The other code for the albums does not work neither. It sais, there is no image in the database..

As soon as I remove the code, the error disappears...
snoopy5 is offline   Reply With Quote
Old January 28th, 2009, 09:27 AM   #16 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,667
The code I posted is totally valid to show album photos to a guest

My Photo Gallery - Main Index

Note you can only view one photo there
__________________
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 January 28th, 2009, 09:33 AM   #17 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,217
Quote:
Originally Posted by Chuck S View Post
The code I posted is totally valid to show album photos to a guest

My Photo Gallery - Main Index

Note you can only view one photo there

mmmmhhh.... I see it is defintely working on your site.

Could you post your complete showphoto.php file here in this thread?

Thanks
snoopy5 is offline   Reply With Quote
Old January 28th, 2009, 09:34 AM   #18 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,667
No sorry I can not post our complete code files.

PP 6.2 in which file is the code for viewing permissions?

That post clearly outlines the code to use and explains to move that code portion down below the queries to where I show the code to be in that post.
__________________
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 January 28th, 2009, 10:13 AM   #19 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,217
o.k., thanks, I got it working now.

My mistake was, that I had still left the other code for the cat500 (membergalleries) in the file at the top.

So viewing public albums for guest is working now.

But how can I combine this with viewing member galleries also for guests?

I tried to add the "&& $dbcat != 500" in that new line, but then it blocks both, the albums and the membergalleries.

Code:
Content visible to verified customers only.
snoopy5 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
move site, file permissions? globalinsites Photopost Pro How Do I...? 1 September 27th, 2006 06:19 PM
Permissions file to edit kevnj How Do I? - vBulletin 3.5.X 1 March 5th, 2006 05:47 PM
Folders and File Permissions? smokn28 Photopost Pro Installation & Upgrades 2 May 12th, 2005 08:34 PM
uploaded image files need different file permissions flumpydog General Discussion 3 July 28th, 2004 09:45 PM


All times are GMT -5. The time now is 03:38 AM.

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