 | |  | | | Photopost Pro Installation & Upgrades If you're having install or upgrade problems |
April 14th, 2004, 11:43 AM
|
#1 (permalink)
| | Registered User
Join Date: Apr 2004 Location: somewhere north
Posts: 31
| [4.7j] hide a category .. usergroup config
I'm using PP 4.7j with PHPNuke 7.1 (i.e. phpbb2.0.6)
so i've been trying to set up the "member's gallery" category to be only visible to a registered user. to that end i've a usergroup called "user" that i setup as a "closed" group ... meaning only registered users ought to be able to see it. as well i configured the "member's gallery" category to only allow access by "users" and "Admin"
problem is that anonymous people can still see this gallery and it's thumbnail contents ... although they can not view. i wanted to avoid this ... and think i'm configuring something wrong ... any thoughts?
|
| |
April 14th, 2004, 12:02 PM
|
#2 (permalink)
| | Senior Member Verified Customer
Join Date: Oct 2003 Location: Ottawa, Canada
Posts: 829
|
In admin > edit categories uncheck the boxes for each user group you want it to be invisible to for "users can view this category"
|
| |
April 14th, 2004, 12:42 PM
|
#3 (permalink)
| | Registered User
Join Date: Apr 2004 Location: somewhere north
Posts: 31
| Quote: Originally posted by Bryan Ex In admin > edit categories uncheck the boxes for each user group you want it to be invisible to for "users can view this category" | one of the first things i had done ... no luck ... didn't do what i wanted ... as i still see all categories and can view all thumbnails.
is there some other admin config?
|
| |
May 9th, 2004, 03:46 AM
|
#4 (permalink)
| | Registered User
Join Date: Apr 2004 Location: somewhere north
Posts: 31
|
still curious about this topic? Haven't moved anywhere since 1 initial response. Problem is that i can't seem to figure out why an anonymous user can see all photos (note: i do not want to enable option "require users to be registered to view photos" ... speaking of which even with this option enabled an anonymous user is still able to see all the thumbnails in a category that he is NOT even supposed to see).
Let me give you some details:
usergroup configuration:
usergroup name? | Anonymous | Admin | moderator | users
admin access? | no | yes | no | no
mod access? | no | yes | no | no
allow uploads? | no | yes | yes | yes
allow comments? | no | yes | yes | yes
require moderation? | no | no | no | no
allow edit own photos? | no | yes | yes | yes
allow edit own posts? | no | yes | yes | yes
allow albums? | no | yes | yes | yes
my sub-category titled "Brasil" has these usergroup "access permissions" configured:
1. These checked usergroups can view images in this category. (only "Admin" is checked)
2. These checked usergroups can upload to this category, unless a usergroup's overall upload access is disabled. (only "Admin" is checked)
3. These checked usergroups can post to this category, unless a usergroup's overall posting access is disabled. (only "Admin" is checked)
and yet when an anonymous user opens the gallery they are able to see the thumbnails and photos for everything in that category?
i tried using member "ablums", thinking that then an anonymous user shouldn't be able to view a member's photos ... the only way that i could prevent an anonymous user from viewing was to add passwords to categories.
Am i doing something wrong?
|
| |
May 12th, 2004, 12:51 AM
|
#5 (permalink)
| | Registered User
Join Date: Apr 2004 Location: somewhere north
Posts: 31
| still hoping that there is someone out there in photopost land that can give me an answer to this issue that i'm having
i'd really like to know if this is a misconfig on my part, a misunderstanding of functionalityony my part, or a bug related to anonymous users?
i'm not keen on jumping around through code, but if it's a necessity then i'd like to know what would be a good area to start? showphoto.php?
thanks
|
| |
May 12th, 2004, 06:46 AM
|
#6 (permalink)
| | Guest |
What usergroup id # is the anonymous usergroup? It should be group #1. If not, you'll need to modify the /forums/postnuke.php file line 250 to match that group id number.
| |
| |
May 12th, 2004, 10:32 AM
|
#7 (permalink)
| | Registered User
Join Date: Apr 2004 Location: somewhere north
Posts: 31
| Quote: |
Originally Posted by donb What usergroup id # is the anonymous usergroup? It should be group #1. If not, you'll need to modify the /forums/postnuke.php file line 250 to match that group id number. | photopost.usergroup table lists the "Anonymous" user as group_id=1, whereas in the nuke.nuke_bbgroups table there is no "anonymous" user! I don't think that having no user in bb is an issue, since when i click on the "Refresh usergroup" link, it always ensures that i have the default "Anonymous" and "Admin" users for photopost.
|
| |
May 19th, 2004, 02:37 PM
|
#8 (permalink)
| | Registered User
Join Date: Apr 2004 Location: somewhere north
Posts: 31
| still waiting for an answer? is there not anyone out there? help!?! |
| |
May 19th, 2004, 02:44 PM
|
#9 (permalink)
| | Guest |
Log out of your PhotoPost.
Modify your postnuke.php file and insert
echo "My anon usergroup is {$ubbgroups[0]}";
at line 328 right above
return( $gologin );
Let me know what it says on screen when you visit any of the pages...
| |
| |
May 19th, 2004, 03:09 PM
|
#10 (permalink)
| | Registered User
Join Date: Apr 2004 Location: somewhere north
Posts: 31
|
thanks for the quick reply don ... i've added as you mentioned: Quote: |
echo "My anon usergroup is {$ubbgroups[0]}";
| directly above line 328 "return( $gologin );" in the file ~/forums/postnuke.php
and results are nothing! I don't see any text being echoed onto the pages! ack!
|
| |
May 19th, 2004, 04:31 PM
|
#11 (permalink)
| | Registered User
Join Date: Apr 2004 Location: somewhere north
Posts: 31
|
hello again donb
in the end i added the above line to the nuke.php and phpbb2.php scripts ... on the assumption that postnuke.php wasn't being called and that's why i couldn't see anything come back
the reply message is "-1" ... .does this help/mean anything?
|
| |
May 19th, 2004, 05:09 PM
|
#12 (permalink)
| | Guest |
Sorry, I meant nuke not postnuke.....
Look for
// login for guests
$ubbgroups[0] = -1;
in the nuke.php file.
Change the "-1" to your anonymous usergroup ID as identified in PhotoPost's usergroups database. (aka, you'll need to look into the PP ug table via phpMyAdmin or similar and grab the id number)
| |
| |
May 19th, 2004, 05:47 PM
|
#13 (permalink)
| | Registered User
Join Date: Apr 2004 Location: somewhere north
Posts: 31
|
That's it! That was the ticket!
Once i modified:
// login for guests
$ubbgroups[0] = -1;
to correlate to the anonymous usergroup from phpbb ... all was ok and the world was round again! Thanks a lot, really appreciated the help!
|
| |
May 20th, 2004, 06:46 AM
|
#14 (permalink)
| | Guest |
My pleasure, and my apologies for making this go on for so long. It's a hectic time | |
| |
November 11th, 2004, 03:26 PM
|
#15 (permalink)
| | Junior Member Verified Customer
Join Date: May 2003 Location: New York City
Posts: 26
| re: ubbgroups=1
Just wanted to add that "1" seems to be the default for a new nuke installation, so you may want to change the code.
|
| | |
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 | | |
Similar Threads | | Thread | Thread Starter | Forum | Replies | Last Post | | Hide Link | stitch | How Do I? - vBulletin 3.0.X | 5 | July 4th, 2006 01:44 PM | | Is there anyway to hide.... | BrentWilson | How Do I? - vBulletin 3.0.X | 2 | May 11th, 2005 05:26 PM | | Hide what users have rated. | Laeth | Photopost Pro Installation & Upgrades | 2 | August 10th, 2004 09:25 AM | All times are GMT -5. The time now is 12:09 PM. | |