PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro How Do I...? (http://www.photopost.com/forum/photopost-pro-how-do-i/)
-   -   Hiding Catagories (http://www.photopost.com/forum/photopost-pro-how-do-i/114397-hiding-catagories.html)

wimberb June 10th, 2005 11:48 PM

Hiding Catagories
 
I seem to be missing something. Using the Catagory Editor I can hide catagories from certain User Groups. This I understand. However, this seems to only work if someone visiting the site is registered and logged on. If they are not logged on then they are not a member of any user group. Thus, all catagories are visible to someone who is not logged on. How do I make it so a catagory does not display to people who are not logged on? I am using DCF integration.

Chuck S June 11th, 2005 08:50 AM

In edit categories view permissions uncheck unregistered

wimberb June 11th, 2005 08:36 PM

Quote:

Originally Posted by omegatron
In edit categories view permissions uncheck unregistered

Hey Omegatron. The problem is that there is no "unregistered" when using DCF integration. Photopost uses the groups created by DCF and DCF does not create a group for unregistered users. I have everything unchecked except Administrator. If I log out I can still see the catagories. If I log in as a member who is not an administrator I can not see the catagories.

Chuck S June 11th, 2005 08:46 PM

DC Forums does not have a guest usergroup??

wimberb June 12th, 2005 12:04 AM

Quote:

Originally Posted by omegatron
DC Forums does not have a guest usergroup??

No, there is no "guest" usergroup. If a forum is set to "Public" then unregestered people can post to that forum but they are not assigned to a group unless they are registered. Groups are assigned to registered users as part of their profile. If you want to require registration then you set the forum to "Protected". This requires registration to post and you can assign registered users to various groups. If you want to keep people from reading a forum then you set it to "Pirvate" and you manually assign rights to individual users to be able to access individual private forums.

Even if I were to create a usergroup named "Guest" it would have no effect in DCF because user groups only apply to registered users.

If I log out then DCF registers that a guest has visited the site. Photopost displays "Users browsing the gallery: 1 unregistered user". But I can see all catagories in Photopost even though all user groups are unchecked except for Administrator.

I even tried unchecking all user groups for the catagory. When I'm logged in then the catagory is invisible, even to the administrator. If I log out then it becomes visible again.

Chuck S June 12th, 2005 06:06 AM

Well quite amazed noone with dcf has every reported this

I show right in the dcf coding guests or unregistered is set to 3

else
$usergroup = 3; // not logged in, use Unregistered group for guest access -rb

wimberb June 12th, 2005 09:05 AM

Quote:

Originally Posted by omegatron
Well quite amazed noone with dcf has every reported this

I show right in the dcf coding guests or unregistered is set to 3

else
$usergroup = 3; // not logged in, use Unregistered group for guest access -rb

I really don't fully understand the integration between DCF and PP other than PP uses the DCF user database for keeping up with who is who. I am using an unhacked, unmodified DCF+ v1.25 and unhacked, unmodified PP 5.11. When I select either Edit Catagories or Edit Groups in PP I see normal, member, team, moderator, and administrator. If I go directly into the database and look in the dcgroup table I see the same 5 groups.

I would try adding an "unregistered" group to both tables but cpanel is currently down on the server so I can't edit the tables. I'll let you know what happens when they get cpanel fixed.

Chuck S June 12th, 2005 10:08 PM

well whomever wrote the dcforums integration is saying usergroup 3 is the guest account which would seem to be team if they are listed in the order you say. Maybe normal is guests?

wimberb June 12th, 2005 10:27 PM

This is from init.php which is the DCF routine that populates the database tables:

if (is_empty_table(DB_GROUP)) {
// Populate group table
$q = "INSERT INTO " . DB_GROUP . "
VALUES ('1','normal'),
('2','member'),
('10','team'),
('20','moderator'),
('99','administrator') ";

cpanel is still down on my server so I have not been able to create a '3','guest' to see if that solves the problem. But as you can see there is no such group created by the install.

Michael P June 13th, 2005 09:03 AM

The DCF integration was provided by DCF developers, it's possible they've changed something but haven't let us know about those changes.

wimberb June 13th, 2005 06:24 PM

Ok, that fixed it. I went into the database and added a group with id 3 which I called guest. I don't believe the name is important, just the id number. Then in PP I selected "Refresh user groups from forum software" in the edit usergroups page. Then I edited the catagories and unchecked guest. All is working as expected now. Thanks for your help.


All times are GMT -5. The time now is 05:20 AM.

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97