Skip to content
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

Using shortcodes to show members who have donated #3

Open
BoweFrankema opened this issue Feb 2, 2015 · 0 comments
Open

Using shortcodes to show members who have donated #3

BoweFrankema opened this issue Feb 2, 2015 · 0 comments
Assignees
Milestone

Comments

@BoweFrankema
Copy link
Member

I'm not sure if the guys at Give have planned this feature already, but it would be cool to think how we could easily create a page that would output people who have donated.

I've put a little bit of thought into this and I think the most flexible solution would be using a shortcode. Looking at how Give does things they might have a similar solution planned for non-BuddyPress communities to show donations.

But because we use BuddyPress we could something like

[give_bp_donations donation_type="recurring_sponsor"]

This would output a Member loop of all those who have donated as a recurring sponsor. By default this loop should be bare bones with just the avatar.

Shortcode Parameters Ideas

Some additional custom parameters we can add to make this super flexible

type

Some style variations like "list" "card" "directory". This is just to open up the way for custom templates in the future.

show_avatar

Show an avatar yes or no.

donation_amount

Show the donation amount (in case of custom donation amounts)

donation_message

Show the message attached to the donation (if added through a Give custom field)

profile_fields

Show xprofile fields from the user his BuddyPress profile (Name, Location, Age etc etc)

sort_order

Sort by alphabet, date or donation amount.

css_class

Add a custom CSS class to the div container

exclude

Hide certain users

include

A custom loop of users based on user name/ID.

I'm sure there are others I forgot about!

Shortcake Integration

In a perfect world we would look into integrating the shortcodes with ShortCake http://next.fusion.net/tag/shortcode-ui/

@mathetos, @Mamaduka & @mathetos any ideas?

@BoweFrankema BoweFrankema self-assigned this Feb 2, 2015
@BoweFrankema BoweFrankema changed the title Create custom members loop to show supporters Using shortcodes to show members who have donated Apr 10, 2015
@BoweFrankema BoweFrankema modified the milestone: 1.0 Apr 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants