Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 3,526 through 3,550 (of 64,471 total)
  • Author
    Search Results
  • #217800
    smith512
    Participant

    I’m using
    bbpress forum utility pack
    GD bbpress Attachments
    WP ULike
    EWWW Image Optimizer
    Akismet Anti-Spam

    frenchlemans
    Participant

    Ok, I saw the new translation files in https://translate.wordpress.org/projects/bbpress/
    everything works at the level of the integration of the missing files.
    For me problem solved.
    Thank you

    frenchlemans
    Participant

    Hello,

    With Notepad ++ I added to the Po file a French translation for an expression contained in /plugins/bbpress/includes/topics/functions.php.
    I then opened the Po file to validate the translation and generate the Mo file, they are up to date in languages ​​/ plugins / bbpress-fr_FR.po and also bbpress-fr_FR.mo.
    The problem is that I do not see the translation of this expression on my site, all the others of the same Mo file are present.

    I have looked at many expressions in this “functions.php” file and many of them have never been translated.

    What is the problem ?

    Thanks for your future answers.

    Regards

    Line 156 of functions.php :
    // No topic title
    if ( empty( $topic_title ) ) {
    bbp_add_error( 'bbp_topic_title', __( 'Error: Your topic needs a title.', 'bbpress' ) );
    }

    #217793
    Robin W
    Moderator

    what other bbpress related plugins are you using ?

    #217792
    smith512
    Participant
    <?php
    
    /**
     * User Registration Form
     *
     * @package bbPress
     * @subpackage Theme
     */
    
    // Exit if accessed directly
    defined( 'ABSPATH' ) || exit;
    
    ?>
    
    <form method="post" action="<?php bbp_wp_login_action( array( 'context' => 'login_post' ) ); ?>" class="bbp-login-form">
    	<fieldset class="bbp-form">
    		<legend><?php esc_html_e( 'Create an Account', 'bbpress' ); ?></legend>
    
    		<?php do_action( 'bbp_template_before_register_fields' ); ?>
    
    		<div class="bbp-template-notice">
    			<ul>
    				<li><?php esc_html_e( 'Your username must be unique, and cannot be changed later.',                        'bbpress' ); ?></li>
    				<li><?php esc_html_e( 'We use your email address to email you a secure password and verify your account.', 'bbpress' ); ?></li>
    			</ul>
    		</div>
    
    		<div class="bbp-username">
    			<label for="user_login"><?php esc_html_e( 'Username', 'bbpress' ); ?>: </label>
    			<input type="text" name="user_login" value="<?php bbp_sanitize_val( 'user_login' ); ?>" size="20" id="user_login" maxlength="100" autocomplete="off" placeholder="半角英数字" />
    		</div>
    
    		<div class="bbp-email">
    			<label for="user_email">大学のメールアドレス</label>
    			<input type="text" name="user_email" value="<?php bbp_sanitize_val( 'user_email' ); ?>" size="20" id="user_email" maxlength="100" autocomplete="off" />
    		</div>
    
    		<?php do_action( 'register_form' ); ?>
    
    		<div class="bbp-submit-wrapper">
    
    			<button type="submit" name="user-submit" class="button submit user-submit"><?php esc_html_e( 'Register', 'bbpress' ); ?></button>
    
    			<?php bbp_user_register_fields(); ?>
    
    		</div>
    
    		<?php do_action( 'bbp_template_after_register_fields' ); ?>
    
    	</fieldset>
    </form>
    

    is this okay?

    #217791
    Robin W
    Moderator

    it could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentytwenty, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users

    Health Check & Troubleshooting

    Then come back

    #217781
    smith512
    Participant

    Yes, that is there.

    Why my form-user-register.php is not update?

    Also, I tried to directly add code to form-user-register.php in bbpress (not child theme’s bbpress), the result was not changed.

    #217776
    Robin W
    Moderator

    ok, so that file should be :

    wp-content/themes/%your-theme-name%/bbpress/form-user-register.php

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

    #217774
    smith512
    Participant

    Yes. I made ‘bbpress’ directory by following your manual.
    I looked at this

    I’m sorry for my poor English.
    Thanks.

    #217772
    Robin W
    Moderator

    so are these templates in a folder called ‘bbpress’ within your child theme?

    #217770
    smith512
    Participant

    Yes. I copied bbpress’s template to my child theme, and not I put my original template but I add codes to bbpress’s templates.

    For example,
    before “form-user-register.php”
    <input type="text" name="user_login" value="<?php bbp_sanitize_val( 'user_login' ); ?>" size="20" id="user_login" maxlength="100" autocomplete="off" />

    after “form-user-register.php”
    <input type="text" name="user_login" value="<?php bbp_sanitize_val( 'user_login' ); ?>" size="20" id="user_login" maxlength="100" autocomplete="off" placeholder="half-width characters" />

    hardel
    Participant

    Hi guys,

    When browsing a user’s forum replies, page 1 works as expected:

    https://rockclass101.com/members/karenj/forums/replies/

    If you click “page 2” or “3”, then the url it generates results in a 404:

    https://rockclass101.com/members/karenj/page/2/

    It should be generating this url to work properly:

    https://rockclass101.com/members/karenj/forums/replies/page/2/

    —-

    This error is also happening for “topics started”. As you can see with this user’s page:

    https://rockclass101.com/members/lisadmh/forums/

    I’m using the latest version of WP & BBPress, but this error has existed for at least a year. Perhaps a bug?

    #217751
    uksentinel
    Participant

    Ok, So using BBPRESS and I have hit an issue when I use the BBP STYLE PACK shortcode [bsp-profile] to allow registered users to edit their profiles, the shortcode does not work.

    I believe it is because I have installed WordPress in a directory called /WP,

    So [bsp-profile] creates the hyperlink https://uktechhub.com/wp/forums/users/xxxxx

    but profiles are located at https://uktechhub.com/forums/users/xxxx/

    Is there any way to change how the shortcode [bsp-profile] points to the profiles without the /wp attribute added ?

    Thanks

    #217744
    loireenbateaux
    Participant

    Hi everyone,

    Does anyone know how can i remove “Create New Topic” at the bottom of my forum
    I want to disable “Create New Topic” in for all logon users
    I want to control the topics myself and only allow particpants to reply to topics that are in the forum.

    I’m using bbPress (2.6.6), bbp style pack (4.7.2)
    Thank you so much for any help

    #217701
    sagar702
    Participant

    Hi There,
    I was just searching for some existing topics through the search box of bbpress forum, but I think there is an error in the code so the existing topic not showing from there, could you please help me out, why so?

    #217698
    sasasasaaa
    Participant

    Hello,

    to try how pagination works I choosed in settings -> topic and reply per page:
    One for topic page and one for reply page.
    And I have choosen nested replies 4 levels deep.

    I have two topics:
    – 23 replies for the first topic
    – one reply for the second topic

    This is how my pagination looks:

    On forum page:
    Pagination shows 3 pages.
    1. page: shows 2 topics instead of one.
    2. page: shows only first topic instead of second and pagination shows two pages.
    3. page: message appears: “sorry now topics found” and no pagination

    On topic page:
    no pagination at all.

    What could might be the problem?

    I use wordpress: 5.6 and bbpress: 2.6.6

    Thanks a lot

    #217694

    In reply to: Preview

    Robin W
    Moderator

    only ones I know are

    Preview Post

    and I’ve not looked at either

    #217685

    Topic: Preview

    in forum Installation
    Gunivortus
    Participant

    There are forums where, after having written something to contribute, before definitely saving it, a preview can be viewed, in which the post is presented as it would be after saving it.
    Is this also possible in bbpress? (If yes, how / where?)

    #217659
    Robin W
    Moderator

    bbpress just uses wordpress in the background for login. When login fails wordpress seems to take over.

    I added some code in

    bbp style pack

    dashboard>settings>bbp style pack>login failure

    to try and overcome this

    #217653
    Julia
    Participant

    Thank you for your help. Thanks to your code, I manage to set up open close button in the reply page .
    So in bbp style pack or my customized code, the open close status button sets on all comments in the reply page.
    It would be un-displayable by using CSS code except for top comment[topic author comment].

    Do you have some sample code to hide unnecessary open close status buttons by CSS(Cascading Style Sheet) ?

    Example

    
    //topic author		
    <a href="http://~   #post-1762" class="bbp-reply-header">#1762</a>
    class="bbp-topic-close-link"
    //------------------------------------------------------------------------
    //reply first
    <a href="http://~   #post-1763" class="bbp-reply-header">#1763</a>
    class="bbp-topic-close-link"
    
    #bbpress-forums  XXX.bbp-topic-close-link {
            display: none;
      }
    
    #217641
    Robin W
    Moderator

    ok so

    find
    wp-content/plugins/bbpress/templates/default/bbpress/loop-single-forum.php

    transfer this to your pc and edit

    find

    <?php do_action( 'bbp_theme_before_forum_title' ); ?>
    
    		<a class="bbp-forum-title" href="<?php bbp_forum_permalink(); ?>"><?php bbp_forum_title(); ?></a>
    
    		<?php do_action( 'bbp_theme_after_forum_title' ); ?>

    and replace with

    <?php do_action( 'bbp_theme_before_forum_title' ); ?>
    		
    		<?php if  (!bbp_is_forum_category( bbp_get_forum_id())){ ?>
    
    		<a class="bbp-forum-title" href="<?php bbp_forum_permalink(); ?>"><?php bbp_forum_title(); ?></a>
    		
    		<?php } else { ?>
    		
    		<div class="bbp-forum-title"> <?php bbp_forum_title();?> </div>
    		<?php }
    		?>
    		
    		<?php do_action( 'bbp_theme_after_forum_title' ); ?>

    and save

    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

    Then transfer the file you saved above 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

    you will probably need to add some styling to the class “bbp-forum-title”

    #217630
    JLee
    Participant

    @robin-w


    @karado58
    – thanks for your help – this is exactly what we need 🙂
    There are very few helpers here, but this is community software.
    I am just a bbpress user who tries to help others as I was helped when I started, but I cannot get to every post.

    Robin,
    I should of used better choice of words on my post!
    I apologize to you Robin and to all others here that share their precious knowledge and time unselfishly helping us newcomers to bbPress!
    Thank you for your kind words, Robin, and I’m sorry!
    K58

    #217628
    Julia
    Participant

    Addding close topic select box in the reply page

    Only the moderate can set up open/close on topic status now.
    I have plan to change the author in topic to set open/close status by yourself.

    The code ongoing

    
    function my_bbp_theme_before_topic_form_submit_wrapper() {
        
        if (!current_user_can('moderate', $topic_id)) {   //  The all visitor can see open/close box
            echo '<label for="bbp_topic_status">'.esc_html_e('Topic Status:', 'bbpress').'</label><br />';
            bbp_form_topic_status_dropdown();
        }
    }
    add_action('bbp_theme_before_topic_form_submit_wrapper', 'my_bbp_theme_before_topic_form_submit_wrapper');
    
    function my_bbp_get_topic_statuses($topic_statuses, $topic_id) {
    
        //  The all visitor may be possible to chang the topic status,if the select box works.
        if (!current_user_can('moderate', $topic_id)) {
            $topic_statuses = array(
                bbp_get_public_status_id() => _x('Open', 'Open the topic', 'bbpress'),
                bbp_get_closed_status_id() => _x('Closed', 'Close the topic', 'bbpress')
            );
        }
        return $topic_statuses;
    }
    add_filter('bbp_get_topic_statuses', 'my_bbp_get_topic_statuses', 10, 2);
    

    Two questions

    1st
    The topic open/close select box is shown all visitor except for author.
    So this code need to change all vistor to topic author.
    But I don’t know.

    
    if (!current_user_can('moderate', $topic_id)) {  // All visitor can do
    ↓
    if(current_user_can( '//topic author//' ) ) {    // Only topic author can do
    

    2nd
    The select box is shown, but it doesn’t work at all.
    In short, the select box is appearance only.
    So I have to add some code to work open/colse select box.
    The select box does not link to topic status function.
    But I don’t know how to chage the code.

    
        $topic_statuses = array(
        bbp_get_public_status_id() => _x('Open', 'Open the topic', 'bbpress'),
        bbp_get_closed_status_id() => _x('Closed', 'Close the topic', 'bbpress')
        )
    
    #217610
    sbask
    Participant

    “We are happy with them having no FORUM role (only a site role) when the account is created. The problem of the being able to log them out when the account is created is not related – please note they are separate, and only one is a problem. We do not want to assign, by BBPress settings or code, any account a forum role. We only want them to earn a forum role when they log in to the site, as they do. This was specific custom code added after an earlier change, and took the devs to get it done.”

    Robin W
    Moderator

    that’s great.

    You might want to take a look at bbp_new_topic_handler which I took this code from and gives you checks for all the parameters.

    which is in

    bbpress 2.6.6\includes\topics\functions.php line 96 onwards

    to see what checks bbpress does to the data before processing. This function is used by the new topic form.

    the content is hooked to 4 functions, 3 of which are removed for capable uses on line 140 etc.

    presuming that you are creating the content so will not be trying to break or do naugthy things, then you can probaby ignore these.

    bbpress does one more it calls the function bbp_code_trick from the filter on line 173

    which is this in bbpress 2.6.6\includes\common\formatting.php

    function bbp_code_trick( $content = '' ) {
    	$content = str_replace( array( "\r\n", "\r" ), "\n", $content );
    	$content = preg_replace_callback( "|(<code>)(.*?)</code>|",      'bbp_encode_callback', $content );
    	$content = preg_replace_callback( "!(^|\n)<code>(.*?)</code>!s", 'bbp_encode_callback', $content );
    
    	return $content;
    }

    If you’re trying things, then I’d suggest you create some draft items in bbpress and then see what content is in the database to see what you would need to save there.

Viewing 25 results - 3,526 through 3,550 (of 64,471 total)
Skip to toolbar