[DBTech] DragonByte Credits

xF2 Add-on [DBTech] DragonByte Credits 5.9.0

No permission to download

AkalankaDev

Member
Registered
Joined
Jan 31, 2022
Messages
5
Points
3

Reputation:

How to prevent when someone unlocks content without having credits? (-x Credits) And display insufficient credits alert or something like that.
 

BattleKing

Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
Joined
May 24, 2020
Messages
3,514
Points
523

Reputation:

How to prevent when someone unlocks content without having credits? (-x Credits) And display insufficient credits alert or something like that.
AkalankaDevThis can be set in the settings, do not allow negative credits.
 
View previous replies…

BattleKing

Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
Joined
May 24, 2020
Messages
3,514
Points
523

Reputation:

Mm thanks, but I cant see any option like that.
AkalankaDevtake a look here:

1644235445200.jpg
 

rigarus99

Well-known member
Registered
Joined
Sep 13, 2021
Messages
192
Points
53

Reputation:

does anyone notice a bug where users are able to trigger multiple "daily activity" events ?
When someone opens multiple tabs and login, then they got daily activity coins for each tab.
That sucks. I have some people who use this bug. I message and warn them.

Need to fix this problem.
Does anyone notice similar bugs ?
 

BattleKing

Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
Joined
May 24, 2020
Messages
3,514
Points
523

Reputation:

does anyone notice a bug where users are able to trigger multiple "daily activity" events ?
When someone opens multiple tabs and login, then they got daily activity coins for each tab.
That sucks. I have some people who use this bug. I message and warn them.

Need to fix this problem.
Does anyone notice similar bugs ?
r4z0rknownYes I already know this kind of bug, but there is currently no way to fix that, possibly further look into the code is required to prevent such things. But the best currently to do is that you have to warn the user and if they ignore it, ban them.
 

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
19,758
Points
823

Reputation:

ENXF NET updated [DBTech] DragonByte Credits with a new update entry:

5.7.7

Update highlights

This version fixes an issue with the currency privacy setting, as well as a few PHP 8.1 related issues.


Complete Change Log

Fix: Fix an issue where the "Show to self and designated user groups" currency privacy setting did not apply correctly
Fix: Content type reference in the Transaction entity
Fix: Fix PHP 8.1 compatibility issue

Read the rest of this update entry...
 

Wolf Knight

+Lifetime VIP+
+Lifetime VIP+
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Jul 3, 2019
Messages
200
Points
53

Reputation:

Hi everyone,
Hope you doing well.

I got this error once I update this addon:

An exception occurred: [ErrorException] [E_WARNING] Cannot declare class DBTech\Credits\XFMG\Entity\XFCP_MediaItem, because the name is already in use in src/XF/Extension.php on line 171

  1. XF::handlePhpError()
  2. class_alias() in src/XF/Extension.php at line 171
  3. XF\Extension->extendClass() in src/XF/Mvc/Entity/Manager.php at line 55
  4. XF\Mvc\Entity\Manager->getEntityClassName() in src/XF/Mvc/Entity/Manager.php at line 69
  5. XF\Mvc\Entity\Manager->getEntityStructure() in src/XF/Mvc/Entity/Manager.php at line 225
  6. XF\Mvc\Entity\Manager->getFinder() in src/XF/Mvc/Entity/Repository.php at line 35
  7. XF\Mvc\Entity\Repository->finder() in src/addons/XFMG/Repository/Media.php at line 28
  8. XFMG\Repository\Media->findMediaForMixedList() in src/addons/XFMG/Repository/Media.php at line 52
  9. XFMG\Repository\Media->findMediaForIndex() in src/addons/XFMG/Listener.php at line 147
  10. XFMG\Listener::appPubStartEnd() in src/XF/Extension.php at line 69
  11. XF\Extension->fire() in src/XF/App.php at line 2853
  12. XF\App->fire() in src/XF/Pub/App.php at line 201
  13. XF\Pub\App->start() in src/XF/App.php at line 2347
  14. XF\App->run() in src/XF.php at line 517
  15. XF::runApp() in index.php at line 20
