24 Hour Activity Stats

Show Stats only to Administrator - 24 Hour Activity Stats

Show Stats only to Administrator

by harris1 » Sun Jul 17, 2016 12:00 am

Hi rmcgirr83:

I've been wanting to see a statistics section like your extension for a while, so, thank you for providing this! It looks great and very helpful for mods and admins of Forums.

I have one request, if possible, is there a way to make the statistics section visible to Administrator user only? Please let me know how to do this.

Thanks in advance.
harris1
Registered User
Posts: 39
Joined: Thu Mar 13, 2014 11:31 am
Contact:

Re: Show Stats only to Administrator

by RMcGirr83 » Sun Jul 17, 2016 2:22 am

Sure :)

Find this line in the listener file

Code: Select all


        
// if the user is a bot
        
if ($this->user->data['is_bot'])
        {
            return;
        }      


change it to this

Code: Select all


        
// if the user is a bot
        
if ($this->user->data['is_bot'] || !$this->auth->acl_get('a_'))
        {
            return;
        }      
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored
User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: Show Stats only to Administrator

by harris1 » Sun Jul 17, 2016 9:11 am

You are the best! Thank you!

p.s. I expect from you something like this. https://www.phpbb.com/customise/db/mod/ ... pic/148011 (Advanced Block)
harris1
Registered User
Posts: 39
Joined: Thu Mar 13, 2014 11:31 am
Contact:

Re: Show Stats only to Administrator

by RMcGirr83 » Sun Jul 17, 2016 10:23 am

Uhmmm, yeah no.

That mod was ungodly huge and in a bad way.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored
User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: Show Stats only to Administrator

by lopoto » Mon Jan 29, 2018 3:27 pm

THX. :ugeek:
User avatar
lopoto
Registered User
Posts: 107
Joined: Thu Feb 12, 2015 3:13 pm
Contact:

Re: Show Stats only to Administrator

by 3Di » Tue Jan 30, 2018 9:57 pm

Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
✒️ Black Friday 2019 @ The Studio ▪️◾️
User avatar
3Di
Former Team Member
Posts: 14459
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact: