Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 5,626 through 5,650 (of 64,430 total)
  • Author
    Search Results
  • #204888

    In reply to: Fetch different avatar

    jbrandsma
    Participant

    For anyone who stumbles upon this, I found the solution and placed it here

    #204875

    In reply to: Locked topics

    Chuckie
    Participant

    Yeah, but in forums like phpBB, if you close a topic you are locking the topic. This is indicated to the user by a icon. I added some styling which I had gleaned from the internet:

    #bbpress-forums .status-closed > li.bbp-topic-title > a.bbp-topic-permalink:before {
    	content: "[Locked]";
    	text-shadow: 1px 1px 0 #ffffff;
    	color: #ff0000;
    	margin-right: 5px;
    	font-size: 16pt !important;
    }

    This gives me a lock symbol but the look and feel of this symbol is not as nice as the paper clip which is visible for topics with attachments (using the GD Attachments plugin).

    #204869
    Chuckie
    Participant

    I don’t know if this is a bug. I was just playing around with bbPress and created a new topic. In the option list is “Pending” so I selected it. I hit submit. The topic has vanished. No where to be seen.

    What happened?

    #204867
    stoffer_dev
    Participant

    I found a way to put it in a plugin 🙂

    I Thought I would have to hook into ‘plugins_loaded’ like so:

     add_action( 'plugins_loaded', 'bbpress_overwrite' );
    
     function bbpress_overwrite() {
         add_filter ('bbp_before_has_search_results_parse_args', 'rew_amend_search') ;
     }
    
    function rew_amend_search ($args) {
    	$args['post_type'] =  bbp_get_topic_post_type() ;
    return $args ;
    }

    But for some reason this was enough: ?

    add_filter ('bbp_before_has_search_results_parse_args', 'rew_amend_search') ;
    
    function rew_amend_search ($args) {
    	$args['post_type'] =  bbp_get_topic_post_type() ;
    return $args ;
    }
    #204859
    stoffer_dev
    Participant

    Can I also override files in the “includes” folder (bbpress/includes/search/template.ph) in a child theme?

    #204858
    Robin W
    Moderator

    no, you just put the templates in your child theme

    You can copy all the templates across, but you only need to copy those that you want to change, and it is better just to do this, as then you know which you have altered.

    so if you wanted to amend loop-single-forum you would do the following

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

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

    find
    wp-content/plugins/bbpress/templates/default/bbpress/loop-single-forum.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/loop-single-forum.php
    bbPress will now use this template instead of the original
    and you can amend this

    #204856
    stoffer_dev
    Participant

    The problem is, using the template solution will get overwritten when I update the the bbPress plugin…:(

    #204854
    stoffer_dev
    Participant

    I put this:

    add_filter ('bbp_before_get_search_terms_parse_args', 'pluus_amend_search') ;
    
    function pluus_amend_search ($args) {
    	$args['post_type'] =  bbp_get_topic_post_type() ;
    return $args ;
    }

    in my wp-content/themes/<ThemeName>/functions.php

    But Forum names (“bbp_get_forum_post_type()”) are still included in the search results on the frontend.

    Only editing “plugins/bbpress/includes/search/template.php” works 🙂

    nothere
    Participant

    That worked! Thanks Robin, do you happen to know if there is any tutorials out there on setting up your website similar to the bbpress support forum?

    #204826
    madflute
    Participant

    Hi, thank you for your response. I do have bbPress Toolkit but I don’t think it can do what bbP Manage Subscriptions did. What it does is to force a user to subscribe/unsubscribe to a specific forum(s). For example, you can pick up active contributors and force them to subscribe to the contributors’ forum. This is all done in a convenient table.

    #204819
    nothere
    Participant

    Is it possible to download or install the same or similar code as this bbpress support form layout has? I like the layout, and would like to incorporate it on my site. Not sure if this is a possibility? Thanks.

    #204807
    Chuckie
    Participant

    Sorted it. I added this second style:

    #bbpress-forums li.bbp-header div {
    	background: #7A7A78 !important;
    	border:  none;
    }
    #204806
    Chuckie
    Participant

    I have this styling:

    #bbpress-forums div.bbp-reply-content {
    	border-left: solid 1px black;
    	background: whitesmoke !important;
    	padding-left: 5px;
    }
    
    #bbpress-forums div.bbp-reply-author {
    	background: whitesmoke !important;
    }
    
    #bbpress-forums div.bbp-reply-content li {
    	color: #000 !important;
    }
    
    #bbpress-forums div.bbp-reply-content a {
    	color: blue !important;
    }
    
    #bbpress-forums div.bbp-reply-content a:hover {
    	text-decoration: underline;
    }
    

    The problem is that it applies it to the very first row with the headings and I don’t want it to. Ideally I want to set the background of just the replies themselves to whitesmoke.

    #204790
    brunov99
    Participant

    Thanks Robin,

    I tried the method you mentioned first (as a hack) but the files located in plugins/bbpress were not taken into account at all. So I decided to change the main po/mo files.

    Nervermind as I know now how it works I will keep my “precious” translated files in a safe place.
    bV

    #204789
    jbrandsma
    Participant

    I am using bbpress in conjunction with buddypress and I noticed that the forums have different avatars for users than their profile avatar. Is there a way to use the avatars from buddypress and not from bbpress?

    I found this topic and its exactly what I’m referring too, but it was never marked as resolved and the answer was only for replies. The code snippet in this post works for me, but I need it to go further and apply to all avatars. I tried adding a filter to ‘bbp_get_current_user_avatar’ but I can’t get it to work.

    Wordpress, buddypress, and bbpress are all up-to-date – I also have the Youzer plugin installed

    Thanks in advance!

    #204787
    Robin W
    Moderator

    hmmm… quite a puzzle

    so you could try putting your customised file here

    wp-content/languages/plugins/bbpress-fr_FR.mo

    plugins load code from only two places, but no idea which loads first, but looks like that location loads last, so it might work. but again might be overwritten by WordPress updates

    #204786
    brunov99
    Participant

    Hi everyone,

    I change some translated strings in my bbprress-XX-po/mo files located in the wp/language dir. to suit my non-geek audience.
    How can these files not be overwritten during bbPress next updates?

    Thank you.
    bV

    #204785
    brunov99
    Participant

    wp 2.5.4 / bpp 2.5.14

    Hi everyone,
    does someone have an idea how to fix this ?
    the search bar is displayed correctly but the search button is not displayed at all.

    The more strange thing is that for testing purpose, I installed the 2.6RC7 version on the exact same config (exept bbpress of course) and here the button appears.

    Thank you for your advices.
    bV

    #204752
    Pierre Lemarchand
    Participant

    P.S.: now WP 5.2.4 and bbPress 2.5.14

    #204725

    In reply to: Custom Topic Sorting

    tapiohuuhaa
    Participant

    Exactly I think this code:

    function my_custom_display_topic_index_query () {
    global $_GET;
    if($_GET[‘myOrderBy’])$myOrderBy=$_GET[‘myOrderBy’];else $myOrderBy=’last_edited’;
    if($_GET[‘myOrder’])$myOrder=$_GET[‘myOrder’];else $myOrder=’DESC’;
    $args[‘orderby’] = $myOrderBy;
    $args[‘order’] = $myOrder;

    return $args;
    }
    add_filter(‘bbp_before_has_topics_parse_args’, ‘my_custom_display_topic_index_query’ );

    function printSelections(){
    global $_SERVER;
    return ‘<div class=”queries”><form action=”https://&#8217; . $_SERVER[‘HTTP_HOST’] . $_SERVER[‘REQUEST_URI’].'”><table class=”querytable”><tr><td><select name=”myOrderBy”><option value=”post_modified”>Viimeisin muutos</option><option value=”post_date”>Luontipäivä</option><option value=”post_title”>Nimi/option><option value=”post_author”>Tekijä/option></select></td><td><input name=”myOrder” type=”radio” value=”DESC” />Laskeva</td><td><input name=”myOrder” type=”radio” value=”ASC” />Nouseva</td></tr></table></form>’;
    }

    add_shortcode( ‘printSelections’, ‘printSelections’ );
    // Add do_shortcode(‘printSelections’); to loop-forums.php
    <li class=”bbp-header”>

    <ul class=”forum-titles”>
    <li class=”bbp-forum-info”><?php _e( ‘Forum’, ‘bbpress’ ); ?><?php topPostLinksEcho(); ?>
    <li class=”bbp-forum-topic-count”><?php _e( ‘Topics’, ‘bbpress’ ); ?>
    <li class=”bbp-forum-reply-count”><?php bbp_show_lead_topic() ? _e( ‘Replies’, ‘bbpress’ ) : _e( ‘Posts’, ‘bbpress’ ); ?>
    <li class=”bbp-forum-freshness”><?php _e( ‘Freshness’, ‘bbpress’ ); ?>

    <?php do_shortcode(‘[printSelections]’); ?>

    #204721
    demonboy
    Participant

    In single-loop-forum.php I want to style my first forum differently to the rest by removing the voices/topics/freshness columns. As it happens this forum is only visible to non-logged in users by using this code:

    .logged-in #bbp-forum-40250 {
    	display: none;
    }

    I found this code here:

    /*Different divs for all topics of specific forums*/
    
    function add_different_div() {
        
    $topic_id = bbp_get_topic_forum_id(); 
        if (( $topic_id == 123) or ( $topic_id == 456)){
    ?>
           <div> this is some custom div text </div>
    <?php
        }
    
    elseif ( $topic_id == 789){?>
    <div> this is some OTHER custom div text </div>
    <?php
    }}  
        
    add_action( 'different_div', 'add_different_div' );

    … but creating a function seems overkill. I think I just need an if() statement that says ‘if this forum ID then style it this way; else…’.

    Any pointers?

    Thanks.

    #204709
    Chuckie
    Participant

    I have read your article about importing from phpBB. I would like to know how much control we have over importing. I have already created a new forum structure with bbPress and I would like to selectively import just certain forums into these new formats in bbpress.

    #204672
    ghoush
    Participant

    Just a note to everyone who might find this. It’s been more than 4 years, and this code still works great.

    For anyone looking to add signatures on BuddyBoss Platform instead of bbPress/BuddyPress, this works too.

    berry metal
    Participant

    How do I get bbPress to return to the same page when someone presses Favorite from within the Bbpress single topic shortcode?
    I want to avoid the redirect to the topic page after pressing the Favorite link.

    #204627
    Robin W
    Moderator

    yes users can subscribe to both topics and forums in bbpress

Viewing 25 results - 5,626 through 5,650 (of 64,430 total)
Skip to toolbar