Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '"wordpress'

Viewing 25 results - 24,226 through 24,250 (of 26,801 total)
  • Author
    Search Results
  • #63587
    so1o
    Participant

    this make widgets work in forum..

    this is only for the 2.3.x wordpress and current version of bbpress .. the new version of wordpress and bbpress might have a different approach

    http://www.adityanaik.com/integratepress-part-i/

    #63150
    Nola1974
    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.

    #3051

    Topic: Bogus users

    in forum Troubleshooting
    bradsucks
    Participant

    I’m not 100% sure this is a bbPress problem or a WordPress problem but I have a large number of spammy user signups each day. Is there anything I can do to fix this?

    #3050
    askibinski
    Member

    We build a bbpress forum integrated with WordPress and a custom template at http://www.wiatrak.nl/forum

    We also have a Polish translation available for the forum if anyone is interested.

    #63146
    Nola1974
    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;

    Nola1974
    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?)

    #3048
    crazlunatic
    Member

    So what I did was take my original WordPress template and put it in the templates folder and it gave me this:

    http://vistarewired.com/test2/wp-content/bbpress/

    This is what I want except I want to center it, add some grey boxes behind it and that is pretty much it. How do I do this? Because I’m using the same CSS I used for my original blog template which is at http://vistarewired.com

    #63661
    chrishajer
    Participant

    I think you might want to get on IRC and try to raise sambauers.

    https://bbpress.org/forums/topic/talkpress#post-13406

    I’m not sure what the best bbPress revision is for using WordPress 2.5RC1. I think when WordPress 2.5 comes out, there will be a new bbPress release to match up with it. I know WordPress 2.5 was scheduled for March 10th but that’s been held up just a little bit.

    #63649
    testosteron
    Member

    hey isnt it possible?

    please help!

    #3043
    creasy
    Member

    Hey,

    as the password is stored in a different way in WordPress 2.5 (RC1) you can’t log in with bbpress anymore (if u integrated both which i did).

    Until the next version of bbpress comes out, what do I need to update to make this work again?

    Thanks so much in advance!

    #63404

    Oh, goodie! I’ve already upgraded one of my sites to 2.5 and I love it, but another is integrated with WP (after much heartache and pain) and I don’t want to upgrade if it’s going to break it!

    #3044
    proko
    Member

    Hi,

    i have installed how it will be described in the documentation.

    When i go to my install.php (http://www.kreativoase.at/taufkerze/forum/bb-admin/install.php) I am getting this:

    The server encountered an internal error or misconfiguration and was unable to complete your request. Your administrator may not have enabled CGI access for this directory.

    I have CGI on my webserver. I looked in my database. There are no new tables. This is the same database where my wordpress is.

    What can I do? I have the permalinks on “false”.

    Must I install bbpress in a own database?

    Mfg

    Proko

    #63648
    testosteron
    Member

    Please help me!

    I need the help or i cant finish making my new project!

    The login menu must be in the “wordpress section” and in the “bbpress section” of my homepage!.

    Thanks for the help

    #63652
    cmaujean
    Member

    Most of this code was taken directly from the bbsync plugin (I’ve attempted to remove need for configuration, and some of the bbsync functionality/flexibility).

    There are really truly NO errors logged anywhere for this.

    here is my plugin in it’s entirety:

    define('CRBBFORUMID', 1);

    function cr_post($post_id) {
    global $bbdb, $wpdb, $current_user;

    require (dirname(__FILE__) . '/../../bbpress/config.php');
    // get the post
    $post = wp_get_single_post( $post_id );

    if(!$current_user) {
    return;
    }
    bb_set_current_user($current_user->ID);

    $post_title = $bbdb->escape($post->post_title);

    $bb_topic_arr = get_post_meta($post_id, 'bb_topic', $true);
    $bb_topic_id = $bb_topic_arr[0];

    // if bb has this post already, update the topic
    $topic_exists = false;
    if ($bb_topic_id) {
    if(bb_update_topic($post_title, $bb_topic_id)) {
    $topic_exists = true;
    }
    $reply = bb_get_first_post($bb_topic_id);
    bb_update_post($post_text, $reply->post_id, $bb_topic_id);
    }

    // if not, create a new topic
    if (!$topic_exists) {
    $topic_id = bb_new_topic($post_title, CRBBFORUMID, $tags);
    $reply_id = bb_new_post($bb_topic_id, $post_text);

    $r = false;
    if ($topic_id && $reply_id) {
    bb_update_topicmeta($bb_topic_id, 'wp_post', $post_id);
    if (!update_post_meta($post_id, 'bb_topic', $topic_id)) {
    add_post_meta($post_id, 'bb_topic', $topic_id, true);
    $r = true;
    }
    }
    $oldcoms = get_approved_comments($post_id);
    if($oldcoms) {
    foreach($oldcoms AS $oldcom) {
    if($user = bb_get_user($oldcom->comment_author)) {
    $time = strtotime($oldcom->comment_date);
    $text = '<em><strong>This comment was originally posted at ' . date('G:i', $time) . ' on ' . date('jS F Y', $time) . ".</strong></em>nn" . $oldcom->comment_content;
    bb_set_current_user($user->ID);
    bb_new_post($topic_id, mysql_real_escape_string($text));
    }
    }
    }
    }
    return $r;
    }

    function cr_comment($comment_id, $approval_status) {
    global $bbdb, $wpdb;
    require_once(dirname(__FILE__) . '/../../bbpress/bb-load.php');

    $comment = get_comment($comment_id);

    $topic_id = get_post_meta($comment->comment_post_ID, 'bb_topic', $true);
    if(($topic_id) && ($approval_status == 1) && ($comment->user_id) && bb_set_current_user($comment->user_id)) {
    //topic linked, genuine comment, actual user, bb likes user
    bb_new_post($topic_id, $comment->comment_content);
    return true;
    } else {
    return false;
    }
    }

    add_action('publish_post', 'cr_post');
    add_action('comment_post', 'cr_comment');

    #63651
    chrishajer
    Participant

    Without a link to your forum or an example of the plugin code, it’s going to be hard to help. The blank screen is almost certainly a 500 error, so it should be logged somewhere, depending on your server configuration.

    If you disable the plugin and everything works, you know the problem is with the plugin. So, you need to fix that. Without posting the plugin, it will be hard for anyone to help you fix it.

    crazlunatic
    Member

    Thank you for the help. So what I did was take my original WordPress template and put it in the templates folder and it gave me this:

    http://vistarewired.com/test2/wp-content/bbpress/

    This is what I want except I want to center it, add some grey boxes behind it and that is pretty much it. How do I do this? Because I’m using the same CSS I used for my original blog template which is at http://vistarewired.com

    #63650
    cmaujean
    Member

    also, this same problem happens when I try to use the bbsync plugin.

    cmaujean
    Member

    Howdy,

    WordPress 2.3.3

    bbPress latest from yesterday

    Wordpress Integration

    I’ve created a very simple wordpress plugin to attempt to allow wordpress posts and comments to also be put in a bbPress forum.

    When I make a post and my plugin attempts to:

    require_once(dirname(__FILE__) . '/../../bbpress/bb-load.php');

    I get a blank page, and the post/comment does not get sent to bbpress. I’ve have traced this to the point where bb-settings.php calls this line:

    require( BBPATH . BBINC . 'template-functions.php');

    but no matter what I put in template-functions.php (even writing to a file), I get the blank page.

    I’ve checked all my error logs, and there are no errors being logged, not even a 500 error. I’m at my wits end, and late on this project, please help.

    Thanks,

    Christopher

    #3038
    testosteron
    Member

    Hi

    Can i add the bbpress login menu un my wordpress theme?

    The login is in the header of my wordpress blog.

    Thanks!

    and please tell me how!

    #63628
    testosteron
    Member

    mhm can you say me wich login menu i should inegrate in the theme?

    it is in the header and seen on every page!

    #54962
    chrishajer
    Participant

    I think if you wait until bbPress 0.9 is released and integrate it with WordPress 2.5, things will be a lot easier.

    https://bbpress.org/forums/topic/cookies-subtle-bug-single-sign-on-bbpress-and-wordpress#post-14373

    #63627
    chrishajer
    Participant

    I think if you wait until bbPress 0.9 comes out, integration with WordPress 2.5 will be much easier, according to sambauers.

    #3033
    testosteron
    Member

    Hi!

    I want to integrate bbpress into my wordpress blog complete!

    that means :

    • When you login into wordpress you have to be logged in in bbpress the same time! (for write threads and wp comments with one login)
    • I want that wordpress an bbpress look like one theme. So is it possible to show the normal wordpress sidebar in bbpress? and how?
    • wich login menue i should use? (I want to integrate the login menue in the header of both themes )

    I read a lot of things here with set cookie path etc but in PHP I’mnot “the best”! :D

    The structure is like this.

    The domain for the wordpress blog is http://www.example.com/blog/

    and the Domain for the Forum is http://www.forum.example.com/

    I think this thread is needed to make one real documentation for integration so the next with the problem don’t have to read 100 threads :D

    // Sorry for my english! Im from germany ;)

    #54960
    testosteron
    Member

    Hey

    lets say the forum url is

    http://forum.mydomain.com

    and the wordpress is http://mydomain.com

    what do i have to enter where?

    Thanks a lot!

    dss
    Member

    Have you got any plugins running?

    I had this error, and removed all my plugins. Error gone.

    I began adding them back one by one until I found a few which were causing problems.

    Sadly, the wordpress integration plugs were what was giving me this specific error, but admin can post anything, and a couple others were causing problems, so they’re gone now and my forum works fine.

    Just a thought.

Viewing 25 results - 24,226 through 24,250 (of 26,801 total)
Skip to toolbar