[Addon] Inactive Users MOD 2.0.2

Modules for the Admin Control Panel
Forum rules
Image Please feel free to download any MOD's here, support for each MOD is located it's own thread.

To post your own MOD, please first read the MOD Guidelines

Re: [Addon] Inactive Users MOD 2.0.2

Postby DirtyHarry » 08 Sep 2008, 03:51

Hi Waleed,

very nice Mod. Thanks!

I have made a German translation, if you want, you can include it in the next version.
I have uploaded it here.
I have uploaded an unicode version to preserve the German 'Umlaute'.

In the file acp_inactive_users.html I have changed the hard coded terms
registered -> {L_REGISTERED}
deactivated -> {L_DEACTIVATED}
I have already included them in my translation, it would be nice if you could change that too ... ;)
DirtyHarry
Crewman
Crewman
 
Posts: 3
Joined: 05 Sep 2008, 07:27
Gender: Male
phpBB Knowledge: 5




phpBB Academy at StarTrekGuide
Support STG
Using PayPal Donate

Re: [Addon] Inactive Users MOD 2.0.2

Postby Waleed » 08 Sep 2008, 05:50

Thanks for the translation! :hello:

I've added a link in the main post. You can also attach the translation here if you don't want to keep it up on your site. Of course, I'll include the file in the next release. :D
User avatar
Waleed
MOD Author
MOD Author
 
Posts: 672
Joined: 25 Jul 2006, 04:18
Location: Pakistan
Gender: Male
phpBB Knowledge: 6

Re: [Addon] Inactive Users MOD 2.0.2

Postby spacefish » 07 Oct 2008, 20:33

Hi Waleed. :)

Are you open to feature requests? It would be awesome to have an extra option, one where we can select users based on post count as well. We have a huge number of users who register but never post, or post once/twice and never return using that username so being able to sort based on for example : 0 posts + reg date (or last visit) means we could remove all those users who've had plenty of time to return - but haven't.

It can be done via the Prune Users option in ACP, but it's quite a process to get the users selected ... and if you have too many the script times out ...


BTW, making that change to includes/acp/acp_inactive_users.php over the page did he trick - thanks!
(and yes, it was timing out for deletions)
spacefish
Borg Drone
Borg Drone
 
Posts: 9
Joined: 29 Apr 2007, 14:58
Gender: Female

Re: [Addon] Inactive Users MOD 2.0.2

Postby DirtyHarry » 18 Dec 2008, 16:31

Hi folks,

does this mod work with the new phpBB version 3.0.4?
Has anyone already tested this?

Merry Christmas everybody ...
DirtyHarry
Crewman
Crewman
 
Posts: 3
Joined: 05 Sep 2008, 07:27
Gender: Male
phpBB Knowledge: 5

Re: [Addon] Inactive Users MOD 2.0.2

Postby Jaymie1989 » 18 Dec 2008, 16:36

DirtyHarry wrote:Hi folks,

does this mod work with the new phpBB version 3.0.4?
Has anyone already tested this?

Merry Christmas everybody ...


Yes it does work on phpBB3 3.0.4
For some reason all Waleed's MODs work for all phpBB3 versions :scratch: :D

Merry Christmas to you. :good:
Jaymie1989    
Supporter
Supporter
 
Posts: 1370
Joined: 30 Sep 2007, 15:51
Location: Some where in phpbb_users table
Favorite Team: Liverpool FC
Gender: Male
phpBB Knowledge: 5

Re: [Addon] Inactive Users MOD 2.0.2

Postby Waleed » 19 Dec 2008, 01:25

Jaymie1989 wrote:For some reason all Waleed's MODs work for all phpBB3 versions :scratch: :D


I'm surprised myself by that as well! I don't remember having to change anything because of a phpBB version change... that's a good thing! :D
User avatar
Waleed
MOD Author
MOD Author
 
Posts: 672
Joined: 25 Jul 2006, 04:18
Location: Pakistan
Gender: Male
phpBB Knowledge: 6

