The MU forums have moved to WordPress.org

WPMU outside Wordpress Folder on Sub Domain (5 posts)

  1. CoreyCampbell
    Member
    Posted 16 years ago #

    Essentially, I'm finally tired of searching. I have a site that has wpmu installed within a subdomain (subdomain.domain.com). I want to be able to "show a blog" or at least "who is logged in" on my home page (www.domain.com). I've heard you are supposed to call wp-header.php, but it doesn't seem to be working from the sub domain.

    For Example:
    require('/usr/local/psa/home/vhosts/domain.com/httpdocs/subdomain.domain.com/wp-blog-header.php');

    Gives me:
    No WPMU site defined on this host. If you are the owner of this site, please check Debugging WPMU for further assistance.

    Basically I need to figure out how to define it or connect to the database to show user details on my http://www.domain.com from the wordpress folder that is located at subdomain.domain.com

    I hope this makes sense... I cannot figure it out.

    Merci Beaucoup!

  2. andrea_r
    Moderator
    Posted 16 years ago #

    You only call the header if you're trying to integrate that page to look like the rest.

    If the results of what you want are spewed out into a file, you could then use a php include statement to pull what you wanted onto the main page.

  3. CoreyCampbell
    Member
    Posted 16 years ago #

    Okay. I don't need the look, what I need is to display the current user that is logged in on a page outside of the wordpress install.

  4. CoreyCampbell
    Member
    Posted 16 years ago #

    Like I have wordpress installed here:
    http://www.mydomain.com/wordpress/

    My HOMEPAGE meaning my site HOMEPAGE not wordpress is:
    http://www.mydomain.com/index.php

    I would like to establish some sort of connection with wordpress that would show the logged in WORDPRESS user on my homepage.

    I know how could make a form to submit the user information, that's easy enough, just setup a form. What I need is to actually show the logged in wordpress user on my site homepage (http://www.mydomain.com/index.php).

    Does that make sense?

  5. andrea_r
    Moderator
    Posted 16 years ago #

    Yeah, it makes sense, I just don't know how you'd do it. :) If it was just static info or whatever (like a list), an include would do. Login status, I think, would be harder.

    (and by include, I mean a php include statement.)

About this Topic

  • Started 16 years ago by CoreyCampbell
  • Latest reply from andrea_r