Skip to Content Skip to Menu

[SOLVED] Approval or Disaproval of multiple users

  • tekno_boy
  • tekno_boy
  • OFFLINE
  • Posts: 7
  • Thanks: 0
  • Karma: 0
10 years 10 months ago - 10 years 9 months ago #239098 by tekno_boy
I need to approve multiple users at once and also disprove them in groups.

Before you suggest it, no, CB Workflows doesn't help for multiple reasons like:
doesn't show user names (I need to see them), doesn't have select all/deselect all tick box and also causes server error with more than 5 users processed at the same time (!).

I need a solution fast. Every day I have a couple of hundred new registrations. They are left unapproved because we have to check them for ineligible registrations. Approving them is painfull and time consuming. Because we can only do it 1 by 1 and the fact that our server requires us to wait 20 seconds before making another request (shared server, no the host can't/won't change this). They (for example) must reside in Spain.

So after Christmas I have 2500 users still not yet approved.

I would love to just go down and put a tick next to the names and then click an approve button... Can anyone help?

I just want to approve/disprove multiple users at once.

Joomla 1.5.26 and Community Builder 1.9.1
Last edit: 10 years 9 months ago by krileon.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
10 years 10 months ago #239111 by krileon
Replied by krileon on topic Approval or Disaproval of multiple users

doesn't show user names (I need to see them)

CB 2.0 uses the formatname field. So "User" will output however you have name format set to. In the mean time I believe it's always forced to Username, which can't be changed without editing the approval page display.

doesn't have select all/deselect all tick box

Every checkbox is already selected by default, but I can add a select all and deselect all for CB 2.0.

and also causes server error with more than 5 users processed at the same time (!).

Issue with your server timing out. Enable debug mode and maximum error reporting then re-test to debug what's happening. User approval is a pretty lightweight process unless you're doing a lot of processing on approval with maybe CB Auto Actions or CBSubs. Each approval also sends an email.

the fact that our server requires us to wait 20 seconds before making another request (shared server, no the host can't/won't change this).

You really need to change hosts. That's god awful performance. There's nothing we or anything but your host can do about this. Find a host that doesn't destroy your sites usability.

I would love to just go down and put a tick next to the names and then click an approve button... Can anyone help?

This is already the case. That's how the approval page works. You just can't use it because your host has awful performance and limitations. Processing 2,000 users is not a task for a budget shared host; especially one with request limits.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • tekno_boy
  • tekno_boy
  • OFFLINE
  • Posts: 7
  • Thanks: 0
  • Karma: 0
10 years 9 months ago #239171 by tekno_boy
Replied by tekno_boy on topic Approval or Disaproval of multiple users
"CB 2.0 uses the formatname field. So "User" will output however you have name format set to. In the mean time I believe it's always forced to Username, which can't be changed without editing the approval page display."

I have the name format set to: "Username only". The username does not display. Also namestyle is set to "Name only".

"Every checkbox is already selected by default, but I can add a select all and deselect all for CB 2.0." - Yes! you should do this, just the standard tick box to clear or select all at both the top and bottom would be helpfull to far more people than just me I'm sure.

Yes I know the host is not suitable for this work, unfortunately the ecconomics don't allow me to change.

When I said: "I would love to just go down and put a tick next to the names and then click an approve button... Can anyone help?", I really didn't need to be told that the approval page is used for this. I can't see the names of the users and even if my host would allow a greater amount of users processed at the same time, I just can't process 2000 users at a time and of course as we've establish I can't deselect them. I said all that.

So I know I need ANOTHER solution, I meant to say:
I would love to just go down and put a tick next to the names IN THE BACKEND and then click an approve button... Can anyone help?