Re: [Addon] Inactive Users MOD 2.0.2

Postby bibleman » 31 Mar 2009, 23:55

Hi

I have installed this mod several months ago and it has always ran fine.

But just today it will NOT load.

When I click on the Inactive User Mod link in the admin here is the error that comes up.

Code: Select all
Fatal error: Non-static method acp_inactive_users::time_compare() cannot be called statically in /home/httpd/vhosts/dakebibleboard.com/httpdocs/includes/acp/acp_inactive_users.php on line 432


Anyone here got any ideas what may be going on or how to fix this?

Thanks
Leon
bibleman
Crewman
Crewman
 
Posts: 4
Joined: 08 Jan 2008, 21:44
Gender: Male

Re: [Addon] Inactive Users MOD 2.0.2

Postby Waleed » 01 Apr 2009, 02:34

Could this be due to an upgrade to PHP5? I've never seen that error before, but a bit of googling seems to point in that direction. :P

Could you make the following edits and see if these work?

FIND (line 432):
Code: Select all
'LAST_VISIT'   => time_compare($row['user_lastvisit']),

REPLACE WITH:
Code: Select all
'LAST_VISIT'   => $acp_inactive_users->time_compare($row['user_lastvisit']),


FIND (line 433):
Code: Select all
'S_ONLINE'      => ($config['load_onlinetrack'] && is_online($row['user_id'])) ? true : false,

REPLACE WITH:
Code: Select all
'S_ONLINE'      => false,


If anyone more experienced with PHP reads this, could you please advise? :hello: Attached is the PHP file in question. The function that's causing the problem is declared on line 165 and called on line 432. From what I can gather, the error is because PHP does not like it when I call the function without referring to the class it is in (which is class acp_inactive_users).
Attachments
inactive-202.txt
(16.23 KiB) Downloaded 35 times
User avatar
Waleed
MOD Author
MOD Author
 
Posts: 672
Joined: 25 Jul 2006, 04:18
Location: Pakistan
Gender: Male
phpBB Knowledge: 6

Re: [Addon] Inactive Users MOD 2.0.2

Postby Jamonte » 01 Apr 2009, 10:21

Can you adapte this mod to do that: http://www.phpbb.com/community/viewtopi ... &t=1015525 ???
Tks
Jamonte    
Cadet III
Cadet III
 
Posts: 33
Joined: 24 Feb 2008, 15:39
Gender: Male
phpBB Knowledge: 1

Re: [Addon] Inactive Users MOD 2.0.2

Postby bibleman » 10 Apr 2009, 07:58

Waleed wrote:Could this be due to an upgrade to PHP5? I've never seen that error before, but a bit of googling seems to point in that direction. :P

Could you make the following edits and see if these work?

FIND (line 432):
Code: Select all
'LAST_VISIT'   => time_compare($row['user_lastvisit']),

REPLACE WITH:
Code: Select all
'LAST_VISIT'   => $acp_inactive_users->time_compare($row['user_lastvisit']),


FIND (line 433):
Code: Select all
'S_ONLINE'      => ($config['load_onlinetrack'] && is_online($row['user_id'])) ? true : false,

REPLACE WITH:
Code: Select all
'S_ONLINE'      => false,


If anyone more experienced with PHP reads this, could you please advise? :hello: Attached is the PHP file in question. The function that's causing the problem is declared on line 165 and called on line 432. From what I can gather, the error is because PHP does not like it when I call the function without referring to the class it is in (which is class acp_inactive_users).


Thanks Waleed for your time and kind help.

I made both those changes you mentioned above and now I get this error:

Fatal error: Call to a member function time_compare() on a non-object in /home/httpd/vhosts/mysite.com/httpdocs/includes/acp/acp_inactive_users.php on line 433

Any ideas?

Thanks
bibleman
Crewman
Crewman
 
Posts: 4
Joined: 08 Jan 2008, 21:44
Gender: Male

PreviousNext

Return to ACP

Who is online

Users browsing this forum: No registered users and 3 guests

cron