DaveM
Well-known member
How do you get to that page. It's still a WIP.
I am not sure what you mean here?
How do you get to that page. It's still a WIP.
I am having an issue with the featured badges. I have 3 badges features in this particular order. However, when I save it the order changes. Look at the example below.
Any ideas how to fix this?
View attachment 102934
I am not sure what you mean here?
ErrorException: Argument 1 passed to MasterBadge_Model_Trophy::getLatestAwarded() must be of the type array, string given, called in /var/www/vhosts/wweforums.net/httpdocs/library/MasterBadge/ControllerPublic/Badge.php on line 29 and defined - library/MasterBadge/Model/Trophy.php:65
Generated By: Unknown Account, Yesterday at 11:02 PM
#0 /var/www/vhosts/wweforums.net/httpdocs/library/MasterBadge/Model/Trophy.php(65): XenForo_Application::handlePhpError(4096, 'Argument 1 pass...', '/var/www/vhosts...', 65, Array)
#1 /var/www/vhosts/wweforums.net/httpdocs/library/MasterBadge/ControllerPublic/Badge.php(29): MasterBadge_Model_Trophy->getLatestAwarded('20')
#2 /var/www/vhosts/wweforums.net/httpdocs/library/XenForo/FrontController.php(347): MasterBadge_ControllerPublic_Badge->actionIndex()
#3 /var/www/vhosts/wweforums.net/httpdocs/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#4 /var/www/vhosts/wweforums.net/httpdocs/index.php(13): XenForo_FrontController->run()
#5 {main}
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, Today at 3:28 AM
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/gallery.5/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
Delete... Close
Bug fixes
Milano updated Master Badge with a new update entry:
Bug fixes
Read the rest of this update entry...
You will receive your update via your email that you use to purchase this add-on. This may take awhile (~ 15 mins), please be patient.
@Milano there seems to be some problem with the member levels calculations.
I set it, for example, to "The amount needed to level up increases 50 point(s) every level", but whatever the increase is - the members with more than 1000 points get super high levels.
See here, everything above 778 points is incorrectly calculcated and stays the same whatever the point increase in the options is.
Thanks, it worked!Please go to Admin CP -> Tools and rebuild the Badges and Trophies cache.
You can use the helper
Code:{xen:helper userLevelHtml, $user}
in message_user_info.
Thanks, it worked!
Is there a way change colors of those level circles? Or level ranges for specific colors?
@Russ That's correct
That was my bad, actually it was userLevelHtml helper, the helper levelHtml need the trophy_points value.
I already apply the level class to level but i think it not what you want, currently it works this way
Lv 10 ~ 19: userLevel lvl_10
Lv 20 ~ 29: userLevel lvl_20
Lv 30 ~ 39: userLevel lvl_30
...
Lv 90 ~ 99: userLevel lvl_90
Lvl 100 ~ 109: userLevel lvl_100 lvl_plus_0
Lvl 110 ~ 119: userLevel lvl_100 lvl_plus_10
Lv 120 ~ 129: userLevel lvl_100 lvl_plus_20
...
Lv 200 ~ 209: userLevel lvl_200 lvl_plus_0
Lv 210 ~ 219: userLevel lvl_200 lvl_plus_10
If you want to append level to level class open the MasterBadge_Core and find the function getLevelHtml and add
beforePHP:$levelClass .= 'lvl' . $level;
PHP:$class = htmlspecialchars(rtrim($levelClass));
View attachment 96960
I will apply this change to the next release and about the performance, i'm still working on it.
I tried adding this next to <xen:username user="$user" itemprop="name" rich="true" /> but got nothing. Any idea?
We use essential cookies to make this site work, and optional cookies to enhance your experience.