WordPress.org

Ready to get started?Download WordPress

Forums

Login forum to mybb forums (2 posts)

  1. Mr-Cute
    Member
    Posted 5 years ago #

    hey am using this code :

    <?php
    chdir('fanclub'); // path to MyBB
    define("IN_MYBB", 1);
    require './global.php';
    ?>
    <?php
    
    if($mybb->user['uid'])
    {
    // The user is logged in, say Hi
    echo "Hey, $mybbuser[username].<br />
    Thanks for logging in.";
    }
    else
    {
    // The user is not logged in, Display the form
    echo "<form action='fanclub/member.php' method='post'>
    Username: <input type='text' name='username' size='25' maxlength='30' /><br />
    Password: <input type='password' name='password' size='25' />
    <input type='hidden' name='action' value='do_login'>
    <input type='hidden' name='url' value='index.php' />
    <input type='submit' class='submit' name='submit' value='Login' /></form><br />";
    }
    ?>

    its for login to mybb forums

    when i paste this code in widget
    look to this images :
    http://www.haifafans.net/uploader/image-6D06_4A37F927.jpg

    and when i save it login form look like :
    http://www.haifafans.net/uploader/image-1107_4A37F927.jpg

  2. Sammyed
    Member
    Posted 4 years ago #

    Mmm...interesting,

    What is this for?

    ...to login to myBB from WP?

    Should be great to be able to merge MyBB and WP users with passwords and stuff.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags