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

Web: fix factorization of project-specific code #2318

Merged
merged 2 commits into from
Jan 30, 2018
Merged

Conversation

davidpanderson
Copy link
Contributor

No description provided.

user.inc had some code to show icons for users who have donated.
This wasn't properly factored - e.g. it made assumptions
about how donations are represented.

The right way to do this is to use project-defined functions
that are called if they're defined (e.g. in project.inc).
In this case we needed two such functions:
project_user_summary_public() adds a row to a user page, and
project_user_links() appends items to the user info shown e.g. in forums
This functions can show donation info, or anything else the project wants.

AFAIK this affects only SETI@home.
- don't refer to project/donations.inc.
    Projects can put functions wherever they want, generally in project.inc
- check for existence of project_user_page_private() before calling it
@TheAspens
Copy link
Member

@davidpanderson - Does Seti@Home use this? I'll bug Eric to review it if he does.

@davidpanderson
Copy link
Contributor Author

Yes. This change is for the benefit of SETI@home, and is deployed there now.

@SETIguy SETIguy merged commit e47b0f9 into master Jan 30, 2018
@AenBleidd AenBleidd deleted the dpa_donations branch December 10, 2018 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

3 participants