Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 31,851 through 31,875 (of 64,516 total)
  • Author
    Search Results
  • #100469
    Oleksandr Kramer
    Participant

    Please tell me what to write here

    Now the author of topic is always admin.

    //Topic Author - Guest (What code here?)

    if(!($sp_topic->user_id))

    {

    echo("  Guest start topic: {$sp_posts[0]->guest_name}n");

    // update_post_meta( $inserted_topic, '_bbp_anonymous_name', "{$sp_posts[0]->guest_name}" );

    // update_post_meta( $inserted_topic, '_bbp_anonymous_email', "{$sp_posts[0]->guest_email}" );

    // ??????

    }

    I am a newbie in php – use at your own risk!!!

    <?php

    /*

    Plugin Name: Simple Press to bbPress

    Plugin URI: http://www.4-14.org.uk/

    Description: Import Simple Press forums to bbPress

    Author: Mark Barnes

    Version: 0.1

    Author URI: http://www.4-14.org.uk/

    using: http://site.com?bbpressimport=1&delete=1

    */

    if (isset($_GET))

    add_action (‘init’, ‘mbbb_init’);

    function mbbb_init () {

    global $wpdb;

    define(‘WP_IMPORTING’, true);

    //Delete existing posts

    if (isset($_GET)) {

    $post_ids = $wpdb->get_results(“SELECT ID from {$wpdb->posts} WHERE post_type IN (‘forum’, ‘reply’, ‘topic’)”);

    if ($post_ids)

    foreach ($post_ids as $post_id)

    wp_delete_post ($post_id->ID, true);

    }

    // Import forums

    $forum_map = array();

    $sp_forums = $wpdb->get_results(“SELECT forum_desc, forum_name, forum_slug, forum_seq, forum_id FROM {$wpdb->prefix}sfforums ORDER BY forum_seq”);

    if ($sp_forums) {

    foreach ($sp_forums as $sp_forum) {

    $post_id = $wpdb->get_var (“SELECT post_id FROM {$wpdb->prefix}postmeta WHERE meta_value=’forum_{$sp_forum->forum_id}’ AND meta_key=’_mbbb_sp_id'”);

    if (!$post_id) {

    $inserted_forum = wp_insert_post( array(

    ‘post_author’ => get_current_user_id(),

    ‘post_content’ => $sp_forum->forum_desc,

    ‘post_title’ => $sp_forum->forum_name,

    ‘post_excerpt’ => ”,

    ‘post_status’ => ‘publish’,

    ‘comment_status’ => ‘closed’,

    ‘ping_status’ => ‘closed’,

    ‘post_name’ => $sp_forum->forum_slug,

    ‘post_parent’ => 0,

    ‘post_type’ => bbp_get_forum_post_type(),

    ‘menu_order’ => $sp_forum->forum_seq

    ) );

    if ($inserted_forum) {

    echo “Added {$sp_forum->forum_name}n”;

    update_post_meta( $inserted_forum, ‘_mbbb_sp_id’, “forum_{$sp_forum->forum_id}” );

    } else

    echo “Failed to add {$sp_forum->forum_name}n”;

    } else

    $inserted_forum = $post_id;

    $forum_map[$sp_forum->forum_id] = $inserted_forum;

    }

    }

    // Import topics

    $topic_count = 0;

    $sp_topics = $wpdb->get_results (“SELECT forum_id, user_id, topic_name, topic_slug, topic_date, topic_id FROM {$wpdb->prefix}sftopics ORDER BY topic_date ASC”);

    if ($sp_topics) {

    foreach ($sp_topics as $sp_topic) {

    $post_id = $wpdb->get_var (“SELECT post_id FROM {$wpdb->prefix}postmeta WHERE meta_value=’topic_{$sp_topic->topic_id}’ AND meta_key=’_mbbb_sp_id'”);

    $sp_posts = $wpdb->get_results (“SELECT topic_id, user_id, post_date, guest_name, guest_email, post_content, poster_ip, post_id from {$wpdb->prefix}sfposts WHERE topic_id = ‘{$sp_topic->topic_id}’ ORDER BY post_date ASC”);

    if (isset($forum_map[$sp_topic->forum_id]) && $sp_posts) {

    if (!$post_id) {

    if(! empty($sp_posts[0]->guest_name))

    {

    echo(“Topic: {$sp_topic->topic_name}n”);

    echo(“Guest name: {$sp_posts[0]->guest_name}n”);

    $inserted_topic = wp_insert_post( array(

    ‘post_parent’ => $forum_map[$sp_topic->forum_id],

    ‘post_content’ => $sp_posts[0]->post_content,

    ‘post_title’ => $sp_topic->topic_name,

    ‘post_name’ => $sp_topic->topic_slug,

    ‘post_status’ => ‘publish’,

    ‘post_date_gmt’ => $sp_topic->topic_date,

    ‘post_date’ => get_date_from_gmt( $sp_topic->topic_date ),

    ‘post_type’ => bbp_get_topic_post_type(),

    ) );

    if ($inserted_topic) {

    update_post_meta( $inserted_topic, ‘_bbp_forum_id’, $forum_map[$sp_topic->forum_id] );

    update_post_meta( $inserted_topic, ‘_bbp_topic_id’, $inserted_topic );

    update_post_meta( $inserted_topic, ‘_mbbb_sp_id’, “topic_{$sp_topic->topic_id}” );

    update_post_meta( $inserted_topic, ‘_bbp_anonymous_name’, “{$sp_posts[0]->guest_name}” );

    update_post_meta( $inserted_topic, ‘_bbp_anonymous_email’, “{$sp_posts[0]->guest_email}” );

    } else

    echo “Failed to add {$sp_forum->topic_name}n”;

    }

    else

    {

    if(!($sp_posts[0]->user_id))

    echo(“Guest TOPICStart: {$sp_posts[0]->guest_name}n”);

    $inserted_topic = wp_insert_post( array(

    ‘post_parent’ => $forum_map[$sp_topic->forum_id],

    ‘post_author’ => $sp_posts[0]->user_id,

    ‘post_content’ => $sp_posts[0]->post_content,

    ‘post_title’ => $sp_topic->topic_name,

    ‘post_name’ => $sp_topic->topic_slug,

    ‘post_status’ => ‘publish’,

    ‘post_date_gmt’ => $sp_topic->topic_date,

    ‘post_date’ => get_date_from_gmt( $sp_topic->topic_date ),

    ‘post_type’ => bbp_get_topic_post_type(),

    ) );

    if ($inserted_topic) {

    echo “Added {$sp_topic->topic_name}n”;

    update_post_meta( $inserted_topic, ‘_bbp_forum_id’, $forum_map[$sp_topic->forum_id] );

    update_post_meta( $inserted_topic, ‘_bbp_topic_id’, $inserted_topic );

    update_post_meta( $inserted_topic, ‘_mbbb_sp_id’, “topic_{$sp_topic->topic_id}” );

    } else

    echo “Failed to add {$sp_forum->topic_name}n”;

    }

    }

    else{

    echo “ADD”;

    $inserted_topic = $post_id;

    }

    }

    //Import posts

    $post_count = 0;

    if ($sp_posts) {

    foreach ($sp_posts as $sp_post) {

    $post_id = $wpdb->get_var (“SELECT post_id FROM {$wpdb->prefix}postmeta WHERE meta_value=’post_{$sp_post->post_id}’ AND meta_key=’_mbbb_sp_id'”);

    if (!$post_id) {

    if ($post_count != 0) {

    if(! empty($sp_post->guest_name))

    {

    echo(”    Reply To: {$sp_topic->topic_name}n”);

    echo(”    Guest name: {$sp_post->guest_name}n”);

    $inserted_post = wp_insert_post( array(

    ‘post_parent’ => $inserted_topic,

    ‘post_date_gmt’ => $sp_post->post_date,

    ‘post_date’ => get_date_from_gmt( $sp_post->post_date ),

    ‘post_title’ => ‘Reply To: ‘.$sp_topic->topic_name,

    ‘post_status’ => ‘publish’,

    ‘post_type’ => bbp_get_reply_post_type(),

    ‘post_content’ => $sp_post->post_content

    ) );

    if ($inserted_post) {

    update_post_meta( $inserted_post, ‘_bbp_author_ip’, $sp_post->poster_ip );

    update_post_meta( $inserted_post, ‘_bbp_forum_id’, $forum_map[$sp_topic->forum_id] );

    update_post_meta( $inserted_post, ‘_bbp_topic_id’, $inserted_topic );

    update_post_meta( $inserted_post, ‘_mbbb_sp_id’, “post_{$sp_post->post_id}” );

    update_post_meta( $inserted_post, ‘_bbp_anonymous_name’, “{$sp_post->guest_name}” );

    update_post_meta( $inserted_post, ‘_bbp_anonymous_email’, “{$sp_post->guest_email}” );

    bbp_update_reply_walker( $inserted_post );

    }

    }

    else

    {

    $inserted_post = wp_insert_post( array(

    ‘post_parent’ => $inserted_topic,

    ‘post_author’ => $sp_post->user_id,

    ‘post_date_gmt’ => $sp_post->post_date,

    ‘post_date’ => get_date_from_gmt( $sp_post->post_date ),

    ‘post_title’ => ‘Reply To: ‘.$sp_topic->topic_name,

    ‘post_status’ => ‘publish’,

    ‘post_type’ => bbp_get_reply_post_type(),

    ‘post_content’ => $sp_post->post_content

    ) );

    if ($inserted_post) {

    update_post_meta( $inserted_post, ‘_bbp_author_ip’, $sp_post->poster_ip );

    update_post_meta( $inserted_post, ‘_bbp_forum_id’, $forum_map[$sp_topic->forum_id] );

    update_post_meta( $inserted_post, ‘_bbp_topic_id’, $inserted_topic );

    update_post_meta( $inserted_post, ‘_mbbb_sp_id’, “post_{$sp_post->post_id}” );

    bbp_update_reply_walker( $inserted_post );

    }

    }

    }

    else

    update_post_meta( $inserted_topic, ‘_bbp_author_ip’, $sp_post->poster_ip );

    } else

    {

    $inserted_post = $post_id;

    // echo(“Guest start topic:n”);

    }

    $post_count ++;

    }

    }

    // echo(“Guest start topic:{$sp_topic->user_id}n”);

    update_post_meta( $inserted_topic, ‘_bbp_last_reply_id’, $inserted_post );

    update_post_meta( $inserted_topic, ‘_bbp_last_active_id’, $inserted_post ? $inserted_post : $inserted_topic );

    update_post_meta( $inserted_topic, ‘_bbp_last_active_time’, $inserted_post ? $sp_post->post_date : $sp_topic->topic_date );

    update_post_meta( $inserted_topic, ‘_bbp_reply_count’, $post_count -1 );

    update_post_meta( $inserted_topic, ‘_bbp_hidden_reply_count’, 0 );

    //Topic Author – Guest (What code here?)

    if(!($sp_topic->user_id))

    {

    echo(”  Guest start topic: {$sp_posts[0]->guest_name}n”);

    // update_post_meta( $inserted_topic, ‘_bbp_anonymous_name’, “{$sp_posts[0]->guest_name}” );

    // update_post_meta( $inserted_topic, ‘_bbp_anonymous_email’, “{$sp_posts[0]->guest_email}” );

    // ??????

    }

    bbp_update_topic_walker( $inserted_topic );

    $topic_count ++;

    }

    }

    global $wp_rewrite;

    $wp_rewrite->flush_rules(false);

    }

    #105569
    Oleksandr Kramer
    Participant

    Please tell me what to write here

    Now the author of topic is always admin.

    //Topic Author - Guest (What code here?)

    if(!($sp_topic->user_id))

    {

    echo("  Guest start topic: {$sp_posts[0]->guest_name}n");

    // update_post_meta( $inserted_topic, '_bbp_anonymous_name', "{$sp_posts[0]->guest_name}" );

    // update_post_meta( $inserted_topic, '_bbp_anonymous_email', "{$sp_posts[0]->guest_email}" );

    // ??????

    }

    I am a newbie in php – use at your own risk!!!

    <?php

    /*

    Plugin Name: Simple Press to bbPress

    Plugin URI: http://www.4-14.org.uk/

    Description: Import Simple Press forums to bbPress

    Author: Mark Barnes

    Version: 0.1

    Author URI: http://www.4-14.org.uk/

    using: http://site.com?bbpressimport=1&delete=1

    */

    if (isset($_GET))

    add_action (‘init’, ‘mbbb_init’);

    function mbbb_init () {

    global $wpdb;

    define(‘WP_IMPORTING’, true);

    //Delete existing posts

    if (isset($_GET)) {

    $post_ids = $wpdb->get_results(“SELECT ID from {$wpdb->posts} WHERE post_type IN (‘forum’, ‘reply’, ‘topic’)”);

    if ($post_ids)

    foreach ($post_ids as $post_id)

    wp_delete_post ($post_id->ID, true);

    }

    // Import forums

    $forum_map = array();

    $sp_forums = $wpdb->get_results(“SELECT forum_desc, forum_name, forum_slug, forum_seq, forum_id FROM {$wpdb->prefix}sfforums ORDER BY forum_seq”);

    if ($sp_forums) {

    foreach ($sp_forums as $sp_forum) {

    $post_id = $wpdb->get_var (“SELECT post_id FROM {$wpdb->prefix}postmeta WHERE meta_value=’forum_{$sp_forum->forum_id}’ AND meta_key=’_mbbb_sp_id'”);

    if (!$post_id) {

    $inserted_forum = wp_insert_post( array(

    ‘post_author’ => get_current_user_id(),

    ‘post_content’ => $sp_forum->forum_desc,

    ‘post_title’ => $sp_forum->forum_name,

    ‘post_excerpt’ => ”,

    ‘post_status’ => ‘publish’,

    ‘comment_status’ => ‘closed’,

    ‘ping_status’ => ‘closed’,

    ‘post_name’ => $sp_forum->forum_slug,

    ‘post_parent’ => 0,

    ‘post_type’ => bbp_get_forum_post_type(),

    ‘menu_order’ => $sp_forum->forum_seq

    ) );

    if ($inserted_forum) {

    echo “Added {$sp_forum->forum_name}n”;

    update_post_meta( $inserted_forum, ‘_mbbb_sp_id’, “forum_{$sp_forum->forum_id}” );

    } else

    echo “Failed to add {$sp_forum->forum_name}n”;

    } else

    $inserted_forum = $post_id;

    $forum_map[$sp_forum->forum_id] = $inserted_forum;

    }

    }

    // Import topics

    $topic_count = 0;

    $sp_topics = $wpdb->get_results (“SELECT forum_id, user_id, topic_name, topic_slug, topic_date, topic_id FROM {$wpdb->prefix}sftopics ORDER BY topic_date ASC”);

    if ($sp_topics) {

    foreach ($sp_topics as $sp_topic) {

    $post_id = $wpdb->get_var (“SELECT post_id FROM {$wpdb->prefix}postmeta WHERE meta_value=’topic_{$sp_topic->topic_id}’ AND meta_key=’_mbbb_sp_id'”);

    $sp_posts = $wpdb->get_results (“SELECT topic_id, user_id, post_date, guest_name, guest_email, post_content, poster_ip, post_id from {$wpdb->prefix}sfposts WHERE topic_id = ‘{$sp_topic->topic_id}’ ORDER BY post_date ASC”);

    if (isset($forum_map[$sp_topic->forum_id]) && $sp_posts) {

    if (!$post_id) {

    if(! empty($sp_posts[0]->guest_name))

    {

    echo(“Topic: {$sp_topic->topic_name}n”);

    echo(“Guest name: {$sp_posts[0]->guest_name}n”);

    $inserted_topic = wp_insert_post( array(

    ‘post_parent’ => $forum_map[$sp_topic->forum_id],

    ‘post_content’ => $sp_posts[0]->post_content,

    ‘post_title’ => $sp_topic->topic_name,

    ‘post_name’ => $sp_topic->topic_slug,

    ‘post_status’ => ‘publish’,

    ‘post_date_gmt’ => $sp_topic->topic_date,

    ‘post_date’ => get_date_from_gmt( $sp_topic->topic_date ),

    ‘post_type’ => bbp_get_topic_post_type(),

    ) );

    if ($inserted_topic) {

    update_post_meta( $inserted_topic, ‘_bbp_forum_id’, $forum_map[$sp_topic->forum_id] );

    update_post_meta( $inserted_topic, ‘_bbp_topic_id’, $inserted_topic );

    update_post_meta( $inserted_topic, ‘_mbbb_sp_id’, “topic_{$sp_topic->topic_id}” );

    update_post_meta( $inserted_topic, ‘_bbp_anonymous_name’, “{$sp_posts[0]->guest_name}” );

    update_post_meta( $inserted_topic, ‘_bbp_anonymous_email’, “{$sp_posts[0]->guest_email}” );

    } else

    echo “Failed to add {$sp_forum->topic_name}n”;

    }

    else

    {

    if(!($sp_posts[0]->user_id))

    echo(“Guest TOPICStart: {$sp_posts[0]->guest_name}n”);

    $inserted_topic = wp_insert_post( array(

    ‘post_parent’ => $forum_map[$sp_topic->forum_id],

    ‘post_author’ => $sp_posts[0]->user_id,

    ‘post_content’ => $sp_posts[0]->post_content,

    ‘post_title’ => $sp_topic->topic_name,

    ‘post_name’ => $sp_topic->topic_slug,

    ‘post_status’ => ‘publish’,

    ‘post_date_gmt’ => $sp_topic->topic_date,

    ‘post_date’ => get_date_from_gmt( $sp_topic->topic_date ),

    ‘post_type’ => bbp_get_topic_post_type(),

    ) );

    if ($inserted_topic) {

    echo “Added {$sp_topic->topic_name}n”;

    update_post_meta( $inserted_topic, ‘_bbp_forum_id’, $forum_map[$sp_topic->forum_id] );

    update_post_meta( $inserted_topic, ‘_bbp_topic_id’, $inserted_topic );

    update_post_meta( $inserted_topic, ‘_mbbb_sp_id’, “topic_{$sp_topic->topic_id}” );

    } else

    echo “Failed to add {$sp_forum->topic_name}n”;

    }

    }

    else{

    echo “ADD”;

    $inserted_topic = $post_id;

    }

    }

    //Import posts

    $post_count = 0;

    if ($sp_posts) {

    foreach ($sp_posts as $sp_post) {

    $post_id = $wpdb->get_var (“SELECT post_id FROM {$wpdb->prefix}postmeta WHERE meta_value=’post_{$sp_post->post_id}’ AND meta_key=’_mbbb_sp_id'”);

    if (!$post_id) {

    if ($post_count != 0) {

    if(! empty($sp_post->guest_name))

    {

    echo(”    Reply To: {$sp_topic->topic_name}n”);

    echo(”    Guest name: {$sp_post->guest_name}n”);

    $inserted_post = wp_insert_post( array(

    ‘post_parent’ => $inserted_topic,

    ‘post_date_gmt’ => $sp_post->post_date,

    ‘post_date’ => get_date_from_gmt( $sp_post->post_date ),

    ‘post_title’ => ‘Reply To: ‘.$sp_topic->topic_name,

    ‘post_status’ => ‘publish’,

    ‘post_type’ => bbp_get_reply_post_type(),

    ‘post_content’ => $sp_post->post_content

    ) );

    if ($inserted_post) {

    update_post_meta( $inserted_post, ‘_bbp_author_ip’, $sp_post->poster_ip );

    update_post_meta( $inserted_post, ‘_bbp_forum_id’, $forum_map[$sp_topic->forum_id] );

    update_post_meta( $inserted_post, ‘_bbp_topic_id’, $inserted_topic );

    update_post_meta( $inserted_post, ‘_mbbb_sp_id’, “post_{$sp_post->post_id}” );

    update_post_meta( $inserted_post, ‘_bbp_anonymous_name’, “{$sp_post->guest_name}” );

    update_post_meta( $inserted_post, ‘_bbp_anonymous_email’, “{$sp_post->guest_email}” );

    bbp_update_reply_walker( $inserted_post );

    }

    }

    else

    {

    $inserted_post = wp_insert_post( array(

    ‘post_parent’ => $inserted_topic,

    ‘post_author’ => $sp_post->user_id,

    ‘post_date_gmt’ => $sp_post->post_date,

    ‘post_date’ => get_date_from_gmt( $sp_post->post_date ),

    ‘post_title’ => ‘Reply To: ‘.$sp_topic->topic_name,

    ‘post_status’ => ‘publish’,

    ‘post_type’ => bbp_get_reply_post_type(),

    ‘post_content’ => $sp_post->post_content

    ) );

    if ($inserted_post) {

    update_post_meta( $inserted_post, ‘_bbp_author_ip’, $sp_post->poster_ip );

    update_post_meta( $inserted_post, ‘_bbp_forum_id’, $forum_map[$sp_topic->forum_id] );

    update_post_meta( $inserted_post, ‘_bbp_topic_id’, $inserted_topic );

    update_post_meta( $inserted_post, ‘_mbbb_sp_id’, “post_{$sp_post->post_id}” );

    bbp_update_reply_walker( $inserted_post );

    }

    }

    }

    else

    update_post_meta( $inserted_topic, ‘_bbp_author_ip’, $sp_post->poster_ip );

    } else

    {

    $inserted_post = $post_id;

    // echo(“Guest start topic:n”);

    }

    $post_count ++;

    }

    }

    // echo(“Guest start topic:{$sp_topic->user_id}n”);

    update_post_meta( $inserted_topic, ‘_bbp_last_reply_id’, $inserted_post );

    update_post_meta( $inserted_topic, ‘_bbp_last_active_id’, $inserted_post ? $inserted_post : $inserted_topic );

    update_post_meta( $inserted_topic, ‘_bbp_last_active_time’, $inserted_post ? $sp_post->post_date : $sp_topic->topic_date );

    update_post_meta( $inserted_topic, ‘_bbp_reply_count’, $post_count -1 );

    update_post_meta( $inserted_topic, ‘_bbp_hidden_reply_count’, 0 );

    //Topic Author – Guest (What code here?)

    if(!($sp_topic->user_id))

    {

    echo(”  Guest start topic: {$sp_posts[0]->guest_name}n”);

    // update_post_meta( $inserted_topic, ‘_bbp_anonymous_name’, “{$sp_posts[0]->guest_name}” );

    // update_post_meta( $inserted_topic, ‘_bbp_anonymous_email’, “{$sp_posts[0]->guest_email}” );

    // ??????

    }

    bbp_update_topic_walker( $inserted_topic );

    $topic_count ++;

    }

    }

    global $wp_rewrite;

    $wp_rewrite->flush_rules(false);

    }

    #44721

    Topic: Rolling back

    in forum Troubleshooting
    trevor217
    Member

    I recently upgraded from 2.0 rc5 to 2.0.2 this upgrade seems to have broken bbpress with my particular theme (which doesnt support bbpress but was still working fine under 2.0). I am trying to roll back to 2.0 rc5 or 2.0.1, if i deactivate the bbpress plugin, delete it and reinstall the older version will the configuration and posts/topics stay? It warns me when i go to delete the 2.0.2 plugin which concerns me.

    You are about to remove the following plugin:

    bbPress by The bbPress Community (will also delete its data)

    thanks

    Laurent
    Member

    Hi,

    I recently upgraded my VPS from Debian 5 to Debian 6.

    Related to this were the following changes :

    PHP : 5.2.6-1 —> 5.3.3-7

    MySQL : 5.0.5a —> 5.1.49

    It was a few days ago. Apparently everything was OK.

    On my website there is a forum which is not very active so I don’t know exactly when the problems appeared but I think it must be related to this :

    Today I saw that 2 people had posted an answer to a recent topic but something went wrong : both answers are not linked to the topic and when I want to add this manually through the backoffice the topic just don’t appear in the list.

    Moreover, I tried to post answers to this topic but I immediadely get Erreur HTTP 500 (Internal Server Error). Of course the problem is the same when I try to answer to other topics.

    Any idea about what the problem is and how to solve this ?

    I’m using WordPress 3.3.2 and bbpress 2.0.2

    Thanks for your help !

    Best Regards,

    Laurent

    #44709
    russwittmann
    Member

    What are you using for the code allowed option on the text field here on these forums? Id like to use on my forums as well?

    #44656

    Topic: Meta Title

    in forum Troubleshooting
    russwittmann
    Member

    I have themed my bbpress into my woo theme. I created a slug called support-forums. I have also created a page called Support Forums used the forums index page.

    Every thing seems to be working fine except my meta title, It still says the forum title instead of my seo tittle.

    Any Ideads?

    #110584
    frmwp
    Member

    How can i disable HTML and/or VISUAL editor? (2.1 plugin version)

    #98004
    Oleksandr Kramer
    Participant
    #103104
    Oleksandr Kramer
    Participant
    #113583
    JenniferNM
    Member

    Is there some sort of code we could put into one or more of the bbpress php files to exclude it?

    shawnkelshaw
    Member

    I have a host of problems and not sure really where to begin. Normally, I’d simply try uninstalling the bbpress plugin, but I only get all the same settings and experiences back when I try to start over. Here’s a few of the problems I’ve got:

    1.) We’d like to use the New Site Wide Forums option (vs Forums for Groups). My first question is this an either or scenario or do you have to use the Forums for Groups? I always have a “Use Existing” option for Groups and there is no uninstall button available. When I install the Site Wide and return back to the buddypress forums tab, it still reflects the Groups…

    2.) Regardless of the option selected above, I can not get a Forum page to display…I only get 404. Yes. I’ve created a Test Forum instance and I’m using the “View” option to check it out. 404 error. (it is published and public, I’m logged in as admin)

    If I were to try deleting the tables from the database, uninstalling the plugin and manually removing all server side files, would that help to start over? If so, what tables get removed??

    Thanks in advance.

    s

    #112080
    dannyjimmy
    Participant

    I’m having a bit of trouble with this as well. And I too am on a BP install, though it would seem to me that it shouldn’t matter.

    I used it like this:

    - [bbp-login]

    - [bbp-single-topic-tag id="35"]

    - [bbp-single-topic-tag id="link"]

    - [bbp-single-topic-tag $id="35"]

    - [bbp-single-topic-tag $id="link"]

    - [bbp-single-topic-tag id=$topic_id]

    - [bbp-single-topic-tag id=35]

    (this is when I found the codex file for bbpress shortcodes at https://codex.bbpress.org/shortcodes/ and formatted accordingly)

    - [bbp-single-topic-tag id=$35]

    - [bbp-single-topic-tag id=$tag_id]

    And I got no forums rendered. Very confusing, since the last two were copy paste from the codex.

    You can change the forums slug in your bbPress setting. Just navigate to Setting > Forums in your dashboard and change the default value in “Archive Slugs” & “Single Slugs”

    It’s recommended that you keep the “Single Slugs” enabled, since it’s what differentiate between a topic, tag, reply & user. Just change it to something different.

    spidersilk
    Member

    I’m in the process of converting a standlone BBpress 1.1 installation into the 2.02 plugin version (well, really, recreating it from scratch in the plugin version, because the importer apparently doesn’t work if your blog actually has any users or content).

    And I’ve run into a problem – the default permalink structure for the BBpress plugin is really bizarre. It adds a “forums” slug for the forums area, which is fine and to be expected, but then it also insists on adding an additional “forum” slug before the name of each forum, so that instead of a normal URL like example.com/forums/announcements, you get example.com/forums/forum/announcements, which looks weird and awkward. I tried just removing the forum slug, but that left a double slash in the URL, which my web browser then reduced to a single slash, resulting in a 404 error.

    And for posts within forums, instead of the sort of URL you would normally expect – i.e. for a post in the announcements forum, something like example.com/forums/announcements/welcome, or example.com/forums/announcements/12345 or whatever, you have example.com/forums/topic/welcome – there doesn’t appear to be any way to associate the posts with the actual forum they’re in.

    Is there any way to fix this? Obviously the “forums/forum” thing is the most important – having the completely useless “topic” slug in the post URLs is annoying and pointless, but the “forums/forum” thing makes it look like I was drunk when I set the forums up or something – I really can’t let it go live with a glitch like that in the URLs. But I’d like to fix the topic issue too if possible. Any ideas?

    #113511

    In reply to: bbpress.2.0.2 Arabic

    Faisaal
    Member

    !!!

    no one knows how to help?

    #44662
    neodoxa
    Participant

    Is there a way to add total post count and roles (moderator, etc.) under the avatars/usernames of users in the forum?

    I’m using the BBPress plugin with a Buddypress / WordPress site.

    Thanks.

    #113510
    kennymcnett
    Member

    Thanks for looking at this, jaredatch. Buddypress was overkill for what I needed and was also breaking my custom theme. Some jquery conflict I didn’t want to find.

    For any others out there, I integrated bbPress with s2member permissions successfully. I posted my solution on the s2member forums:

    http://www.s2member.com/forums/topic/a-few-questions-before-i-buy-the-pro-version/#post-13113

    Anyone?

    #113509
    kennymcnett
    Member

    I considered Buddypress, but it’s way more robust than what I’m needing, and installing it was breaking my custom theme (jquery conflict somewhere).

    Thanks for looking at this.

    For anyone else out there, here’s my solution for restricting bbPress access using s2member. In short, this checks if the current user has access to the most distant ancestor of the current page. For example:

    Level 1 Forum/Category > Subforum1 > Subcategory > Subforum2 > Current Topic

    No matter which page they arrive at in the tree, they must have access via s2member to the top-most level. Then it’s a simple matter of assigning a ccap to that Forum, or a membership level.

    1. Include the following in your functions.php file

    2. Include a call to the function in EACH of your bbPress template files BEFORE the template calls for the forum content. Match the HTML structure of the error message to suit your theme. You need to include closing tags for any open divs.

    3. Test!

    /******* bbPress Forum Access *******/

    function checkForumAccess() {

    if(get_post_type() == 'forum' OR get_post_type() == 'topic' OR get_post_type() == 'reply') { // check if user is viewing a forum page. If so, continue.

    //check if they have access to the top-most parent forum/category (both are Pages in wordpress). If not, show the error verbiage. If they have access, continue and show the content like normal

    $parent = array_reverse(get_post_ancestors($post->ID)); // get an array of all the parent pages in order from most distant to closest.

    $first_parent = get_page($parent[0]); //get the first page in the array, which is the most distant parent

    $int = apply_filters(‘the_ID’, $first_parent->ID); //filter the $first_parent to get only the wordpress page/post ID, which is an integer like 49 or 565. store it as a variable $int

    if (!is_page_permitted_by_s2member($int)) { // this is an s2member function. Check if the current user can access the $first_parent, via the stored page/post ID in the $int variable

    // here comes your custom error message. Remember to escape any apostrophes

    echo ‘

    <div>

    <h1 class=”entry-title”>Sorry!</h1>

    <div class=”entry-content”>

    <p>It looks like you don’t have access to this forum.</p>

    <p>If this is an error and you should have access, please contact us here: (contact URL)

    </div>

    </div><!–.postWrapper–>

    </div><!– #content –>

    </div><!– #contentWrapper –>

    </div><!– #primary –>

    ‘;

    get_sidebar();

    get_footer();

    exit; // Important. This prevents the rest of the page (the secure forum content) from displaying

    }

    }

    }

    #111246
    kennymcnett
    Member

    thanks phrough!!

    #44639
    cavenewt
    Participant

    I’ve spent a couple of hours looking without much result, so I will ask the question.

    My bbpress standalone 1.0.2 forum was using Human Test quite successfully up until last week, when it mysteriously quit working. It thinks everybody is a nonhuman. The few spam posts that appeared I did not mind deleting manually, then I would manually delete that user also.

    Now I am getting about 50 new registrations every night (normally I get zero to one per day). Not a lot of spam posts, oddly enough.

    So next I tried Akismet. It boasted that it was blocking 25 spams a night. But there is nowhere to check these spams–really? An email to the Akismet folks got me the reply that they don’t have a clue where bbpress stores spams.

    I would much rather block registrants than posts. Does bbpress 2.x have any protective measures built in, or are there any good plugins? Does 2.x play nicer with Akismet?

    #113498

    In reply to: BBpress will continue?

    cavenewt
    Participant

    ‘This questions sound a bit silly, but is it helpful if someone tag a spam topic as “spam”, “spams”, “spamming”, or “spammer”? (I always do this when I see a spam topic)’

    That explains why, when I come here looking for spam-fighting solutions, I turn up so much spam. :(

    #113470
    POS2012
    Participant

    IF you use bbPress 2.0 or newer, you can just install BuddyPress, and during the install you can tell BP that you have an existing forum. I did that, and BP + bbP integrated well.

    #44637
    Nate
    Participant

    Problem: Remove sidebar from bbPress

    Solution: My theme has a Full Width option

    I know that if I input my shortcode into a Page, it will display the forum in the Template of my choosing. Presto, the forum index is within Full Width.

    Yet when the user decides to choose a forum, they’re relegated to the Theme’s default Template, which includes the sidebar.

    Meeeeh.

    Is there a quick and dirty way to tell bbPress to use the Full Width template that’s already available?

    I recently noticed that when I try to start a topic or posting a reply, it’s taking about 30+ second before the topic/reply is show up. If you try to tell me there may be a “bad plugin” and try to disable all of it except bbPress, save it. I have tried the following:

    1. Using different browser.

    I find out that when I try to use Firefox 12.0 to post, it’s loading extremely slow. But this is not happening in Internet Explorer 9 or Google Chrome 18.

    Try to start Firefox in safe mode? Yes I have tried to do that but it doesn’t make a difference.

    2. Using different user/computer.

    It’s still the same.

    3. Try to post a comment in a normal post.

    I was able to comment a post without any problems, so I think it may be a “bad plugin” problem.

    4. Disable all plugin (except bbPress & BuddyPress)

    But the same thing happen. FYI I don’t edit either the bbPress or BuddyPress files.

    5. Using different theme.

    I replace my modified custom community theme with BuddyPress Default theme and see if I putting bad codes in my theme. But this doesn’t solve problem even I tried other themes.

    6. Change permalink structure.

    It doesn’t make any changes, and I don’t think it will help.

    7. Reinstall WordPress, bbPress & BuddyPress

    Still doesn’t make any changes.

    8. Create a new install in another domain.

    I use http://scirefs.com/ as my main and http://www.scirefs.org as a sandbox (with the same configuration as in SCIREFs.com) with only bbPress and BuddyPress activated. But everything works fine in SCIREFs.org with either bbPress 2.02 or 2.1 and I have no issue with Firefox 12.

    9. The Cloudflare……

    Since I have Cloudflare as my CDN for SCIREfs.com but not SCIREFs.org, I tried to remove SCIREFs.com from Cloudflare and add SCIREfs.org to it and see what happens. The result: The issue with Firefox at SCIREFs.com disappear but SCIREfs.org is now facing the old issue.

    Do anyone here have any ideas what’s wrong with it? Or someone here is facing the same problem? This seems to be the first and the only problem I can’t figure it myself.

    You can login to SCIREFs.org using the following information:

    Username: demo

    Password: demo

    URL of the forums: http://www.scirefs.org/test-forums

    And try to start a topic or post a reply using Firefox and see if it’s happening to you.

Viewing 25 results - 31,851 through 31,875 (of 64,516 total)
Skip to toolbar