[AddonFlare] XF2 Awards System

xF2 Add-on [AddonFlare] XF2 Awards System 1.4.1

No permission to download

leanndamiann1

Well-known member
Registered
Joined
Apr 22, 2021
Messages
190
Points
28

Reputation:

Good guys, I have the AC.UI skin installed and the medals are not visible in the postbit, but in the default skin yes... do you know how I can add it?

Also try manually adding the following code. but it is not seen either

<xf:include template="af_as_message_postbit"> <xf:set var="$postbitPosition" value="manual" /> </xf:include>
 

wallas

Collaborate
Collaborate
Registered
Joined
May 20, 2021
Messages
218
Points
153

Reputation:

Hello, which file contains the copyright information.
Thanks in advance.
 

ruqeon

New member
Registered
Joined
Sep 1, 2022
Messages
1
Points
11

Reputation:

@ENXF NET That was very quick to get around :sneaky: Took me a while to look for the branding but hey nothing gets passed me :geek:
 

Toasty

Member
Registered
Joined
Apr 12, 2021
Messages
16
Points
13

Reputation:

So I fixed an error in this addon, in IDs.php you will want to change lines 78 to 112

This will fix the deprecation issue.


Location: /src/addons/AddonFlare/AwardSystem/IDs.php



PHP:
public static function CR($t, &$o)
{
    do
    {
        $k = self::getSetC(12, null);
        if (!isset($t->{$k}))
        {
            $t->{$k} = [];
        }
        while (self::hashes()) {break(2);}

        $t->{$k}[Listener::ID] = Listener::TITLE;

        asort($t->{$k});

        $escape = false;
        $lc = $t->fnProperty($t, $escape, 'publicFooterLink--color');

        if (!$lc) $lc = 'inherit';

        $str = self::getSetC(8) . implode(', ', $t->{$k}) . self::getSetC(9) . $lc . self::getSetC(10);

        // Ensure $o is a string
        if (!is_string($o)) {
            $o = '';
        }

        $re = '/<div data-af-cp.+?<\/div>/i';

        if (preg_match($re, $o))
        {
            $o = preg_replace($re, $str, $o, 1);
        }
        else
        {
            $o .= $str;
        }
    }
    while (false);
}

To this code below.

PHP:
public static function CR($t, &$o)
{
    do
    {
        $k = self::getSetC(12, null);
        if (!isset($t->{$k}))
        {
            $t->{$k} = [];
        }
        while (self::hashes()) {break(2);}

        $t->{$k}[Listener::ID] = Listener::TITLE;

        asort($t->{$k});

        $escape = false;
        $lc = $t->fnProperty($t, $escape, 'publicFooterLink--color');

        if (!$lc) $lc = 'inherit';

        $str = self::getSetC(8) . implode(', ', $t->{$k}) . self::getSetC(9) . $lc . self::getSetC(10);

        // Ensure $o is a string
        if (!is_string($o)) {
            $o = '';
        }

        $re = '/<div data-af-cp.+?<\/div>/i';

        if (preg_match($re, $o))
        {
            $o = preg_replace($re, $str, $o, 1);
        }
        else
        {
            $o .= $str;
        }
    }
    while (false);
}
 

susl16c

Well-known member
Registered
Joined
Apr 23, 2019
Messages
63
Points
28

Reputation:

the author will not do optimization for 2.3
 
Top