Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 4,976 through 5,000 (of 32,522 total)
  • Author
    Search Results
  • #186500
    jomo
    Participant

    Well we’re all waiting for breaking news for bbPress release or rc4 but online timesheets it is not. And seeing as user onlinetimesheets’ system is built on Microsoft ASP.Net 4 it seems unlikely to make much use of bbPress..

    Now, could we get the bbPress on wordpress.org to add the Plugin name (Forum title) to the email alerts? It’s tiring getting all the alerts with no context about which plugin they refer to.

    Something like this should do it:

    
    function add_the_plugin_name_please( $message, $reply_id, $topic_id ){
      $topic_title  = strip_tags( bbp_get_topic_title( $topic_id ) );
      $forum_title = bbp_get_topic_forum_title($topic_id);
    
      $messageheader = sprintf( __( 'New post in Forum "%1$s", Topic "%2$s".', 'wordpress-org' ),
        $forum_title,
        $topic_title
      );
      $messagefooter .= "\r\n" . "\r\n" . __('Thankyou for participating on wordpress.org', 'wordpress-org' );
        
      return $messageheader . "\r\n" . "\r\n" . $message . "\r\n" . $messagefooter;
    }
    add_filter( 'bbp_subscription_mail_message', 'add_the_plugin_name_please', 10, 3);
    #186492
    jacklii
    Participant

    thank you very much for your help . But I follow the tutorial you introduced to do, there is no front-end changes. Do not you know why?
    And this code( <?php bbp_the_content( array( ‘context’ => ‘reply’ ) ); ?> ) I have replacement the summernote code, and nothing changed!

    #186490
    Robin W
    Moderator

    could be done with bespoke code, but beyond free help I’m afraid !!

    #186485
    Robin W
    Moderator

    can only give you the area for html

    so two files

    wp-content/plugins/bbpress/templates/default/bbpress/form-topic.php
    wp-content/plugins/bbpress/templates/default/bbpress/form-reply.php

    create a directory on your theme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress

    where %your-theme-name% is the name of your theme

    Make a copy of the two files above, and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/bbpress/form-topic.php
    and
    wp-content/themes/%your-theme-name%/bbpress/bbpress/form-reply.php

    bbPress will now use this template instead of the original
    and you can amend this

    Suggest your html/php needs to replace

    <?php bbp_the_content( array( 'context' => 'reply' ) ); ?>

    but you’ll need to work out exactly how yourself !!

    In the spirit of sharing stuff, if you work it out, please post the solution to this thread !!

    #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?

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