Master Badge [Paid] [Deleted]

Well this is how it is working on my setup

Badges And Trophies
I noticed categories in some of the original pictures shared by the programmer but haven't discovered how to group my badges yet. They are all listed under "uncategorized" in the ACP currently. Do you think that is why I can't click anywhere in the badges tab to view all available badges?
 
I noticed categories in some of the original pictures shared by the programmer but haven't discovered how to group my badges yet. They are all listed under "uncategorized" in the ACP currently. Do you think that is why I can't click anywhere in the badges tab to view all available badges?

That actual phrase used here is a bit confusing :D

If you go to your ACP - Trophy setting you have the two options, create new trophy and create new badge. The create new badge is actually the category option that you looking for (y)
 
That actual phrase used here is a bit confusing :D

If you go to your ACP - Trophy setting you have the two options, create new trophy and create new badge. The create new badge is actually the category option that you looking for (y)
Ah, thank you :)
 
@Milano

I want to display the user's level in messageuserinfo... I have no idea what variable I need to display though. Would it be something like $userlevel?

Edit: Also, which template is the Level displayed on the member card located in?
 
@Milano

I want to display the user's level in messageuserinfo... I have no idea what variable I need to display though. Would it be something like $userlevel?

Edit: Also, which template is the Level displayed on the member card located in?

You can use the helper

Code:
{xen:helper userLevelHtml, $user}

in message_user_info. And about the member card, it's template modification.
 
Getting this error now that I've added that snippet to message_user_info...

ErrorException: array_slice() expects parameter 1 to be array, integer given - library/MasterBadge/Helper/Level.php:191
Generated By: Unknown Account, Today at 8:48 PM
Stack Trace
#0 [internal function]: XenForo_Application::handlePhpError(2, 'array_slice() e...', '/home/admin/web...', 191, Array)
#1 /home/admin/web/planesofchaos.com/public_html/library/MasterBadge/Helper/Level.php(191): array_slice(2, -1, 1, true)
#2 /home/admin/web/planesofchaos.com/public_html/library/MasterBadge/CronEntry/Level.php(7): MasterBadge_Helper_Level::rebuildLevelCache()
#3 [internal function]: MasterBadge_CronEntry_Level::runDaily(Array)
#4 /home/admin/web/planesofchaos.com/public_html/library/XenForo/Model/Cron.php(357): call_user_func(Array, Array)
#5 /home/admin/web/planesofchaos.com/public_html/library/XenForo/Deferred/Cron.php(24): XenForo_Model_Cron->runEntry(Array)
#6 /home/admin/web/planesofchaos.com/public_html/library/XenForo/Model/Deferred.php(294): XenForo_Deferred_Cron->execute(Array, Array, 7.9999978542328, '')
#7 /home/admin/web/planesofchaos.com/public_html/library/XenForo/Model/Deferred.php(428): XenForo_Model_Deferred->runDeferred(Array, 7.9999978542328, '', false)
#8 /home/admin/web/planesofchaos.com/public_html/library/XenForo/Model/Deferred.php(373): XenForo_Model_Deferred->_runInternal(Array, NULL, '', false)
#9 /home/admin/web/planesofchaos.com/public_html/deferred.php(23): XenForo_Model_Deferred->run(false)
#10 {main}
Request State
array(3) {
["url"] => string(37) "http://planesofchaos.com/deferred.php"
["_GET"] => array(0) {
}
["_POST"] => array(4) {
["_xfRequestUri"] => string(19) "/forums/newmembers/"
["_xfNoRedirect"] => string(1) "1"
["_xfToken"] => string(8) "********"
["_xfResponseType"] => string(4) "json"
}
}

@Milano
 
@Milano

When I try, it gives me this error. I was unable to rebuild.

