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

BuddyDev

Search

Replies

  • Participant
    Level: Guru
    Posts: 922
    Tosin on in reply to: Donation feature for buddypress #40078

    I could not get anything to work, I just got confused with making the send donation link dynamic.

    WHAT IM TRYING TO ACHIVE

    1. Create a (send-donation) page which contains the shortcode [bp-shortcodes-profile context=display group_id=2]

    2. Clicking send donation link in either blog post or single user profile would redirect to (send-donation) page.

    3. On this page the potential donor/sender would see the bank details of the receiver determined by(username of post author or user profile)

  • Participant
    Level: Guru
    Posts: 922
    Tosin on in reply to: Branded login and BP Rewrites #40051

    I just tested it now but branded login page directory is not included in the new URL tab for editing slugs

  • Participant
    Level: Guru
    Posts: 922
    Tosin on in reply to: Donation feature for buddypress #40015

    Making it dynamic is tricky

    Can something similar to this code be used to determine a dynamic url then the username is the url can be picked by the [bp-shortcodes-profile context=display group_id=4] to determine the context of the profile data

     function hibuddy_get_send_public_message_url() {
     
        $user_id = hibuddy_get_context_user_id();
     
        if ( ! $user_id || $user_id == bp_loggedin_user_id() ) {
            return;
        }
     
        if ( bp_is_my_profile() || ! is_user_logged_in() ) {
            return false;
        }
    	
    	$username = bp_core_get_username( $user_id );
     
        return apply_filters( 'hibuddy_get_send_public_message_url', wp_nonce_url( site_url() . '/news-feed/?r=' . $username ) );
    } 

    Maybe $username of the recipient can be picked [bp-shortcodes-profile context=display group_id=4] so context=username from the url

    Thanks

  • Participant
    Level: Guru
    Posts: 922
    Tosin on in reply to: Donation feature for buddypress #39992

    Thanks for the feedback
    1. Do I install the code as a plugin
    2. What is the shortcode text to be applied from the text below

     /**
    	 * Create shortcode
    	 */
    	private function setup() {
    		add_shortcode( 'bp-shortcodes-profile', array( $this, 'shortcode' ) );
    	} 
  • Participant
    Level: Guru
    Posts: 922
    Tosin on in reply to: Donation feature for buddypress #39986

    Any feedback sir

    Thanks

  • Participant
    Level: Guru
    Posts: 922

    Gentle reminder

  • Participant
    Level: Guru
    Posts: 922
    Tosin on in reply to: Donation feature for buddypress #39934

    The donate button can be displayed in three locations.

    1. Member profile header
    2. Members directory
    3. Blog post as (Send tip to Author)

    The donations would be peer to peer

    • This reply was modified 4 years, 9 months ago by Tosin.
  • Participant
    Level: Guru
    Posts: 922
    Tosin on in reply to: Buddyblog category and tag adjustment #39920

    Thanks if possible making it a dropdown select input box would be ok in order to prevent users selecting multiple categories. Only one category should be selected.

  • Participant
    Level: Guru
    Posts: 922
    Tosin on in reply to: Buddyblog category and tag adjustment #39897

    Hello,

    Gentle reminder you forgot to add this in the recent update. It would really improve mobile experience especially when using the medium editor.

    see image below while using the medium editor you can see how long the category list is.

    https://ibb.co/CmK99zm

    Thanks

  • Participant
    Level: Guru
    Posts: 922

    Hello Marcel,

    Please what line of code was changed

    Thanks