Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 17,801 through 17,825 (of 64,532 total)
  • Author
    Search Results
  • #154476
    #154472
    Robkk
    Moderator

    you add this to your themes functions.php or a functionality plugin.

    you then use css to style the roles from there.

    add_filter('bbp_before_get_reply_author_role_parse_args', 'ntwb_bbpress_reply_css_role' );
    function ntwb_bbpress_reply_css_role() {
    
    	$role = strtolower( bbp_get_user_display_role( bbp_get_reply_author_id( $reply_id ) ) );
    	$args['class']  = 'bbp-author-role bbp-author-role-' . $role;
    	$args['before'] = '';
    	$args['after']  = '';
    
    	return $args;
    }
    
    add_filter('bbp_before_get_topic_author_role_parse_args', 'ntwb_bbpress_topic_css_role' );
    function ntwb_bbpress_topic_css_role() {
    
    	$role = strtolower( bbp_get_user_display_role( bbp_get_topic_author_id( $topic_id ) ) );
    	$args['class']  = 'bbp-author-role bbp-author-role-' . $role;
    	$args['before'] = '';
    	$args['after']  = '';
    
    	return $args;
    }

    It grabs the topic or reply author role and adds another CSS class with prefix bbp-role- so you now have a new set of CSS classes e.g. bbp-role-keymaster, bbp-role-moderator, bbp-role-participant etc that you can then add your custom CSS styles to.

    link this was from

    Topic background color depending on role

    #154471
    Robkk
    Moderator
    #154468
    toomba
    Participant

    Hi Robin, thanks for the reply.

    I’ve only just come back to this problem, and I followed your advice with the plugins. I don’t know why I didn’t try it before. It seems the custom permalinks plugin was causing the error. I’ve now disabled it, however am without custom permalinks for my site.

    Does anyone have any experience successfully using custom permalinks with bbpress?

    #154465
    akyboy
    Participant

    AH,…

    user-details.php is file im looking for

    So if i can add that custom link below:

    <a href="<?php bbp_user_profile_edit_url(); ?>" title="<?php printf( esc_attr__( "Edit %s's Profile", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php _e( 'Edit', 'bbpress' ); ?></a>

    So need link to http://wotlabs.net/na/player/%s i guess? 🙂

    #154461
    alynnhan
    Participant

    I am not able to change my bbPress forum to be locked so only members in our Membership site can access it. Is that possible? We use WishList Member.

    Also, no one but the website administrator can create new topics on the forum. How can I change this?

    It says “You must be logged in to create new topics.” but when our members log in, it says “You cannot create new topics.”

    #154458
    Robin W
    Moderator

    @themesdefrance – thanks for posting that – we know that wp4.0 changed the way it worked with search, so that all makes sense !


    @anmari
    – does that help you?

    EDIT – @anmari have just seen your other thread that it’s fixed https://bbpress.org/forums/topic/users-cannot-view-own-replies/#post-154445

    biscuitier0
    Participant

    Hi Robin

    Sorry for disappearing on this. I was so busy with the rest of the site, I had to leave the forum to one side.

    Anyway, thanks for your suggestions above. I tried them out and have unfortunately hit a couple of snags

    1) I’m finding that once I login using the BBP login form, I’m left with a blue box that says ‘You are already logged in’. Is it possible to make this disappear, once logged in. Or if not, have you redirected to a different page once successfully logged in?

    2) Is it possible to say exactly where in the menu the ‘Edit Profile’ goes? I would prefer it not to be a top level menu item and to go into the dropdown menu instead

    3) Is the intention that I put the [bbp-forum-index] shortcode underneath the [BBP-login] shortcode? I want people to be taken straight to the forum once they have succesfully logged in. At the moment when I put those two shortcodes on a page together, I am getting a php error along the lines of

    Warning: Cannot modify header information - headers already sent by...

    I think this might be to do with me using the Genesis framework?

    I have alreday installed the Genesis Extend BBpress plugin

    #154452
    Themes de France
    Participant

    Hey guys,
    As a theme developper I wanted to bring bbPress support and I was facing the same issue.

    The plugin that @robin-w brought was working but I know something was wrong with my theme.

    I managed to make it work without the plugin by deleting this snippet from functions.php :
    https://codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts#Exclude_Pages_from_Search_Results

    The intent of this snippet is to exclude pages from search results and I guess this was conflicting with WP4.

    If you have this problem with your theme, look for “pre_get_posts” actions and if the search query is updated.

    Hope that can helps 🙂

    #154451
    OlalaWeb
    Participant

    I’ve been searching for two hours now but unfortunately have not found any reasonable solution so far.

    But I wanted to follow this topic as I do need a fix for my multisite bbPress install.

    #154450
    OlalaWeb
    Participant

    Hi,

    Is there any fix to this issue?

    I though bbPress was multisite friendly…

    I’d like not to use a third party plugin but to fix the redirection to the main site.

    #154447
    anmari
    Participant

    Yup – delete super cache and delete the lines it added in wp-config.

    Users Cannot View Own Replies

    #154446
    anmari
    Participant

    for the record, see this post https://bbpress.org/forums/topic/users-cannot-view-own-replies/#post-154445

    I eventually figured out It was only me who couldnt see my own replies and while super cache no longer active, it was still installed. Deleted it and the lines in wp-config and voila i could now see own replies.

    #154444
    anmari
    Participant

    Just adding my voice so i can subscribe to topic. also last reply not showing, no bbpress extensions, fairly vanilla setup (2010 theme). Counts/last voice/freshness wrong/inconsistent depending where one looks despite running recalc tools. no cache plugin.

    Preston
    Participant

    Thanks, that did the trick. Looking back, I probably should have noticed that was the problem! It was obvious in the error message.

    Setting up the role worked, but if I set “spectate” to false, the role can’t see the forum at all to even post.

    After searching some more, I found there was a bbPress setting to allow “anonymous” posting without an account. With that enabled, and the forum set to public, I used the following code to hide the list of topics from users who aren’t logged in (I believe they always come back with an ID of 0).

    This is in the “loop-single-topic.php” file. I’ll probably also need to add this code to template files that display single topics, in case any sneaky people figure out the URL structure. The concept remains the same, however.

    <?php 
        $currentUserID = bbp_get_current_user_id(); 
        if($currentUserID == '0'){
            //Display stuff if user's ID is 0 (they aren't logged in)
        } else {
            //Put all the topic loop code here, it will display if the user is logged in (has an ID other than 0
        }
    ?>

    This seems like a pretty secure way to do it, none of the topic information is displaying in the source code or anything like that. I’ll add any other relevant information I find tomorrow. For now, it’s time to sleep.

    **EDIT**
    I’ll definitely need to set something up with regards to the single topic templates. Creating a new topic as an anonymous user still redirects you to that topic. I’ll have something tomorrow.

    kjf9
    Participant

    Wordpress: 4.0
    bbPress: 2.5.4
    Buddypress: 2.1.1

    Hi,

    My site mainly runs hidden groups for various discussions in group forums. Membership rotates roughly once a year. At the moment, if a member of my site has subscribed to a hidden group forum and then is removed from that group, their subscription isn’t turned off – they still get emails and can see the forum listed in their “My Subscriptions” in their account. This is not OK as the discussions undertaken are confidential and so the subscriptions need to be terminated.

    Is there a way to unsubscribe users from forums and topics for a group forum when they are removed from that group? I’m sure there must be an easy way to do this with template tags, but I can’t seem to find the answer. I’m surprised this doesn’t happen as standard to be honest.

    Thank you for your help!

    #154435
    hkenshin
    Participant

    Hello all,
    I’ve been searching for something similar for one of my projects and I didn’t found anything like it.
    So I decided to developed my own bbPress Leaderboard Plugin.

    #154434
    hkenshin
    Participant

    Hello all,
    I’ve been searching for something similar for one of my projects and I didn’t found anything like it.
    So I decided to developed my own bbPress Leaderboard Plugin.

    #154433
    atfpodcast
    Participant

    I deactivated these plugins that added bbcode. They worked at first. I did this on a fresh install of wordpress for a new site. It works for ie, chrome etc I have debugging on. What would be the cause? The plugin author says its plugin i dont know… So I thought I would use the bbpress defaults and those dont work.

    #154431
    Nicolas Korobochkin
    Participant

    At https://translate.wordpress.org/projects/bbpress/2.5.x I see 99% translated 🙂 You can translate some missing phrases. After that at the bottom of the page choose all current and Machine Object Message Catalog (.mo). Click the Export link. You download the file with translations.
    After that rename downloaded file to bbpress-pt_BR.mo and put it in /wp-content/plugins/bbpress/languages/ and you done.

    #154430
    akyboy
    Participant

    Hi guys,

    We have little gaming site, and would like to add additional link to bbpress profile page.
    Id like to add custom link for every user which will redirect to external site for that user.

    Usernames matches on both sites.

    For example:

    For Piranha_13 we have this page:
    http://www.cannedbandits.org/forums/users/piranha_13/

    Id like on the bottom to have custom link which will redirect to:
    http://wotlabs.net/na/player/piranha_13/

    Is this doable?

    Thanks

    #154427
    Robkk
    Moderator

    @atfpodcast
    i just checked on my side with the latest raindrops theme ,

    i checked to see if all of the quicktag buttons worked
    they did.

    i checked if some of the bbcodes from gdbbpress and bbpress2 bbcode didnt just process the bbcode out well
    they did.

    i didnt run bbpress2 bbcode with bbpress direct quotes while gdbbpress tools activated at the same time, because i mean they do the same thing.

    if you feel like the quicktags toolbar is really causing the problem and you have some error logs to post or images of error logs or any other info you can get while debugging is on, make a new topic with all the information in it.

    #154425
    Icaroferreira
    Participant

    Hello,

    Have some items in my forum is in English, for example, right on the main page appears written on top: “Post” and also “Last Post”, I would switch to another language “Portuguese”.

    See this link: http://ajudaroproximo.com.br/wp-content/uploads/2014/11/bbpress-language.jpg

    What is the procedure to change those words into Portuguese?

    Regards,
    Icarus

    #154424
    akyboy
    Participant

    Me again! 😛

    Before i had profile link redirected to WP author page, but i returned to bbpress profile

    http://www.cannedbandits.org/forums/users/ziutx/replies/

    All works good, i changed some css also but bquote is cut in half for some reason. I guess because it has some fixed width?

    #154423
    tkien
    Participant

    Hello,

    I’m new to bbpress, I want to make a support forum but user cant see other post, he just see his own post only. How do I do that?

    Thank you very much

Viewing 25 results - 17,801 through 17,825 (of 64,532 total)
Skip to toolbar