Master Badge [Paid] [Deleted]

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?


badge-problem.webp
 
@Milano got a few of these errors earlier,

Code:
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

Code:
#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}
 
@Milano I am still running these 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, 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
 
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.
 
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.

Ok thanks no rush it just becomes confusing at times with all the developers having different methods of doing this lol
 
Import\export badges\trophies will be very useful and convenient! This is in your plans, @Milano?
I think about purchase this addon...
 
Hi there, I wondered if you would mind adding support for
Xenporta 2.0 for the Widget blocks

Also @Russ
I'm Currently running your Adara Skin, I wondered if you have added any support for this in the Xenbase, seeing
upload_2015-4-19_15-11-23.webp

Would it be possible to Reproduce something like this for MasterBadges

Allow the user to promote highlight 6 Badges, and show the level + exp towards next level below it or above it in the postbit

with love <3
//Nyx
 
Last edited:
@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.

 
@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.


Please go to Admin CP -> Tools and rebuild the Badges and Trophies cache.
 
Thanks, it worked!

Is there a way change colors of those level circles? Or level ranges for specific colors?

Yes you can do it with CSS. Please follow this guide
@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
PHP:
$levelClass .= 'lvl' . $level;
before
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?

Are you using Template Modification or edit the template manually?
 
Top Bottom