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

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    I’m currently creating a ‘start-page’ for my browser (home screen? Don’t know how to say in English).. Anyway, I want this to be linked with my blog.

    Splash page (or static front page).

    FYI, you can do this with WordPress: http://codex.wordpress.org/Creating_a_Static_Front_Page

    I have 2 ‘sub-sites’ blog.mysite.nl (blog) and start.mysite.nl (home screen).
    They are completely different sites, blog.mysite users wordpress and start.mysite doesn’t. I’m creating something for myself and it’s NOT a plug-in for wordpress. Users have to login for their own ‘home page’. But I also want them to be logged in for my blog. So when you’re online on my blog, you’re also logged in on your ‘home screen’ and vice-versa.

    Are they both going to be WordPress blogs? Because if you Create A Network (i.e. MultiSite) you can do this easily. http://codex.wordpress.org/Create_A_Network

    Thread Starter Jelmerholland

    (@jelmerholland)

    Like I said: “I’m creating something for myself and it’s NOT a plug-in for wordpress.”

    So every answer you gave me is not what I was looking for.

    The only thing I want to have linked is the ‘login’/’login session’. That’s all. So you can register on my blog, and use my static frontpage (tnx). It’s NOT the static frontpage for wp. Just for my browser, something like http://www.symbaloo.com. But Now I’m creating it for myself (and eventually for the readers of my blog too).

    So it’s NOT FOR wp. Only the login session has to be joined, and I want to login through another form. The login form on start.mysite.nl.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Either way, your ‘start page’ is a splash page 🙂 That’s the English term.

    If it’s done with WordPress, it’s called a Static Front Page. And UNLESS you need cross site registration (that is you need your custom homebrew stuff to share login info with WP), you can use WordPress for it. Makes it easier.

    Without knowing ANYTHING about this ‘other form’ I can’t tell you anything. Seriously.

    Sure, it’s theoretically possible to hook WP login functions into an external site (which is what it sounds like you want). I know people use LDAP and WordPress, so it can be done, but the details are … well, can’t give you details without details, y’know.

    Thread Starter Jelmerholland

    (@jelmerholland)

    There are currently no details.

    The form can send whatever the wp script needs. If it needs an input with ‘user_login’ and ‘user_pass’ I can give the form those input fields. It depends on what the script needs.

    It’s very simple what I want. I want to use the login script in another file. and that ‘other file’ is NOT part of the wp-blog. It’s just an external script. My splash page.

    There are people in the wp_users table (database). When you are logged in on my blog, you’re also logged in on your personal splash page. If you’re logged in on your custom splash page, you’re also logged in on my blog.

    So:
    – SEPARATED files, SAME login session
    – SEPARATED files, both with login form but with their own redirection
    – SEPARATED files, but same ‘user database’ (wp_users)

    I hope you understand, if anything isn’t 100% clear to you, please give me a sign.

    I think you understand (according to your last paragraph), but I don’t have details. It’s just… what does wp need? what do I need?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    I think you understand (according to your last paragraph), but I don’t have details. It’s just… what does wp need? what do I need?

    Given that you haven’t built anything yet, your best bet is to google ‘integrate wordpress login’ and see how it’s been done for other apps.

    Thread Starter Jelmerholland

    (@jelmerholland)

    http://wordpress.org/extend/plugins/simple-ldap-login/
    If I understand this correctly.. I can install that in the /plugin folder. And then recall it in a different(completely not wp-linked) page?

    I’m not sure if LDAP is what you meant. But you used this term, so I guess it’s okay? Because “Lightweight Directory Access Protocol”, well, I guess that’s what I need? But there is no explanation how to use it. Just how to install it.. so is this what I need?

    I’m sorry if these are some noob questions, but I never worked with wp before… well, a bit, but not deep inside the code.

    And thank you for your time, I really appreciate it.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    LDAP is a specific login protocol. So unless you’re using it right now, no that’s not what you need. I was using it as an example of how it CAN be done. Again, it boils down to the one think you DON’T have: Specifics for the environment you want to connect to WordPress.

    You may be too new to try coding this all on your own. I know enough to get into trouble and I’d hire someone for this level of custom integration.

    Thread Starter Jelmerholland

    (@jelmerholland)

    So, what you’re saying is: It can’t be done.

    Everything I’m asking is: Which files do I need?

    For example: Do I have to include –
    – index.php? or
    – page.php and wp-login.php? or
    – wp-login.php, wp-functions.php and includes/wp-functions.php?

    I hope you know what I mean. PHP and MySQL is no problem. I just need to know where to start. And if you know how, can you please send me the link?

    The only specifics is that I want to integrate the login on an external (not linked to wp) page. And I need to know how..

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    No, I’m totally saying it CAN be done, but it’s very hard and complicated.

    I cannot tell you what files you need because YOU don’t know what you’re trying to integrate INTO WordPress.

    Look… It’s like you’ve asked me what ingredients you need to cook, but you’re not sure if you want to make pizza, cookies, steak or salad. I can’t give you details other than ‘Well, you need food. Spices. And some other stuff.’

    The only specifics is that I want to integrate the login on an external (not linked to wp) page. And I need to know how..

    Then you need to know EXACTLY what this ‘not WP’ page is, and how IT handles users etc.

    If you’re integrating two user databases, then you have to know what each one is. That’s just common sense.

    Thread Starter Jelmerholland

    (@jelmerholland)

    I know exactly what the ‘not WP’ page is. And how IT handles users.. like I said before, it’s an external page, so I didn’t install WP for that purpose.

    The ‘not wp-page’ is a homepage for your browser (so called splash page).. What it has to do is really simple,there are 2 options:

    * you come on start.mysite.nl (splash page), but you’re not logged in.
    * There will be a login form on the splash page, so you can login.
    * You login
    ** WordPress checks whether you’re in the wp_users database or not and it will check for ALL the other wordpress ‘user stuff’. Like groups, status and stuff like that (the wordpress login function)
    *** You’re accepted: You go to YOUR splash page
    **** There will be set a cookie, so will be logged in the whole session AND you can now use the wordpress (respond and stuff like that on my blog) (because it’s the same cookie, because i’ts the wordpress login)
    *** You’re not accepted: You go to a registration form (the one of wordpress)

    Option 2:
    Exactly the same as above, but the difference is that you log in on the blog.mysite.nl and you’ll ALSO be logged in to use the custom splash-page.

    The splash page I’m creating is something like http://www.symbaloo.com, but different (not important), what is important, is that it’s linked to the login script of wordpress (with al the details, like groups, status AND the ‘remember me’ and other cookies). But it DOESN’T contain the data of the blog. So it’s JUST the login function I want to use.

    I can understand you get a little bit agitated, but I still hope that you will help me. I hope this makes sense, so you can give me more details?

    Try adding this login form to your website and see if it works. Note the hidden input called “redirect_to” which is set to return the user back to the page of your choice after logging them into WordPress.

    <div>
          <form action="http://blog.mysite.nl/wp-login.php" method="post">
            <label for="log">Username :
            </label>
            <input type="text" name="log" id="log" value="" size="20" />
            <label for="pwd">Password :
            </label>
            <input type="password" name="pwd" id="pwd" size="20" />
            <input type="submit" name="submit" value="Login" class="button" />
            <label for="rememberme">
              <input name="rememberme" id="rememberme" type="checkbox" checked="checked" value="forever" /> Remember me
            </label>
            <input type="hidden" name="redirect_to" value="http://start.mysite.nl" />
          </form>
        </div>
        <div class="loginregister">Don't have a Username & Password? <strong>
            <a href="http://blog.mysite.nl/wp-register.php">Please REGISTER by clicking here.</a><br />
            </strong>Forgot your password? <strong>
            <a href="http://blog.mysite.nl/wp-login.php?action=lostpassword">RECOVER YOUR PASSWORD by clicking here.</a></strong>
        </div>

    If start.mysite.nl is using PHP then you can make the redirect go back to whatever page the login form is on by using the following as the redirect_to input value:
    <?php echo 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Login using wp_signon on 'non-linked' page.’ is closed to new replies.