Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product
Vanilla 2.6 is here! It includes security fixes and requires PHP 7.0. We have therefore ALSO released Vanilla 2.5.2 with security patches if you are still on PHP 5.6 to give you additional time to upgrade.
Please upgrade to 2.3 here. The 2.2 and earlier branches are no longer being updated.

Not compatible with Yaga 1.0.3, patch attached

This discussion is related to the YagaDiscussionHeaderBadges addon.
bfcambfcam New
edited June 2015 in Vanilla 2.0 - 2.3

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')


Sign In or Register to comment.