 | |  | | | Photopost Pro How Do I...? Wondering how to do things in PhotoPost? |
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
|
| |
January 26th, 2009, 10:41 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
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.
|
| |
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?
|
| |
January 26th, 2009, 05:07 PM
|
#4 (permalink)
| | Photopost Developer Verified Customer
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.
Last edited by Chuck S; January 27th, 2009 at 04:21 PM.
|
| |
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 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!
|
| |
January 27th, 2009, 09:07 AM
|
#6 (permalink)
| | Photopost Developer Verified Customer
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"
|
| |
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.
|
| |
January 27th, 2009, 03:29 PM
|
#8 (permalink)
| | Ultimate Member Verified Customer
Join Date: Sep 2002
Posts: 1,217
| Quote:
Originally Posted by snoopy5 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...
|
| |
January 27th, 2009, 03:41 PM
|
#9 (permalink)
| | Photopost Developer Verified Customer
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.
|
| |
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 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.
|
| |
January 27th, 2009, 04:22 PM
|
#11 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,667
|
Look at post 4 again then. |
| |
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?
|
| |
January 27th, 2009, 04:46 PM
|
#13 (permalink)
| | Photopost Developer Verified Customer
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.
|
| |
January 27th, 2009, 04:59 PM
|
#14 (permalink)
| | Photopost Developer Verified Customer
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.
|
| |
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...
|
| |
January 28th, 2009, 09:27 AM
|
#16 (permalink)
| | Photopost Developer Verified Customer
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 |
| |
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 |
mmmmhhh.... I see it is defintely working on your site.
Could you post your complete showphoto.php file here in this thread?
Thanks
|
| |
January 28th, 2009, 09:34 AM
|
#18 (permalink)
| | Photopost Developer Verified Customer
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.
|
| |
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.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 03:38 AM. | |