Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Not compatible with Yaga 1.0.3, patch attached

bfcambfcam New
edited June 2015 in Vanilla 2.0 - 2.8

Two problems.

  1. $Badge['Photo'] now provides a valid relative url so we can just use as is whether the badge is a default image or an uploaded image.

  2. yaga badge details are now located at yaga/badges/detail and not badges/detail

-- class.YagaDiscussionHeaderBadges.plugin.php
+++ class.YagaDiscussionHeaderBadges.plugin.php
@@ -35,9 +35,9 @@
        foreach($Badges as $Badge) {
                echo Anchor(
-                               Gdn_Upload::Url($Badge['Photo'])
+                $Badge['Photo']
-                       'badges/detail/' . $Badge['BadgeID'] . '/' . Gdn_Format::Url($Badge['Name']),
+                       'yaga/badges/detail/' . $Badge['BadgeID'] . '/' . Gdn_Format::Url($Badge['Name']),
                        array('title' => $Badge['Name']),
                        array('class' => 'DiscussionHeaderBadge')


  • Options

    Actually I believe an even more appropriate URL for the badge detail is:

    'yaga/badges/' . $Badge['BadgeID'] . '/' . Gdn_Format::Url($Badge['Name'])

    as it provides information on the individual badge clicked.

  • Options

    Has this been resolved, @bfcam?

Sign In or Register to comment.