Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '\"wordpress\"'

Viewing 25 results - 5,251 through 5,275 (of 26,858 total)
  • Author
    Search Results
  • #177386
    ordresser
    Participant

    I want to do CSS for just the forum thread pages themselves (ie if I change the title color, I don’t want that change to apply to the list of forums or to other parts of my WordPress theme).

    I’m working in the style.css file. How can I target bbpress’s templates and pages.phps?

    #177385
    Stephen Edgar
    Keymaster

    I’ve only ever had a handful of people ask and/or help on importing Xenforo to bbPress, I’ve been lucky that I’ve been given copies of the raw database to work on, thats the only reason the bbPress Xenforo importer exists.

    There are some bbPress forum tweaks that can be made to improve performance, and as pointed out some of those will ship with bbPress 2.6 (hopefully sooner rather than later), there are also further tweaks that won’t ship with bbPress 2.6 but can be added to further improve performance.

    Edit: This site is running on bbPress 2.6, by the end of the week so will wordpress.org/support, over the past couple of weeks bbPress 2.6 has been used to roll out ~25 international (Non English) forums across w.org see: https://make.wordpress.org/meta/2016/07/29/rosetta-forum-upgrades-in-progress/

    bbPress 2.6 is very stable right now 🙂

    #177374
    thegarnet
    Participant

    I found the excellent article by Tanner Moushey on how to create groups programmaticaly: https://tannermoushey.com/2014/08/create-groups-buddypress/

    However I also need to create a forum for each group, and I can’t get his suggestion of using groups_new_group_forum to work. I read other posts of getting function doesnt exist error for bp_forums_new_forum (which groups_new_group_forum calls), but I believe I found the right requires to get that function, and everything it depends on, but now I am getting an error about null several layers down within bb code.

    Here is my code so far:

    <?php
    /* Show the errors in browser */

    error_reporting(E_ALL);
    ini_set('display_errors', 1);

    /** Load WordPress Bootstrap */
    require_once( dirname( __FILE__ ) . '/../admin.php' );

    /** Load WordPress dashboard API */
    require_once(ABSPATH . 'wp-admin/includes/dashboard.php');

    wp_dashboard_setup();

    do_action('bbpress_init');

    ?>

    <H1>Add Groups</H1>

    <?php

    $args = array(
    'group_id' => 0,
    'creator_id' => 0,
    'name' => 'California',
    'description' => 'For people located in California',
    'slug' => 'california',
    'status' => 'public',
    'enable_forum' => 1,
    'date_created' => bp_core_current_time()
    );

    ?>

    <p>Creating group '<?php echo $args[name] ?>'</p>

    <?php

    $newgroupid = groups_create_group($args);

    ?>

    <?php

    ////////////////////////////
    // Now creating a new forum

    // Not needed for get groups_create_group - this already got included
    // require_once(ABSPATH . 'wp-content/plugins/buddypress/bp-groups/bp-groups-forums.php');

    // For bp_forums_new_forum
    require_once(ABSPATH . 'wp-content/plugins/buddypress/bp-forums/bp-forums-functions.php');

    // For bb_new_forum
    require_once(ABSPATH . 'wp-content/plugins/buddypress/bp-forums/bbpress/bb-includes/class.bb-walker.php');
    require_once(ABSPATH . 'wp-content/plugins/buddypress/bp-forums/bbpress/bb-admin/includes/functions.bb-admin.php');

    // For bb_current_user_can
    require_once(ABSPATH . 'wp-content/plugins/buddypress/bp-forums/bbpress/bb-includes/functions.bb-capabilities.php');

    // Example from: http://buddypress.wp-a2z.org/oik_api/groups_new_group_forum/
    $newforumid = groups_new_group_forum($newgroupid,'California','For people located in California');

    ?>

    <table>
    <tr><td>Newly created group id:</td><td><?php echo $newgroupid ?></td><td>Groups</td>
    </tr>
    <tr><td>Newly created forum id:</td><td><?php echo $newforumid ?></td><td>Forums</td>
    </tr>

    </table>

    It throws this error:

    Fatal error: Uncaught Error: Call to a member function get_var() on null in /Users/eyespider/projects/justiceserved/local/wp-content/plugins/buddypress/bp-forums/bbpress/bb-admin/includes/functions.bb-admin.php:992 Stack trace:
    #0 /Users/eyespider/projects/justiceserved/local/wp-content/plugins/buddypress/bp-forums/bp-forums-functions.php(123): bb_new_forum(Array)
    #1 /Users/eyespider/projects/justiceserved/local/wp-content/plugins/buddypress/bp-groups/bp-groups-forums.php(47): bp_forums_new_forum(Array)
    #2 /Users/eyespider/projects/justiceserved/local/wp-admin/custom/add-groups2.php(67): groups_new_group_forum(38, 'California', 'For people loca...')
    #3 {main} thrown in /Users/eyespider/projects/justiceserved/local/wp-content/plugins/buddypress/bp-forums/bbpress/bb-admin/includes/functions.bb-admin.php on line 992

    #177372
    Robkk
    Moderator
    #177371
    Robkk
    Moderator

    Instead of going through each template and possibly changing this, you can also use a php code function listed int this topic.

    https://bbpress.org/forums/topic/resizing-avatars/#post-148625

    The original source of their code seems to be from this guide.

    https://schaltgetriebe.wordpress.com/2014/04/06/increase-avatar-size-in-bbpress/

    #177367

    In reply to: Site Role

    Robkk
    Moderator

    In WordPress you can set this in Settings > General in the WordPress backend in the New User Default Role setting.

    #177365
    sfmPascal
    Participant

    Hi, here is what I did for my site:

    1. Installed Allow PHP Execute
    2. Create a page, for example “forum profile”
    3. Add this code:

    
    <?php
    if (!is_user_logged_in()) {
      header('Location: /my-account/');
    } else {
      $current_user = wp_get_current_user();
      $user=$current_user->user_nicename;
      $newURL = '/forums/users/' . $user;
      header('Location: '.$newURL);
    }
    ?>
    

    4. Now when you go to this page, which you now can add to any menu location supported by your theme, if not logged in, will redirect to your login page, otherwise redirect to their form profile link.

    Jarrod

    #177340
    ptrck_r
    Participant

    Hi, I added a new wordpress role and would like it to map new users not to the participant role but rather to spectator.

    So I added this filter in my functions.php.

    add_filter('bbp_get_user_role_map', 'assign_spectator_role');
      function assign_spectator_role($roles) {
        $roles['mynewrole'] = bbp_get_spectator_role(); 
      return (array) $roles;
    }

    Problem is that this filter does not get executed.
    If I add my role directly in the bbp_get_user_role_map function it works but not with the filter.
    The tools function ‘remap_roles’ also works fine.

    Any ideas how I can get it to work?

    Cheers.

    #177338
    Willson R
    Participant

    Hi i installed wordpress multisite, How to use video tags in bbpress replies?

    Stephen Edgar
    Keymaster
    #177316

    In reply to: Newbie Stuff

    Stephen Edgar
    Keymaster

    I’d suggest switching your “password protect child pages” plugin to a “membership” type plugin:

    https://wordpress.org/plugins/search.php?q=members

    I’m sure one of them will support what you are looking for and allow you to continue using a single password where bbPress is also behind that.

    #177312
    Stephen Edgar
    Keymaster

    I’ve not heard or seen such a plugin….

    That said, I swapped out “topic tag” for “term” and searched the plugins repo:

    https://wordpress.org/plugins/search.php?type=term&q=autocomplete+term

    There may be others but this one stood out: https://wordpress.org/plugins/simple-tags/

    Add some tools for taxonomies : Terms suggestion, Mass Edit Terms, Auto link Terms, Ajax Autocompletion, Click Terms, Auto terms, Advanced manage term

    It doesn’t list bbPress as being supported but maybe it could be adapted to support bbPress or support for bbPress added to the plugin.

    #177311

    In reply to: PHP7 compatibility

    Stephen Edgar
    Keymaster

    See https://bbpress.trac.wordpress.org/ticket/2973 for further information and bbPress 2.6 PHP 7.x compatability.

    #177300
    jbboro3
    Participant

    Please someone help me to resize topic or reply form.. It’s not editable by css as the file is iframe generated by the js file.. The chrome inspection doesn’t show the location of the file.. I tried everything to find the source file but unsuccessful.. I can go with core edit without hooking with wordpress..

    Please help me.. Thank you

    #177271
    project13x
    Participant

    I forgot to wait updating wordpress until bbpress was also 4.6 ready.

    But I have upgraded to wp 4.6 now already and noticed an error.

    When bbpress plugin is activated i cannot upload or find images. The media library keeps on looking for something.

    And when uploading i get an error “An error occurred in the upload. Please try again later”.

    Does this has to do with the wp 4.6 update?

    and is the new bbpress update coming soon?

    #177268

    Topic: Menu Reply Widgets

    in forum Plugins
    fauowlaccess
    Participant

    Love the functionality of bbPress and WordPress. Added the reply widget to my main sidebar, but it only displays what topic is being replied to and who replied. I’d like to be able to show at least a portion of the content from, say, the five most recent posts on the forum. Is there an easy way to do that? Perhaps a plugin/widget I should look at?

    My site is FAUOwlAccess.com

    Thanks.

    #177266
    Robin W
    Moderator

    This is the default display.

    If you are into coding, you can check out

    Layout and functionality – Examples you can use

    or if coding is not your thing use my plugin Style Pack which will let you set up lots of stuff, including fixing the above

    https://wordpress.org/plugins/bbp-style-pack/

    #177228
    jbboro3
    Participant

    Hi,

    I’ve been trying to reduce the height of topic form (Tinymce) which stands at default 236px height.. I want to reduced them upto 100px.. I have searched all over, seems there is no shortcut solutions.. Can you please point me the file where I can edit that value.. For temporary period, I can touch or change the core files, if needed.

    I’m unable to locate the file.. Even not sure if those values comes from wordpress tinymce files under/includes/tinymce or it’s set in within bbpress..

    Thank you so much…

    #177225
    Robin W
    Moderator

    can you check if it is being logged as spam

    Akismet

    If the service catches a topic that is spam, you will see it in the WordPress backend in the topics section under spam, and the same process for replies.

    auludag
    Participant

    and more info: i am using the latest version of WordPress and bbpress.

    forum link (turkish) http://kadinlarkosku.com/kadinlarkosku-forum/

    #177204

    Topic: Edit New Topic page

    in forum Showcase
    kkpb8084
    Participant

    Hello
    I’ve searched online but cannot find the answer. Does anyone know how I can edit the New Topic page of my forum: http://psychiatryadvice.com/new-topic/

    For example, how do I remove the section which requests ‘website’?

    Or do you know which file I need to edit?

    Thanks!

    Wordpress v 4.5.3
    bbpress v 2.5.9-6017

    #177203
    Robin W
    Moderator

    Is this a new site, new problem, new to bbpress, when did it start happening, what else have you been doing, what versions of bbpress and wordpress are you running, what theme are you using

    mlwilkerson
    Participant

    I’m seeing the same thing as originally reported by @mfiguerasma.

    I first noticed it when my non-admin user (TestUser) *suddenly* could no longer see a topic that he had formerly been able to see. In my case, I am using sub-forums. (See: https://bbpress.trac.wordpress.org/ticket/2191#comment:17 )

    I have a BP Group called GroupH.
    The group forum root is a type=category group called “Group Forums”
    Subforum1-GroupH is under the forum “GroupH”.

    GroupH is the group forum, i.e the one you see in a the drop-down in the settings where you select which forum is associated with the BP Group.

    So, it’s:

    Group Forums
    GroupH
    Subforum1-GroupH
    Topic1-Subforum1-GroupH

    All of the forums and subforums have a Visibility setting of Private (in the admin settings screens).

    So Topic1-Subforum1-GroupH was accessible by my TestUser one minute and then wasn’t the next minute. I knew that I hadn’t changed the visibility settings on my forums or anything else, but I realized that what I had done (thinking it was merely “for good measure”) was to run:
    Tools->bbPress->Recalculate private and hidden forums

    I recreated my original scenario, verified that TestUser could access Topic1-Subforum1-GroupH, and then used Updraft to take snapshots of my database before running “Recalculate private and hidden forums” calculate again. Sure enough, after that “repair”, it was broken again.

    So I debugged it. This repair tool kicks off bbp_repair_forum_visibility() which updates two options in the options table:
    _bbp_private_forums
    _bbp_hidden_forums

    These are pre-calculated, cached, lists of forums.

    If the forum_id for GroupH appears in _bbp_hidden_forums, then TestUser won’t be able to access Topic1-Subforum1-GroupH. Before running this “repair”, the forum_id for GroupH does not appear in that list. After the repair it does.

    So, how is the forum_id for GroupH getting into this list of hidden forums when the post_status on the forum is most definitely private? (Verified by looking at its row in the posts table)

    It’s getting there precisely by the means @mfiguerasma showed.

    When the query is being run to get a list of all “hidden” forums, in order to create _bbp_hidden_forums, it invokes the pre_get_posts filter. bbPress uses that filter bbp_pre_get_posts_normalize_forum_visibility() to change the query_vars.

    Notice what’s happening here:

    (1) The WP_Query is saying “I am trying to find a list of *hidden* forums” (I have my own reasons for why I want a list of hidden forums.)

    (2) But bbp_pre_get_posts_normalize_forum_visibility() seems to be second-guessing. I receives query_vars with post_type=hidden, but then the way its logic works is to say: “What are various post statuses that this user has permission to see. Ah, this user can see both hidden and private ones, so I’ll update the query_vars to include post_types of both hidden and private.”

    I think the logic of bbp_pre_get_posts_normalize_forum_visibility() is exactly backwards. It’s trying to include all of the post_types that the user can access. But that’s not why it has been invoked. It’s been invoked in the process of simply creating a list of hidden forums for _bbp_hidden_forums and its messing that up by including the private post_status.

    (3) So what the WP_Query gets back is a list of forum_ids for all hidden *and private* groups. And that’s the list that ultimately gets stored in _bbp_hidden_forums.

    So this “repair” actually breaks my forums.

    If you simply remove this bbPress filter before doing the repair, it seems to produce the correct result. My TestUser can access Topic1-Subforum1-GroupH both before and after the repair when we remove the filter:
    remove_action(‘pre_get_posts’,’bbp_pre_get_posts_normalize_forum_visibility’,4);

    epretorious
    Participant

    I’ve just performed a clean installation of WP 4.5.3 and installed Version 2.5.10 of bbPress plugin. I am currently using the Twenty Fourteen theme.

    I installed bbPress by following the instructions here on bbPress.org:

    1. I created an empty page named “Forums” using the default forum root slug heading (i.e., ‘forums’).
    2. Then I added the empty Forums page to the site’s main menu.

    The only trouble that I’m having so far is: The “Forums” menu item [in the Secondary, Left-hand menu] isn’t highlighted when viewing the Forums page. I’d begin digging around to see if I can fix the problem myself but – without knowing anything about the complexities of WordPress – I’m not even sure where to begin debugging this. Is the menu’s dynamic functionality driven directly by WordPress? By the Twenty Fourteen theme? Or by the bbPress plugin?

    Could someone please tell me how this is achieved? Or maybe tell me how to fix this?

    Eric Pretorious
    Portland, OR

    #177176

    Topic: return to index

    in forum Installation
    flashwolf
    Participant

    hello
    i have install bbpress 2.5.10
    on buddypress 2.6.2
    and i use wordpress 4.52

    in the left menu on wordpress , i have a link “Forums”
    I have created all my forums

    i have created a page nammed “info”
    and i have included “[bbp-forum-index]”

    when i choose the page “info” in the menu
    i have all the forums, but when i choose a forum i return to the index of the website
    and when i am in the member area of buddypress, i have the icon “Forums” and i cant open subject if i can do it

    so where is the problem

    Thx for your help

Viewing 25 results - 5,251 through 5,275 (of 26,858 total)
Skip to toolbar