Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
597 views
in Plugins by
edited by
hi is this possible if a expert over 1 month inactivity , then set the expert status automatically as normal user

thanks

1 Answer

+2 votes
by

Yes, it is totally possible.

You're going to need a CRON job that runs daily to make sure you downgrade your users every day.

You will also have to define what "inactivity" means. Assuming you mean that the last write operation was performed in more than a month, then you can use the value set in the ^users table. Otherwise, you will have to create your own "inactivity" tracking.

You don't even need to write a plugin for this as you could write a script to check every user. Make sure to follow the guidelines here: http://docs.question2answer.org/code/external/

The script itself can be deducted by looking at the pages/user-profile.php file. Specifically near the qa_set_user_level() function call. Beware the categories.

by
hi thank you , i mean if a expert not answered a question since last month then downgrade as normal user,

have you a cron script for me pls.
by
In that case, you will need to also develop your custom "inactivity" process. For that I'd advise you to also develop a plugin with an event module: http://docs.question2answer.org/plugins/modules-event . That should help you track asked questions.

Sorry, but I don't have the scripts. Anyway, you can always develop that yourself or hire someone from the Services page (http://docs.question2answer.org/services).
by
ok, i can pay 20$ for this plugin or script If a developer is interested for coding
...