Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 5,726 through 5,750 (of 32,522 total)
  • Author
    Search Results
  • 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
    #179560
    akgt
    Participant

    Im wanting to add a forum to my wordpress site, I dont know how much it will grow but i want it to be flexible, i’m not a coder or designer, I only know the basics,

    I know in the past bbpress had a lot of issue and was lacking in features but i’m assuming this must be possible now.

    Im wanting a good looking full featured forum as good as any stand alone forum(xenforo, phpbb, mybb).

    can this be done ?
    if so how ?
    How can I add the extra feature without bloating the site ?
    Can i download any pre made bbpress.css ?

    any good example

    #179556
    Robin W
    Moderator

    ok, untested but try

    wp-content/plugins/bbpress\templates\default\bbpress\form-search.php

    copy to your PC and

    line 17

    <input tabindex="<?php bbp_tab_index(); ?>" class="button" type="submit" id="bbp_search_submit" value="<?php esc_attr_e( 'Search', 'bbpress' ); ?>" />

    change to

    <input tabindex="<?php bbp_tab_index(); ?>" class="button" type="submit" id="search_submit" value" />

    save this file to

    ie wp-content/themes/%your-theme-name%/bbpress/form-search.php

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

    #179554
    hopecenter
    Participant

    @Robin W — Thank you for sending me the CCS code. It worked. Yes, I know how to move files by FTP to edit on a PC. You’re help would be greatly appreciated.

    #179545
    Robin W
    Moderator

    in the file

    bbpress\includes\common\shortcodes.php and amend the ‘bbp-single-forum’ shortcode

    #179543
    Robin W
    Moderator

    1. you have two css declarations that are affecting

    #main-col .elements-box ul li, #main-col .post ul li {
      list-style: inside none square;
      padding-left: 0;
    }

    and

    #main-col .elements-box ul ul li, #main-col .post ul ul li {
      list-style: inside none circle;
    }

    if you are not interested in having circles or squares anywhere on your site out this in your css.

    #main-col .elements-box ul li, #main-col .post ul li {
      list-style: none !important ;
     }
    #main-col .elements-box ul ul li, #main-col .post ul ul li {
     list-style: none !important ;
    }

    2. whilst some styling can be done, it would take an change to a template to achieve what you want for search. If you are familiar with moving files using FTP and editing files on your PC, come back and I’ll help further

    3. Can’t see that as it only shows to those logged in.

    #179531
    Stephen Edgar
    Keymaster

    So the regex we use #([\s>])@([0-9a-zA-Z-_]+)#i in bbp_make_mentions_clickable()

    The ([\s>]) is checking for a whitespace character before the @ symbol

    The code here below is from using TinyMCE and as you noted @atmojones there’s some non-breaking spaces html entities for the instances when an an even number of spaces preceede the @ symbol:

    The root cause is every second space is swapped out with nbsp; which makes sense from a HTML perspective, where this takes place I’m not so sure of, it’s either in TinyMCE directly, or WordPress via wp_spaces_regexp() in wptexturize() (I think it’s the former)

    The workaround for bbPress and I suspect BuddyPress also, would be to check for both ([\s>]) and nbsp; preceding the @ symbol

    Here’s the results of swapping ([\s>]) for ([\s>;]) (Adding a check for just the semi-colon):

    #179530
    Stephen Edgar
    Keymaster

    Testing one space @atmojones
    Testing two spaces @atmojones
    Testing three spaces @atmojones
    Testing four spaces @atmojones
    Testing five spaces @atmojones
    Testing six spaces @atmojones

    The resulting code from the above:

    
    <p>Testing one space <a href="https://bbpress.org/forums/profile/atmojones/" rel="nofollow">@atmojones</a>
        <br> Testing two spaces <a href="https://bbpress.org/forums/profile/atmojones/" rel="nofollow">@atmojones</a>
        <br> Testing three spaces <a href="https://bbpress.org/forums/profile/atmojones/" rel="nofollow">@atmojones</a>
        <br> Testing four spaces <a href="https://bbpress.org/forums/profile/atmojones/" rel="nofollow">@atmojones</a>
        <br> Testing five spaces <a href="https://bbpress.org/forums/profile/atmojones/" rel="nofollow">@atmojones</a>
        <br> Testing six spaces <a href="https://bbpress.org/forums/profile/atmojones/" rel="nofollow">@atmojones</a>
     </p>
    

    The above doesn’t really show the code, multiple spaces are stripped:

    #179529

    In reply to: bp_send_email help

    Stephen Edgar
    Keymaster

    I suggest you post this on https://buddypress.org/support as the function bp_send_email() is a BuddyPress function 🙂

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