Is that related to any function on the server? really it is so strange!!
 

BattleKing

Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
Joined
May 24, 2020
Messages
3,514
Points
523

Reputation:

Hi everyone,
Hope you doing well.

I got this error once I update this addon:

An exception occurred: [ErrorException] [E_WARNING] Cannot declare class DBTech\Credits\XFMG\Entity\XFCP_MediaItem, because the name is already in use in src/XF/Extension.php on line 171

  1. XF::handlePhpError()
  2. class_alias() in src/XF/Extension.php at line 171
  3. XF\Extension->extendClass() in src/XF/Mvc/Entity/Manager.php at line 55
  4. XF\Mvc\Entity\Manager->getEntityClassName() in src/XF/Mvc/Entity/Manager.php at line 69
  5. XF\Mvc\Entity\Manager->getEntityStructure() in src/XF/Mvc/Entity/Manager.php at line 225
  6. XF\Mvc\Entity\Manager->getFinder() in src/XF/Mvc/Entity/Repository.php at line 35
  7. XF\Mvc\Entity\Repository->finder() in src/addons/XFMG/Repository/Media.php at line 28
  8. XFMG\Repository\Media->findMediaForMixedList() in src/addons/XFMG/Repository/Media.php at line 52
  9. XFMG\Repository\Media->findMediaForIndex() in src/addons/XFMG/Listener.php at line 147
  10. XFMG\Listener::appPubStartEnd() in src/XF/Extension.php at line 69
  11. XF\Extension->fire() in src/XF/App.php at line 2853
  12. XF\App->fire() in src/XF/Pub/App.php at line 201
  13. XF\Pub\App->start() in src/XF/App.php at line 2347
  14. XF\App->run() in src/XF.php at line 517
  15. XF::runApp() in index.php at line 20
Is that related to any function on the server? really it is so strange!!
Wolf KnightIt sounds like you got a general problem, because this seems to be happening all the time on a new add-on installation on your board. Is that possible?
 

Monyo

Member
Registered
Joined
Mar 28, 2022
Messages
11
Points
13

Reputation:

Is there any way to have like a hide bbcode and DBTech Credits from this are used to show it or buy the hidden content?
 

rigarus99

Well-known member
Registered
Joined
Sep 13, 2021
Messages
192
Points
53

Reputation:

OMG finally they will fix the daily activity bug.
Version 5.8.0b2 is still (unstable) but it will come soon <3


damn....that feels good to see
 

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
19,758
Points
823

Reputation:

ENXF NET updated [DBTech] DragonByte Credits with a new update entry:

5.8.0 Beta 2

Update highlights

This version corrects an issue with the new cron job in Beta 1 where it would not correctly insert new transactions due to the nature of cron jobs running as guest user.


Complete Change Log

Fix: The Daily Activity event would not properly trigger while in a cron job

5.8.0 Beta 1

Update highlights

This version reworks the way daily credits operations are handled.

In previous versions, the following events would be handed the first time a user performed...

Read the rest of this update entry...
 

Wolf Knight

+Lifetime VIP+
+Lifetime VIP+
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Jul 3, 2019
Messages
200
Points
53

Reputation:

I updated the addon and got an error again
It was working perfectly, but it now gives me an error on the database.
 

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
19,758
Points
823

Reputation:

I updated the addon and got an error again
It was working perfectly, but it now gives me an error on the database.
Wolf KnightCan you post the error message here, I installed everything fine
 
View previous replies…

Wolf Knight

+Lifetime VIP+
+Lifetime VIP+
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Jul 3, 2019
Messages
200
Points
53

Reputation:

