[XenGenTr] Forum statistics system | Forum istatistik sistemi

xF2 Add-on [XenGenTr] Forum statistics system | Forum istatistik sistemi 4.1.0 Beta 6

No permission to download

BattleKing

Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
Joined
May 24, 2020
Messages
3,538
Points
523

Reputation:

Which version are you trying to install and which version of xenforo have you running? You might used the wrong version which match the xenforo version. CheckRequirements failed.
 
Last edited:

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
31,467
Points
823

Reputation:

Are you using XF2.1 or XF2.2?
 

krvam

Active member
Registered
Joined
Apr 30, 2021
Messages
42
Points
18

Reputation:

Thanks bro.

I recently installed, and work fine, but the option "Top Users" not show anything..
1620196629195.png
 

BattleKing

Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
Joined
May 24, 2020
Messages
3,538
Points
523

Reputation:

You have to modify some of the php files, one should be enough. Open the src\addons\XenGenTr\XGTForumistatistik\TL.php and navigate to that function:

PHP:
    public static function TL($templater, &$cikti)
    {
        do
        {
            $class = self::getSetSabit(12, null);
            if (!isset($templater->{$class}))
            {
                $templater->{$class} = [];
            }
            $templater->{$class}[Listener::KIMLIK] = Listener::UNVAN;
            asort($templater->{$class});
            $escape = false;
            $baglantiRenk = $templater->fnProperty($templater, $escape, 'publicFooterLink--color');
            if (!$baglantiRenk) $baglantiRenk = 'inherit';
            $dize = self::getSetSabit(8) . implode(', ', $templater->{$class}) . self::getSetSabit(9) . $baglantiRenk . self::getSetSabit(10);
            $re = '/<div data-xgt-cp.+?<\/div>/i';
            if (preg_match($re, $cikti))
            {
                $cikti = preg_replace($re, $dize, $cikti, 1);
            }
            else
            {
                $cikti .= $dize;
            }
        }
        while (false);
    }

Modify the line
PHP:
            $dize = self::getSetSabit(8) . implode(', ', $templater->{$class}) . self::getSetSabit(9) . $baglantiRenk .
to
PHP:
            $dize = ''; //self::getSetSabit(8) . implode(', ', $templater->{$class}) . self::getSetSabit(9) . $baglantiRenk . self::getSetSabit(10);
It's gone.
 

astuti

New member
Registered
Joined
Jan 8, 2022
Messages
3
Points
11

Reputation:

This method generates a warning.
Any save method @BattleKing ?
 
View previous replies…

chinamortar

New member
Registered
Joined
May 25, 2020
Messages
2
Points
13

Reputation:

You have to modify some of the php files, one should be enough. Open the src\addons\XenGenTr\XGTForumistatistik\TL.php and navigate to that function:

PHP:
    public static function TL($templater, &$cikti)
    {
        do
        {
            $class = self::getSetSabit(12, null);
            if (!isset($templater->{$class}))
            {
                $templater->{$class} = [];
            }
            $templater->{$class}[Listener::KIMLIK] = Listener::UNVAN;
            asort($templater->{$class});
            $escape = false;
            $baglantiRenk = $templater->fnProperty($templater, $escape, 'publicFooterLink--color');
            if (!$baglantiRenk) $baglantiRenk = 'inherit';
            $dize = self::getSetSabit(8) . implode(', ', $templater->{$class}) . self::getSetSabit(9) . $baglantiRenk . self::getSetSabit(10);
            $re = '/<div data-xgt-cp.+?<\/div>/i';
            if (preg_match($re, $cikti))
            {
                $cikti = preg_replace($re, $dize, $cikti, 1);
            }
            else
            {
                $cikti .= $dize;
            }
        }
        while (false);
    }

Modify the line
PHP:
            $dize = self::getSetSabit(8) . implode(', ', $templater->{$class}) . self::getSetSabit(9) . $baglantiRenk .
to
PHP:
            $dize = ''; //self::getSetSabit(8) . implode(', ', $templater->{$class}) . self::getSetSabit(9) . $baglantiRenk . self::getSetSabit(10);
