Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 4,976 through 5,000 (of 32,518 total)
  • Author
    Search Results
  • #186469
    semmick726
    Participant

    I thought perhaps we were dealing with a configuration or rights assignment issue when trying to implement BBPress with LearnDash, but I get the same result using the single forum shortcode on a basic page on our site with no content protection.

    Test Forum

    #186456
    bbpressquestion
    Participant

    I created a page with this code in it [bbp-register] and name this page forum register. However after updating the page and preview it, it keeps popping up my home page, not the forum register page. can someone help me with this? thanks.

    #186434
    rotlichtluzern
    Participant

    Hi

    after the last update, i got an error on line 1800 in functions.php when opening the forum page. according to forum entry here i downloaded and installed beta3. it worked again.

    but now bbpress widgets as well as the shortcodes like this:
    [bbp_recent_topics max_shown=”5″]
    they, spit out all topics instead of only 5…

    what to do? install beta2? here is the link (NSFW!):

    Home

    i leave the error in there for a moment, so you can see it.

    thanks!!

    #186399
    tinuss
    Participant

    Thanx, tried option 2, seems to work.
    only one thing, those breadcrumbs it creates don’t seem to work.
    I have created a page where I put the index shortcode and it shows three (test) forums, I can go into them but can’t go back to index.
    I set those forums as “forum” or should they be categorie?

    haddlyapis
    Participant

    Hi,
    you provided me several months ago with a function that displays a search field in the bbp forum:

    function rk_bbp_search_form(){
        if ( bbp_allow_search()) {
          ?>
          <div class="bbp-search-form">
          <?php bbp_get_template_part( 'form', 'search' ); ?>
          </div>
          <?php
          } }
      add_action( 'bbp_template_before_single_forum', 'rk_bbp_search_form' );
      add_action( 'bbp_template_before_single_topic', 'rk_bbp_search_form' );

    Although i appreciate this help, i have found that the relevansi search is better at finding all forum topics on my website. They have provided the code here to display a search box.
    I would really like this to replace the one in the function above but am having a problem doing this.
    I know this is cheeky, but can you help?

    Matt Pritchett
    Participant

    Trying to diagnose a site why the pagination for the shortcode [bbp-topic-index] works only to page 2. Once you get to page 3+ (of 1200+ pages) it 404s. It only goes to page 2 regardless of what the per page setting is for topics. This is running PHP7.0.x, WP 4.8.1 and I’ve confirmed the issue on 2.5.12 and 2.6 RC3. Going back to 2.5.11 gives me the ksort expects param 1 to be an array error as do all other 2.5.x series. I have tested with all plugins deactivated except bbPress and tried all the usual default themes. Any thoughts?

    #186382
    Julian45123
    Participant

    No, I just want users can not access to the forums page. Because I embed the forums by shortcode manually.

    #186381
    PinkishHue
    Participant

    For anyone else looking for an answer I found it:

    if( has_term( 'myterm', 'topic-tag' ) ) {
        // do something
    }
    #186376
    Divvy
    Participant

    Done. Thank you anyway đŸ™‚

    Here goes the correct code for who might be interested:

    function bbp_enable_visual_editor( $args = array() ) {
    $args['tinymce'] = true;
    $args['teeny'] = false;
    $args['tinymce'] = array( 
    'toolbar1' =>'bold, italic, blockquote',
    );
    return $args;
    }
    add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' );
    #186375
    Divvy
    Participant

    I’m using this guide to show TinyMCE in my bbpress forum:
    https://codex.bbpress.org/enable-visual-editor/

    function bbp_enable_visual_editor( $args = array() ) {
        $args['tinymce'] = true;
        $args['teeny'] = false;
        return $args;
    }
    add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' );

    Is it possible to remove or hide some buttons in Visual tab?

    I want to hide those:

    Can someone help me?

    Thanks đŸ™‚

    #186370
    Robin W
    Moderator

    ahh!!

    7.1 has some issues with bbpress (or visa versa)

    so 3 fixes
    1. downgrade to a lesser version of php
    2. upgrade to bbpress 2.6rc3
    3. in bbpress 2.5.13 in includes/forums/functions.php
    change line 1851 from
    $meta_query = $posts_query->get( ‘meta_query’ );
    to
    $meta_query = $posts_query->get( ‘meta_query’, array() );
    and change line 1796 from
    $post_stati = $posts_query->get( 'post_status' );

    to

    $post_stati = $posts_query->get( ‘post_status’ ); 
    if (!is_array($post_stati)){
                                                 $post_stati = array($post_stati);
    }
    #186365
    atmojones
    Participant

    Hmmm @slomeli79 it’s been awhile since I worked on this. I see this code in my functions.php file but I hesitate to think the solution was this simple. Try it out, and if it doesn’t work I’ll check the rest of my code.

    
    function custom_bbpress_maybe_load_mentions_scripts( $retval = false ) {
    
    	return true;
    }
    add_filter( 'bp_activity_maybe_load_mentions_scripts', 'custom_bbpress_maybe_load_mentions_scripts' );
    
    #186360
    Robin W
    Moderator

    ok, you have two choices

    either use the default wordpress lost password and register

    http://mysite.com/wp-login.php?action=lostpassword
    http://mysite.com/wp-login.php?action=register

    obviously changing the ‘mysite.com’ to your sites name

    or create pages within your site and use the bbpress shortcodes
    and then reference the page url

    eg create a page called ‘password’ and have it’s permalink as say ‘password’ and put
    [bbp-login] as the page content (you can precede this with any text you like, or have text after) eg

    Lost you password?- enter your email and we'll send a new one straight to you
    [bbp-login]

    Then in the widget you would put

    http://mysite.com/password/
    

    you can do the same with [bbp-register] to display the register screen.

    themichaelglenn
    Participant

    I’m looking for a way to automatically assign a forum’s custom taxonomy to all of that forum’s topics.

    I recently registered a custom taxonomy that I want to share across all pages, posts, forums and topics, and since I create most of the content on my site, assigning the right taxonomy to pages, posts, and forums is easy. But I’d rather not have to manually assign taxonomy to topics, especially since any of my members can create a new topic at any time.

    Is there a way to tell WP to get the taxonomy for the parent forum, and automatically save all topics in that forum with the exact same taxonomy?

    (If it helps, this is the code I used to register a custom taxonomy to be used on all pages, posts, forums and topics):

    // Add custom taxonomy
    function postcats_init() {
    	// create a new taxonomy
    	register_taxonomy(
    		'game-categories',
    		array('post','page','forum','topic'),
    		array(
    			'label' => __( 'Games' ),
    			'rewrite' => array( 'slug' => 'game-posts' ),
        'hierarchical'      => true,
        'capabilities' => array(
    				'assign_terms' => 'edit_pages',
    				'edit_terms' => 'manage_categories',
        		'assign_terms' => 'edit_pages'
    			)
    		)
    	);
    }
    
    add_action( 'init', 'postcats_init' );
    #186337
    daltmc
    Participant

    I see that, at least it’s not an isolated issue. I did a similar work around with naming a page forum and using the index short code. We created so many test forums and such when we first had issues that it’s very cluttered. We’re working on limping along using only topics.

    Are you on the newest version of wordpress? My theory is it’s either our premium theme or the new WP.

    #186326
    sovvyg
    Participant

    Hi,

    I have no idea why but the forum/topic subscribe button is not appearing next to the breadcrumbs in bbpress forums as it should, i have enabled the functionality in the settings. This has never appeared but i’m probably missing something simple.

    Is there a way to add this next to the forum title rather than in breadcrumbs? I’m not sure how to call it:

    add_action( 'bbp_theme_after_forum_title', 'n8_after_forum_title' );
    function n8_after_forum_title() {
    
    WHAT DO I ADD HERE??
    
    	}

    WP version: 4.8
    BBpress version: 2.5.13

    Thanks!
    Lauren

    Robin W
    Moderator

    so 3 fixes
    1. downgrade to a lesser version of php
    2. upgrade to bbpress 2.6rc3
    3. in bbpress 2.5.13 in includes/forums/functions.php
    change line 1851 from
    $meta_query = $posts_query->get( ‘meta_query’ );

    to
    $meta_query = $posts_query->get( ‘meta_query’, array() );

    and change line 1796 from
    $post_stati = $posts_query->get( 'post_status' );

    to

    $post_stati = $posts_query->get( ‘post_status’ ); 
    if (!is_array($post_stati)){
                                                 $post_stati = array($post_stati);
    }
    Jakob Helmer
    Participant

    edit: when a put all the codes for the custom capabilities in a plugin (so I remove it from the functions.php), I am finally able to change the custom capabilties (by changing them in this plugin).
    Probably it’s because a plugin is loaded before the theme is loaded

    locutus1
    Participant

    I’ve got bbp style pack already. Some things don’t work and it might be the fault of my host because I had another issue that was caused by my host. When entering a forum, “Create new topic” appears automatically. I would like to remove the automatic “Create new topic” message and create a “create new topic” button. bbp style pack makes the button but won’t remove the automatic message. Can anyone suggest another plugin that will let me do this?

    Also, in some of my forums I would like to rename the button from “Create new topic” to something else but only in some of the forums. I’ve been told this can be done with CSS. Can anyone give me the code for this? Thanks.

    #186278
    locutus1
    Participant

    I had a lot of trouble getting registration to work on my site until someone told me my host doesn’t support “membership plugins” which I think means I can’t make login and register pages with short-code like [bbp-login]. So to log people in I just use the default WordPress login. I put “/wp-admin” at the end of my domain to load the page. Then I made a custom link to load it and did the same for register and reset password. Now people can log in and post.

    #186227

    In reply to: HTTP ERROR 500

    Andrew Leonard
    Participant

    OK
    Now I have removed the code above and reset PHP to version 7.0 and it is working
    Is there going to be a fix so BBPress works with PHP 7.1?

    #186226

    In reply to: HTTP ERROR 500

    Andrew Leonard
    Participant

    I just tried entering the code:
    if (!is_array($post_stati)){
    $post_stati = array($post_stati);
    }
    and now I get to: https://ebps.org.uk/forums/forum/biology/ and get a “Not found”

    #186225

    Topic: HTTP ERROR 500

    in forum Installation
    Andrew Leonard
    Participant

    I am getting a HTTP ERROR 500 when I click on a Forum e.g.: https://ebps.org.uk/forums/forum/biology/
    If I click on a post – it works, i.e: https://ebps.org.uk/forums/topic/sporangia-under-the-microscope/
    If I click on “All Forums” from the dashboard, I get the 500 error
    If I click on “NEW Forum” it works
    The error_log says:
    functions.php:1800
    Stack trace:
    #0 /var/sites/e/ebps.org.uk/public_html/wp-includes/class-wp-hook.php(298): bbp_pre_get_posts_normalize_forum_visibility(Object(WP_Query))
    #1 /var/sites/e/ebps.org.uk/public_html/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array)
    #2 /var/sites/e/ebps.org.uk/public_html/wp-includes/plugin.php(515): WP_Hook->do_action(Array)
    #3 /var/sites/e/ebps.org.uk/public_html/wp-includes/class-wp-query.php(1683): do_action_ref_array(‘pre_get_posts’, Array)
    #4 /var/sites/e/ebps.org.uk/public_html/wp-includes/class-wp-query.php(3248): WP_Query->get_posts()
    #5 /var/sites/e/ebps.org.uk/public_html/wp-includes/class-wp.php(617): WP_Query->query(Array)
    #6 /var/sites/e/ebps.org.uk/public_html/wp-includes/class-wp.php(735): WP->query_posts()
    #7 /var/sites/e/ebps.org.uk/public_html/wp-includes/functions.php(955): WP->main(”)
    #8 /var/sites/e/ebp in /var/sites/e/ebps.org.uk/public_html/wp-content/plugins/bbpress/includes/forums/functions.php on line 1800

    This is the code
    1793 /** Default ***********************************************************/
    1794
    1795 // Get any existing post status
    1796 $post_stati = $posts_query->get( ‘post_status’ );
    1797
    1798 // Default to public status
    1799 if ( empty( $post_stati ) ) {
    1800 $post_stati[] = bbp_get_public_status_id();

    Any ideas?

    #186214

    In reply to: My bbpress login

    peet91
    Participant

    Hi, do you try bbpress shortcodes ?

    Here – https://codex.bbpress.org/features/shortcodes/

    locutus1
    Participant

    The site that hosts my wordpress site told me that they don’t allow membership plugins on wordpress sites. So I can’t make login and register pages and put shortcode in them which is what many people do. My host says users can register and login via a different window which they sent me a picture of. I don’t know how to do an attachment so I’ll describe it. There’s 2 text boxes. The first one is “Username or email address” and the second one is Password. Above the small window is a big white capital W in a blue circle. Below the window is “Register” and “Lost Password”. I assume this is a default login window. This is what my host wants me to use. How do I set this up? Thanks.

Viewing 25 results - 4,976 through 5,000 (of 32,518 total)
Skip to toolbar