Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • stunley
    Participant

    @stunley

    Sorry Shane, all sorted – I forgot the opening and closing php tags!

    The new action though didn’t do anything however the original ones do.

    Thank you.


    stunley
    Participant

    @stunley

    [18-Jan-2017 13:09:06 UTC] PHP Parse error: syntax error, unexpected ‘endif’ (T_ENDIF) in /home/******/public_html/wp-content/plugins/bp-custom.php on line 20


    stunley
    Participant

    @stunley

    Hi Shane. Like so? This still disables the site.

    function tiquality_add_custom_field() {
    
    	if ( bp_is_active( 'xprofile' ) ) :
    
    ?>
    	<div class="bp-widget <?php bp_the_profile_group_slug(); ?>">
    		<table class="profile-fields">
    			<tr class="my_mail">
    
    				<td class="label">Contact me</td>
    
    				<td class="data"><a href="mailto:<?php bp_displayed_user_email(); ?>"><?php bp_displayed_user_email(); ?></a></td>
    
    			</tr>
    		</table>
    	</div>
    <?php 
    
    	endif; 
     
    }
    add_action('bp_profile_field_buttons', 'tiquality_add_custom_field');

    stunley
    Participant

    @stunley

    That was it thank you!


    stunley
    Participant

    @stunley

    Actually modemlooper, this plugin doesn’t work either.
    After creating a new user, the plugin shows “No unactivated members were found.”

    I imagine you have to use the registration form, which then sends out an activation email, which is the exact opposite of what I wanted, IE; no email until all the users have been added and the profiles have been created and completed.


    stunley
    Participant

    @stunley

    Thanks modemlooper.

    That solved one problem but I found another major obstacle – no ‘other’ field option on profile multi select boxes – that means I won’t be using Buddypress for the members site after all.

    Thanks for taking the time to answer.


    stunley
    Participant

    @stunley

    Actually, If there are no fields in the ‘Profile Details’ column then it doesn’t send an activation email, nor does it load the Check Your Email To Activate Your Account! message; it just goes back to the homepage.


    stunley
    Participant

    @stunley

    That’s great, thanks modemlooper.

    Can I also remove the now empty ‘Profile Details’ column?

Viewing 8 replies - 1 through 8 (of 8 total)
Skip to toolbar