Socioboard-5.0 icon indicating copy to clipboard operation
Socioboard-5.0 copied to clipboard

Upgrade your plan

Open hafsazulf17 opened this issue 2 years ago • 12 comments

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

hafsazulf17 avatar Apr 18 '22 18:04 hafsazulf17

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

sersart avatar Apr 19 '22 12:04 sersart

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?

smokinjo avatar Apr 19 '22 19:04 smokinjo

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

sersart avatar Apr 19 '22 23:04 sersart

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?

hafsazulf17 avatar Apr 21 '22 11:04 hafsazulf17

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

sersart avatar Apr 21 '22 12:04 sersart

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

hafsazulf17 avatar Apr 21 '22 12:04 hafsazulf17

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" },

sersart avatar Apr 21 '22 14:04 sersart

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.

arrianda avatar Apr 24 '22 10:04 arrianda

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

sersart avatar Apr 24 '22 13:04 sersart

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

hafsazulf17 avatar May 13 '22 18:05 hafsazulf17

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 avatar Jul 06 '22 03:07 vaughngx4

@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.

vaughngx4 avatar Jul 23 '22 16:07 vaughngx4