Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 5,701 through 5,725 (of 32,522 total)
  • Author
    Search Results
  • #179932
    adarshmadrecha
    Participant

    I researched on the BBpress forum and also on google, I found that by using [bbp-topic-tags] shortquote, I can show visitors of my site the tags which are used in all the forums.

    But the tags appear all next to each other. Is there any way to display tag with the number of topics besides them. Also, the tags are just shown in a single line. It would be better to have a show in an unordered list. And then sorted according to the number of times topics they have been tagged to.

    #179930
    en10
    Participant

    Hello,

    Is it available for phpBB 3.1.x?

    I tried the script of @hypnoticdan but I don’t have

    http://my_phpbb_domain.com/viewtopic.php?f=1&t=2
    to:
    http://my_wordpress_domain.com/forums/topic/corresponding_topic/

    I get only a redirection from phpbb to bbpress (index to index)

    #179923
    Robin W
    Moderator
    #179920
    wrspoon
    Participant

    Wordpress Version 4.7
    bbPress Version 2.5.12

    I’m very new to all of this and I just installed and activated bbpress. I’ve searched and I cannot find instructions for connecting a menu item I created “Discussion Forums” to the actual forums. I see that there are slugs and short codes in the settings menu of the dashboard, but I can’t figure out how to make it all work.

    Please help. thanks

    #179875

    In reply to: Sort topics in a Forum

    Robin W
    Moderator

    date order:

    put this in your functions fil :

    function rew_date_topic_order( $args ) {
                    $args['orderby']='date';
                    $args['order']='DESC';  //change to ASC to put oldest at top
                    return $args;
    }
    add_filter('bbp_before_has_topics_parse_args','rew_date_topic_order');

    Functions files and child themes – explained !

    #179869

    In reply to: Prefix Recommendation

    yikesitskevin
    Participant

    Hi @deall & @robin-w,

    I found this topic by googling around because I am having an issue and I think my issue is the reason this Prefix all forum content with the Forum Root slug (Recommended) option is recommended. If you don’t prefix, you can run into URL conflict issues. For example, if your forum is on your homepage, and there is no prefix, your pagination links will be something like www.{your_site_url}.com/page/2. The problem is www.{your_site_url}.com/page may be one of your pages. Obviously you could also have a page named ‘forums’, but it’s much less likely.

    Does this explanation sound correct?

    Pascal Casier
    Moderator

    Hi Bruce,
    To change the breadcrumbs have a look here: https://codex.bbpress.org/layout-and-functionality-examples-you-can-use/#4-turning-off-or-changing-breadcrumbs

    If you don’t want to do it yourself, check out plugins like ‘bbP Toolkit’ where you should be able to configure it.

    Pascal.

    Bruce
    Participant

    I found the answer here

    #179839
    BenM
    Participant

    Hi,

    If I copy/paste html content to topic content, all html tag appears in text, all quotes are converted to french quotes and content can overflow screenshot (link to full image)

    I try this below but It doens’t change anything !

    remove_filter( 'bbp_get_reply_content', 'wptexturize' , 3);
    remove_filter( 'bbp_get_topic_content', 'wptexturize', 3);

    I remove ALL plugins and I erase functions.php !

    I also try this :

    function bbp_tinymce_paste_plain_text( $plugins = array() ) {
        $plugins[] = 'paste';
        return $plugins;
    }
    add_filter( 'bbp_get_tiny_mce_plugins', 'bbp_tinymce_paste_plain_text' );

    even if I want to permit copy/paste of (filtered) html, just to try, but it doesn’t make any change.

    Do you have an idea of what happens?
    Thanks.

    #179838
    Chad R. Schulz
    Participant

    A much appreciated restructuring.

    This simplifies a lot by renaming the core roles from within both front-end and back-end user role editors.

    Love learning new code/tricks.

    Thanks,
    Chad

    inderdeepbajwa
    Participant

    I have the latest 4.7 version of WordPress and installed the latest bbPress plugin (updated 4 days ago).

    When I click on Forums->All forums, in the WP Dashboard, it shows me a full white blank page. Upon typing website.com/forums, it shows a blank page. The newly created forum link website.com/forums/forum/forum is also completely blank. I’ve tried this on two themes – Twenty Sixteen and Twenty Seventeen. Both showed blank page.

    I tried creating a new page and pasting [bbp-forum-index] but that gave me the following code as the result:
    {{ partial “head.html” . }}
    {{ partial “header.html” . }} {{ partial “sidebar.html” . }} {{ partial “post/header-cover.html” . }}
    {{ $paginator := .Paginate (where .Data.Pages “Type” “post”) }} {{ range $paginator.Pages }} {{ .Render “summary” }} {{ end }} {{ partial “pagination.html” . }}
    {{ partial “footer.html” . }}
    {{ partial “foot.html” . }}

    #179835
    Bruce
    Participant

    bbpress Version 2.5.12
    wordpress Version 4.6.1
    TwentyThirteen-Child theme

    You’ll see I don’t know what I’m doing here. What follows is what I tried.

    I put the following into my 2013 child theme:
    1. a folder titled “bbpress” which contained the following all copied from the bbpress plugin folder:
    2. a folder titled “bbpress”
    3. a folder titled “css”
    4. a folder titled “extras”
    5. a folder titled “js”
    6. a file titled “bbpress-functions.php

    I replaced the top of the bbpress.css file which was in the “css” folder with this:

     /*
    Theme Name: bbpress bbpress-child
    Theme URI: http://neighborsconnect/neighborsnation/wp-content/themes/twentythirteen-child/bbpress-child/
    Description: bbpress-child theme for bbpress
    Version: 1.0
    Author: Bruce Wilson
    Author URI: http://neighborsnation.org/
    Template: bbpress-default
    Tags: bbpress, bbpress-child
    */ 

    Then I increased the font-size for the bbpress forums from 12 px to 20px and other such changes to see if it worked.

    Surprise! Surprise! It didn’t work.

    What do I need to do to make it work?

    ~ Bruce

    #179827
    Stephen Edgar
    Keymaster

    Thanks @chadschulz is this more along the lines of what you are after?

    A quick modification of your code above, with some tweaks via https://codex.bbpress.org/custom-capabilities/

    
    function chadschulz_bbpress_customized_roles( $bbp_roles ) {
    	// Keymaster -> Captain
    	$bbp_roles['bbp_keymaster'] = array(
    		'name'         => 'Captain',
    		'capabilities' => bbp_get_caps_for_role( bbp_get_keymaster_role() )
    	);
    	// Moderator -> Commander
    	$bbp_roles['bbp_moderator'] = array(
    		'name'         => 'Commander',
    		'capabilities' => bbp_get_caps_for_role( bbp_get_moderator_role() )
    	);
    	// Participant -> Ensign
    	$bbp_roles['bbp_participant'] = array(
    		'name'         => 'Ensign',
    		'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() )
    	);
    	// Spectator -> Visitor
    	$bbp_roles['bbp_spectator'] = array(
    		'name'         => 'Visitor',
    		'capabilities' => bbp_get_caps_for_role( bbp_get_spectator_role() )
    	);
    	// Blocked -> Banned
    	$bbp_roles['bbp_blocked'] = array(
    		'name'         => 'Banned',
    		'capabilities' => bbp_get_caps_for_role( bbp_get_blocked_role() )
    	);
    	// Lieutenant (Based on Participant role caps)
    	$bbp_roles['bbp_lieutenant'] = array(
    		'name' => 'Lieutenant',
    		'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() )
    	);
    	return $bbp_roles;
    }
    add_filter( 'bbp_get_dynamic_roles', 'chadschulz_bbpress_customized_roles' );
    
    #179825
    Chad R. Schulz
    Participant

    Sure,

    I’ve been going with Star Trek ranks;-)

    function my_custom_roles( $role, $user_id ) {
      if($role){
        switch ($role) {
          case 'Participant': $role = 'Ensign'; break;
          case 'Keymaster': $role = 'Captain'; break;
          case 'Moderator': $role = 'Commander'; break;
          case 'Blocked': $role = 'Banned'; break;
          case 'Spectator': $role = 'Visitor'; break;  
        }
      }
      return $role;  
    }
    add_filter( 'bbp_get_user_display_role', 'my_custom_roles', 10, 2 );
    
    function add_new_roles( $bbp_roles )
    {
        /* Add a role called lieutenant */
        $bbp_roles['bbp_lieutenant'] = array(
            'name' => 'Lieutenant',
            'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ),
            );
     
        return $bbp_roles;
    } 
    add_filter( 'bbp_get_dynamic_roles', 'add_new_roles',  1 );

    As I said, things are all working properly now without any issues.

    But, maybe there’s a deeper problem during the update process that might be affecting others as well.

    Anyhoo, Thanks.
    Chad

    ddlange
    Participant

    I’d like to add my thanks to @fpradmin also. The code increases the font size of all parts of the forum page. Thanks!

    johnsantina
    Participant

    Hi everyone,

    I started a gaming website and to my surprise it isn’t doing too badly. I’m hoping to grow a community around it, but am really struggling to get everything right.

    I’ve managed to get my forum posts to replace comments:

    8 Wonderful Christmas Presents For Zelda Fans

    I’ve installed a Plugin to put Register/Login/Forgot at the top of the forum, which works very well, and shows on the main forum pages too: http://www.growngaming.com/forums/forum/grown-gaming-community/?view=all

    Now, my problem is I also want to offer the option to login with social media, rather than filling in all details, etc. I’ve successfully found and fully installed/integrated a widget to do this, which fits into the sidebar perfectly. However, I’d also like this to display in the top right hand corner of the forum (on every sub-forum and topic), so that people can see that they can comment on my posts (and, thus post in the forum) very easily.

    Is it possible for me to add this to my forum? I have a shortcode for the widget and have put it into pages etc, but I cannot figure out how to have it automatically added to every page/topic in my forum.

    Thank you for your help.

    #179809

    In reply to: topics.php on line 943

    yoshidesu
    Participant

    i decided to use code [bbp-forum-index]

    then everything ok..

    thanks

    #179807
    sally
    Participant

    Hello, i have installed the plugin wp-post ratings

    https://wordpress.org/plugins/wp-postratings/installation/

    I want to show the rating in bbpress.

    Find: <?php while (have_posts()) : the_post(); ?>
    Add Anywhere Below It (The Place You Want The Ratings To Show): <?php if(function_exists(‘the_ratings’)) { the_ratings(); } ?>

    In which files, i have to add the php code?

    Thanks a Lot!

    Best Regards
    Sally

    #179804
    Kona Macphee
    Participant

    Hi guys, the ticket was created and has been marked as fixed and closed.

    However, the problem is still occurring in bbPress 2.5.12, so the bug has not actually been fixed.

    Could somebody please fix this issue? I’m still having to manually patch the bbPress code with every update.

    Thanks!

    #179801
    Stephen Edgar
    Keymaster

    Can you share your code for how you’re defining your custom roles please?

    If you’d rather keep the code private you could join the #bbPress channel in Slack

    You can sign up for WordPress Slack here: https://chat.wordpress.org

    #179800
    Stephen Edgar
    Keymaster

    Can you add some more details please?

    Does this happen if you do this yourself with a new test user?

    If you could add some reproducible steps like these:

    1. Create a new user testuser
    2. Add the participant role to testuser
    3. Signed in as admin I create a topic xyz
    4. Log out of admin, login as testuser
    5. Reply to topic xyz

    Actual Result:

    I see the reply author as….

    Expected Result:

    I expected to see the reply author as….

    #179795
    Chad R. Schulz
    Participant

    I’ve added a dynamic role to my forums that no longer appears in any display user role capacity.
    I used the bbp_get_dynamic_roles hook as before.

    However, the capabilities from this role do transfer over–just not the name.

    I’m using custom functions that require this role’s name be defined. So basically this update breaks my site.

    Any attempt to role back to an earlier version of bbPress seems to crash the site.

    Help!?

    #179779
    Robin W
    Moderator

    sorry – that was for the code via ftp.

    If you just want a list then go into dashboard>appearance>widgets and just look for all those that’s tart with (bbpress)

    #179767

    Topic: Sorting Forums

    in forum Installation
    rhj4
    Participant

    How do I control the order in which the forums appear on the page? I am currently using this shortcode:

    [bbp-forum-index]

Viewing 25 results - 5,701 through 5,725 (of 32,522 total)
Skip to toolbar