[TH] Credits [Deleted]

Weird error, trying to install this "the old fashioned way" through XenForo, and uploading the xml gives me this:

Code:
Server Error
String could not be parsed as XML

[LIST=1]
[*]SimpleXMLElement->__construct() in AddOnInstaller/Model/AddOn.php at line 0
[*]AddOnInstaller_Model_AddOn->getXmlType() in AddOnInstaller/ControllerAdmin/AddOn.php at line 27
[*]AddOnInstaller_ControllerAdmin_AddOn->actionInstallUpgrade() in XenForo/FrontController.php at line 347
[*]XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
[*]XenForo_FrontController->run() in /.../.../.../admin.php at line 13

Never mind I think it had to do with the fact that I had the beta installed, and disabled, and was trying to install this over that. Once I removed the beta installation, the new AD Credits install worked fine.
 
Last edited:
Suggestion, when creating a table of imported transactions from *******, have a notice that any existing archive table will be deleted, so that if somebody is doing a second import, they don't get the message:
Code:
It is not possible to create the table 'archived_import_log' due to the following error: Mysqli statement execute error : Table 'archived_import_log' already exists
 
Suggestion, when creating a table of imported transactions from *******, have a notice that any existing archive table will be deleted, so that if somebody is doing a second import, they don't get the message:
Code:
It is not possible to create the table 'archived_import_log' due to the following error: Mysqli statement execute error : Table 'archived_import_log' already exists
I noticed this as well. Yeah Im not sure what we should do about this, but have marked it as a bug.
 
Maybe create the table when the addon is installed, and just insert to it when imports are done, as long as a date/time is added to the table?
 
Maybe create the table when the addon is installed, and just insert to it when imports are done, as long as a date/time is added to the table?
That part is handled by XenForo. We dont create that table. Im thinking we might be able to truncate the table though. @Jake B.
 
When I try to create a new action, any action, and save my preferences, I always get the error "Please enter a value for the required field 'values'".

I don't understand what it's asking me. Am I missing something?
 
Last edited:
Never mind again, it's just not intuitive. When you create a new action, you have to select the correct "currency", then click the plus button, then enter the amount to add or subtract.
 
OK, isn't the name of the AD Credits column in the user table "adcredits"? I'm using @Bob 's sportsbook and stock trader, and I have set

but I get this error with those addons:
Code:
Server Error
Undefined index: adcredits

[LIST=1]
[*]XenForo_Application::handlePhpError() in NFLJ/Sportsbook/Model/Outcome.php at line 372
[*]NFLJ_Sportsbook_Model_Outcome->getavailableCash() in NFLJ/Sportsbook/Model/Outcome.php at line 533
[*]NFLJ_Sportsbook_Model_Outcome->canPlaceWagerOnOutcome() in NFLJ/Sportsbook/Model/Outcome.php at line 233
[*]NFLJ_Sportsbook_Model_Outcome->prepareOutcome() in NFLJ/Sportsbook/Model/Outcome.php at line 255
[*]NFLJ_Sportsbook_Model_Outcome->prepareOutcomes() in NFLJ/Sportsbook/ControllerPublic/Sportsbook.php at line 574
[*]NFLJ_Sportsbook_ControllerPublic_Sportsbook->actionEvent() in XenForo/FrontController.php at line 347
[*]XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
[*]XenForo_FrontController->run() in xxxx/index.php at line 13
[/LIST]

Never mind (again), looking at the database, the correct column name to use from the xf_user table is adcredit
 
OK, isn't the name of the AD Credits column in the user table "adcredits"? I'm using @Bob 's sportsbook and stock trader, and I have set

but I get this error with those addons:
Code:
Server Error
Undefined index: adcredits

[LIST=1]
[*]XenForo_Application::handlePhpError() in NFLJ/Sportsbook/Model/Outcome.php at line 372
[*]NFLJ_Sportsbook_Model_Outcome->getavailableCash() in NFLJ/Sportsbook/Model/Outcome.php at line 533
[*]NFLJ_Sportsbook_Model_Outcome->canPlaceWagerOnOutcome() in NFLJ/Sportsbook/Model/Outcome.php at line 233
[*]NFLJ_Sportsbook_Model_Outcome->prepareOutcome() in NFLJ/Sportsbook/Model/Outcome.php at line 255
[*]NFLJ_Sportsbook_Model_Outcome->prepareOutcomes() in NFLJ/Sportsbook/ControllerPublic/Sportsbook.php at line 574
[*]NFLJ_Sportsbook_ControllerPublic_Sportsbook->actionEvent() in XenForo/FrontController.php at line 347
[*]XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
[*]XenForo_FrontController->run() in xxxx/index.php at line 13
[/LIST]

It is adcredit by default, if you've created your own currency it is the the value you set for Currency ID, you can see this on the 'edit currency' page, or on the currency list here:

Untitled.webp
 
Started seeing errors in the ACP log today..

Zend_Db_Statement_Mysqli_Exception: Mysqli prepare error: Unknown column 'product.display_on_profile_inventory' in 'field list' - library/Zend/Db/Statement/Mysqli.php:77
Generated By: Unknown Account, A moment ago
 
Is there any way to plug in my own events? That would be great!

Yep, you'll have to extend the Action controller. Look at the other events to see how they're setup :)

Started seeing errors in the ACP log today..

Zend_Db_Statement_Mysqli_Exception: Mysqli prepare error: Unknown column 'product.display_on_profile_inventory' in 'field list' - library/Zend/Db/Statement/Mysqli.php:77
Generated By: Unknown Account, A moment ago

That is an issue with the shop. If you look in that thread I have posted a fix for it on the last page :)

Is the download supposed to be automatically sent after payment? I paid and provided the transaction ID via PM over 13 hours ago...

We aren't in the office all night, I'll send it over now.

- Jake
 
Top Bottom