Inactive and Banned Users` Custom Titles & Avatars

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
Extensions Robot
Extensions Robot
Extensions Robot
Posts: 27620
Joined: Sat Aug 16, 2003 7:36 am

Inactive and Banned Users` Custom Titles & Avatars

Post by Extensions Robot » Mon Jul 13, 2009 1:31 am

Modification name: Inactive and Banned Users` Custom Titles & Avatars
Author: mtrs
Modification description: This MOD assigns one of "the Inactive for X months" (3 months default), "Deactivated", "Banned" and "Suspended until X time" custom titles and/or avatars, also provides two default avatars and remove rank images of inactive users.
Modification version: 1.0.0
Tested on phpBB version: 3.0.5

Download file: Inactive_ Users_v1-0-0.zip
File size: 92.98 KiB

Modification overview page: View

The phpBB Team is not responsible nor required to provide support for this modification. By installing this MOD, you acknowledge that the phpBB Support Team or phpBB Extensions Team may not be able to provide support.

-->Modification support<--
Last edited by Extensions Robot on Mon Mar 27, 2017 3:09 pm, edited 8 times in total.
(this is a non-active account manager for the phpBB Extension Customisations Team)

User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 16641
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón
Contact:

Inactive and Banned Users` Custom Titles & Avatars

Post by DavidIQ » Mon Jul 13, 2009 1:31 am

Modification validated/released

Notes:
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.

mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Inactive and Banned Users` Custom Titles & Avatars

Post by mtrs » Mon Jul 13, 2009 1:31 am

Thank you MOD Team validating this mod. This is my first phpBB modification.

*********************************
AutoMOD install 1.0.0 on 3.0.7-PL1 just fine. Using AutoMOD is recommended.
Also, don't forget to run database update script after file edits. See DIY section in install.xml
- You may need to increase legend number in ACP edits, like legend4 => legend5
*********************************

Demo screenshots:

Prosilver viewtopic
Image--Image

Subsilver viewtopic
Image

Subsilver profile view
Image

ACP control options:
ACP -> General -> Board Settings
Image

Demo URL:
1. prosilver-demo
2. subilver2-demo
Last edited by mtrs on Sat Mar 06, 2010 4:32 pm, edited 2 times in total.
I abandoned all of my mods.

User avatar
Jaymie1989
Registered User
Posts: 1991
Joined: Thu Aug 02, 2007 5:21 pm
Name: Jaymie

Re: Inactive and Banned Users` Custom Titles & Avatars

Post by Jaymie1989 » Wed Jul 22, 2009 4:41 pm

Great MOD.

Congrats on the release
Dear creators of Sesame Street,
Kids are still fat. Can I come back now?
Sincerely, Cookie Monster.

View my MODs - Need phpBB help with MODs and Styles? Take a look at my phpBB3 services

mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: Inactive and Banned Users` Custom Titles & Avatars

Post by mtrs » Wed Jul 22, 2009 4:46 pm

Thanks, this one is my first mod..
I abandoned all of my mods.

FreddieM
Registered User
Posts: 20
Joined: Wed Jul 16, 2008 12:05 am
Contact:

Re: Inactive and Banned Users` Custom Titles & Avatars

Post by FreddieM » Mon Aug 10, 2009 11:00 am

Yep, this is a very good mod.

Is there anyway to make the inactive status does disappear as soon as the inactive user posts?

mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: Inactive and Banned Users` Custom Titles & Avatars

Post by mtrs » Mon Aug 10, 2009 12:30 pm

Thanks for your comment. :)
Inactive status is obtained from user_last_visit time. If we also compare to user_lastpost_time, it may update faster, but I am not sure. Normally, we expect user visits the board and after cache cleared, inactive status should update depending last board visit time.
Using last post time, needs some code changes, you need to test.

After installing this mod
Open
viewtopic.php
Find

Code: Select all

				'joined'		=> '',
After add

Code: Select all

				'lastpost_time'		=> '',
Find

Code: Select all

				'joined'		=> $user->format_date($row['user_regdate']),
After add

Code: Select all

				'lastpost_time'		=> $row['user_lastpost_time'],
Find

Code: Select all

$inactive_data = banned_user_templates($poster_id, $banned_user_list, $user_cache[$poster_id]['lastvisit'], $user_cache[$poster_id]['avatar'],$user_cache[$poster_id]['posts'], $user_cache[$poster_id]['type']);
Inline find

Code: Select all

$user_cache[$poster_id]['lastvisit']
Inline-replace with

Code: Select all

max($user_cache[$poster_id]['lastvisit'], $user_cache[$poster_id]['lastpost_time'])
Last edited by mtrs on Thu Aug 20, 2009 8:04 pm, edited 2 times in total.
I abandoned all of my mods.

FreddieM
Registered User
Posts: 20
Joined: Wed Jul 16, 2008 12:05 am
Contact:

Re: Inactive and Banned Users` Custom Titles & Avatars

Post by FreddieM » Mon Aug 10, 2009 12:47 pm

Thanks. I will try this out.

User avatar
Neuropass
Registered User
Posts: 1158
Joined: Fri Apr 17, 2009 2:02 pm
Location: SciTE4AutoIt3

Re: Inactive and Banned Users` Custom Titles & Avatars

Post by Neuropass » Tue Aug 18, 2009 2:59 am

great mod. has anybody tried the edit above?

anyway is this mod compatible with "Prime Ban to Group" mod??? because i already have this installed... but i want install your mod too... please let me know...

FreddieM
Registered User
Posts: 20
Joined: Wed Jul 16, 2008 12:05 am
Contact:

Re: Inactive and Banned Users` Custom Titles & Avatars

Post by FreddieM » Tue Aug 18, 2009 11:04 am

I will try that edit tonight.

User avatar
Neuropass
Registered User
Posts: 1158
Joined: Fri Apr 17, 2009 2:02 pm
Location: SciTE4AutoIt3

Re: Inactive and Banned Users` Custom Titles & Avatars

Post by Neuropass » Tue Aug 18, 2009 11:53 pm

FreddieM wrote:I will try that edit tonight.
how did it go?

FreddieM
Registered User
Posts: 20
Joined: Wed Jul 16, 2008 12:05 am
Contact:

Re: Inactive and Banned Users` Custom Titles & Avatars

Post by FreddieM » Wed Aug 19, 2009 5:10 pm

Just change
mtrs wrote:

Code: Select all

				'lastpost_time		=> $row['user_lastpost_time']
To

Code: Select all

				 'lastpost_time'      => $row['user_lastpost_time'],
And it worked :)

User avatar
Lisbon
Registered User
Posts: 825
Joined: Wed Jan 30, 2008 12:28 pm
Location: Zermatt

Re: Inactive and Banned Users` Custom Titles & Avatars

Post by Lisbon » Thu Aug 20, 2009 1:05 pm

The user will bi inactive when? no posting? no loging?

mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: Inactive and Banned Users` Custom Titles & Avatars

Post by mtrs » Thu Aug 20, 2009 1:40 pm

Lisbon wrote:The user will bi inactive when? no posting? no loging?
You can configure when, read the mod description.
MOD Robot wrote:Modification description: This MOD assigns one of "the Inactive for X months" (3 months default), "Deactivated", "Banned" and "Suspended until X time" custom titles and/or avatars, also provides two default avatars and remove rank images of inactive users.
I abandoned all of my mods.

User avatar
Lisbon
Registered User
Posts: 825
Joined: Wed Jan 30, 2008 12:28 pm
Location: Zermatt

Re: Inactive and Banned Users` Custom Titles & Avatars

Post by Lisbon » Thu Aug 20, 2009 5:48 pm

mtrs wrote:user_lastpost_time, it may update faster, but I am not sure.
This is a fantastic opition. inactive based in the last post

Locked

Return to “[3.0.x] MOD Database Releases”

Who is online

Users browsing this forum: No registered users and 15 guests