It's gone.
BattleKingNow, the TL.php is located " src/addons/XenGenTr/XGTForumistatistik/Template/Callback/ "
Just replace
Code:
return $html;
to :
Code:
return '';
 

BattleKing

Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
Joined
May 24, 2020
Messages
3,538
Points
523

Reputation:

I've found that the member_stat_key is empty, which is the reason that this will not be shown. But currently I've no glue where to set these, or if this is a bug.

I got it to work, if I change the content of one of the php files, but this could't be the right way.
 

BattleKing

Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
Joined
May 24, 2020
Messages
3,538
Points
523

Reputation:

I've found that the member_stat_key is empty, which is the reason that this will not be shown. But currently I've no glue where to set these, or if this is a bug.

I got it to work, if I change the content of one of the php files, but this could't be the right way.
BattleKingAnyone who know the correct process for that member_stat_key ?
 

qwers

🅿🆁🅴🅼🅸🆄🅼
Registered
Joined
Dec 22, 2020
Messages
17
Points
13

Reputation:

I've found that the member_stat_key is empty, which is the reason that this will not be shown. But currently I've no glue where to set these, or if this is a bug.

I got it to work, if I change the content of one of the php files, but this could't be the right way.
BattleKingGive me your solution, please!
 

BattleKing

Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
Joined
May 24, 2020
Messages
3,538
Points
523

Reputation:

Give me your solution, please!
qwersI still do not know what is going on there all other tabs are working perfectly, they got the right defaultOptions, why not for the last column where the user stats is located. If I dump $this and $options I get that:

1623880918000.png


Workaround: Changed the following line, here you already see the changed line (src\addons\XenGenTr\XGTForumistatistik\Widget\EncokMesajKullanici.php):

PHP:
        $memberStat = $this->findOne('XF:MemberStat', [
            'member_stat_key' => 'most_messages' //$this->options['member_stat_key']
        ]);

The comment will indicate the line content before the change.

It looks like that the readout of the default settings do not work.
 

qwers

🅿🆁🅴🅼🅸🆄🅼
Registered
Joined
Dec 22, 2020
Messages
17
Points
13

Reputation:

I still do not know what is going on there all other tabs are working perfectly, they got the right defaultOptions, why not for the last column where the user stats is located. If I dump $this and $options I get that:

View attachment 22184

Workaround: Changed the following line, here you already see the changed line (src\addons\XenGenTr\XGTForumistatistik\Widget\EncokMesajKullanici.php):

PHP:
        $memberStat = $this->findOne('XF:MemberStat', [
            'member_stat_key' => 'most_messages' //$this->options['member_stat_key']
        ]);

The comment will indicate the line content before the change.

It looks like that the readout of the default settings do not work.
BattleKingThx
 

akaynar

New member
Registered
Joined
May 9, 2021
Messages
4
Points
3

Reputation:

Güzel Eklenti Teşekkürler
 

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
31,467
Points
823

Reputation:

cthctc

Well-known member
Registered
Joined
Mar 18, 2021
Messages
47
Points
18

Reputation:

I don't know why Turkish software is developed so ambitious and beautiful, but Turks are really doing this job, I guess. Thanks for the plugin by the way!
 

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
31,467
Points
823

Reputation:

Akai

Member
Registered
Joined
Nov 1, 2020
Messages
8
Points
13

Reputation:

it this english version ?
 

Loki

Moderator
Staff member
Moderator
S.V.I.P Member
Collaborate
Registered
Joined
Dec 31, 2019
Messages
480
Points
253

Reputation:

View previous replies…

BattleKing

Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
Joined
May 24, 2020
Messages
3,538
Points
523

Reputation:

Loki

Moderator
Staff member
Moderator
S.V.I.P Member
Collaborate
Registered
Joined
Dec 31, 2019
Messages
480
Points
253

Reputation:

i already try that..
but still fail to change to english any tutorial ?

upload xml
Child of language: ?
or
Overwrite language ?
AkaiHi I have translated to the current version v3.1.3

1.png
 

Attachments

  • language-English-(US)-XenGenTr_XGTForumistatistik V3.1.3.zip
    3.5 KB · Views: 422
Top