Jump to content

Warn Log


Adriano Faria
 Share

Recommended Posts

  • 10 months later...
  • 1 year later...
1 minute ago, NeedCoffee said:

but it doesn't create a thread or post for bans via the back-end admin area

Sure. As described, it creates the topics/posts when someone is warned. You have the option to BAN via warn, but still.... a warn. In ACP you don’t warn, you ban directly. So no, the plugin doesn’t work when you ban someone from ACP.

4 minutes ago, NeedCoffee said:

Is this possible please?

Not with this plugin.

Link to comment
Share on other sites

  • 2 months later...
On 2/13/2019 at 8:23 PM, NeedCoffee said:

Is it possible to get {date} to respect the locale set in IPB? We noticed that we're seeing MM/DD/YY instead of DD/MM/YY as we use here. Thanks @Adriano Faria

Just checked and it is using \IPS\DateTime::ts( $date );, which means it has to respect the date format. See 2 tests I just made:

- Localhost, which uses English date format:

okGFp7o.png

- Online board: first post using ENGLISH language and the second using Brazilian Portuguese (PT-Br):

8IV6Aeg.png

 

It's working as expected.

Link to comment
Share on other sites

  • 4 months later...
  • 2 months later...

Hey Adriano!

Just been wondering if it is possile for you to add an option to edit a warning (only ones with permissions to do so).
For example, if a member and I want to edit the points given - it will be possible. or the date it expires, etc.

What I do for now is delete the current warning and giving a new one, easier to edit.
Thanks!

P.S - if it`s being edited from the ACP the member gets minus points when it expires.

Link to comment
Share on other sites

2 minutes ago, DarkClaWz said:

Hey Adriano!

Just been wondering if it is possile for you to add an option to edit a warning (only ones with permissions to do so).
For example, if a member and I want to edit the points given - it will be possible. or the date it expires, etc.

What I do for now is delete the current warning and giving a new one, easier to edit.
Thanks!

P.S - if it`s being edited from the ACP the member gets minus points when it expires.

Sorry, this is not the goal of this resource.  This resource simply logs the warnings. 

Link to comment
Share on other sites

  • 1 year later...

An issue was identified in this plugins upgrade code.

 

You're iterating over almost all member rows in the step2 upgrade step which of course won't work on medium & big boards resulting in issues.

foreach( \IPS\Db::i()->select( '*', 'core_members', array( 'warnLogs_tid>?', 0 ) ) as $row )
			{
				\IPS\Db::i()->insert( 'warnlog_membersdata', array(
					'member_id'		=> $row['member_id'],
					'topic_id'		=> $row['warnLogs_tid']
				) );
			}

 

Link to comment
Share on other sites

  • 1 month later...
  • 7 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...