Skip to:
Content
Pages
Categories
Search
Top
Bottom

register file is not update


  • smith512
    Participant

    @smith512

    I want to write message for text filed in register page, so I add placefolder to input factor of “form-user-register.php” in my child theme. However, the messages in register page is not appeared. I also saw the verification of Google Chrome developer tool, the code was not update.

    On the other hand, I add placefolder to input factor of “form-search.php”, a message is shown.

    Therefore, I wondered that only “form-user-register.php” is not update.

    This is register page of my website.
    https://gakuseich.com/register/

    Thanks

Viewing 12 replies - 1 through 12 (of 12 total)

  • Robin W
    Moderator

    @robin-w

    so where in your child theme did you put the revised templates?


    smith512
    Participant

    @smith512

    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" />


    Robin W
    Moderator

    @robin-w

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


    smith512
    Participant

    @smith512

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

    I’m sorry for my poor English.
    Thanks.


    Robin W
    Moderator

    @robin-w

    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


    smith512
    Participant

    @smith512

    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.


    Robin W
    Moderator

    @robin-w

    can you post the entire user-register.php file here please


    smith512
    Participant

    @smith512

    <?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?


    Robin W
    Moderator

    @robin-w

    what other bbpress related plugins are you using ?


    smith512
    Participant

    @smith512

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


    Robin W
    Moderator

    @robin-w

    bbpress forum utility pack has in it

    \bbp-jp-utility\templates\form-custom-signup.php

    which is a replacement for form-user-register, and takes over, so your version is not used.

    you should ask the author about modifying this template, he may have a hook you can use, but if you do end up modifying the plugin template, you will need to repeat this everytime that plugin is updated.


    smith512
    Participant

    @smith512

    Thank you so much!!!!!!!!!

Viewing 12 replies - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.
Skip to toolbar