Zynektic
Well-known member
So your CSS class conflicts with the add-on class. You should use another class for your rules. I suggest using "medal". It should work
Solved, cheers!
So your CSS class conflicts with the add-on class. You should use another class for your rules. I suggest using "medal". It should work
Please try with@xfrocks Custom location appears to no longer function in the new version...
Selecting "manual position" in options, and adding:
into the message_user_info template isn't working anymore for me?PHP:<xen:include template="bdmedal_message_medals_manual" />
<xen:include template="bdmedal_message_medals" />
Please try with
Code:<xen:include template="bdmedal_message_medals" />
It should work.
Good idea. Just updated itWorked, just make sure to update that description blurb in the admincp medal options!
<listener event_id="load_class" execute_order="10" callback_class="bdMedal_Listener" callback_method="load_class" active="1" hint="XenForo_ControllerAdmin_User" description=""/>
<listener event_id="load_class" execute_order="10" callback_class="bdMedal_Listener" callback_method="load_class" active="1" hint="XenForo_ControllerPublic_Account" description=""/>
<listener event_id="load_class" execute_order="10" callback_class="bdMedal_Listener" callback_method="load_class" active="1" hint="XenForo_ControllerPublic_Member" description=""/>
<listener event_id="load_class" execute_order="10" callback_class="bdMedal_Listener" callback_method="load_class" active="1" hint="XenForo_ControllerPublic_Help" description=""/>
<listener event_id="load_class" execute_order="10" callback_class="bdMedal_Listener" callback_method="load_class" active="1" hint="XenForo_ControllerPublic_Thread" description=""/>
<listener event_id="load_class" execute_order="10" callback_class="bdMedal_Listener" callback_method="load_class" active="1" hint="XenForo_Model_Import" description=""/>
public static function load_class($class, array &$extend)
{
$extend[] = str_replace('XenForo_', 'bdMedal_Extend_', $class);
}
Works great now, Thanks!Sorry I was testing with a development version. Please upgrade to v1.5.0 (just released), your existing template modification should work.
You enable it first per Usergroup then you can award medals on profile page.So how does this new function work exactly?:
Added support for front end awarding
BrilliantYou enable it first per Usergroup then you can award medals on profile page.
Mostly out of habit@xfrocks is there any reason you don't use event hints?
With the following hints;
Code:<listener event_id="load_class" execute_order="10" callback_class="bdMedal_Listener" callback_method="load_class" active="1" hint="XenForo_ControllerAdmin_User" description=""/> <listener event_id="load_class" execute_order="10" callback_class="bdMedal_Listener" callback_method="load_class" active="1" hint="XenForo_ControllerPublic_Account" description=""/> <listener event_id="load_class" execute_order="10" callback_class="bdMedal_Listener" callback_method="load_class" active="1" hint="XenForo_ControllerPublic_Member" description=""/> <listener event_id="load_class" execute_order="10" callback_class="bdMedal_Listener" callback_method="load_class" active="1" hint="XenForo_ControllerPublic_Help" description=""/> <listener event_id="load_class" execute_order="10" callback_class="bdMedal_Listener" callback_method="load_class" active="1" hint="XenForo_ControllerPublic_Thread" description=""/> <listener event_id="load_class" execute_order="10" callback_class="bdMedal_Listener" callback_method="load_class" active="1" hint="XenForo_Model_Import" description=""/>
And then your load_class function can be just simplified to:
Code:public static function load_class($class, array &$extend) { $extend[] = str_replace('XenForo_', 'bdMedal_Extend_', $class); }
Hmm, what are you referring too?Is this a bug?
If a user is not awarded any medal:
View attachment 103734
If awarded:
View attachment 103735
View attachment 103736
I've create a pull request to add event hints & simplify the load_class method; https://github.com/xfrocks/bdMedal/pull/1Mostly out of habit
UPDATE to the above:
When I click the pulldown next to the username that has the medal "Reverse Award", I get the error above.
If instead I click the "X" next the username, then click the "Reverse Award" in the popup modal, I get the error:
"This medal has not been awarded to anybody yet." If I refresh the page, the award is gone.
So, it seems like the "Reverse Award" through the pulldown doesn't work, but the "reverse award" process using the "X" works, but still throws an error.
We use essential cookies to make this site work, and optional cookies to enhance your experience.