[TH] Credits [Deleted]

Error with latest version, user liked a profile post.

Code:
ErrorException: Undefined variable: action - library/Audentio/Credit/Core/Event/LikeContent.php:67
Generated By: Sharpy Sandow, 4 minutes ago

Code:
#0 /var/www/vhosts/wweforums.net/httpdocs/library/Audentio/Credit/Core/Event/LikeContent.php(67): XenForo_Application::handlePhpError(8, 'Undefined varia...', '/var/www/vhosts...', 67, Array)
#1 /var/www/vhosts/wweforums.net/httpdocs/library/Audentio/Credit/Core/Event.php(62): Audentio_Credit_Core_Event_LikeContent->run(Object(Dark_PostRating_Model_Like), Array, 'like_after', Array)
#2 /var/www/vhosts/wweforums.net/httpdocs/library/Audentio/Credit/Core/Model/Like.php(12): Audentio_Credit_Core_Event::run('like_content', Object(Dark_PostRating_Model_Like), 'like_after')
#3 /var/www/vhosts/wweforums.net/httpdocs/library/Dark/PostRating/Model/Like.php(7): Audentio_Credit_Core_Model_Like->likeContent('profile_post', 19614, 56, NULL, NULL)
#4 /var/www/vhosts/wweforums.net/httpdocs/library/XenForo/ControllerPublic/ProfilePost.php(302): Dark_PostRating_Model_Like->likeContent('profile_post', 19614, 56)
#5 /var/www/vhosts/wweforums.net/httpdocs/library/XenForo/FrontController.php(347): XenForo_ControllerPublic_ProfilePost->actionLike()
#6 /var/www/vhosts/wweforums.net/httpdocs/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#7 /var/www/vhosts/wweforums.net/httpdocs/index.php(13): XenForo_FrontController->run()
#8 {main}
 
We were just talking about this the other day. Essentially an inventory of items. You can buy a kiss, a boat, a logo, a drinking flask, any kind of graphic essentially. Can even gift them to other people Id say. We'll start building this fairly soon, I agree this would be useful.

If you implement this, you'll definitely have a sale.

Couple requests:
  • Multiple tabs for different types of custom items (weapons, food, spells, etc. for example)
  • Ability to set a finite quantity; after an item is sold out they either need to buy/sell between users or someone needs to sell it back to the main shop
  • Make items "consumeable"; i.e. purchasing and using "One Time Thread Sticky" item would use it up and remove it from their inventory
 
Error with latest version, user liked a profile post.

Code:
ErrorException: Undefined variable: action - library/Audentio/Credit/Core/Event/LikeContent.php:67
Generated By: Sharpy Sandow, 4 minutes ago

Code:
#0 /var/www/vhosts/wweforums.net/httpdocs/library/Audentio/Credit/Core/Event/LikeContent.php(67): XenForo_Application::handlePhpError(8, 'Undefined varia...', '/var/www/vhosts...', 67, Array)
#1 /var/www/vhosts/wweforums.net/httpdocs/library/Audentio/Credit/Core/Event.php(62): Audentio_Credit_Core_Event_LikeContent->run(Object(Dark_PostRating_Model_Like), Array, 'like_after', Array)
#2 /var/www/vhosts/wweforums.net/httpdocs/library/Audentio/Credit/Core/Model/Like.php(12): Audentio_Credit_Core_Event::run('like_content', Object(Dark_PostRating_Model_Like), 'like_after')
#3 /var/www/vhosts/wweforums.net/httpdocs/library/Dark/PostRating/Model/Like.php(7): Audentio_Credit_Core_Model_Like->likeContent('profile_post', 19614, 56, NULL, NULL)
#4 /var/www/vhosts/wweforums.net/httpdocs/library/XenForo/ControllerPublic/ProfilePost.php(302): Dark_PostRating_Model_Like->likeContent('profile_post', 19614, 56)
#5 /var/www/vhosts/wweforums.net/httpdocs/library/XenForo/FrontController.php(347): XenForo_ControllerPublic_ProfilePost->actionLike()
#6 /var/www/vhosts/wweforums.net/httpdocs/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#7 /var/www/vhosts/wweforums.net/httpdocs/index.php(13): XenForo_FrontController->run()
#8 {main}

I'll email out a patch in about 5 minutes :)

EDIT: Sent Patch.
 
