• Resolved sergeyzimin

    (@sergeyzimin)


    I have:
    1 user and 2 sites.
    User belongs to site 1 only.
    Both sites do not allow unregistered users to post comments .
    As i said user belongs to one site only BUT he can leave comments on both sites. What for to set sites for user if he has the same rights on all sites in network?

Viewing 12 replies - 1 through 12 (of 12 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Because he’s a member of the network and a psudeo subscriber. Technically he’s a registered member of the network, which is what that checks for.

    Thread Starter sergeyzimin

    (@sergeyzimin)

    Right, he’s registered member of the network,
    BUT why i need to assign any sites to that user if it does not make any difference?
    I supposed that a user of one site cannot be a user of another site if he was not assigned to that site – it makes sense. Otherwise it’s nonsense.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Understanding ‘users’ is a bit weird.

    That should probably say ‘Users must be registered and logged in on the network’ but I can see where that’s not optimal at all. Huh. Ungood. I’m going to kick at core a little to see why this is happening, and if it’s by design.

    Assuming it is by design, I would have to say grab a membership/roles plugin and make a new role for that site. Then edit the ‘subscriber’ role so they can’t comment.

    Thread Starter sergeyzimin

    (@sergeyzimin)

    Thank you. Good advise.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Turns out it is intentional, and I opened a bag of flies on a fruit basket!

    Thread Starter sergeyzimin

    (@sergeyzimin)

    I tried all available plugins and played Role games but still didn’t get what i need. May be you can give me more advise:
    I just need:
    A user who is not assigned to particular site can not do anything on that site except reading. No comments (can only read), no forum replies (can only read), no voting and so on.

    I think i should hack templates. Do i need to write a new function or i can use some from the core code?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    I wouldn’t hack anything if I could help it. But. I don’t know of a work around right now :/

    There’s really no way to disallow site members from commenting.

    Thread Starter sergeyzimin

    (@sergeyzimin)

    in the template that i use the reply form for comments called by function pw_actionCall(‘pw_comments_reply’);
    So if there is a function that checks user /lets call it is_site_user()/ i can do something like that:

    if (is_site_user()) {
    pw_actionCall(‘pw_comments_reply’);
    }

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    You could leverage that to hide comments. What theme is this?

    Thread Starter sergeyzimin

    (@sergeyzimin)

    presswork

    I’m wandering is there a function to check a user if he assigned to the site.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Thread Starter sergeyzimin

    (@sergeyzimin)

    Thank you. Really helpful. You’re right – “read documentation”.

    is_blog_user( $blog_id );

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘user acces’ is closed to new replies.