Can you post the error message here, I installed everything fine
ENXF NETXF\Db\DuplicateKeyException: MySQL query error [1062]: Duplicate entry 'XFMG\Entity\MediaItem-DBTech\Credits\XFMG\Entity\MediaItem' for key 'from_class' in src/XF/Db/AbstractStatement.php at line 230
  1. XF\Db\AbstractStatement->getException() in src/XF/Db/Mysqli/Statement.php at line 198
  2. XF\Db\Mysqli\Statement->getException() in src/XF/Db/Mysqli/Statement.php at line 79
  3. XF\Db\Mysqli\Statement->execute() in src/XF/Db/AbstractAdapter.php at line 96
  4. XF\Db\AbstractAdapter->query() in src/XF/Db/AbstractAdapter.php at line 220
  5. XF\Db\AbstractAdapter->insert() in src/XF/Mvc/Entity/Entity.php at line 1514
  6. XF\Mvc\Entity\Entity->_saveToSource() in src/XF/Mvc/Entity/Entity.php at line 1246
  7. XF\Mvc\Entity\Entity->save() in src/XF/AddOn/DataType/ClassExtension.php at line 84
  8. XF\AddOn\DataType\ClassExtension->importAddOnData() in src/XF/Job/AddOnData.php at line 110
  9. XF\Job\AddOnData->run() in src/XF/Job/Manager.php at line 260
  10. XF\Job\Manager->runJobInternal() in src/XF/Job/Manager.php at line 202
  11. XF\Job\Manager->runJobEntry() in src/XF/Job/Manager.php at line 118
  12. XF\Job\Manager->runByIds() in src/XF/Admin/Controller/Tools.php at line 122
  13. XF\Admin\Controller\Tools->actionRunJob() in src/XF/Mvc/Dispatcher.php at line 352
  14. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 259
  15. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115
  16. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57
  17. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2352
  18. XF\App->run() in src/XF.php at line 524
  19. XF::runApp() in admin.php at line 13
 

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
19,758
Points
823

Reputation:

XF\Db\DuplicateKeyException: MySQL query error [1062]: Duplicate entry 'XFMG\Entity\MediaItem-DBTech\Credits\XFMG\Entity\MediaItem' for key 'from_class' in src/XF/Db/AbstractStatement.php at line 230
  1. XF\Db\AbstractStatement->getException() in src/XF/Db/Mysqli/Statement.php at line 198
  2. XF\Db\Mysqli\Statement->getException() in src/XF/Db/Mysqli/Statement.php at line 79
  3. XF\Db\Mysqli\Statement->execute() in src/XF/Db/AbstractAdapter.php at line 96
  4. XF\Db\AbstractAdapter->query() in src/XF/Db/AbstractAdapter.php at line 220
  5. XF\Db\AbstractAdapter->insert() in src/XF/Mvc/Entity/Entity.php at line 1514
  6. XF\Mvc\Entity\Entity->_saveToSource() in src/XF/Mvc/Entity/Entity.php at line 1246
  7. XF\Mvc\Entity\Entity->save() in src/XF/AddOn/DataType/ClassExtension.php at line 84
  8. XF\AddOn\DataType\ClassExtension->importAddOnData() in src/XF/Job/AddOnData.php at line 110
  9. XF\Job\AddOnData->run() in src/XF/Job/Manager.php at line 260
  10. XF\Job\Manager->runJobInternal() in src/XF/Job/Manager.php at line 202
  11. XF\Job\Manager->runJobEntry() in src/XF/Job/Manager.php at line 118
  12. XF\Job\Manager->runByIds() in src/XF/Admin/Controller/Tools.php at line 122
  13. XF\Admin\Controller\Tools->actionRunJob() in src/XF/Mvc/Dispatcher.php at line 352
  14. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 259
  15. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115
  16. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57
  17. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2352
  18. XF\App->run() in src/XF.php at line 524
  19. XF::runApp() in admin.php at line 13
Wolf KnightIt has a duplicate file error, does it reappear when you delete it?
 
Top