Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25318
    Brajesh Singh on in reply to: "Forgot Password" is not working #19283

    Hi Daniel,
    My suggestion will be install a mail log plugin and check if mails are being sent. If sent, and still not received by users, you should most probably opt for a smtp plugin to send mail.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25318

    Thank you Daniel.
    It was a custom theme using custom css ids. I have updated it on site and the sub nav from directory should be gone.

    I have only specifically done it for /activity page. If you want me to hide it on others, Please do let me know.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25318
    Brajesh Singh on in reply to: [Resolved] limit friendship #19277

    Hi,
    I am going to do one or 2 post about the registration page in next 1-2 days and that will help you.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25318
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25318

    Hi Daniel,
    Are you using default theme or template pack?

    The code is tested with BuddyPress 4.1.

    Can you please point me to your site to get an idea what is missing(most probably it will be body classes).

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25318
    Brajesh Singh on in reply to: [Resolved] limit friendship #19272

    Thank you for the correction.

    I have released BuddyPress Friendship Restrictions 1.0.1, Please upgrade and labels will be fixed.

    For the registration, you have already posted there and I will be assisting you on that topic.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25318
    Brajesh Singh on in reply to: How to create a dropdown select box #19271

    Hi Tosin,
    The code needs more context.
    Something like this may work.

    
    
    /*
     * Add the Bank details field to the affiliate registration form
     */
    function wp_add_recipient_bank_field_to_affiliate_registration_form() {
    	$errors = affiliate_wp()->register->get_errors();
    	$recipient_bank = '';
    	if ( ! array_key_exists( 'empty_recipient_bank', $errors ) ) {
    		$recipient_bank = sanitize_text_field( $_POST['affwp_recipient_bank'] );
    	}
    
    	$options = array(
    	        'firs_bak' => 'First Bank',
                'gt_bank'   => 'GT Baak',
                'zenith_bank' => 'Zenith bank',
        );
    	?>
        <p>
            <label for="affwp-recipient-bank">Recipient Bank (e.g First Bank, GT Bank etc)</label>
            <select id="affwp-recipient-bank" name="affwp_recipient_bank">
                <?php foreach ( $options as $key => $label ):?>
                    <option value="<?php echo esc_attr( $key );?>" <?php selected($recipient_bank, $key ) ?>><?php echo esc_html( $label );?></option>
                <?php endforeach;?>
            </select>
        </p>
    	<?php
    }
    

    You should test and confirm it and if it does not work, check with affilate wp as it is related to them.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25318

    Hi Graham,
    Thank you. I will test and update it.

    Thank you for sharing. We can certainly adopt it and put it on our github repos for future use.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25318

    Hi George,
    I will look at your site again today.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25318

    Hi Daniel,
    It is secondary item list sub tabs.

    Since it has very generic css, I am posting a code which tries to be as much explicit as possible.

    
    body.directory.activity #subnav.item-list-tabs{
    	display:none;
    }
    

    Putting it in the css will do it.

    Regards
    Brajesh