[bd] Medal

[bd] Medal 1.5.5b

No permission to download
Thanks, great little addon. Is there any way to add a URL to the image used for the medal? In my case I'm using it for Patreon supporters but I want to make the medal image itself to be a URL to our Patreon page.

Thanks.
 
With PHP 7.2.0
I got this errors on top:
Template Errors: wf_widget_visitor_panel
Function create_function() is deprecated in /library/bdMedal/Model/Awarded.php, line 83
Function create_function() is deprecated in /library/bdMedal/Model/Awarded.php, line 112
 
With debug mode enabled.
PHP:
Server Error Log

Error Info
XenForo_Exception: No data - library/bdMedal/Helper/Template.php:84
Generated By: USER, 17 minutes ago

Stack Trace
#0 /library/bdMedal/Helper/Template.php(23): bdMedal_Helper_Template::_getCachedMedals(Array)
#1 /library/XenForo/Template/Abstract.php(330): bdMedal_Helper_Template::renderCachedMedals('\n\t\t\t\t<a href="{...', Array, Object(XenForo_Template_Public))
#2 /internal_data/templates/S.3,L.1,wf_widget_visitor_panel.php(68): XenForo_Template_Abstract->callTemplateCallback('bdMedal_Helper_...', 'renderCachedMed...', '\n\t\t\t\t<a href="{...', Array)
#3 /library/XenForo/Template/Abstract.php(260): include('/home/nginx/dom...')
#4 /library/XenForo/Template/Abstract.php(191): XenForo_Template_Abstract->_renderInternal('/home/nginx/dom...', Array)
#5 /library/XenForo/Template/Public.php(110): XenForo_Template_Abstract->render()
#6 /library/WidgetFramework/WidgetRenderer/VisitorPanel.php(31): XenForo_Template_Public->render()
#7 /library/WidgetFramework/WidgetRenderer.php(712): WidgetFramework_WidgetRenderer_VisitorPanel->_render(Array, 'thread_view', Array, Object(XenForo_Template_Public))
#8 /library/WidgetFramework/Core.php(519): WidgetFramework_WidgetRenderer->render(Array, 'thread_view', Array, Object(XenForo_Template_Public), Object(_WidgetFramework_ArrayOfString))
#9 /library/WidgetFramework/Core.php(481): WidgetFramework_Core->renderWidget(Array, 'thread_view', Array, Object(XenForo_Template_Public), Object(_WidgetFramework_ArrayOfString))
#10 /library/WidgetFramework/Core.php(448): WidgetFramework_Core->renderWidgets(Array, 'thread_view', Array, Object(XenForo_Template_Public), Object(_WidgetFramework_ArrayOfString))
#11 /library/WidgetFramework/Core.php(327): WidgetFramework_Core->_renderWidgetsFor('thread_view', Array, Object(XenForo_Template_Public), Object(_WidgetFramework_ArrayOfString))
#12 /library/WidgetFramework/Listener.php(121): WidgetFramework_Core->renderWidgetsFor('thread_view', Array, Object(XenForo_Template_Public), Array)
#13 /library/XenForo/CodeEvent.php(58): WidgetFramework_Listener::template_post_render('thread_view', '\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n...', Array, Object(XenForo_Template_Public))
#14 /library/XenForo/Template/Abstract.php(195): XenForo_CodeEvent::fire('template_post_r...', Array, 'thread_view')
#15 /library/XenForo/Template/Public.php(110): XenForo_Template_Abstract->render()
#16 /library/XenForo/ViewRenderer/HtmlPublic.php(124): XenForo_Template_Public->render()
#17 /library/XenForo/FrontController.php(639): XenForo_ViewRenderer_HtmlPublic->renderContainer(Object(XenForo_Template_Public), Array)
#18 /library/XenForo/FrontController.php(158): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_HtmlPublic), Array)
#19 /index.php(13): XenForo_FrontController->run()
#20 {main}

Request State
array(3) {
  ["url"] => string(70) "https://www.domain.com/t/thread-name.383928/"
  ["_GET"] => array(1) {
    ["/t/thread-name_383928/"] => string(0) ""
  }
  ["_POST"] => array(0) {
  }
}
@xfrocks is this fixed in the new version?
 
Can you update and enable the add-on to get a fresh stack trace?
Code:
#0 /home/adept/public_html/library/bdMedal/Helper/Template.php(8): bdMedal_Helper_Template::_getCachedMedals(Array)
#1 [internal function]: bdMedal_Helper_Template::getCachedMedalsCount('', Array, Object(XenForo_Template_Public))
#2 /home/adept/public_html/library/XenForo/Template/Abstract.php(330): call_user_func(Array, '', Array, Object(XenForo_Template_Public))
#3 /home/adept/public_html/library/XenForo/Template/Abstract.php(265) : eval()'d code(455): XenForo_Template_Abstract->callTemplateCallback('bdMedal_Helper_...', 'getCachedMedals...', '', Array)
#4 /home/adept/public_html/library/XenForo/Template/Abstract.php(265): eval()
#5 /home/adept/public_html/library/XenForo/Template/Abstract.php(191): XenForo_Template_Abstract->_renderInternal('$__output = '';...', Array)
#6 /home/adept/public_html/library/XenForo/Template/Public.php(110): XenForo_Template_Abstract->render()
#7 /home/adept/public_html/library/XenForo/ViewRenderer/HtmlPublic.php(124): XenForo_Template_Public->render()
#8 /home/adept/public_html/library/XenForo/FrontController.php(639): XenForo_ViewRenderer_HtmlPublic->renderContainer(Object(XenForo_Template_Public), Array)
#9 /home/adept/public_html/library/XenForo/FrontController.php(158): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_HtmlPublic), Array)
#10 /home/adept/public_html/index.php(13): XenForo_FrontController->run()
#11 {main}
 
@xfrocks Please let me know that this add-on database table name? If we choose to uninstall a legacy add-on from XF2 and any database alterations will remain. Database table need to remove manually.

Read more here: https://xenforo.com/community/threads/xf1-add-ons-uninstalling.138080/

You can check the tables and columns here https://github.com/xfrocks/bdMedal/blob/master/library/bdMedal/Installer.php. List of tables:
  • xf_bdmedal_category
  • xf_bdmedal_medal
  • xf_bdmedal_awarded
And one column in xf_user: xf_bdmedal_awarded_cached
 
Top Bottom