Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 9,326 through 9,350 (of 64,472 total)
  • Author
    Search Results
  • #182663

    In reply to: bbp_reply_admin_links

    Robin W
    Moderator

    hmmm … if you want each link to be a button, I can point you to some code, but you’ll need to figure it out.

    so

    so for replies, the function is in

    bbpress/includes/replies/template.php

    which I think you found.

    function bbp_get_reply_admin_links( $args = array() ) {
    
    		// Parse arguments against default values
    		$r = bbp_parse_args( $args, array(
    			'id'     => 0,
    			'before' => '<span class="bbp-admin-links">',
    			'after'  => '</span>',
    			'sep'    => ' | ',
    			'links'  => array()
    		), 'get_reply_admin_links' );
    
    		$r['id'] = bbp_get_reply_id( (int) $r['id'] );
    
    		// If post is a topic, return the topic admin links instead
    		if ( bbp_is_topic( $r['id'] ) ) {
    			return bbp_get_topic_admin_links( $args );
    		}
    
    		// If post is not a reply, return
    		if ( !bbp_is_reply( $r['id'] ) ) {
    			return;
    		}
    
    		// If topic is trashed, do not show admin links
    		if ( bbp_is_topic_trash( bbp_get_reply_topic_id( $r['id'] ) ) ) {
    			return;
    		}
    
    		// If no links were passed, default to the standard
    		if ( empty( $r['links'] ) ) {
    			$r['links'] = apply_filters( 'bbp_reply_admin_links', array(
    				'edit'  => bbp_get_reply_edit_link ( $r ),
    				'move'  => bbp_get_reply_move_link ( $r ),
    				'split' => bbp_get_topic_split_link( $r ),
    				'trash' => bbp_get_reply_trash_link( $r ),
    				'spam'  => bbp_get_reply_spam_link ( $r ),
    				'reply' => bbp_get_reply_to_link   ( $r )
    			), $r['id'] );
    		}
    
    		// See if links need to be unset
    		$reply_status = bbp_get_reply_status( $r['id'] );
    		if ( in_array( $reply_status, array( bbp_get_spam_status_id(), bbp_get_trash_status_id() ) ) ) {
    
    			// Spam link shouldn't be visible on trashed topics
    			if ( bbp_get_trash_status_id() === $reply_status ) {
    				unset( $r['links']['spam'] );
    
    			// Trash link shouldn't be visible on spam topics
    			} elseif ( bbp_get_spam_status_id() === $reply_status ) {
    				unset( $r['links']['trash'] );
    			}
    		}
    
    		// Process the admin links
    		$links  = implode( $r['sep'], array_filter( $r['links'] ) );
    		$retval = $r['before'] . $links . $r['after'];
    
    		return apply_filters( 'bbp_get_reply_admin_links', $retval, $r, $args );
    	}

    which you can filter at the end, but how would depend on your skills.

    the span part can be simply changed by putting a filter into your child theme’s function file

    eg

    add_filter ('bbp_before_get_reply_admin_links_parse_args', 'theredeclipse_change' ) ;
    
    function theredeclipse_change ($args) {
    	$args['before'] = '<span class="bbp-admin-links">' ;
    	$args['after']   = '</span>' ;
    return $args ;
    }

    and just change whatever you want the span part to look like, or just remove it.

    if you want to style each link, then you’ll see that there is a call to each separate function

    'edit'  => bbp_get_reply_edit_link ( $r ),
    				'move'  => bbp_get_reply_move_link ( $r ),
    				'split' => bbp_get_topic_split_link( $r ),
    				'trash' => bbp_get_reply_trash_link( $r ),
    				'spam'  => bbp_get_reply_spam_link ( $r ),
    				'reply' => bbp_get_reply_to_link   ( $r )
    

    so to do it in functions, you’d need to go to each one.

    you’ll find these in the same file above

    since the class is hard coded, you could add a final filter with a preg_replace

    eg

    add_filter( 'bbp_get_reply_move_link' , 'theredeclipse_move', 10 , 2 ) ;
    
    function theredeclipse_move ($retval, $r) {
    $retval =  preg_replace(whatever args you need, with, $retval);
    return $retval ;
    }

    so $retval will hold the line of code including the class.

    so google preg-replace and see if you can get it working !!

    #182655

    In reply to: bbp_reply_admin_links

    theredeclipse
    Participant

    Default output looks like

    <span class="bbp-admin-links">
    // inside different classes of links
    </span>

    I would like change it to
    <a class="button"></a>
    So I want to delete span from output and use one style for each <a> link, if its possible.

    And the thing is – I could do it by modifying forum files, but after update it will be overwritten. So I want to use bbpress functions php file to change output, but I don’t know how. I hope I’ve explained it well šŸ˜›

    #182624
    mpnuu
    Participant

    Hello

    I installed bbPress on my website and added login sidebar to my forum page. It got working after some struggle. Then I had to create child theme for Twenty Sixteen theme. After that bbPress login sidebar moved to bottom of forum page. Can you give me some instructions how to get sidebar back to side of the page? Thanks!

    I’m currently using WordPress 4.7.3 with Twenty Sixteen theme and bbPress 2.5.12.
    My website is not yet public.

    #182615
    cbeardsley626
    Participant

    Hi

    Bit of a beginner here so forgive me if I’m asking something which should be obvious!

    I have installed BBpress on my wordpress site but when I click on the forums tab on the wordpress dashboard it seems the link is broken. It takes me to a “HTTP 500 error” default screen. I can click on “New forum” but not “All forums”. Similarly when you click on any of the forum links on the homepage, even those links appear broken as you don’t land on that forum. Even then, I get the same HTTP error. Any ideas?

    Ryan Giglio
    Participant

    I’m working an educational website that produces video content and uses a BBPress forum for discussion rather than the native WordPress comments. Here’s how it works:

    I have a hook on wp_insert_post that creates a new BBPress topic when a new video post is created and saves this new topic_id to a _comment_topic_id meta field.

    In my single-video.php template where the video is displayed, I’m using the BBPress [bbp-single-topic id=$topic_id] shortcode to display the topic thread and reply form for people to post comments.

    All of this works great! I’m just having one problem – the “subscribe” feature of BBPress isn’t working when people post replies via the Video Single page. The reply is posted just fine, but subscribed users don’t receive a notification. If you’re not familiar – when a user subscribes to a thread, they receive an email whenever someone replies to the thread. This is still working fine when someone posts a reply via the actual Thread single page – it’s only a problem on the thread embedded via the shortcode on the Video single page.

    I’ve tried digging into the core and I got so far as to discover that the bbp_new_reply action isn’t firing – BBPress uses a function called bbp_notify_topic_subscribers hooked into bbp_new_reply to send the notifications and that function isn’t running at all when a reply is made via the Video single page.

    It seems that BBPress uses some hidden inputs to determine what actions to run after a reply has been submitted, but those seem to be included properly through the shortcode. These appear at the bottom of the Topic single form (that works properly);

        <input type="hidden" name="bbp_topic_id" id="bbp_topic_id" value="422573">
        <input type="hidden" name="bbp_reply_to" id="bbp_reply_to" value="0">
        <input type="hidden" name="action" id="bbp_post_action" value="bbp-new-reply">
        <input type="hidden" id="_wpnonce" name="_wpnonce" value="83ea236cd1">
        <input type="hidden" name="_wp_http_referer" value="/forums/topic/SLUG/">

    And these appear at the bottom of the Video single form (that doesn’t)

        <input type="hidden" name="bbp_topic_id" id="bbp_topic_id" value="422573">
        <input type="hidden" name="bbp_reply_to" id="bbp_reply_to" value="0">
        <input type="hidden" name="action" id="bbp_post_action" value="bbp-new-reply">
        <input type="hidden" id="_wpnonce" name="_wpnonce" value="83ea236cd1">
        <input type="hidden" name="_wp_http_referer" value="/videos/SLUG/">

    I’m at a loss for how to debug this issue further and could really use some help. BBPress has all kinds of page type/post type checks in the core that I’ve been ducking and weaving around, but this one has got me stumped. I suspect the problem is that SOMEWHERE it’s checking the post type of the current post, seeing it’s a video instead of a topic and bailing before the action runs, but I have no idea how or where to find that and how to patch around it.

    Thanks!

    #182603
    Pascal Casier
    Moderator

    This is bbPress, for BuddyPress you could check the BuddyPress forums šŸ™‚

    Below just a quick idea to stop ALL email to subscribers, but UNTESTED:

    function casiepa_fltr_get_forum_subscribers( $user_ids ) {
    	return array();
    }; 
    // add the filter 
    add_filter( 'bbp_forum_subscription_user_ids', 'casiepa_fltr_get_forum_subscribers', 10, 1 );
    #182601
    reedy
    Participant

    Just an added thought — if the ā€˜Settings > Email’ page is generated by buddypress, perhaps the email subscription options could be added to the top of the ‘Forums > Subscriptions’ page (I believe this is generated by bbpress).

    #182600
    Pascal Casier
    Moderator

    Hi @netweb, @gmmedia,

    I have just installed bbPress 2.5.12 and Yoast SEO 4.4 on a completely new WP 4.7.3. I have found the noindex the very first time on the standard /forums page, but after the following steps it seems I do get SEO info and I can fill keywords at forum level in /wp-admin.

    • Install bbPress and activate
    • Install Yoast SEO and activate
    • In /wp-admin/options-reading.php make sure NOT to have the ‘Search Engine Visibility’ ticked
    • Run the Yoast SEO configuration wizard from /wp-admin/admin.php?page=wpseo_dashboard#top#general and make sure to mark forums as ‘Visible’.

    So at least Yoast SEO works.

    If somebody else can do further testing, that would be great.

    #182597
    Dan
    Participant

    my permalinks are set to month & name. my .htaccess has only the default WP rewrite rules. I have bbPress 2.5.12, jetpack 4.7, and woocommerce 2.6.14.

    When i visit mysite/forums/topic/* I get my topic.
    When i visit mysite/forums/user/admin I get the admin profile.
    When i visit mysite/forums/user/anyone-else I get the site homepage.

    This works wether I am logged in or out. I have no security plugins or cache plugins.

    Please: Why is this happening and how do I fix it?

    #182588
    dllawrence
    Participant

    This is a clean install

    Wordpress 4.7.3 – BBPress 2.5.12 – Buddypress 2.8.1

    I have installed with Twentyseventeen theme and with BeTheme. Everything works fine except I have an problem and was hoping someone could help point me in the right direction to resolve an issue with the breadcrumbs.

    When I am viewing the forums here is the breadcrumb string:

    Home > Forums > ā€œForum nameā€ > ā€œTopic nameā€

    That is exactly what I want. However, when I am viewing Buddypress pages, the breadcrumbs are:

    Home > Forums > ā€œUsernameā€

    I would prefer the breadcrumbs to be as follows:

    Home > Members > ā€œUsernameā€ when someone is viewing Buddypress pages.

    Does anyone know how to achieve this????

    Thanks in advance for your help.

    #182587
    fastk9dad
    Participant

    Yes. I have a full child theme set up with a functions.php and modified bbpress templates as well.

    #182584
    Robin W
    Moderator

    because bbpress uses the wordpress login, you can’t have two logins on the same domain.

    So your best bet would be to say to people

    use the ‘world’ login for everyone, but individuals swap to an individual login and only use that once they have been given an individual that is all they use.

    #182582
    fastk9dad
    Participant

    I am looking to make my “New Topic” button below follow the pagination, by that I mean if there is only one page and the pagination links don’t exist I want the “New Topic” button to appear all the way to the right. If there is pagination I want it to sit at it’s left most side like my example below. Right now I’m just placing it there in a static position which means on pages with no pagination it’s just floating in space.

    Example position:
    button position

    This is the static code I’m using for the button:

    #bbpress-forums .new-topic {
        margin-top: -41px;
        margin-right: 80px;
        float: right;
    }
    #182575
    mpnuu
    Participant

    I had to create child theme for Twenty Sixteen. After that, bbPress sidebar went on bottom of the page. What I have to do to get sidebar back to side of the page?

    #182574
    A.
    Participant

    Hello!

    When using bbpress and Learndash, it is possible to set a forum to “privat” and link it up to a specific Learndash course. Which is working absolutely fine.

    But – as a “participant” who is not enrolled to that specific learndash course, it is possible for me to see all the topics, themes and replies of this forum. I can’t reply to it or create a new topic but still I’m able to read everything.

    Although it is set to “private” and linked up to a specific LD course.

    Is it possible, that a “participant”, who is not enrolled into a LD course, can’t see any replies, themes or topics of this specific forum?

    Best,
    Anke

    #182572
    alexpreyer
    Participant

    I have an WordPress site where we have one login for many visitors, because not everyone should see the content.
    Inside this WordPress installation is also bbpress installation. There we want to have each user separetly logged in with his own username. Because many users will login in the WordPress site, but only a few will use the forum we choosed this way.
    Is it possible to get a separate login for bbpress when already logged in WordPress?

    Thanks all for your help

    #182570
    Robin W
    Moderator

    that’s not a bbpress page, looks like it might be a version 1 site

    #182569
    patlas1
    Participant

    Hi,

    I have a problem here that I don’t know how to resolve. My page patlas.org/college seems to be under the influence of BBpress. However, it should be no different than patlas.org/career or patlas.org/company. I tried deleting the patlas.org/college page once and recreating it, but it continues to direct me to a BBPress page. I uninstalled BBpress, but that didn’t resolve it either. Any advice?

    Best,

    Patlas

    #182568

    In reply to: Hiding Comments

    Pascal Casier
    Moderator

    Unfortunately that is not possible in bbPress and to be honest I have not seen any plugin doing that so far. There are some discussions ongoing concerning bumping and sinking where replies could go higher or lower in the list, but that discussion is still ongoing and not so easy to implement.

    If you want to program yourself, I would think about adding the ID of the replies you are hiding to the meta of a user, or adding the ID of the user as a meta of the reply and then based on that display the reply or not.

    Pascal.

    #182563

    In reply to: Topic Info

    Marcos
    Participant

    I think also the “forum info” is a good widget to have in default instalation of bbpress.

    #182562

    In reply to: Topic Info

    Marcos
    Participant

    I want this also. Maybe a lot of people love this.
    Is not possible made a default widget with these information for the next versions of bbpress?

    #182561
    Marcos
    Participant

    Hi, in the bbpress forum works.
    Some way to add this option in bbpress next release?

    #182555
    russ8523
    Participant

    Hi Dominic,
    I think you misunderstood my post. I simply want to reduce the required password length to 8, rather than 10. I have changed this setting in Profile Builder Pro to eight, and that iis actually working ie 8 character passwords are accepted, but this dialogue box is still saying 10, which is confusing for visitors (and me!)

    I think this is a BBPress issue, but I can’t find where to change this anywhere! Iv’e searched every CSS file i can find!
    Any help would be much appreciated

    #182554
    Kalusha
    Participant

    I have now this code into functions

    ##Name Ƥndern Participant in User Standard User
    function my_custom_roles( $role, $user_id ) {
    if( $role == ‘Teilnehmer’ )
    return ‘Standard User’;

    return $role;

    }

    add_filter( ‘bbp_get_user_display_role’, ‘my_custom_roles’, 10, 2 );

    function my_custom_roles2( $role, $user_id ) {
    if( $role == ‘Keymaster’ )
    return ‘Michael’;

    return $role;
    }

    add_filter( ‘bbp_get_user_display_role’, ‘my_custom_roles2’, 10, 2 );

    function my_custom_roles3( $role, $user_id ) {
    if( $role == ‘Zuschauer’ )
    return ‘Premium User’;

    return $role;
    }

    add_filter( ‘bbp_get_user_display_role’, ‘my_custom_roles3’, 10, 2 );

    So I change only the names. Now I must to have that the spectator has the same capability as the participants. So I have no code for this found, I have change the capability.php in bbpress core. I know itĀ“s not the best way and after a Update I must change it again but it works. I have no other idea. šŸ™

    #182551
    Robin W
    Moderator

    follow this link with a description on how to do this

    Custom Capabilities

Viewing 25 results - 9,326 through 9,350 (of 64,472 total)
Skip to toolbar