Credits [Deleted]

Status
Not open for further replies.
Just figured this out for anyone that might experience the same issue...

Likes were given $5 ... unlikes were set at ZERO. A user could arbitrarily like/unlike something and build their bank balance.
 
Just tried the free version, feels great. However, am I allowed to change the currency type/icon? Any suggestions on how to do that? I am keen on using a new form of virtual currency instead of a real dollar sign.
 
Hello,

For free version you only can use symbol as currency code.

Regards.
Well, I'm definitely thinking about buying it. But the issue is that my forum requires a unique currency that is different from any real existing currency symbols. If this can be realized in the premium version, can you please also tell me a bit about how it is done? Can I add in my own image to replace that dollar symbol?

Thanks!
 
I'm getting this error when upgrading....

Code:
Server Error

Mysqli statement execute error : Out of range value for column 'amount' at row 1791

Zend_Db_Statement_Mysqli->_execute() in Zend/Db/Statement.php at line 297
Zend_Db_Statement->execute() in Zend/Db/Adapter/Abstract.php at line 479
Zend_Db_Adapter_Abstract->query() in *******/Credits/Installer.php at line 141
*******_Credits_Installer::_installVersion_1220() in *******/Credits/Installer.php at line 160
*******_Credits_Installer::install()
call_user_func() in XenForo/Model/AddOn.php at line 215
XenForo_Model_AddOn->installAddOnXml() in ConvEss/Model/AddOn.php at line 24
ConvEss_Model_AddOn->installAddOnXml() in XenForo/Model/AddOn.php at line 169
XenForo_Model_AddOn->installAddOnXmlFromFile() in XenForo/ControllerAdmin/AddOn.php at line 236
XenForo_ControllerAdmin_AddOn->actionUpgrade() in XenForo/FrontController.php at line 347
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
XenForo_FrontController->run() in /var/www/vhosts/mysite.com/httpdocs/admin.php at line 13

Unable to upgrade.
 
@ineedhelp

You can open /library/*******/Credits/Installer.php and find
Code:
if (self::checkIfExist('xf_credits_transaction', 'amount')) {
            self::_getDb()->query(" ALTER TABLE  `xf_credits_transaction` CHANGE  `amount`  `amount` DECIMAL( 15, 4 ) NOT NULL DEFAULT  '0' ");
        }

change to
Code:
if (self::checkIfExist('xf_credits_transaction', 'amount')) {
            //self::_getDb()->query(" ALTER TABLE  `xf_credits_transaction` CHANGE  `amount`  `amount` DECIMAL( 15, 4 ) NOT NULL DEFAULT  '0' ");
        }
 
@ineedhelp

You can open /library/*******/Credits/Installer.php and find
Code:
if (self::checkIfExist('xf_credits_transaction', 'amount')) {
            self::_getDb()->query(" ALTER TABLE  `xf_credits_transaction` CHANGE  `amount`  `amount` DECIMAL( 15, 4 ) NOT NULL DEFAULT  '0' ");
        }

change to
Code:
if (self::checkIfExist('xf_credits_transaction', 'amount')) {
            //self::_getDb()->query(" ALTER TABLE  `xf_credits_transaction` CHANGE  `amount`  `amount` DECIMAL( 15, 4 ) NOT NULL DEFAULT  '0' ");
        }
Still the same... Not working.
 
The bounty isn't showing on profiles. Instead of that I have a large space without anything on it.
11i0eqa.png
 