Is there any chance, if you are going to add a select/deselect box anyway, you could write the php and give it to me and tel me where to add it? If I knew php I would do it myself (I'm sure you just need to past in simlar code and change it for CB variables), but I'm quite capable of pasting it in a .php file. Also I'm quite capable of hacking a php file to display the field I want, perhaps you could direct me to the appropriate .php file for the CB workflow results page? That might help.

Thanks. I do very much apprecaite your help.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
10 years 9 months ago #239185 by krileon
Replied by krileon on topic Approval or Disaproval of multiple users

I have the name format set to: "Username only". The username does not display. Also namestyle is set to "Name only".

That's because you don't have CB 2.0 yet. CB 1.x forces it to Name.

Yes I know the host is not suitable for this work, unfortunately the ecconomics don't allow me to change.

There's absolutely nothing we can do about this. There's no coding we can do to make this functional for your host.

I would love to just go down and put a tick next to the names IN THE BACKEND and then click an approve button... Can anyone help?

I doubt we'll add such a feature in backend as we'd need to add many other buttons just as well to handle the various usages and then it becomes too much. We'll need to review this further once we redo the backend in CB 2.0.

Is there any chance, if you are going to add a select/deselect box anyway, you could write the php and give it to me and tel me where to add it?

No, I am working off of a CB 2.0 internal build. Any changes I make are locked to CB 2.0. You'll need to wait for next release for the feature.

Also I'm quite capable of hacking a php file to display the field I want, perhaps you could direct me to the appropriate .php file for the CB workflow results page?

We do not support core modifications and I can not advise on them.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • tekno_boy
  • tekno_boy
  • OFFLINE
  • Posts: 7
  • Thanks: 0
  • Karma: 0
10 years 9 months ago - 10 years 9 months ago #239190 by tekno_boy
Replied by tekno_boy on topic Approval or Disaproval of multiple users
Sorry, I wasn't sugesting you could do something about my host. I was acknowledging that neither of us can do anything about it.

With respect, you could add a "batch" feature similar to the one at the bottom of a Joomla article or menu manager which would allow the user to complete a large number of maintence tasks on users. It would sit at the bottom of the user management screen, so wouldn't clutter the interface. An administrator could select all the users they wanted, choose and action (enabel,disable,confrim,unconfirn,aprove,diaprove,no aproval etc) and then click process. That would only be one drodown and one button ("process"). I don't know that much about PHP, but I know such a thing would not actually be that hard. You could also add other things which could be usefull (like "export" to allow CB Juice style export, but only on selected users).

Reguarding hacking the core files, no I don't want to do that either, but I am using Joomla 1.5. and I plan to migrate. The problem is becuase I have lots of users (currently 2700) that I need to approve (some disaprove) I am unable to start the migration. As I work hard, I can only approve a few more than the amount the are added each day. Honestly, unless I can find a way to multiple select users and the approved them (I could do it by SQL commands, but the system emails wouldn't fire) then it will take me 6 months (I calculated it) before I can even start to change to Joomla 3. After I get rid of the backlog I can handle the new visitors ok.

It's very frustrating to be doing something manually that's so slow, but also being close to having the ability to do it automatically).

I'm pretty sure I can hack the PHP to show what the names on the CB Workflows screen (frontend) could you maybe just tell me which php file it is, the path and how I would make all DESELECTED instead of selected by default, I would be sooooo gratefull.

Thanks,
Andrew
Last edit: 10 years 9 months ago by tekno_boy.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
10 years 9 months ago #239195 by krileon
Replied by krileon on topic Approval or Disaproval of multiple users

With respect, you could add a "batch" feature similar to the one at the bottom of a Joomla article or menu manager which would allow the user to complete a large number of maintence tasks on users. It would sit at the bottom of the user management screen, so wouldn't clutter the interface. An administrator could select all the users they wanted, choose and action (enabel,disable,confrim,unconfirn,aprove,diaprove,no aproval etc) and then click process. That would only be one drodown and one button ("process"). I don't know that much about PHP, but I know such a thing would not actually be that hard. You could also add other things which could be usefull (like "export" to allow CB Juice style export, but only on selected users).

Something like this maybe possible, but the way fields work it may not be. Some edit displays just don't make sense in this usage. It's something we'll be looking at once we redo the CB 2.0 backend though.

Reguarding hacking the core files, no I don't want to do that either, but I am using Joomla 1.5. and I plan to migrate. The problem is becuase I have lots of users (currently 2700) that I need to approve (some disaprove) I am unable to start the migration. As I work hard, I can only approve a few more than the amount the are added each day. Honestly, unless I can find a way to multiple select users and the approved them (I could do it by SQL commands, but the system emails wouldn't fire) then it will take me 6 months (I calculated it) before I can even start to change to Joomla 3. After I get rid of the backlog I can handle the new visitors ok.

You already can multi-approve users. This is done from the approval page on frontend. It is the most performance optimal way to do this. Aside from that I guess just mass approve via database, but that's not going to send any emails.

I'm pretty sure I can hack the PHP to show what the names on the CB Workflows screen (frontend) could you maybe just tell me which php file it is, the path and how I would make all DESELECTED instead of selected by default, I would be sooooo gratefull.

The approval page display is handled in the below file.

/components/com_comprofiler/comprofiler.html.php

You'll then need to review the pendingApprovalUsers function. Beyond that I can't help any further. The HTML of pendingApprovalUsers has been 100% rewritten so anything I provide would not be compatible with CB 1.x.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum