Page 2 of 4

Re: [BETA] Warning MOD (0.1.0)

Posted: Sat Oct 06, 2007 4:09 am
by mattgid
it's the same for subsilver.

/styles/subsilver2/template/viewtopic_body.html

find

Code: Select all

					<!-- IF postrow.POSTER_FROM --><br /><b>{L_LOCATION}:</b> {postrow.POSTER_FROM}<!-- ENDIF -->
after, add

Code: Select all

<!-- IF postrow.POSTER_WARNINGS -->
		{L_WARNINGS}: {postrow.POSTER_WARNINGS}
		<!-- ENDIF -->
		
this is without the yellow card. :lol:

Re: [BETA] Warning MOD (0.1.0)

Posted: Sat Oct 06, 2007 10:06 pm
by ChriZathens
Nice try, indeed !!! ;)
But if you use an image, then if the user has eg 3 warnings, it must display 3 yellow cards and not 1... ;)

EDIT: So, since I could not find of a better way I just altered it a little bit...

Code: Select all

<!-- IF postrow.POSTER_WARNINGS --><dd><strong>{L_WARNINGS}:</strong> <img src="./styles/prosilver/imageset/icon_yellow.gif"> x {postrow.POSTER_WARNINGS}</dd><!-- ENDIF -->
Now it appears like this: :lol:
Image

Re: [BETA] Warning MOD (0.1.0)

Posted: Sun Oct 07, 2007 6:05 am
by mattgid
hahaha. I see u're using the phpbb2 democracy mod images. well, I guess it's up to you. for me, 2 or more cards would pretty much be overcrowding the area on the left.

Still waiting for someone to come up with the banned function ( display a red card when a user has been banned) ;)

and on phpbb3 is it possible for other users to view a each other's warning? (like see why a user has been warned. reasons...) if so, the cards should have a link to the page.

Re: [BETA] Warning MOD (0.1.0)

Posted: Sun Oct 07, 2007 11:48 am
by ChriZathens
Well. to be honest, the first thing that needs to be done about warnings, is the ability for an admin to remove them..
Because right now you can't... :(

P.S.: In my live phpbb2 forum I do use the democracy mod :D

Re: [BETA] Warning MOD (0.1.0)

Posted: Sun Oct 07, 2007 1:41 pm
by mattgid
yes we need to be able to remove warnings. how ironical it is for this function not to be included in phpbb3

Re: [BETA] Warning MOD (0.1.0)

Posted: Sun Oct 07, 2007 3:27 pm
by notsa
could you make it so you can choose who sees the warnings. eg. adimn onl, mod only, mod and admins, people with waring, and everyone :)

Re: [BETA] Warning MOD (0.1.0)

Posted: Sun Oct 07, 2007 4:04 pm
by ChriZathens
notsa wrote:could you make it so you can choose who sees the warnings. eg. adimn onl, mod only, mod and admins, people with waring, and everyone :)

You can alter it to something like :

Code: Select all

<!-- IF not S_IS_BOT --><!-- IF S_USER_LOGGED_IN --><!-- IF postrow.POSTER_WARNINGS --><br /><b>{L_WARNINGS}:</b> {postrow.POSTER_WARNINGS}<!-- ENDIF --><!-- ENDIF --><!-- ENDIF -->   
So that only reg users can see it...(This is tested and works)

Alternately, you can use

Code: Select all

<!-- IF U_MCP -->
for mods only or

Code: Select all

<!-- IF U_ACP -->
for admin only...
Those last two, I've not tested them...
:)

Re: [BETA] Warning MOD (0.1.0)

Posted: Mon Oct 08, 2007 1:41 am
by .:: Chico ::.
ChriZathens wrote:Well. to be honest, the first thing that needs to be done about warnings, is the ability for an admin to remove them..
Because right now you can't... :(

P.S.: In my live phpbb2 forum I do use the democracy mod :D
Oh REALLY?i thought it was possible, now i tested it in my forum and that's true. I'm not able to remove warnings.

well, i'm gonna make to suggestion for this mod, to get more features maybe:
- able to remove warnings
- auto prune warnings after X days

thanks!!

Re: [BETA] Warning MOD (0.1.0)

Posted: Mon Oct 08, 2007 1:50 am
by Xclavo
MOD Description: Publicaly displays the number of warnings a user has.
You mean when viewing a topic right? :?

Re: [BETA] Warning MOD (0.1.0)

Posted: Mon Oct 08, 2007 4:23 am
by ghettowboy
Xclavo wrote:
MOD Description: Publicaly displays the number of warnings a user has.
You mean when viewing a topic right? :?
yes, thats what this mod does...


also might be nice to have some acp dialog that allows you to turn on and off... :idea:

Re: [BETA] Warning MOD (0.1.0)

Posted: Tue Oct 09, 2007 8:02 am
by spacefish
.:: Chico ::. wrote:well, i'm gonna make to suggestion for this mod, to get more features maybe:
- able to remove warnings
- auto prune warnings after X days
In ACP -> Board Settings, you can set the number of days that will elapse before the warning will automatically expire from a user’s record.

But yeah being able to remove warnings would be a good feature. ;)

Re: [BETA] Warning MOD (0.1.0)

Posted: Tue Oct 09, 2007 9:24 am
by mattgid
and there's even an add-on by me! LOL

Re: [BETA] Warning MOD (0.1.0)

Posted: Wed Oct 10, 2007 7:08 am
by mattgid
and we need a function for moderators(or admins, whatever) to decide on the spot for how long each warning or ban should last before expiring, instead of configuring it on the ACP. cos sometimes different offenses have different warning / ban periods.

Re: [BETA] Warning MOD (0.1.0)

Posted: Wed Oct 10, 2007 1:02 pm
by ghettowboy
mattgid wrote:and we need a function for moderators(or admins, whatever) to decide on the spot for how long each warning or ban should last before expiring, instead of configuring it on the ACP. cos sometimes different offenses have different warning / ban periods.

this is a good idea.... :D

i hope someone is taking notes.. lol :roll:

Re: [BETA] Warning MOD (0.1.0)

Posted: Wed Nov 07, 2007 5:09 am
by mattgid
is anyone still working on this? hope it isn't dead. :(