-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the donation dashboard to the user profile #7
Comments
I've managed to get this working very easily, although I hardcoded some things we'd probably need to make dynamic!
|
Should I integrate this into the plugin? |
Yep! Let's do this 💃 |
This has now been incorporated. With reference to the hard-coded things, there's currently some outstanding tasks:
|
Show a Donation Form on the User Dashboard? Please fill in the donation ID below: |
This is now done. If you go to Donations > BuddyPress you can specify a form ID (see Label 4), which will result in that particular form appearing under the list of donations on "/members/username/my-donations". Testing it highlighted some minor bugs so I've fixed those too. If you have any trouble when testing, just delete the old bpg-options meta key from the options table so we can start afresh (but I doubt you will need to). |
We should integrate the dashboard into a users profile if they have an account. I've done this before for EDD and I did the following
Create a new BP profile screen + BP nav item
Output the shortcode for the dashboard directly into the new member screen template like this:
Do a template redirect on the page that is used for the shortcode like shown here:
https://gist.github.com/BoweFrankema/9f9b34235a1f43e3df88
Full snippet can be seen here;
https://gist.github.com/BoweFrankema/685d5a52ef98a29cdc6a#file-edd-buddypress-purchase-php
This worked for me, but I'm sure it can be improved. Especially retrieving the "Donation Dashboard" page without hardcoding the slug!
The text was updated successfully, but these errors were encountered: