Bug Manually changing usergroups *sometimes* deducts credits

Status
Not open for further replies.

colcar

Customer
Hi, I've noticed that occasionally when I switch a user to a new usergroup it might deduct a random amount of credits from their balance, the transaction log simply says it's an action by the "administrator" but I haven't set any process up that would do that.

When I try to test switching usergroups again it doesn't do it, just seems to happen at random times.

See the two users I changed usergroups below
screenshot-2129.jpg


screenshot-2130.jpg


A few weeks ago it took 36,681,939 credits from a user for no reason, so this isn't an insignificant problem.
 
1643633350871.webp

The last two tabs there. Changes in those fields, or if they're out of sync with the database somehow, will cause an adjustment like the one seen in those logs.
 
View attachment 10041

The last two tabs there. Changes in those fields, or if they're out of sync with the database somehow, will cause an adjustment like the one seen in those logs.
Ok, I wasn't going into those tabs but you've given me an idea of what might be causing the problem.

I keep Chrome tabs open on the "Edit User" page of a few users that I have to edit the usergroups of frequently to save me for having to search for them constantly.

Is it possible that by editing a user on one Chrome tab, then going to another Chrome tab to edit another user without first refreshing the page could cause this issue?
 
Is it possible that by editing a user on one Chrome tab, then going to another Chrome tab to edit another user without first refreshing the page could cause this issue?
No, but the fact that you keep those tabs open is what's causing the issue. Any credits earned between the last time you opened the tab, and the time you save their edits, will be lost unless you reload the tabs before making the edits.
 
Ok thanks, I'll keep an eye on that in future.

One more thing, is there a database query I can use that will give an entire usergroup a specific amount of credits?

I pay my VIP members a monthly paycheck based on what level VIP they are and at the moment I am having to Adjust each member manually, which takes a long time.
 
Using database queries would not write entries to the transaction log, so it's unsupported. You would need to update the relevant column in the xf_user table.
 
Entirely untested, but something like UPDATE xf_user SET dbtech_credits_credits = dbtech_credits_credits + 1 WHERE FIND_IN_SET(secondary_group_ids, 1) to give people with secondary group ID 1 an extra 1 credits.
 
Entirely untested, but something like UPDATE xf_user SET dbtech_credits_credits = dbtech_credits_credits + 1 WHERE FIND_IN_SET(secondary_group_ids, 1) to give people with secondary group ID 1 an extra 1 credits.
Thanks for that. I gave it a try and got Matched Rows: 0 unfortunately.

1644000346937.webp
 
Hello @colcar,

We hope your ticket regarding DragonByte Credits has been addressed to your satisfaction. This ticket has now been scheduled to be closed.

If your ticket has not been resolved, you can reply to this thread at any point in the next 7 days in order to reopen the ticket, afterwards this thread will be closed.

Please do not reply to this thread if your ticket has been resolved.

Thank you.


- DragonByte Technologies, Ltd.
 
Hello @colcar,

As we have not heard back from you, your ticket regarding DragonByte Credits has now been closed.

If your ticket has not been resolved, please feel free to start a new support ticket and link back to this ticket.

If you have time, please leave a review on XenForo.com's Resource Manager.

Thank you.


- DragonByte Technologies, Ltd.
 
Status
Not open for further replies.

DragonByte Credits

XenForo 1.5.3+ XenForo 2.0.x XenForo 2.1.x XenForo 2.2.x XenForo 2.3.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
5,046
Customer rating
5.00 star(s) 5 ratings
Back
Top