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
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.2

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(
                        Img(
-                               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')
                );
Bleistivt

Comments

Sign In or Register to comment.