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

Upgrade your plan #361

Open
hafsazulf17 opened this issue Apr 18, 2022 · 12 comments
Open

Upgrade your plan #361

hafsazulf17 opened this issue Apr 18, 2022 · 12 comments

Comments

@hafsazulf17
Copy link

On login to dashboard It says :
Please upgrade your account
How can we fix it from the backend currently the values are setup as:
update user_activations set user_plan = 7;

created at : 2022-03-19 15:05:55
account_expire_date : 2022-04-02 15:05:55

@sersart
Copy link

sersart commented Apr 19, 2022

Hi
you have two way:
1-Install amember and add all products, add amember settings info to development.json file
2-Comment or remove amember connection from User microservice

@smokinjo
Copy link

So, amember is bascically an integral part of SocioBoard. It is written into SocioBoard.

Are there plans to add othr non-amember options to SocioBoard?

amember seems to be a solution geared towards those wanting to recreate a sociobpard to sell to others.

But, the way it is presented, it is for people and teams trying to use socioboard for their own campaigns an dsmall teams.

But, so far, there is not a way to manage small numbers of people. Amember is a great tool when recreating socioboard for lots of users. But, for a small team, there are no member ship levels. Just the team. Amember is too powerful of a tool to assign access to a handful of people in 1-2 teams.

Are there other options available, or simple tools to be able to create users and teams?

@sersart
Copy link

sersart commented Apr 19, 2022

You have to remove all hard coded amember connections from app.

@hafsazulf17
Copy link
Author

You have to remove all hard coded amember connections from app.

@sersart where to remove all hard coded amember connections from app , there is guide file in repository?? Is amember a seperate 3rd party software integrated with API or what is it? Please help me to understand it?

@sersart
Copy link

sersart commented Apr 21, 2022

Hi,
1- Check async register(req, res, next) function in file
Socioboard-5.0/socioboard-api/User/core/unauthorized/unauthorized.service.js
this function adding member to amember

2- async login(req, res, next) function in same file

Let me know if you need help

@hafsazulf17
Copy link
Author

how can we install amember ? You have mentioned : 1-Install amember and add all products, add amember settings info to development.json file

@sersart
Copy link

sersart commented Apr 21, 2022

https://docs.amember.com/Installation/Installation/

and add info to Socioboard-5.0/socioboard-api/User/config/development.json
"aMember": {
"key": "<< aMember Key >>",
"domain": "https://<< DOMAIN >>/amember/api"
},

@arrianda
Copy link

Can you edit the database directly to edit column "account_expire_date" far more in the future?
Or you can edit default.json config at user microservice and set value for "user_base_plan_expiry_days" for longer days. This only works for new user.

@sersart
Copy link

sersart commented Apr 24, 2022

Check this file
/socioboard-api/Common/Mappings/amember.users.js
function:
getUserPlanDetail(userId = 0, userName = '') {

        // Add subscription to the user.
        this.setPlanDetailsToUser(userId, planId, expiryDate)
          .then(response => {
            resolve(response);
          })
          .catch(error => {
            logger.error(
              `Error amember Inner getUserPlanDetail: ${error?.message}`
            );
            resolve(true);
          });

Let me know if you need help

@hafsazulf17
Copy link
Author

@sersart
Is a member free and can we download it by signing up also which folder do we have to install a member ?
Thanks

@vaughngx4
Copy link
Contributor

Can you edit the database directly to edit column "account_expire_date" far more in the future?
Or you can edit default.json config at user microservice and set value for "user_base_plan_expiry_days" for longer days. This only works for new user.

Yes you can. Run this command in mysql: update user_activations set expiry_date = "2999-12-30";

@vaughngx4
Copy link
Contributor

@hafsazulf17 @sersart I've added an admin panel and an option to disable aMember. See the Docker.README.md and Configuration.README.md. Use my fork until PR #384 is merged.

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

5 participants