Server Error
array_slice() expects parameter 1 to be array, integer given

  1. XenForo_Application::handlePhpError()
  2. array_slice() in MasterBadge/Helper/Level.php at line 191
  3. MasterBadge_Helper_Level::rebuildLevelCache() in MasterBadge/Deferred/Badge.php at line 20
  4. MasterBadge_Deferred_Badge->execute() in XenForo/Model/Deferred.php at line 294
  5. XenForo_Model_Deferred->runDeferred() in XenForo/Model/Deferred.php at line 428
  6. XenForo_Model_Deferred->_runInternal() in XenForo/Model/Deferred.php at line 373
  7. XenForo_Model_Deferred->run() in XenForo/ControllerAdmin/Tools.php at line 159
  8. XenForo_ControllerAdmin_Tools->actionRunDeferred() in XenForo/FrontController.php at line 347
  9. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
XenForo_FrontController->run() in /home/admin/web/planesofchaos.com/public_html/admin.php at line 13
 
Hmm, that's weird, i never saw this error before, how can it be integer instead of array. Please upload and overwrite this file with the existing on your server (library/MasterBadge/Helper/Lever.php) and try to rebuild again.
 

Attachments

Hello Milano.
I'm considering purchasing this addon. I have a question:
Using this addon increase the number of db queries in homepage?
I'm using another to handle trophies and increase 4 queries.
 
Hello Milano.
I'm considering purchasing this addon. I have a question:
Using this addon increase the number of db queries in homepage?
I'm using another to handle trophies and increase 4 queries.
same question from me.
 
Hey Milano, great add-on. Right now a user can only see the badges that he has at least one trophy for. I think everyone should be able to see all available trophies and badges no matter if your score is 0.

Also there should be permissions to turn this off for users.
 
Last edited:
@Milano I installed the lates version you sent us yesterday I think it was and now I am running the following errors

Code:
Server Error Log
Error Info
ErrorException: Argument 1 passed to MasterBadge_Model_Trophy::getLatestAwarded() must be of the type array, string given, called in /home4/davem/public_html/library/MasterBadge/ControllerPublic/Badge.php on line 29 and defined - library/MasterBadge/Model/Trophy.php:65
Generated By: Unknown Account, 54 minutes ago
Stack Trace

#0 /home4/davem/public_html/library/MasterBadge/Model/Trophy.php(65): XenForo_Application::handlePhpError(4096, 'Argument 1 pass...', '/home4/davem/pu...', 65, Array)
#1 /home4/davem/public_html/library/MasterBadge/ControllerPublic/Badge.php(29): MasterBadge_Model_Trophy->getLatestAwarded('20')
#2 /home4/davem/public_html/library/XenForo/FrontController.php(347): MasterBadge_ControllerPublic_Badge->actionIndex()
#3 /home4/davem/public_html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#4 /home4/davem/public_html/index.php(13): XenForo_FrontController->run()
#5 {main}

Request State

array(3) {
  ["url"] => string(38) "http://mycatchat.com/badges/threads.1/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
@Milano I installed the lates version you sent us yesterday I think it was and now I am running the following errors

Code:
Server Error Log
Error Info
ErrorException: Argument 1 passed to MasterBadge_Model_Trophy::getLatestAwarded() must be of the type array, string given, called in /home4/davem/public_html/library/MasterBadge/ControllerPublic/Badge.php on line 29 and defined - library/MasterBadge/Model/Trophy.php:65
Generated By: Unknown Account, 54 minutes ago
Stack Trace

#0 /home4/davem/public_html/library/MasterBadge/Model/Trophy.php(65): XenForo_Application::handlePhpError(4096, 'Argument 1 pass...', '/home4/davem/pu...', 65, Array)
#1 /home4/davem/public_html/library/MasterBadge/ControllerPublic/Badge.php(29): MasterBadge_Model_Trophy->getLatestAwarded('20')
#2 /home4/davem/public_html/library/XenForo/FrontController.php(347): MasterBadge_ControllerPublic_Badge->actionIndex()
#3 /home4/davem/public_html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#4 /home4/davem/public_html/index.php(13): XenForo_FrontController->run()
#5 {main}

Request State

array(3) {
  ["url"] => string(38) "http://mycatchat.com/badges/threads.1/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

How do you get to that page. It's still a WIP.
 
Back
Top Bottom