user warnings / ban info in viewtopic

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.
Locked
Extensions Robot
Extensions Robot
Extensions Robot
Posts: 29220
Joined: Sat Aug 16, 2003 7:36 am

user warnings / ban info in viewtopic

Post by Extensions Robot »

Modification name: user warnings / ban info in viewtopic
Author: A_O_C
Modification description: Displays the number of user warnings (or "CURRENTLY BANNED") in viewtopic - similar to how the phpbb2 yellow card MOD did. This MOD is compatible with Paul's ban users by x warnings MOD.
Modification version: 1.0.2
Tested on phpBB version: 3.0.4

Download file: user_warnings_ban_info_in_viewtopic_1-0-2.zip
File size: 30.39 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 Extension Customisations Team may not be able to provide support.

-->Modification support<--
Last edited by Extensions Robot on Mon Sep 19, 2022 7:33 pm, edited 13 times in total.
(this is a non-active account manager for the phpBB Extension Customisations Team)
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 28619
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

user warnings / ban info in viewtopic

Post by Paul »

Modification validated/released

Notes:
User avatar
A_O_C
Registered User
Posts: 2383
Joined: Sun Jul 01, 2007 11:26 pm
Location: phpbb_

user warnings / ban info in viewtopic

Post by A_O_C »

subsliver2 edits are here and here.



German translation provided by juport (will be provided in future release)
OPEN:

Code: Select all

language/de/common.php
FIND:

Code: Select all

	'CURRENT_TIME'			=> 'Aktuelle Zeit: %s',
AFTER ADD:

Code: Select all

	'CURRENTLY_BANNED'		=> 'Zur Zeit Gebannt',

user has 2 warnings
user has 2 warnings
warnings.JPG (8.41 KiB) Viewed 18039 times
user has been banned
user has been banned
banned.JPG (9.09 KiB) Viewed 17990 times
Last edited by A_O_C on Fri Feb 27, 2009 1:47 pm, edited 4 times in total.
User avatar
DragonMaster1
Registered User
Posts: 994
Joined: Tue Aug 17, 2004 11:04 am
Name: Terry
Contact:

Re: user warnings / ban info in viewtopic

Post by DragonMaster1 »

Is this like:

Prime Warnings
Description:
Displays the number of warnings a user has received. Uses little yellow warning card images for immediate visual identification that the user has been warned.
Version:
1.0.2
---

If not do you know if there is a difference where this mod would be better to use?
User avatar
A_O_C
Registered User
Posts: 2383
Joined: Sun Jul 01, 2007 11:26 pm
Location: phpbb_

Re: user warnings / ban info in viewtopic

Post by A_O_C »

almost (thought my description was clear). this MOD displays "Warnings: x" where x is the number of warnings the user has. if the user is banned, instead of "Warnings: x", it will display "CURRENTLY BANNED". ill post screen shots when i get on my main computer.
User avatar
DragonMaster1
Registered User
Posts: 994
Joined: Tue Aug 17, 2004 11:04 am
Name: Terry
Contact:

Re: user warnings / ban info in viewtopic

Post by DragonMaster1 »

Any idea if this will work with Prime Warnings?

I’d like to add it
User avatar
A_O_C
Registered User
Posts: 2383
Joined: Sun Jul 01, 2007 11:26 pm
Location: phpbb_

Re: user warnings / ban info in viewtopic

Post by A_O_C »

can not say for sure (i havent looked at his code). i would recommend a local test install to see. what are you trying to achieve?
User avatar
DragonMaster1
Registered User
Posts: 994
Joined: Tue Aug 17, 2004 11:04 am
Name: Terry
Contact:

Re: user warnings / ban info in viewtopic

Post by DragonMaster1 »

Currently I have it show any warnings as a ‘card’

So having a ban one if needed would be nice too as I have to do it manually now
User avatar
A_O_C
Registered User
Posts: 2383
Joined: Sun Jul 01, 2007 11:26 pm
Location: phpbb_

Re: user warnings / ban info in viewtopic

Post by A_O_C »

have you tried asking primehalo? i dont want to write code for a MOD that isnt mine, and he would understand his own code better than i would.
User avatar
DragonMaster1
Registered User
Posts: 994
Joined: Tue Aug 17, 2004 11:04 am
Name: Terry
Contact:

Re: user warnings / ban info in viewtopic

Post by DragonMaster1 »

Yours is not too big, so I will try it out when I get free time to update my board and let you know what happens
Mudjosh
Registered User
Posts: 234
Joined: Sat Jun 14, 2008 11:04 pm

Re: user warnings / ban info in viewtopic

Post by Mudjosh »

Just to clarify,

I would assume mods and members can see the currently banned info.. But who all sees the warnings?

I don't want to make matters worse by letting the public see a member warned. Personally this would just get some people mad.. So, do you have settings on who can see and who can't?
User avatar
A_O_C
Registered User
Posts: 2383
Joined: Sun Jul 01, 2007 11:26 pm
Location: phpbb_

Re: user warnings / ban info in viewtopic

Post by A_O_C »

everyone can see the warnings, and everyone can see the ban info. if you dont want to display warnings publicly, change

Code: Select all

		<!-- IF postrow.S_USERID_BANNED --><dd><strong>{L_CURRENTLY_BANNED}</strong></dd><!-- ELSEIF postrow.POSTER_WARNINGS --><dd><strong>{L_WARNINGS}:</strong> {postrow.POSTER_WARNINGS}</dd><!-- ENDIF -->
to

Code: Select all

		<!-- IF postrow.S_USERID_BANNED --><dd><strong>{L_CURRENTLY_BANNED}</strong></dd><!-- ENDIF -->
User avatar
ChriZathens
Registered User
Posts: 1477
Joined: Tue Apr 18, 2006 9:11 pm
Location: Athens, Greece
Name: Chris

Re: user warnings / ban info in viewtopic

Post by ChriZathens »

Nice one.. :D
One question:
How can I show banned info also in memberlist_view?
My mods in MODDB:
Add Homepage link in header - Change user activity post limit - Post number in viewtopic
If you need support click on the support tab there and post your question.
Do not PM me - chances of viewing my PMs are way thinner than viewing the support question in the customization DB...
User avatar
ChriZathens
Registered User
Posts: 1477
Joined: Tue Apr 18, 2006 9:11 pm
Location: Athens, Greece
Name: Chris

Re: user warnings / ban info in viewtopic

Post by ChriZathens »

This mod only displays existend data, it does not alter any, meaning that it is used to show some info which already exists but is not shown.
My mods in MODDB:
Add Homepage link in header - Change user activity post limit - Post number in viewtopic
If you need support click on the support tab there and post your question.
Do not PM me - chances of viewing my PMs are way thinner than viewing the support question in the customization DB...
User avatar
A_O_C
Registered User
Posts: 2383
Joined: Sun Jul 01, 2007 11:26 pm
Location: phpbb_

Re: user warnings / ban info in viewtopic

Post by A_O_C »

ChriZathens wrote:How can I show banned info also in memberlist_view?
where exactly? a screenshot would be best, with an arrow pointing. your answer will depend on what file i modify and where i place the code in that file. ;)

also, just the banned info or the warnings also?




john094 wrote:two questions:

1. Is it also possible to config the ban-time?
Like this for example:
first ban : one week
second ban: two weeks
third ban: one month
etc.
is this also in the MOD?

2. Is it possible to have a warn system with different point per warning?
Like this: bumping old topic or oftopic replys 1 warn point. and
5 warn points for insulting etc.?
whoa, totally different MOD. might try the MOD requests forum.
Locked

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