Viewing 15 replies - 16 through 30 (of 32 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Oh. I think I see why.

    The second one should be:

    if ( ( is_user_logged_in() && is_blog_user() ) || is_null( $content ) )

    I updated it and put it on GitHub, since I cant seem to get to pastebin now o.O

    https://github.com/Ipstenu/HalfElf/blob/master/plugins/tidbits/members-shortcodes.php

    Thread Starter bbcurtis

    (@bbcurtis)

    No Go, still acting same. I coped the code direct from your post, pasted in the loggedin-shortcodes.php file that is in wp-content/plugins
    ..acts same on mobile browser, Chrome, Firefox, IE7

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Is that user a member of the other site?

    Generally users are ‘psudeo subscribers’ so they can read, but they don’t have ‘logged in’ access to do more than read and comment.

    Thread Starter bbcurtis

    (@bbcurtis)

    Not that I can tell. I even deleted users that I had created for test purposes. In Network Admin, I see all users, there are two
    independent users and who has super admin.

    Maybe another plugin causing an issue?.

    HMM, this is interesting. If i’m logged into one account,
    and type in the url of another page, I can get in w/out logging in. OK, we know that, but when logged into one account and I try to log into the admin account with http://spotsonline.com/wp-login.php I get redirected to
    the profile page of the original account i’m logged into, BUT doesn’t let me in, I get an “invalid user ID” …

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    I think that one of your plugins is doing the invalid ID thing, personally. I can’t reproduce that on a clean build.

    But I’m not talking about network admin users 🙂

    Go to the site (test4) and the users lists on that site. Who’s there?

    Also do you have any plugins that add users with default access to new sites?

    Thread Starter bbcurtis

    (@bbcurtis)

    Gotcha.

    I have 5 sites. On 3 of the the sites I only have 1 user as “Administrator” 1 other site has 2 users, 1 “Subscriber” and 1 Administrator, and one more site with 2 users, “Subscriber” and 1 Administrator.

    Network Activated Plugins:
    Add Logo to Login / Login Configurator Take Control of the WordPress Toolbar / WP-Filebase / WP Hide Dashboard

    Only 1 of the sites (the original site I created before I sent to Multisite) has 2 plugins activated on the site itsel: Admin Trim Interface and Jetpack by WordPress.com—the other do not have any activated on the individual site.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Okay so we have

    Site1 – Admin
    Site2 – Admin
    Site3 – Admin
    Site4 – User1, User2, Admin
    Site5 – User3, User3, Subscriber(?), Admin

    Is that right? (And yes, this kinda matters)

    Thread Starter bbcurtis

    (@bbcurtis)

    I’m not totally sure of creation date, but this is the order
    they appear in “My Sites” Menu:
    Site1 – User1 (Role=Admin)
    Site2 – User1 (Role=Admin)
    Site3 – User1 (Role=Admin)
    Site4 – User2 (Role=Subscriber), User1 (Role=Admin)
    Site5 – User3 (Role=Subscriber), User1 (Role=Admin)

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Creation date isn’t the issue.

    Okay. User1 is going to be able to see the files on all sites, because User1 is a user on all sites (also, hi, the admin).

    User2 should only see Site4’s files.

    User3 should only see Site5’s.

    So the question is, which user is seeing which site?

    Thread Starter bbcurtis

    (@bbcurtis)

    Okie, let’s see if I can do this 🙂

    If I place (page names are not accurate, only for discussion)
    spotsonline.com/site4 (which has a login)
    in the browser (do not log in)
    and place
    spotsonline.com/site5 (which has a login)
    in the browser and log in with user 3–i’m now IN.

    Now with spotsonline.com/site4 in the browser (DO NOT LOGIN, just hit enter), I can get into site4 without having to login.

    As soon as I log out of of either site, then try to access the site that is still open, the site that is still open, logs out.
    Switch the scenario with sites and the same thin happens.
    (and of course I can log into each site with user1)
    Now the exception in this scenario is:

    spotsonline.com/site4 (which has a login)
    in the browser (do not log in)
    and place
    spotsonline.com/wp-login.php (which has a login)
    in the browser and hit enter, it thinks i’m trying to login
    to site4 BUT won’t let me.

    yikes, hope I did ok.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    You will always be considered to be logged in for all sites on a network if you are logged in to one.

    Thread Starter bbcurtis

    (@bbcurtis)

    Guess I need to rethink how I can accomplish what I want to do.
    Thanks so much for the time in working with me to try and get
    that issue figured out.

    Take Care!

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    I’d probably grab Justin Tadlock’s Member’s plugin and make a special role for the actual site user. Problem is you have to make that role for each site separately.

    Thread Starter bbcurtis

    (@bbcurtis)

    hi, sorry didn’t want to keep asking as you’ve been so kind already:)

    Hmmm, seems like I might have tried that plugin, for something. Honestly I don’t remember. I just started using WordPress and messing with code, end of June and have tried so many things, one after other just to get something to work, so i’ve lost some knowledge of what i’ve done.

    With my current setup, can you explain a little further on how I might tweak, or implement to get the results I need?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    it’s a complex setup, I grant you.

    I suppose I’d start by scaling it back and listing my needs.

    1) Users can login and only download their content.

    2) No one else can see their content.

    I wouldn’t even use Multisite for that. I’d use Custom Post Types and then grab http://wordpress.org/extend/plugins/user-specific-content/ to hide each thing.

    Or heck, have one master page with the downloads, everyone goes there, each person only sees their own content.

Viewing 15 replies - 16 through 30 (of 32 total)
  • The topic ‘Login/Redirect issues’ is closed to new replies.