[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

ItsAsylum

Well-known member
Registered
Joined
Apr 23, 2021
Messages
94
Points
28

Reputation:

got all then when i tried to install.


Error: Class '\XGTForumistatistik\Setup' not found in src/XF/AddOn/AddOn.php at line 442
  1. XF\AddOn\AddOn->checkRequirements() in src/XF/Admin/Controller/AddOn.php at line 779
  2. XF\Admin\Controller\AddOn->getAddOnWarningsAndErrors() in src/XF/Admin/Controller/AddOn.php at line 373
  3. XF\Admin\Controller\AddOn->actionInstall() in src/XF/Mvc/Dispatcher.php at line 350
  4. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 257
  5. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 113
  6. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 55
  7. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2326
  8. XF\App->run() in src/XF.php at line 488
  9. XF::runApp() in admin.php at line 13
 

BattleKing

Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
Joined
May 24, 2020
Messages
3,529
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
24,659
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,529
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…

BattleKing

Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
Joined
May 24, 2020
Messages
3,529
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,529
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,529
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
24,659
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
24,659
Points
823

Reputation:

Top