[DBTech] DragonByte Credits

[DBTech] DragonByte Credits [Paid] 6.0.9

No permission to buy (€14.95)
The Richest users display cannot be removed at this time. It's a common request, but due to the way the tabs work it's not easy to implement at this time. It's on my radar for future improvements.

I think I posted the work around I currently use on your forum a year or so ago.
 
Can you please clarify? Are you sure you ticked the reset box under that rebuild action?
Yes.
At first I just left the Content types at "all".
Later I tried each of the types individually.

The adjust log didn't get cleared.
and after clearing the caches of the post, thread and reply (those were the content types that were used) the table still contains Thread content types.

I was thinking,
If I manually clear the xf_dbtech_credits_adjust_log and the xf_dbtech_credits_transaction tables, and then run DragonByte Credits: Rebuild balances, Will that be safe?
I want to leave the events I set up and just delete all credits given to users (transactions too) (make all users balances zero).

Thanks!
 
Yes.
At first I just left the Content types at "all".
Later I tried each of the types individually.

The adjust log didn't get cleared.
and after clearing the caches of the post, thread and reply (those were the content types that were used) the table still contains Thread content types.

I was thinking,
If I manually clear the xf_dbtech_credits_adjust_log and the xf_dbtech_credits_transaction tables, and then run DragonByte Credits: Rebuild balances, Will that be safe?
I want to leave the events I set up and just delete all credits given to users (transactions too) (make all users balances zero).

Thanks!
I think I see where you're coming from, I agree that it's a bit unintuitive. You should be safe to manually clear those two tables, yes.

I'll create a new option to only reset any given currency for the XF 2.3 version.
 
Does this plugin add any API endpoints? I want to be able to sync credits between my forum and Minecraft via a custom Minecraft plugin, and I'm looking for that connection to be two-way. If so, where can I find the API documentation for this?
 
Does this plugin add any API endpoints? I want to be able to sync credits between my forum and Minecraft via a custom Minecraft plugin, and I'm looking for that connection to be two-way. If so, where can I find the API documentation for this?
No such plans, but you can either commission it as custom work or make a suggestion @ the Credits feature request section @ DBTech :)
 
I don't think this plugin will work with what I'm looking for, though I could be wrong... I want to reward users with VIP status for 30 days for being active and posting. Currently They pay a a monthly fee to be a VIP, and I want find a way to get users to earn a VIP status by spending earned points for it.
 
I don't think this plugin will work with what I'm looking for, though I could be wrong... I want to reward users with VIP status for 30 days for being active and posting. Currently They pay a a monthly fee to be a VIP, and I want find a way to get users to earn a VIP status by spending earned points for it.
You can create a payment profile that lets you specify a currency from DB Credits as well as the exchange rate. So you could have 10 credits be 1 USD when paying using this profile.

This only works if the system you are using for VIP upgrades is the XF native user upgrade system or another system that uses the payment profile system.
 
You can create a payment profile that lets you specify a currency from DB Credits as well as the exchange rate. So you could have 10 credits be 1 USD when paying using this profile.

This only works if the system you are using for VIP upgrades is the XF native user upgrade system or another system that uses the payment profile system.
Well, when the 2.3 version is released I'll give it a try for sure.
 
DragonByte Tech updated [DBTech] DragonByte Credits with a new update entry:

6.0.0 Release Candidate 1

Update highlights​

!!!This version requires PHP 8.0+!!!


This version mainly introduces compatibility with XenForo 2.3. The add-on has been fully updated, meaning no compatibility layers such as loading jQuery or other such patches are required for this add-on.

Furthermore, a few reported bugs since the release of v5.9.0 for XenForo 2.2 have also been resolved.


Complete Change Log​

Change: Reduced query count due...

Read the rest of this update entry...
 
When I wanted to post a resource, this came up:

Oops! We ran into some problems.
InvalidArgumentException: Event trigger handler for 'resourceupload' does not exist: DBTech\Credits\EventTrigger\XFRM\UploadHandler in src/addons/DBTech/Credits/Repository/EventTriggerRepository.php at line 59
  1. DBTech\Credits\Repository\EventTriggerRepository->getHandler() in src/addons/DBTech/Credits/XFRM/Entity/ResourceItem.php at line 42
  2. DBTech\Credits\XFRM\Entity\ResourceItem->_preSave() in src/XF/Mvc/Entity/Entity.php at line 1413
  3. XF\Mvc\Entity\Entity->preSave() in src/addons/XFRM/Service/ResourceItem/Create.php at line 257
  4. XFRM\Service\ResourceItem\Create->_validate() in src/XF/Service/ValidateAndSavableTrait.phpat line 19
  5. XFRM\Service\ResourceItem\Create->validate() in src/addons/XFRM/Pub/Controller/Category.php at line 270
  6. XFRM\Pub\Controller\Category->actionAdd()in src/addons/XFA/RMMarketplace/XFRM/Pub/Controller/Category.php at line 19
  7. XFA\RMMarketplace\XFRM\Pub\Controller\Category->actionAdd() in src/XF/Mvc/Dispatcher.php at line 362
  8. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 264
  9. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 121
  10. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 63
  11. XF\Mvc\Dispatcher->run() in src/XF/App.phpat line 2777
  12. XF\App->run() in src/XF.php at line 798
  13. XF::runApp() in index.php at line 23
Any idea? I went to check the events, and there is no event possible to be added for resource upload.
 
Hello @DragonByte Tech
Regarding the Downloaded event (getting credits for when my file is downloaded by others):
When is the event supposed to be triggered?
We noticed when the file is an image embedded in the post, the event is triggered whenever the post (and therefore the image too) is viewed.
Is this how it's supposed to be?
I thought it should be only when the file is downloaded by physically clicking the download button.

Thanks!!
 
When I wanted to post a resource, this came up:

Oops! We ran into some problems.
InvalidArgumentException: Event trigger handler for 'resourceupload' does not exist: DBTech\Credits\EventTrigger\XFRM\UploadHandler in src/addons/DBTech/Credits/Repository/EventTriggerRepository.php at line 59
  1. DBTech\Credits\Repository\EventTriggerRepository->getHandler() in src/addons/DBTech/Credits/XFRM/Entity/ResourceItem.php at line 42
  2. DBTech\Credits\XFRM\Entity\ResourceItem->_preSave() in src/XF/Mvc/Entity/Entity.php at line 1413
  3. XF\Mvc\Entity\Entity->preSave() in src/addons/XFRM/Service/ResourceItem/Create.php at line 257
  4. XFRM\Service\ResourceItem\Create->_validate() in src/XF/Service/ValidateAndSavableTrait.phpat line 19
  5. XFRM\Service\ResourceItem\Create->validate() in src/addons/XFRM/Pub/Controller/Category.php at line 270
  6. XFRM\Pub\Controller\Category->actionAdd()in src/addons/XFA/RMMarketplace/XFRM/Pub/Controller/Category.php at line 19
  7. XFA\RMMarketplace\XFRM\Pub\Controller\Category->actionAdd() in src/XF/Mvc/Dispatcher.php at line 362
  8. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 264
  9. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 121
  10. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 63
  11. XF\Mvc\Dispatcher->run() in src/XF/App.phpat line 2777
  12. XF\App->run() in src/XF.php at line 798
  13. XF::runApp() in index.php at line 23
Any idea? I went to check the events, and there is no event possible to be added for resource upload.
Will be handled @ DBTech when I have more information :)

Hello @DragonByte Tech
Regarding the Downloaded event (getting credits for when my file is downloaded by others):
When is the event supposed to be triggered?
We noticed when the file is an image embedded in the post, the event is triggered whenever the post (and therefore the image too) is viewed.
Is this how it's supposed to be?
I thought it should be only when the file is downloaded by physically clicking the download button.

Thanks!!
If XenForo calls the downloading code path then it is intended for embedded attachments too.
 
Back
Top Bottom