[bd] Medal

[bd] Medal 1.5.5b

No permission to download
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.
 
Hi, I have this error when I try to install the addon by AdminCP:

copy(/var/www/html/internal_data/1418425049demo1.png): failed to open stream: Permission denied

  1. XenForo_Application::handlePhpError()
  2. copy() in bdMedal/Installer.php at line 206
  3. bdMedal_Installer::_installDemoData() in bdMedal/Installer.php at line 139
  4. bdMedal_Installer::installCustomized() in bdMedal/Installer.php at line 103
  5. bdMedal_Installer::install()
  6. call_user_func() in XenForo/Model/AddOn.php at line 215
  7. XenForo_Model_AddOn->installAddOnXml() in XenForo/Model/AddOn.php at line 169
  8. XenForo_Model_AddOn->installAddOnXmlFromFile() in XenForo/ControllerAdmin/AddOn.php at line 187
  9. XenForo_ControllerAdmin_AddOn->actionInstall() in XenForo/FrontController.php at line 347
  10. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
  11. XenForo_FrontController->run() in /var/www/html/admin.php at line 13
Can you help me, pleasE?
 
Hello,

What to change in this template so that the "medal" link at the top navigation bar won't show?
Code:
<xen:if is="{xen:helper bdMedal_getOption, listPage} == 'help'"><li><a href="{xen:link help/medals}">{xen:phrase bdmedal_medals}</a></li></xen:if>
 
Hi, I have this error when I try to install the addon by AdminCP:

copy(/var/www/html/internal_data/1418425049demo1.png): failed to open stream: Permission denied

  1. XenForo_Application::handlePhpError()
  2. copy() in bdMedal/Installer.php at line 206
  3. bdMedal_Installer::_installDemoData() in bdMedal/Installer.php at line 139
  4. bdMedal_Installer::installCustomized() in bdMedal/Installer.php at line 103
  5. bdMedal_Installer::install()
  6. call_user_func() in XenForo/Model/AddOn.php at line 215
  7. XenForo_Model_AddOn->installAddOnXml() in XenForo/Model/AddOn.php at line 169
  8. XenForo_Model_AddOn->installAddOnXmlFromFile() in XenForo/ControllerAdmin/AddOn.php at line 187
  9. XenForo_ControllerAdmin_AddOn->actionInstall() in XenForo/FrontController.php at line 347
  10. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
  11. XenForo_FrontController->run() in /var/www/html/admin.php at line 13
Can you help me, pleasE?
This is a server config issue.

You will need to ensure the user your webserver/php-fpm runs XenForo as has write access and owns the contents of /var/www/html/
 
Has this been tested on larger forums to see how much impact there is on performance? When are queries affected? Is it just when viewing a thread?
It adds an extra filed to the user table which is deserialized once per post in a thread, without any extra database queries.

As this has XF 1.1 support, it doesn't use event hints. It would be nice if @xfrocks dropped v1.1 support for some of the performance improvements when having lots of addons.

I've using a tuned .xml with the following hints:
Code:
  <code_event_listeners>
  <listener event_id="init_dependencies" execute_order="10" callback_class="bdMedal_Listener" callback_method="init_dependencies" active="1" hint="" description=""/>

  <listener event_id="load_class_controller" execute_order="10" callback_class="bdMedal_Listener" callback_method="load_class" active="1" hint="XenForo_ControllerPublic_Account" description=""/>
  <listener event_id="load_class_controller" execute_order="10" callback_class="bdMedal_Listener" callback_method="load_class" active="1" hint="XenForo_ControllerPublic_Member" description=""/>
  <listener event_id="load_class_controller" execute_order="10" callback_class="bdMedal_Listener" callback_method="load_class" active="1" hint="XenForo_ControllerPublic_Help" description=""/>
  <listener event_id="load_class_controller" execute_order="10" callback_class="bdMedal_Listener" callback_method="load_class" active="1" hint="XenForo_ControllerPublic_Thread" description=""/>
  <listener event_id="load_class_controller" execute_order="10" callback_class="bdMedal_Listener" callback_method="load_class" active="1" hint="XenForo_ControllerAdmin_User" description=""/>
  <listener event_id="load_class_importer" execute_order="10" callback_class="bdMedal_Listener" callback_method="load_class_importer" active="1" hint="" description=""/>
  <listener event_id="load_class_model" execute_order="10" callback_class="bdMedal_Listener" callback_method="load_class" active="1" hint="XenForo_Model_Import" description=""/>

  <listener event_id="navigation_tabs" execute_order="10" callback_class="bdMedal_Listener" callback_method="navigation_tabs" active="1" hint="" description=""/>
  <listener event_id="template_create" execute_order="10" callback_class="bdMedal_Listener" callback_method="template_create" active="1" hint="member_view" description=""/>
  <listener event_id="template_create" execute_order="10" callback_class="bdMedal_Listener" callback_method="template_create" active="1" hint="help_index" description=""/>
  <listener event_id="template_create" execute_order="10" callback_class="bdMedal_Listener" callback_method="template_create" active="1" hint="help_wrapper" description=""/>
  <listener event_id="template_create" execute_order="10" callback_class="bdMedal_Listener" callback_method="template_create" active="1" hint="PAGE_CONTAINER" description=""/>
  <listener event_id="template_create" execute_order="10" callback_class="bdMedal_Listener" callback_method="template_create" active="1" hint="tools_rebuild" description=""/>
  <listener event_id="template_hook" execute_order="10" callback_class="bdMedal_Listener" callback_method="template_hook" active="1" hint="bdmedal_message_medals_manual" description=""/>
  <listener event_id="template_hook" execute_order="10" callback_class="bdMedal_Listener" callback_method="template_hook" active="1" hint="member_view_sidebar_middle1" description=""/>
  <listener event_id="template_hook" execute_order="10" callback_class="bdMedal_Listener" callback_method="template_hook" active="1" hint="member_view_tabs_heading" description=""/>
  <listener event_id="template_hook" execute_order="10" callback_class="bdMedal_Listener" callback_method="template_hook" active="1" hint="member_view_tabs_content" description=""/>
  <listener event_id="template_hook" execute_order="10" callback_class="bdMedal_Listener" callback_method="template_hook" active="1" hint="help_index_extra" description=""/>
  <listener event_id="template_hook" execute_order="10" callback_class="bdMedal_Listener" callback_method="template_hook" active="1" hint="help_sidebar_links" description=""/>
  <listener event_id="template_hook" execute_order="10" callback_class="bdMedal_Listener" callback_method="template_hook" active="1" hint="navigation_tabs_help" description=""/>

  <listener event_id="template_hook" execute_order="10" callback_class="bdMedal_Listener" callback_method="template_hook" active="1" hint="message_user_info_text" description=""/>
  <listener event_id="template_hook" execute_order="10" callback_class="bdMedal_Listener" callback_method="template_hook" active="1" hint="message_user_info_extra" description=""/>

  <listener event_id="template_post_render" execute_order="10" callback_class="bdMedal_Listener" callback_method="template_post_render" active="1" hint="tools_rebuild" description=""/>
  </code_event_listeners>

:edit: missed on template_hooks.
 
Last edited:
I would like to see that feature in bd Medals. Allowing moderators to award medals from the front end of the forums rather than the admin CP.
 
Manual? No.
Any future plans for that? To have for example a button on the forums itself after Report -> "Award Medal"
54bb1fbc5d4176ab93fd50810ccd9569.png
 
Is there any way to edit the reason a medal is awarded without revoking and re-issuing said medal? I mass issued a medal and just now noticed a typo in my reason 0.o;;
 
Back
Top Bottom