Пример #1
0
 public function editor_form_buddypress()
 {
     if (bp_get_current_profile_group_id() == $this->profile_group) {
         global $user_ID;
         $bbx_user_signature = get_user_meta($user_ID, 'signature', true);
         $form = apply_filters('d4p_bbpresssignature_bbpress_editor_file', GDBBPRESSTOOLS_PATH . 'forms/tools/signature_buddypress.php');
         include_once $form;
         remove_action('bp_custom_profile_edit_fields', array(&$this, 'editor_form_buddypress'));
     }
 }
Пример #2
0
    public function editor_form_buddypress() {
        if (bp_get_current_profile_group_id() == $this->profile_group) {
            $user_id = bp_displayed_user_id();

            if ($user_id > 0) {
                $user = get_user_by('id', $user_id);

                $old_filter = $user->filter;
                $user->filter = 'display';

                $_signature = $user->signature;

                $user->filter = $old_filter;

                $form = apply_filters('d4p_bbpresssignature_bbpress_editor_file', GDBBPRESSTOOLS_PATH.'forms/tools/signature_buddypress.php');
                include_once($form);
            }

            remove_action('bp_custom_profile_edit_fields', array(&$this, 'editor_form_buddypress'));
        }
    }
Пример #3
0
<?php

/**
 * BuddyPress - Members Single Profile Edit
 *
 * @package BuddyPress
 * @subpackage bp-legacy
 */
/**
 * Fires after the display of member profile edit content.
 *
 * @since 1.1.0
 */
do_action('bp_before_profile_edit_content');
if (bp_has_profile('profile_group_id=' . bp_get_current_profile_group_id())) {
    while (bp_profile_groups()) {
        bp_the_profile_group();
        ?>

<form action="<?php 
        bp_the_profile_group_edit_form_action();
        ?>
" method="post" id="profile-edit-form" class="standard-form <?php 
        bp_the_profile_group_slug();
        ?>
">

	<?php 
        /** This action is documented in bp-templates/bp-legacy/buddypress/members/single/profile/profile-wp.php */
        do_action('bp_before_profile_field_content');
        ?>
Пример #4
0
function bp_current_profile_group_id()
{
    echo bp_get_current_profile_group_id();
}
				<?php 
        if (bp_profile_has_multiple_groups()) {
            ?>
					<ul class="button-nav">

						<?php 
            bp_profile_group_tabs();
            ?>

					</ul>
				<?php 
        }
        ?>

			<?php 
        if (bp_get_current_profile_group_id() != 3) {
            ?>

				<div class="clear"></div>
				
				<div>
					<p>The information you enter will be visible publicly. You can modify your privacy settings by clicking on the red “change” links below. <span>Before navigating away from this tab, make sure to scroll down and save your changes.</span></p>
				</div>

				<?php 
            while (bp_profile_fields()) {
                bp_the_profile_field();
                ?>

					<?php 
                if (bp_get_the_profile_field_name() == "Degree") {
Пример #6
0
<?php do_action( 'bp_before_profile_edit_content' ) ?>

<?php if ( bp_has_profile( 'profile_group_id=' . bp_get_current_profile_group_id() ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>

<form action="<?php bp_the_profile_group_edit_form_action() ?>" method="post" id="profile-edit-form" class="standard-form <?php bp_the_profile_group_slug() ?>">

	<?php do_action( 'bp_before_profile_field_content' ) ?>

		<h4><?php printf( __( "Editing '%s' Profile Group", "buddypress" ), bp_get_the_profile_group_name() ); ?></h4>

		<ul class="button-nav">
			<?php bp_profile_group_tabs(); ?>
		</ul>

		<div class="clear"></div>

		<?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>

			<div<?php bp_field_css_class( 'editfield' ) ?>>

				<?php if ( 'textbox' == bp_get_the_profile_field_type() ) : ?>

					<label for="<?php bp_the_profile_field_input_name() ?>"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ) ?><?php endif; ?></label>
					<input type="text" name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>" value="<?php bp_the_profile_field_edit_value() ?>" />

				<?php endif; ?>

				<?php if ( 'textarea' == bp_get_the_profile_field_type() ) : ?>

					<label for="<?php bp_the_profile_field_input_name() ?>"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ) ?><?php endif; ?></label>
					<textarea rows="5" cols="40" name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>"><?php bp_the_profile_field_edit_value() ?></textarea>
        // Profile Group 3 is Skipped.  That is the Scholarship tab.  That tab is populated by a WordPress loop. See else block below.
        ?>
			<?php 
        if (bp_get_current_profile_group_id() != 3) {
            ?>

				<div class="clear"></div>
				
				<div>
					<p>The information you enter will be visible publicly. You can modify your privacy settings by clicking on the red “change” links below. <span class="emphasis">Before navigating away from this tab, make sure to scroll down and save your changes.</span></p>
				</div>
				<?php 
            // If block only runs in Social Media tab.
            ?>
				<?php 
            if (bp_get_current_profile_group_id() == 4) {
                ?>
				<div>
					<p><span class="emphasis">Paste the full urls for your social media profiles into the respective fields below.</span></p>
				</div>
				<?php 
            }
            ?>

				<?php 
            while (bp_profile_fields()) {
                bp_the_profile_field();
                ?>

					<?php 
                /* If block inserts explanatory text before certain profile field areas.  Field ids found via the Dashboard in Users > Profile Fields */