Support » Plugins » WPHPBB-Login

Viewing 6 replies - 1 through 6 (of 6 total)
  • i just don’t understand how to implement the if function_exists code…can you put an HTML example here?!


    Ok below is the get_userdata function in functions.php of phpBB2. If you look before and after it you will see, if (!function_exists . ….) and then an endif;

    This is what I mean. You need to wrap the code for the specific function in this check to make sure it doesnt try to load it twice.

    // Get Userdata, $user can be username or user_id. If force_str is true, the username will be forced.
    if (!function_exists(‘get_userdata’))://added for wphpbb
    function get_userdata($user, $force_str = false)
    global $db;

    if (!is_numeric($user) || $force_str)
    $user = phpbb_clean_username($user);
    $user = intval($user);

    $sql = “SELECT *
    FROM ” . USERS_TABLE . “
    WHERE “;
    $sql .= ( ( is_integer($user) ) ? “user_id = $user” : “username = ‘” . str_replace(“\'”, “””, $user) . “‘” ) . ” AND user_id <> ” . ANONYMOUS;
    if ( !($result = $db->sql_query($sql)) )
    message_die(GENERAL_ERROR, ‘Tried obtaining data for a non-existent user’, ”, __LINE__, __FILE__, $sql);

    return ( $row = $db->sql_fetchrow($result) ) ? $row : false;
    endif; //Added for wphpbb


    ok i’ve implemented all of that – yet on my wordpress page ( there doesn’t seem to be any change. As in it’s not redirecting to the phpBB login page etc. Am i being completely stupid!?

    Also when I try to save the options in the wphpbb-login in WordPress admin it doesn’t appear to keep them.

    What does Level to Access Dashboard mean also?


    I have uploaded a new version to fix the options problems.


    I’m using wphpbb for my site, but when I activate the wphpbb-login plugin, my login sidebar goes blank, as in, there are no choices to click. This is regardless of whether any of the options are checked for integrating logins. Any suggestions?

    Can anyone help me please?

    I am having trouble getting the logons for CH and WordPress integrated using wphpbb_login on my test forums.

    I am using

    CH 2.1.6 with attachment mod
    Wordpress 2.0.4
    wphpbb_login 0.12

    I have tried following the instructions for wphpbb_login but am not finding them easy to follow.

    Has anyone sucessfully done this and be able to help me?



Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘WPHPBB-Login’ is closed to new replies.