Skip to:
Content
Pages
Categories
Search
Top
Bottom

register.php

  • Avatar of sachin550
    sachin550
    Participant

    @sachin550

    Hey guys !! i want to modify the lines given bellow

    Registering for this site is easy, just fill in the fields below and we’ll get a new account set up for you in no time.

    For this i have modified

    /wp-content/plugins/buddypress/bp-themes/bp-default/registration/register.php

    and line

    <h2><?php _e( 'Create an Account', 'buddypress' ); ?></h2>
    
    				<?php do_action( 'template_notices' ); ?>
    <p><?php _e( 'Join PushkarGuide.com - share your experience, thoughts about this pretty town Pushkar (INDIA).', 'buddypress' ); ?></p>
    

    But i am still getting the same on register page

    Registering for this site is easy, just fill in the fields below and we’ll get a new account set up for you in no time.

    Why this is so ?

    thank you

Viewing 10 replies - 1 through 10 (of 10 total)
  • Avatar of aces
    aces
    Participant

    @aces

    Avatar of sachin550
    sachin550
    Participant

    @sachin550

    Thank you for your reply !! i have tried with both files

    plugins/buddypress/bp-themes/bp-default/registration/register.php
    bp-templates/bp-legacy/buddypress/members/register.php

    But still i am getting same

    Registering for this site is easy, just fill in the fields below and we’ll get a new account set up for you in no time.

    Where this line are calling from ?

    Avatar of @mercime
    @mercime
    Keymaster

    @mercime

    For this i have modified /wp-content/plugins/buddypress/bp-themes/bp-default/registration/register.php

    @sachin550 Are you using the BP Default theme or a child theme of BP Default? If not, then you should not modify that file. Instead, create a child theme of your WP theme of choice, create a folder named buddypress in that child theme folder and copy over https://buddypress.trac.wordpress.org/browser/trunk/src/bp-templates/bp-legacy/buddypress/members/register.php following the directory structure and revise it.

    Avatar of sachin550
    sachin550
    Participant

    @sachin550

    Thank you @mercime for you reply !! i have modified both the files with my custom text but still getting the same default message !!

    Registering for this site is easy, just fill in the fields below and we’ll get a new account set up for you in no time.

    plugins/buddypress/bp-themes/bp-default/registration/register.php
    bp-templates/bp-legacy/buddypress/members/register.php

    thank you

    Avatar of danbp
    danbp
    Moderator

    @danbp

    Perhaps purge your navigator history or site cache if you use one.

    Avatar of sachin550
    sachin550
    Participant

    @sachin550

    @danbp i tried with

    https://wordpress.org/plugins/quick-cache/

    but still getting same line !!

    Create an Account

    Registering for this site is easy, just fill in the fields below and we’ll get a new account set up for you in no time.

    there are only two files

    • plugins/buddypress/bp-themes/bp-default/registration/register.php
    • bp-templates/bp-legacy/buddypress/members/register.php

    which need to be modified i have done that but getting same @aces @mercime

    Avatar of danbp
    danbp
    Moderator

    @danbp

    there are only two files [...] which need to be modified.

    False.

    If you use the old BP-default theme, you only modify a copy of bp-themes/bp-default/registration/register.php placed in your child-theme

    If you use any other theme, you modify only bp-legacy/buddypress/members/register.php
    placed in the child /your-child-theme/buddypress/members/register.php

    The one or the other, but not both. And don’t forget that you should never modify core files, as your work will be lost at the next BP update. That’s why child-theme exist and is so important for customization.

    If this change doesn’t work (but it should), you have to try something different.

    Create a language file containing only the mentionned string.
    Read here.

    Do you already use a language file ? §Is your site in english ? If not indicate the used language.
    And gave your plugin list and theme name. It could be you have somewhere a conflict with ajax who block something on the registration page.

    Avatar of sachin550
    sachin550
    Participant

    @sachin550

    thnak you dear @danbp yes but its pretty surprising if both files have modified why its showing the default text

    the demo site is located here http://sachinesolutions.in/final/register/

    @danbp

    Avatar of danbp
    danbp
    Moderator

    @danbp

    ok, supposing you did a translation file (even if you use english by default) to test the above solution and assuming it hasn’t work, let’s try the hard way.

    Add this to functions.php, it will force gettext to translate the string.

    function bpfr_force_translation( $translated, $original_text, $domain ) {
    		
    	if ( 'buddypress' !== $domain )  
    	return $translated; 
    	
    	switch ( $original_text ) {
    		
    		case 'Registering for this site is easy, just fill in the fields below and we'll get a new account set up for you in no time.':
    		return 'Join PushkarGuide.com - share your experience, thoughts about this pretty town Pushkar (INDIA).';
    		
    		default:
    		return $translated;
    	}
    }
    add_filter( 'gettext', 'bpfr_force_translation', 10, 3 );

    If it doesn’t work i have no other solution to propose.

    Avatar of quangn
    quangn
    Participant

    @quangn

    I fixed it this way. I read this once somewhere and this is the ONLY solution that worked for me. Use this following step:
    Copy the folder Members with it files (but i think you should delete all others except-register) located in:
    /wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/

    and paste it in:
    wp-content/themes/(the WP theme you use now)

    now you can modify the file reigster ^^

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

You must be logged in to reply to this topic.