Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 4,426 through 4,450 (of 32,481 total)
  • Author
    Search Results
  • #190540
    Robin W
    Moderator

    Obviously you are very quotable !!

    From a quick goggle one or both of these might work

    1. add this to your functions file

    add_filter( 'bbp_find_mentions', '__return_false' );
    

    If that doesn’t work or you are being mentioned in buddypress as well

    2. this plugin whilst old probably still works

    BuddyPress No Mentions

    #190515
    Robin W
    Moderator

    ok, can you give me the social widget shortcode you want to use

    #190514
    Robin W
    Moderator

    it is doable, but you would

    1. need to find a forms plugin that has a pre-submission or post submission hook
    2. find someone to add the code to create a topic from that hook.

    I’ve done the pre-submission from gravity forms, but someone else did the form, and I just did the create topic bit.

    #190502
    Robin W
    Moderator

    glad it works

    yes just change that line to

    echo '<div class="badge-os"> Points: '.$points.'</div>' ;

    change the class name to anything you want.

    #190501
    bensainz
    Participant

    I am having trouble getting the topic page template to default to the same page format as my forum page. I created a custom template “bbp-sidebars” that presents my forum page with a sidebar for forum page views and topic views. The forum picks up the custom template, but the topics page ignores it and defaults to the blog view template. So far I downloaded bbp Style Pack, bbp shortcodes, bbP Tookkit, Weaver for bbPress, and What the File to see if there was a setting to accomplish my goal. I also read multiple articles on custom templates, but none address the topic layout. Also, after a new topic or topic response is posted, I can manually go in and set the page settings to have it display the way I want. While my site is growing I can probably do this, but after a certain point it will be too hard to keep up.

    I am using WP 4.9.4, ForeFront theme Version 1.04 as a subtheme under GeneratePress V 2.02
    My Website is https://defensecareersHQ.com PW is “VetsHelpingVets”
    An example of my issue can be viewed here
    https://www.defensecareershq.com/forums/topic/how-about-l-3-technologies/

    Also, please note I manually set the all other topic pages to display correctly. Any advice is greatly appreciated.

    #190497
    fatguyonbike
    Participant

    Hi,

    i want to configure bbPress on my own theme. I am looking for a list of functions like https://codex.wordpress.org/Function_Reference just for bbPress. Where can I find this?

    Thank you!

    #190496
    Robin W
    Moderator

    There is nothing I know of, and whilst it is possible with a deal of code, beyond free help I’m afraid

    #190494
    Robin W
    Moderator

    so..there is no any way to “hide” register form and just left social media login?

    ok, we’re a bit outside bbpress support here, as this is theme/other plugin related.

    where is register (I’m not good in your language!)?

    Also, can you tell me how can I publish social widget shortcode in header of all forum pages?

    if you are ok with copying coding and FTP files, then I may be able to help

    #190493
    Robin W
    Moderator

    although you may want to alter the last line to something like

    echo 'Points: '.$points ;

    so that more than just a number appears !

    #190492
    Robin W
    Moderator

    BadgeOS is a plugin so I can’t comment on whether your code would work – it looks fine from a technical point of view.

    I’ve tweaked it so that it shows the points for each user rather than the current user and added the function to get it below the author name, so if the function is correct this code should work.

    add_action ('bbp_theme_after_reply_author_details', 'badgeos_show_users_points') ;
    
    function badgeos_show_users_points( $user_id = 0 ) {
     $user_id = bbp_get_reply_author_id();
     // echo our user’s points as an integer (sanely falls back to 0 if empty)
     $points = absint( get_user_meta( $user_id, '_badgeos_points', true ) );
     echo $points ;
     }

    let me know if it works

    #190490
    principiante
    Participant

    Thank you Robin, so..there is no any way to “hide” register form and just left social media login?
    Also, can you tell me how can I publish social widget shortcode in header of all forum pages?
    Right now is publish in sidebar widget…what is bad becouse mobile phone users need to scroll all way down to find it.
    Thank you!

    #190488
    florianm
    Participant

    For our restricted members bbPress forum, I would like to display a user’s BadgeOS points below their username next to their posts/replies. I already found some code to display these points but I am not sure if it’s correct and how to make it show below the username.

    function badgeos_get_users_points( $user_id = 0 ) {
    // Use current user’s ID if none specified
    if ( ! $user_id )
    $user_id = wp_get_current_user()->ID;
    // Return our user’s points as an integer (sanely falls back to 0 if empty)
    return absint( get_user_meta( $user_id, ‘_badgeos_points’, true ) );
    }

    Any help would be much appreciated!

    FYI: we also use the latest versions of BuddyPress and the Boss theme.

    #190487

    In reply to: BBCodes bbpress list?

    Robin W
    Moderator

    I think they are pretty much as per the list above a topic/reply.

    You can use this plugin to extend

    bbPress2 BBCode

    #190483
    angrywarrior
    Blocked

    Hi! 🙂

    Pretty much as the subject says. Is there somewhere a list over all BBcodes that you can use in BBpress?

    I spent some time googleing after this but I could not find any published information.

    Thank you.

    Kind regards
    AngryWarrior

    #190475
    Robin W
    Moderator

    Sorry – I can’t immediately see a better way.

    I’m not a bbpress author, but to get code changed you’ll need to post in trac

    https://bbpress.trac.wordpress.org/

    #190474
    Robin W
    Moderator

    Nothing I know of dopes that, and not without a heap of bespoke code – sorry !

    #190471
    chumtarou
    Participant

    Apologies for the delay in responding!

    Thanks very much Robin for your great work – I am still working away on the site but your shortcodes and plugins are very useful. I will be sending in a donation soon. Greatly appreciated.

    And thanks for asking Pascal – I’m working on an internal staff forum for an existing intranet so I won’t be able to post here, sorry.

    #190470
    paschoolboards
    Participant

    We have come across and issue regarding bbPress and Groups in BuddyPress. Our organization decided against my wishes to start using the terminology Forums to describe Focus Groups and Committees. This has created an issue for our portal as Forums means something different in bbPress. After much digging I found an easy way to update the group navigation bar to reflect a name other than Forum, but the easiest way to make this work is to add apply_filters in setup_variables() in plugins/bbpress/includes/extend/buddypress/groups.php like this:

                    $this->name          = __( 'Forum', 'bbpress' );
                    $this->nav_item_name = __( 'Forum', 'bbpress' );
    
                    $this->nav_item_name = apply_filters('bbp_update_nav_item_title', $this->nav_item_name);
                    $this->name = apply_filters('bbp_update_forum_name', $this->name);
    

    then I just use add_filter in my plugin and it updates the Navigation Bar for groups to display something different.

    Is this the only way this can be done, or is there a filter/action i can use to change it without touching the bbpress code? I don’t want to keep changing code every time there is an update to bbPress.

    So my request is to add these apply_filter lines above to the groups.php file going forward for flexibility. I’m sure the same could be don with slug, but I don’t care much what the url is as long as the display name is correct.

    Thanks for everything you guys do!

    #190453

    In reply to: removing search button

    themichaelglenn
    Participant

    I know this thread is 2 years old but it didn’t have the solution I was looking for, so I did some digging and figured out how to remove the Search button entirely. (So I’m putting it here in case anyone else looks for the same thing.)

    CSS will work to hide the Search button, but you can also remove it completely by modifying the bbPress template files.

    It took me a long time to find the right one, but what you wanna do is go to your plugins folder, and find the bbpress folder. Then look inside bbpress > templates > default > bbpress, and find the file named ‘content-archive-forum.php’

    This file outputs the <div id="bbpress-forums"> code at the top of your index page, then immediately after that it outputs the search field and the breadcrumbs.

    To remove the search box ONLY from your Forum Index page, just comment out the following lines of code:

    <div id="bbpress-forums">
    
    	<?php 
        
        /* Comment these lines out to remove search from your Forum Index page.
        
        if ( bbp_allow_search() ) : ?>
    
    		<div class="bbp-search-form">
    
    			<?php bbp_get_template_part( 'form', 'search' ); ?>
    
    		</div>
    
    	<?php endif; */ ?>
    
    	<?php bbp_breadcrumb(); ?>

    This will ONLY disable the search box; if you want to remove the breadcrumbs as well, then you need to comment out (or delete) the bbp_breadcrum(); line as well.

    NOTE: The safest way to do this is to create a bbpress folder inside your theme, and save the modified content-archive-forum.php there (otherwise it’ll be overwritten the next time bbPress updates.)

    #190452
    kjwuan28
    Participant

    Hello,

    Is there a shortcode or a function that can retrieves all of subscribed forums,forums that you have replied? In short to get all forum/topics that you or a user have involvement in a single page.

    We are using.
    bbpress Version 2.5.14
    WordPress 4.9.4
    Custom made theme.

    #190450
    jimblais
    Participant

    I replaced the phpBB converter code as above and when I run it, it finds nothing. It runs through but does not create forums nor topics, etc. Please advise.

    #190442
    rcoyle56
    Participant

    @netweb I tried using your code in my site’s function.php, however, the code did not work and in fact caused display errors. I noticed that this post was a few years old. Do you know how the code would be updated to work with current bbpress? I need to remove the Home breadcrumb specifically. The forum and topic breadcrumbs are fine.

    #190420
    Robin W
    Moderator

    That’s great, and the info on the site page helped greatly, particularly that bbp_get_topic_reply_count() has a number with the comma in it.

    Replies are stored in the wp_posts table. The code creates an entry for the reply order in ‘menu_order’ where there is none, which is what I hoped my filter was fixing. But if the entry has already been created, then it just uses what is in the database. So when you look at a reply, if it has no entry it creates one and then uses that. So by merely looking at a reply you can alter the database! That may explain your funny but strange fact – just by examining an entry you may be changing what is stored !

    Where the reply appears in the display is held in that table under ‘menu_order’

    so I suspect that for instance reply id 119119 – which I looked at – has a bbp_get_topic_reply_count() value of 1,062.

    Can you check the entry in phpmyadmin

    SELECTmenu_orderFROMwp_postsWHEREID= '119119'

    and see if the entry reads 1,062 or 1062 or 0 !

    That will get us further forward

    #190412
    markleeuw
    Participant

    Hi,

    Yes the plugin stops the whole embed. But thats not want i want equally.

    I want to remove the logo below and the white background.

    I have asked the THeme owner about the codes and he said. The code doesnt work because there is nothing in those blocks.

    #190408
    Robin W
    Moderator

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

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

    find
    wp-content/plugins/bbpress/templates/default/bbpress/content-statistics.php
    Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/content-statistics.php
    bbPress will now use this template instead of the original
    and you can amend this

    so copy this file to your PC and open it up.

    then remove lines 37-40 which say

    <dt><?php _e( 'Topic Tags', 'bbpress' ); ?></dt>
    	<dd>
    		<strong><?php echo esc_html( $stats['topic_tag_count'] ); ?></strong>
    	</dd>
    

    and save the file back to your website at wp-content/themes/%your-theme-name%/bbpress/content-statistics.php

    and yes being a child theme change it won’t get overwritten.

Viewing 25 results - 4,426 through 4,450 (of 32,481 total)
Skip to toolbar