[RC1] Prime Warnings - Graphically display a user's warnings

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Scam Warning
Locked
User avatar
primehalo
Former Team Member
Posts: 2821
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

[RC1] Prime Warnings - Graphically display a user's warnings

Post by primehalo » Fri Jan 04, 2008 7:34 pm

MOD Title: Prime Warnings
MOD 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.
MOD Version: 1.0.1

MOD Download: Main Download
Last Stable version: view the installation instructions for latest version number

Demo Board: http://www.absoluteanime.com/forum/
Demo Username: Not Available
Demo Password: Not Available

Screenshot:
Image
Last edited by primehalo on Sat Jan 05, 2008 8:34 pm, edited 1 time in total.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!

gph
Registered User
Posts: 66
Joined: Tue Jul 10, 2007 9:16 pm

Re: [RC1] Prime Warnings - Graphically display a user's warnings

Post by gph » Sat Jan 05, 2008 3:49 am

Fantastic - was about to start work on my own version of this!

Don't suppose your set up includes a red card for if / when a warned user gets banned, does it?

User avatar
primehalo
Former Team Member
Posts: 2821
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Re: [RC1] Prime Warnings - Graphically display a user's warnings

Post by primehalo » Sat Jan 05, 2008 4:29 am

gph wrote:Fantastic - was about to start work on my own version of this!

Don't suppose your set up includes a red card for if / when a warned user gets banned, does it?
I would like to add that in the future, but it's not as easy to do as warnings since the bans aren't kept in the users table like the warnings are.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!

gph
Registered User
Posts: 66
Joined: Tue Jul 10, 2007 9:16 pm

Re: [RC1] Prime Warnings - Graphically display a user's warnings

Post by gph » Sat Jan 05, 2008 2:41 pm

Cool beans :-) From the screenshot, I'm not sure if the number of warnings is displayed, or if the number is represented by the number of yellow cards displayed?

User avatar
[alfa]
Registered User
Posts: 28
Joined: Sat Dec 15, 2007 11:26 pm
Location: Madrid, Spain
Contact:

Re: [RC1] Prime Warnings - Graphically display a user's warnings

Post by [alfa] » Sat Jan 05, 2008 4:36 pm

Great mod!

i can see that it desplays one yellow card and another with number 4 in it, in these order to represent 5 yellow cards..

Maybe it should be better to show when user has 1 warning = yellow card, and when user has more than 1 warning to desplay a yellow card with the number of warnings in it.

And ofcourse, a red card when it's banned but i guess this will be more difficult ^^

anyway, thanks for the mod i really like it!

Cheers,

User avatar
primehalo
Former Team Member
Posts: 2821
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Re: [RC1] Prime Warnings - Graphically display a user's warnings

Post by primehalo » Sat Jan 05, 2008 8:09 pm

Ah, I see how this could be confusing. Once the number of warnings exceeds the cap limit defined by PRIME_WARNING_CAP, then it should switch to displaying only a single card graphic with the total number of warnings put inside it. Version 1.0.1 now supports this behavior.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!


User avatar
primehalo
Former Team Member
Posts: 2821
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Re: [RC1] Prime Warnings - Graphically display a user's warnings

Post by primehalo » Sat Jan 05, 2008 9:07 pm

Smog wrote:Nice mod. How about subsilver2?
Yes, it supports subsilver2 also. Instructions are in the templates directory.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!


gph
Registered User
Posts: 66
Joined: Tue Jul 10, 2007 9:16 pm

Re: [RC1] Prime Warnings - Graphically display a user's warnings

Post by gph » Sun Jan 06, 2008 6:40 am

Wow - thanks for so rapidly tweaking your MOD with that!
primehalo wrote:I would like to add that in the future, but it's not as easy to do as warnings since the bans aren't kept in the users table like the warnings are.
Yeah, I see what you mean. That would require a specific query of the banlist table, I'm guessing? Would it increase the overhead much, do you think?

I know that you probably want to get this MOD released sooner rather than later, but for those parts of the world where soccer is prevalent, the addition of the red card [= banned] to your great yellow card set up would be a particularly effective and intuitive way for such Forum users to instantly "get" and understand the warning / ban situation... so if there's any chance.... :lol: :lol:

Thanks dude!


User avatar
primehalo
Former Team Member
Posts: 2821
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Re: [RC1] Prime Warnings - Graphically display a user's warnings

Post by primehalo » Wed Mar 05, 2008 7:51 pm

Try adding clear:left;, like so:

Code: Select all

				<!-- IF postrow.POSTER_WARNINGS --><span class="postdetails"><br /><b>{L_WARNINGS}:</b> {postrow.POSTER_WARNINGS}</span><!-- BEGIN warnings --><div title="{L_WARNINGS}" style="float:left;clear:left;margin:2px 2px 2px 0;width:20px;height:20px;line-height:20px;text-align:center;background:url('{T_THEME_PATH}/images/warning_card.gif') no-repeat 50%;cursor:default;">{postrow.warnings.COUNT}</div><!-- END warnings --><!-- ENDIF -->
If that doesn't help, I'm not sure what will.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!

User avatar
Rotsblok
Registered User
Posts: 648
Joined: Fri Nov 11, 2005 12:47 pm
Location: Upper north of Holland
Name: Rikkert Westa
Contact:

Re: [RC1] Prime Warnings - Graphically display a user's warnings

Post by Rotsblok » Wed Mar 05, 2008 7:55 pm

Might be also handy to make a "grafical image" as he user has a user note? Cos most will first make a user note and then give a warning after repeated behaviour...
Nederlandse Support site
Several dutch translations for 3.1 extensions if you need one or there is an update of an extension feel free to notify me.

User avatar
Mario_AU
Registered User
Posts: 162
Joined: Fri Jan 25, 2008 10:51 am
Location: Australia
Contact:

Re: [RC1] Prime Warnings - Graphically display a user's warnings

Post by Mario_AU » Wed Mar 05, 2008 8:29 pm

added it, purged cache, still the same... oh well must be opera...

User avatar
primehalo
Former Team Member
Posts: 2821
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Re: [RC1] Prime Warnings - Graphically display a user's warnings

Post by primehalo » Wed Mar 05, 2008 10:50 pm

Rotsblok wrote:Might be also handy to make a "grafical image" as he user has a user note? Cos most will first make a user note and then give a warning after repeated behaviour...
It's not a bad idea, it's just that I'm pretty sure the number of notes isn't stored in the user table and I didn't want to require any new database queries.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!

Locked

Return to “[3.0.x] MODs in Development”