Support » Multisite » Login/Redirect issues

Login/Redirect issues

Viewing 15 replies - 16 through 30 (of 32 total)
  • 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


    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

    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.

    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” …

    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?


    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.

    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)

    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)

    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?

    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.

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

    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!

    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.

    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?

    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.
Skip to toolbar