Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '+.+default+.+'

Viewing 25 results - 2,276 through 2,300 (of 6,813 total)
  • Author
    Search Results
  • #163148
    project_subdomain
    Participant

    Hi!
    When clicking through bbpress user pages (profile, edit profil, subscriptions etc..) the avatar and the user navigation will be displayed on the left side on all those pages by default.

    How can I remove avatar’s and user navigation’s div from all pages except the user’s profile home page to get more space?

    Tried this in user-details.php, did not work (blank screen):

    <?php if ( bbp_is_user_home() ){ ?>
    <div id="bbp-user-avatar">
    [...]
    </div>
    <div id="bbp-user-navigation">
    </div>
    }

    Thanks in advance!

    Robkk
    Moderator

    @rashedfoundation

    Also, small second question. It happens often that I’m on a site that I *think* I’ve registered on, but haven’t. If someone enters a login that is not correct AND that username doesn’t currently exist, is there a way to redirect to the registration page WITH that username?

    So, for example, I type in username: MyFaveUser pw: 1234, and it doesn’t exist in my user table, so the user is redirected to “Hey, MyFaveUser doesn’t exist, but you can register with it! It’s available!” and then autofill the username field with MyFaveUser and leave the pw field blank?

    This is some custom development , I suggest you hire a developer if you need help.

    As for the login shortcode issue , it might be best for you to link to the default WordPress login page if you are experiencing issue with it. Or just use a better front-end authentication plugin.

    #163111
    Robkk
    Moderator

    @mfiguerasma

    You can allow users to create forums if you give them the capability to do so , or create a new bbPress role for them to default as so that they can all create forums.

    I only recommend this if you can moderate all activity somehow , and your site is built to handle users creating a bunch of forums.

    Also note that some forums that a user could create could have minimum activity and really just be a dead forum if it is not as popular.

    If users are able to create groups , I mean that is BuddyPress and there could be a way to disable user group creation from low level users , if you want to disable it.

    IF BuddyPress has a different capability to add forums to groups then , I do not know if I can help there.

    #163101
    virtualassphil
    Participant

    Hello Guys,

    can you please help me how can i add a sidebar to my forums default homepage http://virtualassistantphilippines.org/forums ? it seems that i cannot edit the page while im log in. i want to add the sidebar from my bbpresssidebar widget.

    thank you

    #163084
    splufford
    Participant

    For anyone else struggling to get BB Press and Thesis 2 to work (ie forums page showing blank) see these instructions:

    “the problem in this case isn’t with Thesis per se, it’s just that you have to configure the Template being used for that page in a specific way in order for it to work with bbPress:

    Launch the Thesis Skin Editor and access the Forums template (i.e., the one which is nested under the Archive template).

    Expand the Post Box in that Template, and then remove all of the boxes which are currently inside of it.

    Then, click “show tray” at the bottom of the Post Box, and click on Post Box → Content to add that dependent box to the parent Post Box; then save the template.

    Once you’ve done that, view the page at /forums/ again, and you should then see the Forum Index displayed on that page (assuming you’ve not changed the plugin’s default “Forum root to show” option).”

    #163043
    Robkk
    Moderator

    You might need to create a new user role for users to default as and set their capabilities to create replies but not create topics.

    Custom Capabilities

    #163012
    ns
    Participant

    Thank you for replying.

    Yes, that’s right.
    The link of https://bbpress.org/forums/profile/naoyoshi/replies/ shows, user-replies-created.php is made by bbp_user_replies_created_url() function.
    The default file of user-detail.php has this function and I don’t change.
    The parameter of this function is blank.

    When the page like https://bbpress.org/forums/profile/naoyoshi/replies/ shows, user-replies-created.php is executed.
    As the core processes of bbPress, does it really retrieve only specific user’s replies from database?
    This is what I don’t understand now and the current question.

    I checked php files user-replies-created.php, loop-replies.php, and loop-single-reply.php, and interface of functions which used in these php files.
    I haven’t almost changed codes in these php files, the content of these php files is nearly the original.
    As far as I checked, there are no parameters which can retrieve only specific user’s replies in functions.
    In this bbPress forums, user interface part is customized from the original file, though, why can it show only specific user’s replies data correctly?

    I think I might have to add or change some codes in some of php files…, I don’t know it’s true.

    #162991
    Robkk
    Moderator

    @flyden

    this just looks like a CSS issue.

    I think it is just that your buttons text are white by default in your theme and it is overriding the bbPress styles.

    you can try this CSS and see if it works but you would need to find the issue using some developer tools in your browser or you can create me a subscriber/participant acount to look at it.

    If you want to create me an account you can send the login details to my email here.

    Contact

    #162986
    patrix87
    Participant

    I modified a little script I found inside a plugin named “bbp signature” https://wordpress.org/plugins/bbp-signature/
    That plugin actually does not work with Buddypress, it is a bbpress plugin
    [modified by moderator]

    But the code wasn’t too terrible. even though I only kept a few line of it.

    So here’s the solution;

    make sure you have buddypress with xprofile enabled *(extended profiles)

    1. Create a new text box field in Xprofile and name it “Signature”. *(caps is important, no quotation mark.)

    Then add that code to the function.php of your child theme.

    
    //Add Signature
    
    function bbp_reply_content_append_user_signature( $content = '', $reply_id = 0, $args = array() ) {
    	// Default arguments
    	$defaults = array(
    		'separator' => '<hr />',
    		'before'    => '<div class="bbp-signature">',
    		'after'     => '</div>'
    	);
    	$r = wp_parse_args( $args, $defaults );
    	extract( $r );
    
    	// Verify topic id, get author id, and potential signature
    	$reply_id  = bbp_get_reply_id       ( $reply_id );
    	$user_id   = bbp_get_reply_author_id( $reply_id );
    	$signature = xprofile_get_field_data( 'Signature', $user_id );
    
    	// If signature exists, adjust the content accordingly
    	if ( !empty( $signature ))
    		$content = $content . $separator . $before . $signature . $after;
    
    	return apply_filters( 'bbp_reply_content_append_signature', $content, $reply_id, $separator );
    }
    
    add_filter( 'bbp_get_reply_content', 'bbp_reply_content_append_user_signature', 1, 2 );
    
    

    That’s it !

    PS. If you want to enable HTML in xprofile there is a way but it’s risky.
    you can read about it here : https://buddypress.org/support/topic/html-in-profile-field-again/

    #162884
    pamhsims
    Participant

    I need to change the subscribe button text and also this “Oh bother! No forums were found here!”

    I have tried adding the feedback-no-forums.php to /mytheme/bbpress/ but its not overwriting the defaul and I can find now way to change the subscribe text.

    Any ideas?

    boriskamp1991
    Participant

    hi!

    can I set the default behavior of the Notify me of follow-up replies via email button when posting to the forum or whatsoever?
    I would like it to be checked by default.
    Im pretty sure i could write some JS to do this on page load but was wondering if you guys have some built in solution for this?

    #162871
    Robin W
    Moderator

    bbpress works with a default theme.

    If you have done a fresh install to a default theme with no other plugins, then it should work.

    Beyond that I cannot help further – sorry

    #162825
    PinkishHue
    Participant

    This sounds like something to look at in your theme. I’m not sure bbpress has thumbnails/featured images on topics by default?

    Ask your theme author or let us know what theme you are using and hopefully we can find out more.

    #162820

    In reply to: Login Page Blank

    PinkishHue
    Participant

    If you want to temporarily disable a plugin(s) or custom theme you can access your site via FTP and move the folders (don’t delete!) out of their respective places. This will disable the plugin/set WordPress to use the default theme.

    Then you should at least be able to login to your dashboard.

    Hope that helps!

    PinkishHue
    Participant

    It does seem tricky to set this sort of thing up (hopefully to be improved in future versions of bbpress?).

    One way to do this, although not the most robust option, would be to simply hide the new topic form for everyone but keymasters/admins when viewing that particular forum.

    I will assume you are accessing your new topic form when viewing the individual forum (it’s trickier if you are using the new topic form where you choose which forum to post to instead of/as well as individual forms in each section. This is what’s used here on the bbpress.org forums for example. If you need a solution for this as well let us know, I’m sure someone can explain how to do that)

    This is just off the top of my head and not tested (hopefully someone more experienced will be able to advise better) – in wp-content/your-theme/bbpress/form-topic.php (create this file if it’s not already in your theme, copy the original from wp-content/plugins/bbpress/templates/default/bbpress/

    At the top of the file, after this code:

    <?php
    
    /**
     * New/Edit Topic
     *
     * @package bbPress
     * @subpackage Theme
     */
    
    ?>

    Add this code to check if you are in your news forum (here I’ve used forum id ‘5’ as an example, you’ll have to find the specific id for your forum) and if the user is an admin (there may be a better to do this using the keymaster role instead of the usual WP role but I don’t know about that):

    <?php if ( bbp_is_single_forum( '5' ) && current_user_can( 'manage_options' )) : ?>

    Then at the very end of the file close the if statement by adding this:

    <?php endif; ?>

    That should work as far as I know but I am still finding my way with bbpress so can’t say for definite. Good luck!

    #162816
    oyeben6
    Participant

    Thank Robin W for your link. I do all instructions in this topic but the issue is not fixes. I disable all my plugins except bbpress, also i change my default template for wordpress default theme but i get same error.

    You don’t have another solution ?

    #162749

    In reply to: Broken Breadcrumbs

    Robin W
    Moderator

    to save someone scrolling through, this is the solution posted by @themusiciangirl1 – thanks Maya !

    Guys, I DID IT! After spending the better part of a day sweating over this problem, I finally fixed it. The solution is so simple, I have no idea why it took me so freaking long to think of it!

    1. Download and install the “page links to” plugin at https://wordpress.org/plugins/page-links-to/
    2. Go to Dashboard –> All pages –> and then click edit on your default forum page (usually http://www.yoursite.com/forums)
    3. Once you’re on the editing page, scroll down to where your new plugin has two, magic little options for you. The first one, “this is a normal wordpress page,” is probably checked. Instead, check the one right below it, the one that says “custom url” or something like that. Enter the url for the page that you WANT your default forums page to be. Click publish.

    TA-DA! Now, when you click on “forums” in your breadcrumbs trail, instead of taking you to that default index page, it’ll take you to the special one that you made using the index shortcode.

    #162748

    In reply to: Broken Breadcrumbs

    mrose74
    Participant

    I managed to fix it using the solution described in this post:

    Change the default Forums page

    It might be more of a workaround than anything else, but it’s transparent to our readers, so that works for me.

    Thanks for following up and getting back to me!

    ns
    Participant

    Hello.

    I’d like to solve problem.
    Would anyone answer to my problem?

    Firstly, the conditions of WordPress, bbPress, design theme, plugin, and function.php are below.
    Wordpresss: Latest version
    bbPress: Latest version
    design theme: Original building
    plugin: introduced “bbPress – Sort topic replies”.
    The settings of this plugin are “Global:Descending”, “No Parent:Default”, and “Always show lead Topic:Yes”.
    function.php: Below code exists.

    add_filter('bbp_before_has_replies_parse_args', 'change_reply_order');
    function change_reply_order() {
    	$args['order'] = 'DESC';
    	return $args;
    }
    
    add_filter('bbp_show_lead_topic', 'custom_bbp_show_lead_topic' );
    function custom_bbp_show_lead_topic( $show_lead ) {
      $show_lead[] = 'true';
      return $show_lead;
    }

    Then, here is main topic.
    The function of bbPress itself is that after the user replies to the parent topic in topic page, next screen shows the last page(the page of max number) if the pagination shows.
    With the setting of “bbPress – Sort topic replies” plugin is under “Global:Descending”, the redirection which I expect is to go to the first page.
    I think that this solution isn’t https://bbpress.org/forums/topic/new-replies-redirect-to-last-page/

    I’ve searched and tried to solve the problem, however I can’t find the solution.
    I wonder my current settings or ways might be wrong.

    Thanks.

    #162693

    In reply to: @mentions feature

    Robkk
    Moderator

    @jturet

    I don’t know , suggest you hire a developer if you really want this functionality.

    but by default bbPress and BuddyPress do not use the visual editors so Id say just use the default text editor.

    #162654

    In reply to: Is BBPress responsive?

    PJ Brunet
    Participant

    The trouble is, by default bbPress has a lot of bells and whistles (features) that will quickly clutter a small screen.

    So it’s a lot of work to clean up the clutter and remove unnecessary design elements, borders, etc. Convert “px” to “em” and percentages. Use something like Flowtype to resize your text.

    Here’s an example of what you can do: http://linkedexpertsalliance.com/forums/

    I spent about an hour just cleaning up the boxes and borders bbPress draws around the text editor, which makes all of your editor buttons too small to press on a phone. You want that text editor to use up the full width of your device. I tried to make those buttons responsive but the problem is you need those buttons to be big enough to tap, like the “bold” button is tiny. In the end, decided to go with a fixed viewport. It’s just lots of little tradeoffs here and there that makes it frustrating.

    qbow-admin
    Participant

    I’ve been using bbpress plugin to set up forums for my website’s users. Originally there is no function when it comes to ‘counting views’ of each post. So I added some codes according to this website’s advice.

    It works fine with general(sitewide) forums but when I made a group(buddypress function) and tried to integrate it with bbpress forum, the view count php code does not work in group forums. (Still, it works perfectly fine at sitewide forums)

    this is my code right now (wp-content/plugins/bbpress/templates/default/bbpress/loop-single-topic.php)

    <li class="bbp-topic-voice-count">
        <?php 
    
    if( !function_exists('get_wpbbp_post_view') ) :
    // get bbpress topic view counter
    function get_wpbbp_post_view($postID){
    $count_key = 'post_views_count';
    $count = get_post_meta($postID, $count_key, true);
    if($count==''){
        delete_post_meta($postID, $count_key);
        add_post_meta($postID, $count_key, '0');
        return "0";
    }
    return $count;
    }
    function set_wpbbp_post_view($postID) {
    $count_key = 'post_views_count';
    $count = get_post_meta($postID, $count_key, true);
    if( $count == '' ){
        add_post_meta($postID, $count_key, '1');
    } else {
        $new_count = $count + 1;
        update_post_meta($postID, $count_key, $new_count);
    }
    }
    endif;
    
    if( !function_exists('add_wpbbp_topic_counter') ) :
    // init the view counter in bbpress single topic
    function add_wpbbp_topic_counter() {
    global $wp_query;
    $bbp = bbpress();
    $active_topic = $bbp->current_topic_id;
    set_wpbbp_post_view( $active_topic );
    }
    add_action('bbp_template_after_single_topic', 'add_wpbbp_topic_counter');
    endif;
    
    echo get_wpbbp_post_view( bbp_get_topic_id() ); ?>
    </li>
    Robkk
    Moderator

    looking forward to your template or codex changes

    I just updated the codex article and put an example template to look and study off of.

    It is not just copy and pasting the template into a file and it working, you have to study it and read the comments in the code and find similarities in your index.php file. Then you can create a bbpress.php file from your index.php file.

    If I add the short-code to a custom page using the page.php code it works

    Yes I know but it is just that page, you need all of the bbPress forum pages. Using shortcodes like that means you would have to put a topic shortcode for every topic you have in a bunch of pages. And that is not what either of us are looking for , right??

    It doesnt matter if the default forum uses index.php or page.php – it doesnt work.

    Yes it does, and you have to edit the new bbpress.php file.

    I have sequentially copied pages.php and index.php and made them bbpress.php and each time I can see that the default forum is using it, and each time it doesnt work

    Its not as easy as just renaming it.

    So i guess I need a generic index.php that will work (which I think you said you were producing) OR some workaround so the generic forums page doesnt appear in the directory path

    Was busy with other stuff , but yes i uploaded an example template to look over and compare to your index.php. You cannot just copy and paste , you have to look at the simple code and read how it works in the comments i left in the code.

    aaronos
    Participant

    Hi there – thanks so much for your help so far. I did some more tests and I just cant get it to work (so looking forward to your template or codex changes.

    To summarise:

    1. I was only using WPtweaks to tell it which page to use as a template but no matter which one I told it to use – it didnt work. Have since de-activated

    2. If I add the short-code to a custom page using the page.php code it works

    3. It doesnt matter if the default forum uses index.php or page.php – it doesnt work.

    4. I have sequentially copied pages.php and index.php and made them bbpress.php and each time I can see that the default forum is using it, and each time it doesnt work

    So i guess I need a generic index.php that will work (which I think you said you were producing) OR some workaround so the generic forums page doesnt appear in the directory path

    #162497
    Robkk
    Moderator

    did you copy it correctly I just tested it out and pasted it right from my functions.php file

    Im going to paste it again just in case it was me that forgot something.

    function my_bbp_change_avatar_size($author_avatar, $topic_id, $size) {
        $author_avatar = '';
        if ($size == 14) {
            $size = 24;
        }
        $topic_id = bbp_get_topic_id( $topic_id );
        if ( !empty( $topic_id ) ) {
            if ( !bbp_is_topic_anonymous( $topic_id ) ) {
                $author_avatar = get_avatar( bbp_get_topic_author_id( $topic_id ), $size );
            } else {
                $author_avatar = get_avatar( get_post_meta( $topic_id, '_bbp_anonymous_email', true ), $size );
            }
        }
        return $author_avatar;
    }
    
    /* Add priority (default=10) and number of arguments */
    add_filter('bbp_get_topic_author_avatar', 'my_bbp_change_avatar_size', 20, 3);
    add_filter('bbp_get_reply_author_avatar', 'my_bbp_change_avatar_size', 20, 3);
Viewing 25 results - 2,276 through 2,300 (of 6,813 total)
Skip to toolbar