Giter Club home page Giter Club logo

commoners's Introduction

commoners

Creative Commons Global Network website - https://network.creativecommons.org/

Install

⚠️ This install needs significant work and is not ready for community contribution (ex. Building the site fails. · Issue #388).

Dependencies

sudo apt-get install apache2 mysql-client libapache2-mod-php php7.0-fpm php-mysql php-curl php-dom
a2enmod rewrite
apachectl restart

Production

See the setup/ directory for information (including WordPress information).

Testing

See the test-setup/ directory.

Be very careful with this code, it deletes things. And drops them.

Design Notes

CAS Maestro

Our version changes how usernames are taken from the CAS server to use the CCID global nickname.

cc-global-network

cc-global-network is a monolithic plugin that supports the registration and vouching functions that we need.

Registration

cc-global-network removes those parts of the BuddyPress User Profile UI that clash with the use of CAS for login - the ability to change the user email and nickname, etc.

Registration forms are implemented using GravityForms.

Vouching

cc-global-network uses WordPress's APIs to determine whether a user is logged in, and if so whether they are an admin or not.

It uses its own database table to track how many vouches a user has received. The user interface for vouching is implemented as a GravityForm.

cc-global-network uses Buddypress's APIs to control each user's access to profile information based on whether they are logged in, vouched, or can vouch.

The user levels that result from this logic, and that the code considers, are:

  • PUBLIC - The user is not logged in. Anything they can see can be seen by the entire world.

  • APPLICANT - The user is applying to become a member. They can see existing members' basic profiles.

  • VOUCHED - The user is vouched and approved as a full member. They can see everyone's full profiles.

  • ADMIN - The user is a WordPress Administrator.

License

commoners's People

Contributors

hugosolar avatar kgodey avatar lainternet avatar little-wow avatar timidrobot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

commoners's Issues

Constrain Vouching To Individuals

Only Individual Members can vouch.

Filter Institutions when building the vouching list for the selects in the Choose Vouchers form.

We should probably cache the list.

Don't Allow Unvouched Applicants To Edit Profiles

They shouldn't be able to edit their WP or BuddyPress profiles.

This may seem weird, but they're meant to be entering information in the forms and we don't want it to go into the main DB tables if they're not approved.

Select Previously Selected Vouchers When Validation Fails

We now enforce not choosing the same voucher more than once in "Choose Vouchers".

But we do not select the previously selected member name when validation fails because of this.

image

We will need to modify the code that populates the selects.

Friends

Currently it seems you can only invite your friends to a group. Would this be easier for security purpose?

Vouching

Hi @robmyers

Vouching is very closely modelled on the Mozilla system. People with emails at creativecommons.org are automatically vouched. You can only vouch other people once you have received three vouches. The maximum is six vouches.

Access to member information is restricted to those with one vouch. This may create a bootstrapping problem - if we need to vouch people but don't know about them.

Does this mean member information is not public, but only accessible by those with at least one vouch? Would it be an issue if we make it publicly accessible?

Example of a Chapter?

Hi @robmyers !

I thought it'd be easier to discuss issues here especially since you've added vouching and other key features on the test site.

As you may see in the slides, I think an example of a Chapter page could be like this:

North Pole Chapter

Established: Jan 10, 2018
Public Lead: David Bowie
Members: Americano, Cappuccino, Latte, Lager, Pale Ale
Partners: Coffee Organization, Beer Organization
Contributors: Milk, Water, Cream
Homepage:
Social Media:

In addition to this, we could include the information we used to have in affiliate's wiki page, e.g.:
https://wiki.creativecommons.org/wiki/New_Zealand

Does this make sense?

Bring back planet.creativecommons.org?

In the interest of communicating with each other better, @simeonoriko were discussing bringing back some sort of syndicated RSS feed for all the global CC blogs.

What do you think? planet.cc.org currently redirects to the API, but this could be a cool thing to have.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.