Nola1974 (@nolageek)

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 86 total)
  • In reply to: BB Poll Plugin

    @nolageek

    Participant

    Fresh, new copy of bbpress. installed this plugin, didn’t change settings and I’m not seeing any way to add a poll to a post. Do I need to change a template?

    @nolageek

    Participant

    Getting thread back on track.. i have no access to IRC at the moment, but I definitely think this is AJAX related. It sounds EXACTLY like the issue that above plugin fixed in WP. I’m willing to bet bbpress has a similar promlem with AJAX decrypting cookies.

    @nolageek

    Participant

    I agree. I know bbpress isn’t ‘designed’ to be a drop in integration with wordpress, it seems obvious to me that that should be a major focus. There’s simply too many issues with integration for two projects that share so many concepts, etc… Hopefully 2.5/0.9 will solve a lot of that. It shouldn’t be too much longer after that that WPMU will graft the 2.5 code. I just can’t believe there’s threads on here from 2 years ago about problems sharing cookies.. that are still active. heh.

    @nolageek

    Participant

    From user_id 1

    bb_capabilities a:2:{s:9:"keymaster";b:1;s:8:"throttle";b:1;}

    @nolageek

    Participant

    does bbpress use it’s own Ajax decryption? I’m OK with following/mucking up php and html, but all that Ajax stuff is beyond me.

    This could be related to the albatross that is ‘integration’ that seems to haunt me from host to host. Now, I WORK at the webhost and have access to root and WHM and everything, but still… I’ve never been able to get WPMU and bbpress to play nice. I’ve followed every set of instructions I can find on it, too. Nothing seems to work. (cant wait for the new versions!)

    @nolageek

    Participant

    I got paros running, could login to a bunch of sites (gmail, yahoo, here) but kept asking me for my bbpress’ login over and over.

    What exactly do you want to see from the session in paros?

    GET http://geekdc.com/forum/bb-admin HTTP/1.1
    Host: geekdc.com
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12 Paros/3.2.13
    Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
    Accept-Language: en-us
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive: 300
    Proxy-Connection: keep-alive
    Referer: http://geekdc.com/forum/bb-admin/
    Cookie: __utma=164913321.806591864.1206118840.1206381545.1206389257.5; __utmz=164913321.1206118840.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); ?wordpressuser?=admin; ?wordpresspass?=33b7fd3d41082aeb1764e84c5e297d8f; ‘wordpressuser’=admin; ‘wordpresspass’=33b7fd3d41082aeb1764e84c5e297d8f
    Content-length: 0

    @nolageek

    Participant

    @nolageek

    Participant

    I can actually rename and re-order forums, but can’t delete or create new ones. This is like Deja Vu all over again.

    @nolageek

    Participant

    Same thing happening in all browsers. For some reason Paros wont even start on my machine. I click the icon and nothing happens. Reinstalled Java and everything.

    @nolageek

    Participant

    Running BBpress 0.8.3.1, WordPressMU 1.3.3, PHP 5.25

    I don’t see any sort of indication of Suhosin, etc:

    http://geekdc.com/phpinfo.php

    I just tried a bunch of things and any and only admin functions that involve Ajax gives me the “You do not have permission to do that.” error.

    @nolageek

    Participant

    Just uploaded a new installation to the server and it’s still going this. Why does it just up and do this out of nowhere?

    @nolageek

    Participant

    Still having this issue and host says they don’t have Suhosin installed. This seems to happen only when AJAXy type admin stuff is used so I’m willing to bet it has something to do with it.

    @nolageek

    Participant

    This is apparently caused by servers running the Suhosin PHP hardening patch… it encrypts cookies. I was having a simlar problem about a year ago on another site:

    Can’t post. Topic turns yellow. Can’t delete.

    I found this plugin for WP that fixes it (in WP).. it’s apparently a bug in WP’s AJAX handling. Perhaps something similar is going on inside BBpress’ AJAX functionality?

    http://sparepencil.com/code/ajax-referer-fix/

    in pluggable.php (current)

    if ( !function_exists('bb_check_ajax_referer') ) :
    function bb_check_ajax_referer() {
    if ( !$current_name = bb_get_current_user_info( 'name' ) )
    die('-1');

    $cookie = explode('; ', urldecode(empty($_POST['cookie']) ? $_GET['cookie'] : $_POST['cookie'])); // AJAX scripts must pass cookie=document.cookie
    foreach ( $cookie as $tasty ) {
    if ( false !== strpos($tasty, bb_get_option( 'usercookie' )) )
    $user = substr(strstr($tasty, '='), 1);
    if ( false !== strpos($tasty, bb_get_option( 'passcookie' )) )
    $pass = substr(strstr($tasty, '='), 1);
    }

    if ( $current_name != $user || !bb_check_login( $user, $pass, true ) )
    die('-1');
    do_action('bb_check_ajax_referer');
    }
    endif;

    From above mention (wordpress) plugin:

    if (!function_exists('check_ajax_referer')) :
    function check_ajax_referer() {
    // Explode cookie data like WordPress normally does
    $cookie = explode('; ', urldecode(empty($_POST['cookie']) ? $_GET['cookie'] : $_POST['cookie'])); // AJAX scripts must pass cookie=document.cookie
    foreach ( $cookie as $tasty ) {
    if ( false !== strpos($tasty, USER_COOKIE) )
    $user = substr(strstr($tasty, '='), 1);
    if ( false !== strpos($tasty, PASS_COOKIE) )
    $pass = substr(strstr($tasty, '='), 1);
    }

    // This variable is set when cookie data was sent in an encrypted fashion
    // For more information:
    // * http://forum.hardened-php.net/viewtopic.php?pid=616
    // * http://www.hardened-php.net/suhosin/
    if(isset($_SERVER['RAW_HTTP_COOKIE']))
    {
    // Explode the raw (HTTP) cookie data using the WP method
    $crypt_cookie = explode('; ', $_SERVER['RAW_HTTP_COOKIE']);
    foreach ( $crypt_cookie as $tasty ) {
    if ( false !== strpos($tasty, USER_COOKIE) )
    $crypt_user = substr(strstr($tasty, '='), 1);
    if ( false !== strpos($tasty, PASS_COOKIE) )
    $crypt_pass = substr(strstr($tasty, '='), 1);
    }
    // Set $user and $pass to the decrypted values if the cookies match
    if($crypt_user == $user && $crypt_pass == $pass)
    {
    $user = $_COOKIE[USER_COOKIE];
    $pass = $_COOKIE[PASS_COOKIE];
    }
    }

    if ( !wp_login( $user, $pass, true ) )
    die('-1');
    do_action('check_ajax_referer');
    }
    endif;

    @nolageek

    Participant

    I was using the Display Name plugin, and now I can’t add new forums to the bbpress. Is there anythingI should do to reverse whatever it did to screw up the permissions?

    After a couple of weeks and double checking I did everthing you outlined up there,, I *still* can’t get the cookie thing straightened out. I just cant seem to get single-login to work.. I’ve tried just about everyting I’ve found on the forum. (maybe that’s it… too many things?)

    @nolageek

    Participant

    I have the same issue even after not using the Display name plugin anymore.

    @nolageek

    Participant

    I’m using this plugin at http://geekdc.com/forum and I’m having problems with loginb in while on PDA/mobile phone. Could this be on the fault of the devices?

    @nolageek

    Participant

    I’m not able to get this working in WPMU/bbpress:

    Using newest versions of both (fresh install 3 days ago)

    Site: http://geekdc.com

    bbpress: http://geekdc.com/forum

    bbpress config.php :

    $bb->wp_table_prefix = 'wp_';  // WordPress table prefix.  Example: 'wp_';
    $bb->wp_home = 'http://geekdc.com'; // WordPress - Options->General: Blog address (URL) // Example: 'http://example.com'
    $bb->wp_siteurl = 'http://geekdc.com'; // WordPress - Options->General: WordPress address (URL) // Example: 'http://example.com'

    //if ( isset( $bb->wp_table_prefix ) ){
    $bb->usercookie = ‘wordpressuser’;
    $bb->passcookie = ‘wordpresspass’;
    $bb->cookiepath = '/';
    $bb->cookiedomain = '.geekdc.com';
    $bb->path='/forum/';
    //}
    /* Stop editing */

    Stock WPMU wp-config.php

    Using the following plugins on WPMU:

    bbpress-integration.php

    https://downloads.wordpress.org/plugin/bbpress-integration.0.74.zip

    Using the following plugins on bbpress:

    wordpress-integration

    https://bbpress.org/plugins/topic/wordpress-integration/

    display name

    https://bbpress.org/plugins/topic/display-name/

    Is there anything else I need to do?

    When I first log in to WPMU I get the following cookies:

    geekdc.com wordpress_test_cookie (content:’ WP+Cookie+check’)

    geekdc.com wordpressuser (content username)

    geekdc.com wordpresspass (content: hash)

    I go to the forum, and I’m not logged in.

    I log into bbpress and I get two more cookies, exactly the same execept for the expiration dates. The WPMU expires at the end of session. The wordpress expires in one week. I do not get another wordpress_test_cookie.

    @nolageek

    Participant

    perhaps… front-page.php? Just a hunch (without reading the thread)

    @nolageek

    Participant

    That’s pretty amazing. I absolutely love the concept too. GREAT site.

    @nolageek

    Participant

    Very cool. Love it.

    In reply to: Plugin: Avatar Upload

    @nolageek

    Participant

    How about getting this to work with MonsterIDs as well as identicons?

    @nolageek

    Participant

    I knew it was something simple.. some sleep helped me figure out I was missing a ‘global $forum’

    I got it working with the following:

    In my theme’s functions:

    <?php

    function show_bblogin() {
    global $forum;
    if ( $forum ) {
    login_form();
    if ( is_bb_profile() ) profile_menu();
    } else {
    echo '<a href="/forum/">Visit the Forum!</a></br>';
    }

    }
    ?>

    and in my sidebar:

    <?php show_bblogin(); ?>

    Works like a champ.

    In reply to: VBulletin vs. bbPress

    @nolageek

    Participant

    that matrix seems to be fairly outdated as many of the items are blank when they should be ‘yes’ or at least ‘plugin’ for bbpress.

    In reply to: Import SMF to bbPress

    @nolageek

    Participant

    I was able to import it perfectly, except now I cant log in with any of the usernames and after I had the new password generated, the admin account from SMF doesn’t have admin privileges on the bbpress board.

    @nolageek

    Participant

    has anyone tried hacking this to limit the types of embeds.. say, make sure it’s only from x-tube/youtube/etc… maybe a url check?

Viewing 25 replies - 1 through 25 (of 86 total)