Code:
Stack Trace
#0 /home/nasrif/cineforums.net/library/*******/Credits/Listener/Listener.php(38): XenForo_Model::create('*******_Credits...')
#1 /home/nasrif/cineforums.net/library/XenForo/CodeEvent.php(90): *******_Credits_Listener_Listener::init_dependencies(Object(XenForo_Dependencies_Public), Array)
#2 /home/nasrif/cineforums.net/library/XenForo/Dependencies/Abstract.php(202): XenForo_CodeEvent::fire(Array, Array)
#3 /home/nasrif/cineforums.net/library/XenForo/FrontController.php(127): XenForo_Dependencies_Abstract->preLoadData('init_dependenci...', Array)
#4 /home/nasrif/cineforums.net/index.php(13): XenForo_FrontController->run()
#5 {main}
Request State
array(3) {
  ["url"] => string(22) "http://cineforums.net/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

Code:
Stack Trace
#0 /home/nasrif/cineforums.net/library/Zend/Db/Statement.php(115): Zend_Db_Statement_Mysqli->_prepare('?????SELECT *??...')
#1 /home/nasrif/cineforums.net/library/Zend/Db/Adapter/Mysqli.php(381): Zend_Db_Statement->__construct(Object(Zend_Db_Adapter_Mysqli), '?????SELECT *??...')
#2 /home/nasrif/cineforums.net/library/Zend/Db/Adapter/Abstract.php(478): Zend_Db_Adapter_Mysqli->prepare('?????SELECT *??...')
#3 /home/nasrif/cineforums.net/library/XenForo/Model.php(219): Zend_Db_Adapter_Abstract->query('?????SELECT *??...', Array, 2)
#4 /home/nasrif/cineforums.net/library/*******/Credits/Model/Currency.php(22): XenForo_Model->fetchAllKeyed('?????SELECT *??...', 'currency_id')
#5 /home/nasrif/cineforums.net/library/*******/Credits/Model/Currency.php(101): *******_Credits_Model_Currency->getAllCurrencies()
#6 /home/nasrif/cineforums.net/library/*******/Credits/Model/Currency.php(114): *******_Credits_Model_Currency->getAllCurrenciesForCache()
#7 /home/nasrif/cineforums.net/library/*******/Credits/Listener/Listener.php(38): *******_Credits_Model_Currency->rebuildCurrencyCache()
#8 /home/nasrif/cineforums.net/library/XenForo/CodeEvent.php(90): *******_Credits_Listener_Listener::init_dependencies(Object(XenForo_Dependencies_Public), Array)
#9 /home/nasrif/cineforums.net/library/XenForo/Dependencies/Abstract.php(202): XenForo_CodeEvent::fire(Array, Array)
#10 /home/nasrif/cineforums.net/library/XenForo/FrontController.php(127): XenForo_Dependencies_Abstract->preLoadData('init_dependenci...', Array)
#11 /home/nasrif/cineforums.net/index.php(13): XenForo_FrontController->run()
#12 {main}
Request State
array(3) {
  ["url"] => string(22) "http://cineforums.net/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

@*******
 
@Dino

Please give us full server error log. We can't found issue with only Stack Trace :(
My bad. :p ..i've never done this before haha. Is this good? (below)

Code:
Error Info
Zend_Db_Statement_Mysqli_Exception: Mysqli prepare error: Table 'nasrif_xf.xf_credits_currency' doesn't exist - library/Zend/Db/Statement/Mysqli.php:77
Generated By: Unknown Account, 23 minutes ago
Stack Trace
#0 /home/nasrif/cineforums.net/library/Zend/Db/Statement.php(115): Zend_Db_Statement_Mysqli->_prepare('?????SELECT *??...')
#1 /home/nasrif/cineforums.net/library/Zend/Db/Adapter/Mysqli.php(381): Zend_Db_Statement->__construct(Object(Zend_Db_Adapter_Mysqli), '?????SELECT *??...')
#2 /home/nasrif/cineforums.net/library/Zend/Db/Adapter/Abstract.php(478): Zend_Db_Adapter_Mysqli->prepare('?????SELECT *??...')
#3 /home/nasrif/cineforums.net/library/XenForo/Model.php(219): Zend_Db_Adapter_Abstract->query('?????SELECT *??...', Array, 2)
#4 /home/nasrif/cineforums.net/library/*******/Credits/Model/Currency.php(22): XenForo_Model->fetchAllKeyed('?????SELECT *??...', 'currency_id')
#5 /home/nasrif/cineforums.net/library/*******/Credits/Model/Currency.php(101): *******_Credits_Model_Currency->getAllCurrencies()
#6 /home/nasrif/cineforums.net/library/*******/Credits/Model/Currency.php(114): *******_Credits_Model_Currency->getAllCurrenciesForCache()
#7 /home/nasrif/cineforums.net/library/*******/Credits/Listener/Listener.php(38): *******_Credits_Model_Currency->rebuildCurrencyCache()
#8 /home/nasrif/cineforums.net/library/XenForo/CodeEvent.php(90): *******_Credits_Listener_Listener::init_dependencies(Object(XenForo_Dependencies_Public), Array)
#9 /home/nasrif/cineforums.net/library/XenForo/Dependencies/Abstract.php(202): XenForo_CodeEvent::fire(Array, Array)
#10 /home/nasrif/cineforums.net/library/XenForo/FrontController.php(127): XenForo_Dependencies_Abstract->preLoadData('init_dependenci...', Array)
#11 /home/nasrif/cineforums.net/index.php(13): XenForo_FrontController->run()
#12 {main}
Request State
array(3) {
  ["url"] => string(22) "http://cineforums.net/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

^ There are three of these in the log.

Code:
Error Info
XenForo_Exception: Invalid model '*******_Credits_Model_Currency' specified - library/XenForo/Model.php:192
Generated By: Unknown Account, 23 minutes ago
Stack Trace
#0 /home/nasrif/cineforums.net/library/*******/Credits/Listener/Listener.php(38): XenForo_Model::create('*******_Credits...')
#1 /home/nasrif/cineforums.net/library/XenForo/CodeEvent.php(90): *******_Credits_Listener_Listener::init_dependencies(Object(XenForo_Dependencies_Public), Array)
#2 /home/nasrif/cineforums.net/library/XenForo/Dependencies/Abstract.php(202): XenForo_CodeEvent::fire(Array, Array)
#3 /home/nasrif/cineforums.net/library/XenForo/FrontController.php(127): XenForo_Dependencies_Abstract->preLoadData('init_dependenci...', Array)
#4 /home/nasrif/cineforums.net/index.php(13): XenForo_FrontController->run()
#5 {main}
Request State
array(3) {
  ["url"] => string(22) "http://cineforums.net/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
Looks really impressive, @******* ! I'm looking for an addon providing incentives for active users.

However, I am not quite sure what the difference is between Credits and the built in XF trophy system.

Regards, rhodes
 
I just tried to install the lite version but received an error message when I saved the xml.

Declaration of *******_Credits_Installer::install() should be compatible with *******_*******Library_Installer::install($previous)

Regards

P.S: my Xenforo version is 1.3
 
Status
Not open for further replies.
Top Bottom