Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 5,701 through 5,725 (of 32,505 total)
  • Author
    Search Results
  • #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]

    lamitdeptvolunteer
    Participant

    Hi,
    I noticed textarea for newtopic description is generated using bbp_the_content function. I.e., not available in form-topic.php site specific copy.

    • bbPress 2.5.11
    • WordPress 4.6.1
    • site (internal)

    If this is worth your time, how do I add placeholder attribute in the following list, without breaking the upgrade mechanism? I mean if it is a five minute job for any of you. Otherwise I can spend my own time to work around it using css… it’s nagging me that you all would not have forgotten to allow for this …reasonably important thing… I think.

    	function bbp_get_the_content( $args = array() ) {
    
    		// Parse arguments against default values
    		$r = bbp_parse_args( $args, array(
    			'context'           => 'topic',
    			'before'            => '<div class="bbp-the-content-wrapper">',
    			'after'             => '</div>',
    			'wpautop'           => true,
    			'media_buttons'     => false,
    			'textarea_rows'     => '12',
    			'tabindex'          => bbp_get_tab_index(),
    			'tabfocus_elements' => 'bbp_topic_title,bbp_topic_tags',
    			'editor_class'      => 'bbp-the-content',
    			'tinymce'           => false,
    			'teeny'             => true,
    			'quicktags'         => true,
    			'dfw'               => false
    		), 'get_the_content' );
    

    Here is what I am trying to do, i.e., add the words “… and a short description of the topic here.” in the blue area.
    _________
    Create a new conversation topic using the form below

    Create a new Conversation

    Editing — Apparently, the image didn’t show. Here is the link, if you like
    https://drive.google.com/open?id=0B1Jr2Alfov9eZVVhT2U0dGRDQVVWeVE0WGh4OTZ1QW50RFdR

    Thank you!

    #179732
    Stephen Edgar
    Keymaster

    I’m not seeing any issues with this @piratesjv81

    If you look at this screenshot https://cloudup.com/c-PvKdbwPl0

    The forum testtesttest is a sub-forum of the revision tests forum and they both have the subscribe link to subscribe to the forums

    #179723
    ysiggen
    Participant

    So I am using bbpress alongside buddypress. This is great because running a little gaming community, it is awesome having the ability to use the widely know traditional forums as bbpress offers them while adding some great social features brought by buddypress.

    Now I’ve done my research and figured out that bbpress relies on the wp profile informations (since well wp and bbpress work great together). Aside of that, there is some synchronisation between buddypress and wp profile informations.

    What I’d like is be able to use only one avatar for both plugins. bbpress fetches the wp profile avatar while buddypress as one on its own. So my idea is to fetch buddypress’s image when displaying the user’s avatar on the forums.

    I tried to search for documentation on this and didn’t find much. I ended up digging the plugin code and stumbled upon, while looking in the /plugins/bbpress/includes/users/template.php file, bbp_current_user_avatar() which uses bbp_get_current_user_avatar() that calls get_avatar() with the desired size and user id.

    So I guess the obvious step is telling bbpress to look for the buddypress profile image rather than use this get_avatar() function, which I suspect is fetching the wp profile image.

    But I am stuck here, mainly because I am new to wordpress, also to php. I should be able to sort myself out with some indications (how and what to use) or even some pseudo code.

    I want to do this because I want people to not use their wp profile (there is not much there anyway) and rather go through their buddypress profile only.

    Thank’s in advance for any help.

    #179715
    erich199
    Participant

    @hotloverspassion,

    did you create a new page and name it “new topic”. This is where you will place the short code [wpmu_bbp_topic]

    #179707
    senatorman
    Participant

    Looks great, but is this usefull when my old phpbb forum is moved to a sub-domain, and my new forum is now on the main-domain?

    For example.
    My old phpbb is moved to archive.domain.com
    My Bbpres is on domain.com

    How can u use your code, and where must i place it?

    The wrong old Google phpbb urls goes to domain.com

    #179687
    AITpro
    Participant

    Also I don’t know if this function I created to add capabilities did anything in combination with deactivating and activating bbPress, but this function was in my Theme functions.php file during the process of doing the deactivation and activation. 😉

    // bbPress Keymaster capabilities fix
    function aitpro_add_caps_bbp_keymaster_fix() {
    
    $capabilities = array( 
    		'keep_gate', 
    		'spectate', 
    		'participate', 
    		'moderate', 
    		'throttle', 
    		'view_trash', 
    		'publish_forums', 
    		'edit_forums', 
    		'edit_others_forums', 
    		'delete_forums', 
    		'delete_others_forums', 
    		'read_private_forums', 
    		'read_hidden_forums', 
    		'publish_topics', 
    		'edit_topics', 
    		'edit_others_topics', 
    		'delete_topics', 
    		'delete_others_topics', 
    		'read_private_topics', 
    		'publish_replies', 
    		'edit_replies', 
    		'edit_others_replies', 
    		'delete_replies', 
    		'delete_others_replies', 
    		'read_private_replies', 
    		'manage_topic_tags', 
    		'edit_topic_tags', 
    		'delete_topic_tags', 
    		'assign_topic_tags' 
    		//'test' 
    		);
    
        $role = get_role( 'bbp_keymaster' );
    	
    	foreach( $capabilities as $cap ) {
            $role->add_cap( $cap );
    	}
    }
    
    add_action( 'admin_init', 'aitpro_add_caps_bbp_keymaster_fix');
    eiln
    Participant

    I managed to reinstate the forums by deleting and reinstalling plugins in a particular order. It didn’t seem to work if they were installed or updated in a different order even if the end installed-active list was the same. I’m running genesis theme with a child theme and the issue started with upgrading to WP 4.7.
    Here is what I did which solved it, I do not know why (unfortunately):
    1. using ftp, I overwrote bbPress plugin with an old version dated 5/6/2015
    2. in the wp-admin area, under plugins, update the plugin to the current one
    3. in the wp-admin area, search for, find, install and activate the plugin ‘User Role Editor’. then the ‘Forums, Topics, Replies’ appeared in the sidebar of the dashboard
    4. then I could open tools/forums and could see the forum-fixing items here: https://codex.bbpress.org/features/tools/repair-forums/
    5. magically all seems to work now

    #179683
    AITpro
    Participant

    Eureka I found where the problem is. Yeah!

    On my Live site this is the DB value for wp_options > wp_user_roles is missing the “keep_gate” and all other capabilities.

    Live site DB value: s:13:"bbp_keymaster";a:2:{s:4:"name";s:9:"Keymaster";s:12:"capabilities";a:0:{}}

    Local Dev test site DB value: s:13:"bbp_keymaster";a:2:{s:4:"name";s:9:"Keymaster";s:12:"capabilities";a:29:{s:9:"keep_gate";b:1;s:8:"spectate";b:1;s:11:"participate";b:1;s:8:"moderate";b:1;s:8:"throttle";b:1;s:10:"view_trash";b:1;s:14:"publish_forums";b:1;s:11:"edit_forums";b:1;s:18:"edit_others_forums";b:1;s:13:"delete_forums";b:1;s:20:"delete_others_forums";b:1;s:19:"read_private_forums";b:1;s:18:"read_hidden_forums";b:1;s:14:"publish_topics";b:1;s:11:"edit_topics";b:1;s:18:"edit_others_topics";b:1;s:13:"delete_topics";b:1;s:20:"delete_others_topics";b:1;s:19:"read_private_topics";b:1;s:15:"publish_replies";b:1;s:12:"edit_replies";b:1;s:19:"edit_others_replies";b:1;s:14:"delete_replies";b:1;s:21:"delete_others_replies";b:1;s:20:"read_private_replies";b:1;s:17:"manage_topic_tags";b:1;s:15:"edit_topic_tags";b:1;s:17:"delete_topic_tags";b:1;s:17:"assign_topic_tags";b:1;}}

    #179660
    u_Oi
    Participant

    HI,

    I used to have this code in my forum to make it full-width.

    /* Hide SideBar in bbPress Profiles and Topics*/
    function disable_all_widgets( $sidebars_widgets ) {       
        if ( function_exists('is_bbpress') ) {
            if (is_bbpress()) {
                $sidebars_widgets = array(false);
                remove_all_actions('bp_register_widgets');
                unregister_sidebar( 'bp_core_widgets' );
            }
        }
        return $sidebars_widgets;
    }
    
    add_filter('sidebars_widgets', 'disable_all_widgets', 1, 1);

    Is there a way to apply full-width only for Forums and Topics (opened)?

    Thanks,

    #179659
    Wasca
    Participant

    Hi Guys

    I have TinyMCE loading in my forum for when people post to it and I’m using a plugin ( https://en-au.wordpress.org/plugins/visual-editor-custom-buttons/faq/) that allows me to add custom buttons to TinyMCE. These buttons appear just fine in the backend when creating posts/pages but the new buttons do not appear in the forum post area.

    I have this function in my functions.php for adding TinyMCE in forum.

    function bbp_enable_visual_editor( $args = array() ) {
      
        $args['tinymce'] = array('toolbar1' => 'bold, italic, underline, strikethrough, blockquote, alignleft, aligncenter, alignright, alignjustify, bullist, numlist, outdent, indent, cut, copy, paste, undo, redo, link, unlink, image, removeformat, pastetext',); 
        $args['quicktags'] = false;
        $args['teeny'] = true;
    
        return $args;
    }
    add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' );

    How do I get the buttons created in this plugin to appear in the front end forum area?

    #179655
    AITpro
    Participant

    So anyway as far as the DB is concerned I have all the necessary caps, which I expected. Still poking around in stuff.

        [switch_themes] => 1
        [edit_themes] => 1
        [activate_plugins] => 1
        [edit_plugins] => 1
        [edit_users] => 1
        [edit_files] => 1
        [manage_options] => 1
        [moderate_comments] => 1
        [manage_categories] => 1
        [manage_links] => 1
        [upload_files] => 1
        [import] => 1
        [unfiltered_html] => 1
        [edit_posts] => 1
        [edit_others_posts] => 1
        [edit_published_posts] => 1
        [publish_posts] => 1
        [edit_pages] => 1
        [read] => 1
        [level_10] => 1
        [level_9] => 1
        [level_8] => 1
        [level_7] => 1
        [level_6] => 1
        [level_5] => 1
        [level_4] => 1
        [level_3] => 1
        [level_2] => 1
        [level_1] => 1
        [level_0] => 1
        [edit_others_pages] => 1
        [edit_published_pages] => 1
        [publish_pages] => 1
        [delete_pages] => 1
        [delete_others_pages] => 1
        [delete_published_pages] => 1
        [delete_posts] => 1
        [delete_others_posts] => 1
        [delete_published_posts] => 1
        [delete_private_posts] => 1
        [edit_private_posts] => 1
        [read_private_posts] => 1
        [delete_private_pages] => 1
        [edit_private_pages] => 1
        [read_private_pages] => 1
        [delete_users] => 1
        [create_users] => 1
        [unfiltered_upload] => 1
        [edit_dashboard] => 1
        [update_plugins] => 1
        [delete_plugins] => 1
        [install_plugins] => 1
        [update_themes] => 1
        [install_themes] => 1
        [update_core] => 1
        [list_users] => 1
        [remove_users] => 1
        [promote_users] => 1
        [edit_theme_options] => 1
        [delete_themes] => 1
        [export] => 1
        [keep_gate] => 1
        [spectate] => 1
        [participate] => 1
        [moderate] => 1
        [throttle] => 1
        [view_trash] => 1
        [publish_forums] => 1
        [edit_forums] => 1
        [edit_others_forums] => 1
        [delete_forums] => 1
        [delete_others_forums] => 1
        [read_private_forums] => 1
        [read_hidden_forums] => 1
        [publish_topics] => 1
        [edit_topics] => 1
        [edit_others_topics] => 1
        [delete_topics] => 1
        [delete_others_topics] => 1
        [read_private_topics] => 1
        [publish_replies] => 1
        [edit_replies] => 1
        [edit_others_replies] => 1
        [delete_replies] => 1
        [delete_others_replies] => 1
        [read_private_replies] => 1
        [manage_topic_tags] => 1
        [edit_topic_tags] => 1
        [delete_topic_tags] => 1
        [assign_topic_tags] => 1
        [administrator] => 1
        [bbp_keymaster] => 1
    alexjewell5r
    Participant

    Hi! We have bbpress installed on a relatively large wpengine-hosted wordpress site. Suddenly, about a week ago, all pages started redirecting back to the homepage. Annoyingly, changing the permalink settings back to “Plain” fixes the issue, but that kills our SEO and breaks all hardcoded links back to our forum. We’ve set it to Plain on our production site temporarily, but need Postname permalinks to work again. On our staging site, you can see how any page does a 301 redirect back to the homepage (example: http://fiverrforum.staging.wpengine.com/categories/welcome/community-rules-guidelines). Wpengine support says that our htaccess files look good and are standard, and insist the problem lies with bbpress. They’re adamant the problem relates to a setting within bbpress or with how bbpress is handling permalinks. I’ve tried disabling plugins to see if it’s a conflict of some sort, and the issue persists. Any advice or assistance would be greatly appreciated!

    #179603
    Robin W
    Moderator

    theme and bbpress both displaying

    you can turn off the bbpress breadcrumbs using

    Layout and functionality – Examples you can use

    or by using the style pack plugin

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

    #179594
    Stephen Edgar
    Keymaster

    I’ve only thought about it briefly, you’d need to write a set of custom templates so that everything passed the AMP specs https://www.ampproject.org/docs/guides/responsive_amp

    I know bbPress uses CSS’ !important in a few places so that we can force a few things for our “template compatibility” in supporting as many themes as we do, you can't use!important` with AMP: https://www.ampproject.org/docs/guides/responsive/style_pages

    Apart from that issue of the top of my head, I don’t see why it couldn’t be done 🙂

    #179587
    themichaelglenn
    Participant

    Don’t know if anyone else has (or will have) this same problem, but I have a Category that has probably 60-70 forums, and I anticipate adding more in the future.

    Like the OP, I was also only showing the first 50 forums on the category index page.

    I used @casiepa ‘s filter but I had to fix the typography (I think that’s the right word?) Not sure because I’m still new to all this and completely self-taught, so there’s lots I don’t know but what I do know is the following code WORKS! (On bbPress 2.5.11-6121.)

    // filter to show more than 50 forums on the index page
    function casiepa_increase_forum_per_page( $args = array() ) {
       $args['posts_per_page'] = get_option( '_bbp_forums_per_page', 100 );
    return $args;
    }
    add_filter( 'bbp_before_has_forums_parse_args', 'casiepa_increase_forum_per_page' );
    #179585
    vizcano
    Participant

    @netweb thanks a lot

    I contacted my theme support team and they fix the problem adding this custom css code.

    .bbp-topics ul.sticky, .bbp-body .sticky {
        position: initial;
    }

    I wouldn’t have contacted them without your support and orientation. Once again thanks a lot!

    P.S. can you edit your answer and delete the image? thanks.

    #179584
    Robin W
    Moderator
Viewing 25 results - 5,701 through 5,725 (of 32,505 total)
Skip to toolbar