I enabled this after upgrading to the latest version and got the following errors in the error log:

Code:
Error Info
ErrorException: Undefined variable: action - library/Audentio/Credit/Core/Event/DailyLogin.php:76
Generated By: Liam W, 5 minutes ago
Stack Trace
#0 /home/nginx/domains/xf-liam.com/public/library/Audentio/Credit/Core/Event/DailyLogin.php(76): XenForo_Application::handlePhpError(8, 'Undefined varia...', '/home/nginx/dom...', 76, Array)
#1 /home/nginx/domains/xf-liam.com/public/library/Audentio/Credit/Core/Event.php(62): Audentio_Credit_Core_Event_DailyLogin->run('', Array, 'after', Array)
#2 /home/nginx/domains/xf-liam.com/public/library/Audentio/Credit/Core/Listener/CodeEvent.php(216): Audentio_Credit_Core_Event::run('daily_login', '', 'after')
#3 [internal function]: Audentio_Credit_Core_Listener_CodeEvent::controllerPreDispatch(Object(XenForo_ControllerPublic_Error), 'Errorserver', 'XenForo_Control...')
#4 /home/nginx/domains/xf-liam.com/public/library/XenForo/CodeEvent.php(58): call_user_func_array(Array, Array)
#5 /home/nginx/domains/xf-liam.com/public/library/XenForo/Controller.php(313): XenForo_CodeEvent::fire('controller_pre_...', Array, 'XenForo_Control...')
#6 /home/nginx/domains/xf-liam.com/public/library/XenForo/FrontController.php(346): XenForo_Controller->preDispatch('Errorserver', 'XenForo_Control...')
#7 /home/nginx/domains/xf-liam.com/public/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#8 /home/nginx/domains/xf-liam.com/public/index.php(13): XenForo_FrontController->run()
#9 {main}
Request State
array(3) {
["url"] => string(20) "https://xf-liam.com/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}

Code:
Error Info
ErrorException: Invalid argument supplied for foreach() - library/Audentio/Credit/Core/Listener/CodeEvent.php:217
Generated By: Liam W, 5 minutes ago
Stack Trace
#0 /home/nginx/domains/xf-liam.com/public/library/Audentio/Credit/Core/Listener/CodeEvent.php(217): XenForo_Application::handlePhpError(2, 'Invalid argumen...', '/home/nginx/dom...', 217, Array)
#1 [internal function]: Audentio_Credit_Core_Listener_CodeEvent::controllerPreDispatch(Object(WidgetFramework_XenForo_ControllerPublic_Index), 'Index', 'XenForo_Control...')
#2 /home/nginx/domains/xf-liam.com/public/library/XenForo/CodeEvent.php(58): call_user_func_array(Array, Array)
#3 /home/nginx/domains/xf-liam.com/public/library/XenForo/Controller.php(313): XenForo_CodeEvent::fire('controller_pre_...', Array, 'XenForo_Control...')
#4 /home/nginx/domains/xf-liam.com/public/library/XenForo/FrontController.php(346): XenForo_Controller->preDispatch('Index', 'XenForo_Control...')
#5 /home/nginx/domains/xf-liam.com/public/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#6 /home/nginx/domains/xf-liam.com/public/index.php(13): XenForo_FrontController->run()
#7 {main}
Request State
array(3) {
["url"] => string(20) "https://xf-liam.com/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}

The third is the same as the first, they all appear to have happened around the same minute.

Liam
 
I enabled this after upgrading to the latest version and got the following errors in the error log:

Code:
Error Info
ErrorException: Undefined variable: action - library/Audentio/Credit/Core/Event/DailyLogin.php:76
Generated By: Liam W, 5 minutes ago
Stack Trace
#0 /home/nginx/domains/xf-liam.com/public/library/Audentio/Credit/Core/Event/DailyLogin.php(76): XenForo_Application::handlePhpError(8, 'Undefined varia...', '/home/nginx/dom...', 76, Array)
#1 /home/nginx/domains/xf-liam.com/public/library/Audentio/Credit/Core/Event.php(62): Audentio_Credit_Core_Event_DailyLogin->run('', Array, 'after', Array)
#2 /home/nginx/domains/xf-liam.com/public/library/Audentio/Credit/Core/Listener/CodeEvent.php(216): Audentio_Credit_Core_Event::run('daily_login', '', 'after')
#3 [internal function]: Audentio_Credit_Core_Listener_CodeEvent::controllerPreDispatch(Object(XenForo_ControllerPublic_Error), 'Errorserver', 'XenForo_Control...')
#4 /home/nginx/domains/xf-liam.com/public/library/XenForo/CodeEvent.php(58): call_user_func_array(Array, Array)
#5 /home/nginx/domains/xf-liam.com/public/library/XenForo/Controller.php(313): XenForo_CodeEvent::fire('controller_pre_...', Array, 'XenForo_Control...')
#6 /home/nginx/domains/xf-liam.com/public/library/XenForo/FrontController.php(346): XenForo_Controller->preDispatch('Errorserver', 'XenForo_Control...')
#7 /home/nginx/domains/xf-liam.com/public/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#8 /home/nginx/domains/xf-liam.com/public/index.php(13): XenForo_FrontController->run()
#9 {main}
Request State
array(3) {
["url"] => string(20) "https://xf-liam.com/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}

Code:
Error Info
ErrorException: Invalid argument supplied for foreach() - library/Audentio/Credit/Core/Listener/CodeEvent.php:217
Generated By: Liam W, 5 minutes ago
Stack Trace
#0 /home/nginx/domains/xf-liam.com/public/library/Audentio/Credit/Core/Listener/CodeEvent.php(217): XenForo_Application::handlePhpError(2, 'Invalid argumen...', '/home/nginx/dom...', 217, Array)
#1 [internal function]: Audentio_Credit_Core_Listener_CodeEvent::controllerPreDispatch(Object(WidgetFramework_XenForo_ControllerPublic_Index), 'Index', 'XenForo_Control...')
#2 /home/nginx/domains/xf-liam.com/public/library/XenForo/CodeEvent.php(58): call_user_func_array(Array, Array)
#3 /home/nginx/domains/xf-liam.com/public/library/XenForo/Controller.php(313): XenForo_CodeEvent::fire('controller_pre_...', Array, 'XenForo_Control...')
#4 /home/nginx/domains/xf-liam.com/public/library/XenForo/FrontController.php(346): XenForo_Controller->preDispatch('Index', 'XenForo_Control...')
#5 /home/nginx/domains/xf-liam.com/public/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#6 /home/nginx/domains/xf-liam.com/public/index.php(13): XenForo_FrontController->run()
#7 {main}
Request State
array(3) {
["url"] => string(20) "https://xf-liam.com/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}

The third is the same as the first, they all appear to have happened around the same minute.

Liam

Uhhh...

Never received.

I'm guessing Liam's bug report delayed that.

Nope, it was the same bug you reported. For some reason the email didn't send from my audentio e-mail. Just sent it from my gmail though. Let me know if you didn't get it.
 
I got this after the upgrade to 1.0.4 when i upload (text)files or images in resource manager (1.1.6)
Can't make any new inserts with credits.


upload_error_2.webp


upload_error.webp
 
I'm looking at having an auto promotion system users earn with credits it will take them to the next user group ranking them up in the clan

I noticed your system can do promotion upgrades but think i read it is going to be something purchased through the store. (meaning ill have to buy the store as well) is there anyway which could be an automated process once they achieve so much currency they get upgraded to the next user group.
 
Could you please explain the action priority feature?
Also, do the actions for each usergroups stack up for members who are in several usergroups? Or is this managed through the action priorities feature I don't understand :D
Thanks
 
Could you please explain the action priority feature?
Also, do the actions for each usergroups stack up for members who are in several usergroups? Or is this managed through the action priorities feature I don't understand :D
Thanks

Sure thing.

Say you have the 'Daily Login' event set up twice:

Daily Login:
Values:
+ Credits: 10
+ Another Currency: 20
Priority 10
Usergroups: All

Daily Login:
Values:
+ Credits: 1000
+ Another Currency: 2000
Priority 20
Usergroups: Premium Only

Someone in the 'Premium' and 'Registered' group logs in for the first time today and they get:
Credits: 1000
Another Currency: 2000

Someone in the 'Registered' and 'Moderating' group logs in for the first time today and they get:
Credits: 10
Another Currency: 20

Hope that makes sense, I'm terrible at explaining things :)
 
All right, wasn't sure if the registered+premium user would get 1010 credits and 2020 "whatever else."
Makes sense, thank you! (y)
 
Top Bottom