Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Valodim on September 12, 2005, 08:30:40 PM

Title: vWarn Mod
Post by: Valodim on September 12, 2005, 08:30:40 PM
Link to Mod (http://mods.simplemachines.org/index.php?mod=190)

A new warning mod, based on membergroups. The main differences to VisualWarning mod are:
- the warning levels are based on membergroups, that means easier adminstration (you can list members of groups in the admin interface etc), and you can have as many warning levels as you like
- you can easily deny/grant permissions (for example the "muted" group should have "Post reply" denied), and all boards selected in the board list of warning groups are actually hidden for the user.
- easier to use interface (I think/hope), it's possible to specify different expiry dates for different warning levels, add a note to the log for other moderators, and optionally send a pm to the user and specify a related post.

this mod does not contain post moderation, I will soon code a separate mod for that.

this is my very first mod. enjoy :)

special thanks to Padfoot and scs for helping me with fixing the tons of bugs this had when I first released it. :)

please note that this mod does appear to still be rather buggy. I do not have time (or rather, motivation) to do more bugtracking here than I already did, but it does seem to work for some people so I leave it up here. consider it an early beta.

\\ 1.10

1.1.2 compatibility :D
Title: Re: vWarn Mod
Post by: J. Williams on September 14, 2005, 01:38:52 PM
Very good valodim

I hope your mod does good but :(

Its sending bad arguements and is giving getting a bit annoying
Title: Re: vWarn Mod
Post by: Valodim on September 14, 2005, 03:20:09 PM
noted, expect a fix in < 30 minutes :)

\\ edit

DONE + some other stuff :D

I should really remove & ~E_NOTICE for my errors >_<

the mod is lacking a warning button, could someone make one for me? (the button generator's icons are all taken in the thread view :( )
Title: Re: vWarn Mod
Post by: J. Williams on September 14, 2005, 03:33:09 PM
autoWarningTime

Missing arguements line 2 + 3

This are in error log
Title: Re: vWarn Mod
Post by: Valodim on September 14, 2005, 03:34:11 PM
fixed, read above. I forgot to add __FILE__, __LINE__ to one of the queries in the database script :)
Title: Re: vWarn Mod
Post by: J. Williams on September 14, 2005, 04:01:29 PM
Invalid argument supplied for foreach()

unserialize(): Argument is not a string

More errors
Title: Re: vWarn Mod
Post by: Valodim on September 14, 2005, 04:33:35 PM
thanks for the feedback. man I should be more careful with the NOTICE errors >_<

Quote
Invalid argument supplied for foreach()
couldn't find that one... file/line?

\\ edit

ARGH, found more errors in the notify routine! I HATE E_NOTICE!! \o/

\\\ edit

FIXED! bleh, I hope that's it for E_NOTICEs for now >_>
Title: Re: vWarn Mod
Post by: Padfoot on September 14, 2005, 07:06:53 PM
When opening topic i get this error message in the topic
QuoteFatal error: Cannot redeclare isnotminusone() (previously declared in /home/****/public_html/smfbeta/Sources/Load.php:874) in /home/****/public_html/smfbeta/Sources/Load.php on line 874

Also getting these 2 error msgs in the error log
Quote8: unserialize(): Argument is not a string
File: /home/****/public_html/smfbeta/Sources/Profile.php
Line: 2944
Quote2: Invalid argument supplied for foreach()
File: /home/****/public_html/smfbeta/Sources/Profile.php
Line: 2946

Relating to the first one...i cannot see posts made by user ID 2 or upwards.....

Thankfully this is only installed on my test board
Title: Re: vWarn Mod
Post by: Valodim on September 14, 2005, 07:21:39 PM
it declares the function twice if the function is called twice? that's stupid. (I'm more used to java concerning this, and only tested it with one user >_<)

oh well, fixed. again... is this duck hunt over now? XD

thanks for the feedback, sorry for the bugs. man I'm glad I declared this a beta :P

\\ edit

that code is lines 2776 and 2778 for me, fixed. thanks =)

I noticed there's a problem with the valid column of the warning log table, must've been caused by the fixes... I'll fix it tomorrow, too tired now (it's 1:32am here >_< )

anything else I need to know? ::)

next mod I release, I'm going to check the stupid error log before releasing it, even as a beta *sigh*
Title: Re: vWarn Mod
Post by: Padfoot on September 15, 2005, 09:52:24 AM
QuoteDatabase Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 10)' at line 3
File: /home/****/public_html/smfbeta/Sources/Load.php
Line: 590

Getting this when logging in as "warned" user...also line 570 & 569...even after uninstalling this mod.
After "unwarning" user...this error disappears...
Title: Re: vWarn Mod
Post by: Valodim on September 15, 2005, 12:23:04 PM
found it, the member's additional groups got an additional comma... but couldn't find the cause... hum.

fixed one more thing, the warning membergroups weren't kept if the additional groups were manually updated. also, I forgot to add the warn permission to the permission array (the $txt values were there. :P), plus some other rather minor stuff, maybe I got your error by chance :P

geez. I hope I can get this into an actually stable and usable status soon XD
Title: Re: vWarn Mod
Post by: Padfoot on September 15, 2005, 01:54:25 PM
QuoteDatabase Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 11)' at line 3
File: /home/****/public_html/smfbeta/Sources/Load.php
Line: 589

Same problem....once user is warned they get this error....when "unwarned" error disappears.

I appreciate you have put a lot of hard work into this mod...but do you actually test it before you put it up on here, or just wait for us to highlight the errors?
Title: Re: vWarn Mod
Post by: Valodim on September 15, 2005, 02:05:30 PM
of course I test, and I see what's the direct cause of that error but I can't reproduce it (as said in my previous post) nor find the reason. it's all working fine here. most things I've fixed 'til now are either things I didn't include in the first version, or errors which bring up new errors... sorry, I'll test my next mod more thoroughly :(

/me goes back to work. crap. >_<

\\ edit

found it! it occurs when the user doesn't have any warnings and/or additional groups (I always had some groups for the member XD)

man I seriously hope that's it for a good while. fixing in a minute. >_>
Title: Re: vWarn Mod
Post by: J. Williams on September 15, 2005, 02:10:08 PM
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '< 0
ORDER BY mg.minPosts, IF(mg.ID_GROUP < 4, mg.ID_GROUP, 4), mg.groupName' at line 3
File: /home/scs/public_html/Community/Sources/ManagePermissions.php
Line: 201

Another error :(
Title: Re: vWarn Mod
Post by: Valodim on September 15, 2005, 02:27:37 PM
oh my god, this is getting embarassing. how many errors can I have made in those 1000 lines?! .V.

fixed. fixed. geez. spending some more time bugtracking now before uploading it, I don't want to get another 25 bug reports >_>

truly sorry guys, I hope I can provide a pleasant surprise next mod :(

\\ edit

a'ight, I think I really got it this time. I tested every single action there is with/without admin, with/without additional membergroups, granted and removed permissions for all groups, added membergroups, removed membergroups. I found only two more E_NOTICE mistakes, and that's it. I hope.

uploaded, not if anyone finds another ******ing (more serious) error, I'll give in to murphy (http://en.wikipedia.org/wiki/Murphy's_law) >_<
Title: Re: vWarn Mod
Post by: J. Williams on September 15, 2005, 02:46:49 PM
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '< 0
ORDER BY mg.minPosts, IF(mg.ID_GROUP < 4, mg.ID_GROUP, 4), mg.groupName' at line 3
File: /home/scs/public_html/Community/Sources/ManagePermissions.php
Line: 201

Still there

P.S Try packing differently
Title: Re: vWarn Mod
Post by: Valodim on September 15, 2005, 03:19:42 PM
Quote from: Valodim on September 15, 2005, 02:27:37 PM
fixed. fixed. geez. spending some more time bugtracking now before uploading it, I don't want to get another 25 bug reports >_>

didn't upload it after I posted that ;)

Quote from: Valodim on September 15, 2005, 02:27:37 PM
a'ight, I think I really got it this time. I tested every single action there is with/without admin, with/without additional membergroups, granted and removed permissions for all groups, added membergroups, removed membergroups. I found only two more E_NOTICE mistakes, and that's it. I hope.

uploaded, not if anyone finds another ******ing (more serious) error, I'll give in to murphy (http://en.wikipedia.org/wiki/Murphy's_law) >_<

what do you mean by packing differently? using xml instead of boardmod files? I heard there wasn't that big a difference in functionality...
Title: Re: vWarn Mod
Post by: J. Williams on September 15, 2005, 03:55:01 PM
Fantastic,you've now debugged your mod

Well done on becoming a good modifier

What i meant about packaging is,on mine its won't accept that sort of file in package manager
Title: Re: vWarn Mod
Post by: Valodim on September 15, 2005, 04:15:20 PM
great, thank you :D

Quote
What i meant about packaging is,on mine its won't accept that sort of file in package manager

you mean it doesn't support tar.gz files? just ask your admin to compile php zlib :P
Title: Re: vWarn Mod
Post by: Padfoot on September 15, 2005, 04:24:01 PM
Great job!!

Now...about post moderation?    :P

Title: Re: vWarn Mod
Post by: J. Williams on September 15, 2005, 04:29:01 PM
Padfoot

Don't rush things!

Post moderation i think should be left alone,so theres no bugs.
Title: Re: vWarn Mod
Post by: Valodim on September 15, 2005, 04:31:35 PM
I'll make a different mod for that. There will be a permission "post moderated reply", which allows a user to reply with post moderation, if the user has "post reply" anyways it doesn't have any effect. the moderated usergroup would have "post reply" denied and "post moderated reply" allowed :)

that way, people can use post moderation for specific boards, usergroups, etc. :)

I'll add some finishing touches to this and release 1.0, then work on post moderation mod ;)

\\ edit

this is lacking a warn button. can't seem to get a nice one with the button generator (all icons taken), could anyone make one for me? :)

\\\ edit

finally done! I just added a separate permission to view own/any log, and the permission-errormessages now, it should all be fine ;)

thanks for all your help ^_^
Title: Re: vWarn Mod
Post by: J. Williams on September 16, 2005, 12:14:07 PM
I found a few errors

These errors happen when its a guest

Sorry but i deleted them for the log :(

//edit// Re-did test.

Guest   Today at 05:14:14 PM 
81.97.89.10     d935c2af570a083a583c518d0a221577 
http://www.southchaddertonschool.cwhnetworks.com/Community/index.php?board=2.0 
8: Undefined index: warnings
/home/scs/public_html/Community/Sources/Load.php
527

   Guest   Today at 05:14:14 PM 
81.97.89.10     d935c2af570a083a583c518d0a221577 
http://www.southchaddertonschool.cwhnetworks.com/Community/index.php?board=2.0 
2: array_intersect(): Argument #1 is not an array
/home/scs/public_html/Community/Sources/Load.php
527

   Guest   Today at 05:14:16 PM 
81.97.89.10     d935c2af570a083a583c518d0a221577 
http://www.southchaddertonschool.cwhnetworks.com/Community/index.php?topic=2.0 
8: Undefined index: warnings
/home/scs/public_html/Community/Sources/Load.php
527

   Guest   Today at 05:14:16 PM 
81.97.89.10     d935c2af570a083a583c518d0a221577 
http://www.southchaddertonschool.cwhnetworks.com/Community/index.php?topic=2.0 
2: array_intersect(): Argument #1 is not an array
/home/scs/public_html/Community/Sources/Load.php
527

   Guest   Today at 05:14:26 PM 
81.97.89.10     d935c2af570a083a583c518d0a221577 
http://www.southchaddertonschool.cwhnetworks.com/Community/index.php?topic=2.0 
8: Undefined index: warnings
/home/scs/public_html/Community/Sources/Load.php
527

   Guest   Today at 05:14:26 PM 
81.97.89.10     d935c2af570a083a583c518d0a221577 
http://www.southchaddertonschool.cwhnetworks.com/Community/index.php?topic=2.0 
2: array_intersect(): Argument #1 is not an array
/home/scs/public_html/Community/Sources/Load.php
527

Title: Re: vWarn Mod
Post by: Valodim on September 16, 2005, 03:15:45 PM
ah. yeah, looks like I forgot the empty($array) ?: in the load.php. I'll fix it asap (I'm not at home right now, maybe in 13 to 14 hours...) thanks :)

fixed ;)
Title: Re: vWarn Mod
Post by: mrandall131 on September 16, 2005, 09:29:04 PM
Mod looks and seems to work awsome, thanks!

[edit]

Guess I spoke too soon, I went into the permissions panel to make sure the muted group can not post and I got this error:

Quote
Parse error: parse error, unexpected ',', expecting ')' in *******/forum/Sources/ManagePermissions.php on line 1293

Here's how it got inserted into the code:

Quote
         'vwarn' => array(
            'vwarn_warn' => false,
            'vwarn_viewlog' => true,
         ),,
         'googlebot' => array(
            'googlebot_view' => false,
         ),         

I assume that I just need to remove the double comma.
Title: Re: vWarn Mod
Post by: Valodim on September 16, 2005, 09:46:33 PM
that is correct. this syntax array('blah',) is correct, but I didn't think about other mods which may want to add their stuff there. fixed in a minute :)

\\ edit

uploaded a version without that comma. it's not a new version, I doubt anyone else has downloaded it in that period and the mistake is really minor ;)
Title: Re: vWarn Mod
Post by: mrandall131 on September 17, 2005, 12:39:45 PM
Foolish question, I see where I can get to individual warning logs,  how do I display / is there a global warning log?

[edit]

Hate to do this to ya, but I uninstalled and reinstalled your new version.  There was no comma on that line I mentioned above.   :o
Title: Re: vWarn Mod
Post by: Valodim on September 17, 2005, 06:25:48 PM
you can use membergroups -> click on the member-count to get a listing of people in a warning group.

didn't do a global warning log... do you think that'd be useful? thought the membergroup listings would be good enough :P

\\ edit

downloaded and checked, and the comma is not there. must be the googlebot mod's fault :P
Title: Re: vWarn Mod
Post by: mrandall131 on September 17, 2005, 09:00:29 PM
LOL!!  Now I understand what you had in mind and I think it works just fine!   ;)
Title: Re: vWarn Mod
Post by: J. Williams on September 18, 2005, 09:37:03 AM
Oh dear another bug

When you remove the mod,it moves the warned etc to post-count based group

Will you fix it?(please)
Title: Re: vWarn Mod
Post by: Valodim on September 18, 2005, 01:07:33 PM
you mean change the groups to normal groups?
Title: Re: vWarn Mod
Post by: J. Williams on September 18, 2005, 01:16:40 PM
yes,it changes them to post count groups on uninstall
Title: Re: vWarn Mod
Post by: Valodim on September 18, 2005, 01:24:53 PM
ok, I'll add a query UPDATE {$db_prefix}membergroups SET minPosts = -1 WHERE minPosts = -2, in about 3 hours. not at home right now. :)
Title: Re: vWarn Mod
Post by: J. Williams on September 18, 2005, 01:28:23 PM
Ok is that query sql executable?
Title: Re: vWarn Mod
Post by: Valodim on September 19, 2005, 01:33:32 PM
done ;)
Title: Re: vWarn Mod
Post by: allever on September 19, 2005, 02:21:03 PM
I'm getting the following errors when I try to install this one: :(

You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'collate latin1_general_ci NOT NULL,
`valid` tinyint(4) NOT
File: ************************/forums/Packages/temp/vWarnDB.php
Line: 13
Title: Re: vWarn Mod
Post by: Valodim on September 19, 2005, 02:39:46 PM
mysql < 4.1 doesn't support collate statement, could you check if that's the cause?
Title: Re: vWarn Mod
Post by: J. Williams on September 19, 2005, 03:06:14 PM
I had to delete my forum due to a bug
Title: Re: vWarn Mod
Post by: allever on September 19, 2005, 03:37:53 PM
Quote from: Valodim on September 19, 2005, 02:39:46 PM
mysql < 4.1 doesn't support collate statement, could you check if that's the cause?
Hrmms... Looks like I have mysql 4.0.22.. that's probably the case
Title: Re: vWarn Mod
Post by: Valodim on September 19, 2005, 05:36:03 PM
allever: I'll take a closer look, expect my answer tomorrow.

Quote
I had to delete my forum due to a bug

huh? you mean, a bug in my mod? or what? o_O
Title: Re: vWarn Mod
Post by: cotdagoo on September 20, 2005, 09:22:53 PM
is it possible to just remove the "collate latin1_general_ci" bit, and still have things work? (my webhost is a 4.0 sql version as well)
Title: Re: vWarn Mod
Post by: mrandall131 on September 21, 2005, 07:08:03 AM
Just a note, I have tried it a couple of times now, to make sure it worked correctly and I noticed a couple things.

1. If you give somone a "moderated" warning, the mod also gives the lower level warning (warned) to the user as well.
2. I couldn't find any place to remove a warning, is there such a place.
Title: Re: vWarn Mod
Post by: Valodim on September 21, 2005, 08:53:56 AM
1. no it doesn't, at least for me. if I set "moderated" to 1 and "warned" and "muted" to 0, the user is only moderated. if you mean "the user is in both membergroups if I warn and moderate him" - yeah that is correct. and makes perfect sense to me. (in the post-profile, only the group with the lowest expiry date is shown) :P

2. just set all warnings to 0. pretty obvious, isn't it? :P
Title: Re: vWarn Mod
Post by: mrandall131 on September 21, 2005, 12:31:10 PM
How, I couldn't find, once I warned someone, a screne to set the values to 0.  Do I have to do it in the database?

The last time I wasned someone, I used the moderated level.  When it took me to the log for that person, both moderated and warned showed up in the box for that particular warning.  When I went to the membergroups page, he was added into both membergroups.
Title: Re: vWarn Mod
Post by: Valodim on September 21, 2005, 12:49:36 PM
erh? in the "warn user" dialogue, obviously. didn't think I'd have to explicitly add that to the help that setting all warning expiry times to 0 is unwarn. it's just like that in the Visual Warning mod, too >_>

and if the time for "warned" is 0, it shouldn't add that group. it doesn't do that for me, and the code wouldn't do that in any case I just checked. >_<
Title: Re: vWarn Mod
Post by: Valodim on September 22, 2005, 10:47:18 AM
this mod is now SMF1.1RC1 compatible :D
Title: Re: vWarn Mod
Post by: mogadishu on September 22, 2005, 03:23:52 PM
There is just an Text "Warn User" Please  Add A Button To IT [You Should Do THAT]
Or give us a code to do that....THANX in advence !

[edit]

You Can Add the "BANNED" Level ?
Title: Re: vWarn Mod
Post by: Valodim on September 22, 2005, 03:58:19 PM
well, if someone made me a button... I'm not a designer, I'm a coder >_>

a "banned" level would be more than a normal membergroup, which would be against the concept of this mod. bans are for ip-ranges, email-addresses, etc, not for user-accounts. just make a group "banned" and deny all permissions, if you like, that'd come pretty close to a ban :P
Title: Re: vWarn Mod
Post by: J. Williams on September 22, 2005, 04:49:21 PM
On the other warning mod,the button was phpbb style. And i'd ask someone from the graphics team about a button
Title: Re: vWarn Mod
Post by: mogadishu on September 22, 2005, 05:01:50 PM
You Can Use [Something] Like  This: *used for [Visual Warning MOD] (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.alexzander.ro%2Fforum%2FThemes%2Fim_visualw.gif&hash=a0968b9367afbe4a4b6723b46e46f827d2a822f1)

Or Use This Button Generator to make a Button For the Default Theme http://yabbg.dyndns.org/Version2/ [ i can't Make 4 you an Button ..Beacause i'm Not A designer Try to Ask Mods]
Anyway ..Please I Want To USE A Button..Give me[US] A Code To Add To MOD [To Show A Button]
Title: Re: vWarn Mod
Post by: Valodim on September 22, 2005, 05:22:56 PM
simple. find this line in the display.template.php template, find this (use Strg+F and search for the comment)


// Show warning button, if they can warn
if ($context['can_warn'])
echo '
<a href="', $scripturl, '?action=profile;u=', $message['member']['id'], ';sa=warn;postid=', $message['id'], ';sesc=', $context['session_id'], '">', (false && $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/warn.gif" alt="' . $txt['warn'] . '" border="0" />' : $txt['warn']), '</a>';


and remove the "false &&" in front of the $settings['use_image_buttons'], then it will use warn.gif from the user's language's images dir...

And What's With All Words Capitalized?
Title: Re: vWarn Mod
Post by: mogadishu on September 22, 2005, 06:08:19 PM
Greate [Support Dude] MOD !
ThanX Alot ! 8)
Title: Re: vWarn Mod
Post by: cotdagoo on September 22, 2005, 08:53:21 PM
is there any sort of work-around or method of using this mod on a host that has mysql 4.0.x?

sorry for asking again, but I would really like to use this mod from all the great things I've read so far.
Title: Re: vWarn Mod
Post by: Valodim on September 23, 2005, 05:50:45 AM
yeah I'll kick the collate statement (later this day :P)
Title: Re: vWarn Mod
Post by: edi67 on September 23, 2005, 06:26:22 AM
can be implemented for users too and not only for membergroups ?
Title: Re: vWarn Mod
Post by: mrandall131 on September 23, 2005, 07:23:38 AM
I'm back, sorry.   ;D

Ok, two things. 

I tried to unwarn (un-moderate) a user by trying to warn him and making the warning time 0.  That didn't work, it said unwarned in the log, but he stayed warned (moderated level). 

Now, #2, he time was up today, and he is still showing the warning level (moderated).   When I went to the warn user screen, the moderaqted level was at -0.02 days??????  Now, I went back in and gave him a warning, we'll see if that deletes the moderated level once it expires.

Just wondering if these are supposed to happen?
Title: Re: vWarn Mod
Post by: Valodim on September 23, 2005, 09:09:26 AM
#1 sounds like a bug. I'll take a look ::)

#2 happens because the auto-unwarn-function is only called every 2 hours. I'll add an option for that in the next version. Do you think the default time is too high?
Title: Re: vWarn Mod
Post by: mrandall131 on September 23, 2005, 10:40:28 AM
Nope, now that I know that fact, I think it is fine. 
Title: Re: vWarn Mod
Post by: J. Williams on September 23, 2005, 12:30:40 PM
I tried it out in the new smf & it made them into post groups again
Title: Re: vWarn Mod
Post by: Purplemadness on September 24, 2005, 10:53:03 AM
Quote from: Valodim on September 22, 2005, 03:58:19 PM
well, if someone made me a button... I'm not a designer, I'm a coder >_>
Here you go, if you don't like it, say it :P
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg106.imageshack.us%2Fimg106%2F8319%2Fwarn1sd.gif&hash=c812f2ad3725a383b7a9e0196bac52760eeedef9)
Title: Re: vWarn Mod
Post by: Valodim on September 25, 2005, 09:25:22 AM
I'm sorry I didn't reply, had some troubles with my pc :P

uploading a new version in a few minutes, including the warn button. also, the "Warn User" is no longer shown for guests' posts, expiry dates < 0 are shown as 0 in warn user dialogue to avoid confusion, and an option for the auto-unwarn delay is available in features and options.

scs: works fine for me. any error log entries (like "can't open stream")? does it show this line in the uninstall steps?

1. Execute Code vWarnDBu.php


mrandall131: just gave it a try and took a look at the code, it should all be working just fine. you sure you're using the latest version, the warning group still exists, etc, etc?
Title: Re: vWarn Mod
Post by: mrandall131 on September 25, 2005, 12:21:49 PM
Yep, I thought I was.  I'll uninstall and grab this latest version later. 
Title: Re: vWarn Mod
Post by: J. Williams on September 25, 2005, 01:08:55 PM
Encountered a problem

The button shows up twice

And heres a big error log

  Scs   Today at 06:07:26 PM 
81.97.89.10     453bb465e0976cd01c594b8f9fdbb2b7 
http://www.southchaddertonschool.jxhosting.co.uk/Community/index.php?topic=3.new 
8: Undefined index: can_warn
File: /home/southcha/public_html/Community/Themes/default/Display.template.php (eval?)
Line: 401

   Scs   Today at 06:07:20 PM 
81.97.89.10     453bb465e0976cd01c594b8f9fdbb2b7 
http://www.southchaddertonschool.jxhosting.co.uk/Community/index.php?action=packages;sa=uninstall2;package=vWarn_111.05.tar.gz 
8: Undefined variable: modSettings
File: /home/southcha/public_html/Community/Sources/Security.php
Line: 231

   Scs   Today at 06:07:16 PM 
81.97.89.10     453bb465e0976cd01c594b8f9fdbb2b7 
http://www.southchaddertonschool.jxhosting.co.uk/Community/index.php?action=packages;sa=uninstall;package=vWarn_111.05.tar.gz 
8: Undefined variable: modSettings
File: /home/southcha/public_html/Community/Sources/Security.php
Line: 231

   Scs   Today at 06:07:13 PM 
81.97.89.10     453bb465e0976cd01c594b8f9fdbb2b7 
http://www.southchaddertonschool.jxhosting.co.uk/Community/index.php?action=packages 
8: Undefined variable: modSettings
File: /home/southcha/public_html/Community/Sources/Security.php
Line: 231

   Scs   Today at 06:07:10 PM 
81.97.89.10     453bb465e0976cd01c594b8f9fdbb2b7 
http://www.southchaddertonschool.jxhosting.co.uk/Community/index.php?action=admin 
8: Undefined variable: modSettings
File: /home/southcha/public_html/Community/Sources/Security.php
Line: 231

   Scs   Today at 06:07:05 PM 
81.97.89.10     453bb465e0976cd01c594b8f9fdbb2b7 
http://www.southchaddertonschool.jxhosting.co.uk/Community/index.php?topic=3.new 
8: Undefined variable: modSettings
File: /home/southcha/public_html/Community/Sources/Security.php
Line: 231

   Scs   Today at 06:06:58 PM 
81.97.89.10     453bb465e0976cd01c594b8f9fdbb2b7 
http://www.southchaddertonschool.jxhosting.co.uk/Community/index.php?topic=3.new 
8: Undefined variable: modSettings
File: /home/southcha/public_html/Community/Sources/Security.php
Line: 231

   Scs   Today at 06:06:56 PM 
81.97.89.10     453bb465e0976cd01c594b8f9fdbb2b7 
http://www.southchaddertonschool.jxhosting.co.uk/Community/index.php 
8: Undefined variable: modSettings
File: /home/southcha/public_html/Community/Sources/Security.php
Line: 231

   Scs   Today at 06:06:54 PM 
81.97.89.10     453bb465e0976cd01c594b8f9fdbb2b7 
http://www.southchaddertonschool.jxhosting.co.uk/Community/index.php?action=profile;u=1;sa=theme 
8: Undefined variable: modSettings
File: /home/southcha/public_html/Community/Sources/Security.php
Line: 231

   Scs   Today at 06:06:53 PM 
81.97.89.10     453bb465e0976cd01c594b8f9fdbb2b7 
http://www.southchaddertonschool.jxhosting.co.uk/Community/index.php?action=theme;sa=pick;u=1;th=1;sesc 
8: Undefined variable: modSettings
File: /home/southcha/public_html/Community/Sources/Security.php
Line: 231

   Scs   Today at 06:06:51 PM 
81.97.89.10     453bb465e0976cd01c594b8f9fdbb2b7 
http://www.southchaddertonschool.jxhosting.co.uk/Community/index.php?action=theme;sa=pick;u=1;sesc 
8: Undefined variable: modSettings
File: /home/southcha/public_html/Community/Sources/Security.php
Line: 231

   Scs   Today at 06:06:50 PM 
81.97.89.10     453bb465e0976cd01c594b8f9fdbb2b7 
http://www.southchaddertonschool.jxhosting.co.uk/Community/index.php?action=profile;u=1;sa=theme 
8: Undefined variable: modSettings
File: /home/southcha/public_html/Community/Sources/Security.php
Line: 231

   Scs   Today at 06:06:47 PM 
81.97.89.10     453bb465e0976cd01c594b8f9fdbb2b7 
http://www.southchaddertonschool.jxhosting.co.uk/Community/index.php?action=profile 
8: Undefined variable: modSettings
File: /home/southcha/public_html/Community/Sources/Security.php
Line: 231

   Scs   Today at 06:06:36 PM 
81.97.89.10     453bb465e0976cd01c594b8f9fdbb2b7 
http://www.southchaddertonschool.jxhosting.co.uk/Community/index.php?topic=3.new 
8: Undefined variable: modSettings
File: /home/southcha/public_html/Community/Sources/Security.php
Line: 231

   Scs   Today at 06:06:34 PM 
81.97.89.10     453bb465e0976cd01c594b8f9fdbb2b7 
http://www.southchaddertonschool.jxhosting.co.uk/Community/index.php 
8: Undefined variable: modSettings
File: /home/southcha/public_html/Community/Sources/Security.php
Line: 231

Title: Re: vWarn Mod
Post by: Valodim on September 25, 2005, 03:54:54 PM
aw I'm sorry, forgot to put $modSettings into the global vars in the unwarn routine for the mod file. fixed (no new version, only 5 people downloaded by now) :)

Quote
The button shows up twice

8: Undefined index: can_warn

you sure it got uninstalled and installed correctly? those are two errors which shouldn't occur on a proper install.  ::)

made the can_warn thingie more failsafe, anyways...
Title: Re: vWarn Mod
Post by: xd3vilx on September 26, 2005, 07:37:59 AM
i got this error while install the mods...

QuoteDatabase Error

You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'collate latin1_general_ci NOT NULL,
`valid` tinyint(4) NOT
File: /home/ddren09/public_html/forum/Packages/temp/vWarnDB.php
Line: 13
Title: Re: vWarn Mod
Post by: J. Williams on September 26, 2005, 08:29:57 AM
Search the post for anwsers
Title: Re: vWarn Mod
Post by: xd3vilx on September 26, 2005, 11:45:46 AM
i found the reason...my host is using SQL v 4.0.25-standard... :'(
Title: Re: vWarn Mod
Post by: VxJasonxV on September 26, 2005, 12:06:00 PM
I read back on page 4  that you made this mod 1.1 rc1 compatible on the 22nd, but I'm still having problems.

I just removed 1.03 and added 1.05, and I'm still getting the same error as before.
Quote from: The Permissions PageYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '< 0
ORDER BY minPosts, IF(ID_GROUP < 4, ID_GROUP, 4), groupName' at line 3
File: /home/.taily/rhythmatic/rhythmatic.net/forums/Sources/ManagePermissions.php
Line: 201
Title: Re: vWarn Mod
Post by: J. Williams on September 26, 2005, 04:05:51 PM
Jason

Uninstall the mod,
Look for managepermissions template in the default theme
Delete the template
If so,go in to cpanel,find the template that looks the same but with ~ on the end
Rename it to original & there you go

If still not solved,do this!
Go into sources folder
Delete the managepermissions.php
Look for the same file with a ~ on the end
Rename the ~ one to original file
Title: Re: vWarn Mod
Post by: Valodim on September 26, 2005, 04:27:11 PM
damn, why is that error back?! I fixed it before adding 1.1rc support >_<

anyways, fixed.

uploading a sql4.0 version in a moment, could you tell me if that one works, then? I'd prefer not having to downgrade my mysql just to test that. thanks :)
Title: Re: vWarn Mod
Post by: VxJasonxV on September 26, 2005, 04:46:58 PM
Looks good, thanks Valodim!
Title: Re: vWarn Mod
Post by: cotdagoo on September 26, 2005, 09:12:47 PM
seems to install fine on mysql 4.0.x now!

I had a few errors when installing about not being able to open/copy the gif files from the temp dir, but everything else was smooth.
Title: Re: vWarn Mod
Post by: Valodim on September 27, 2005, 02:15:01 AM
yeah that seems to be a bug in 11rc, it can't get the files extracted right. couldn't find a way around that yet :(
Title: Re: vWarn Mod
Post by: cotdagoo on September 27, 2005, 04:38:21 AM
any luck on the unwarn user bug? I had a moderator test the function on himself, and well we can't seem to unwarn him, even though the log says unwarned. edit: it seems to unwarn the user for the time being, but seems the warning is re-set after a couple hours.

really appreciate all the work you've done with this mod :)
Title: Re: vWarn Mod
Post by: Valodim on September 27, 2005, 10:34:46 AM
aaah, that's it! a'ight, I know 'sup now, thanks. I'll fix it later this day.

\\ edit

FIXED. thank you very much. the "warn user" routine didn't invalidate the old entries, and the auto-unwarn routine processed old entries, too, giving back old warnings. should work now. minor but important. :D

improved modlog-link, too. anything else I could do for you? ;)
Title: Re: vWarn Mod
Post by: J. Williams on September 28, 2005, 09:15:01 AM
I still can't unwarn
Title: Re: vWarn Mod
Post by: mrandall131 on September 28, 2005, 10:07:51 AM
The unwarning seems to work in 1.1 RC1 for me.
Title: Re: vWarn Mod
Post by: Gary on September 28, 2005, 10:51:22 AM
Can you create more than 3 warning levels? coz I want to have 7 different levels. That do various things.
Title: Re: vWarn Mod
Post by: J. Williams on September 28, 2005, 11:50:51 AM
Go into membergroups in admin section & add them
Title: Re: vWarn Mod
Post by: Gary on September 28, 2005, 11:58:24 AM
One more question, is it compatable with SMF 1.1 RC 1?
Title: Re: vWarn Mod
Post by: Valodim on September 28, 2005, 12:18:23 PM
Quote from: Mod Description
this mod is smf11rc1 compatible.

also, being able to add own warn levels is the whole point of the membergroups idea ;)

scs: any error? does it just not unwarn, or what? o-O
Title: Re: vWarn Mod
Post by: J. Williams on September 28, 2005, 01:11:04 PM
I tried to unwarn myself but in summary,still warned :(
Title: Re: vWarn Mod
Post by: Valodim on September 29, 2005, 10:30:35 AM
I can't fix what I can't see (-> reproduce on my pc), sorry. need more info :(
Title: Re: vWarn Mod
Post by: Padfoot on September 30, 2005, 11:31:22 AM
How exactly can i set this up to "pre moderate" warned users posts?

Title: Re: vWarn Mod
Post by: Valodim on October 02, 2005, 07:52:42 AM
this feature is not included with this mod package. I will write a separate mod for that, but at the moment I've got other things to do, sorry :(
Title: Re: vWarn Mod
Post by: edi67 on October 14, 2005, 07:29:33 PM
tryed to install and give me back this errro:

[b]Fatal error: packageinstall(): [/b] Failed opening required '/home/forumzonenetru/www/Packages/temp/./vWarnDB.php' (include_path='.:/usr/local/lib/php') in /home/forumzonenetru/www/Sources/Packages.php on line 534

File Packages.php

QuoteLine 533  // Now include the file and be done with it ;).
Line 534            require($boarddir . '/Packages/temp/' . $context['base_path'] . $action['filename']);
Line 535         }

some solution?
Title: Re: vWarn Mod
Post by: J. Williams on October 15, 2005, 05:50:43 AM
Have you any other mods installed?
Title: Re: vWarn Mod
Post by: edi67 on October 15, 2005, 09:47:17 AM
Quote from: scs on October 15, 2005, 05:50:43 AM
Have you any other mods installed?

i have 10 mods installed and working correctly
Title: Re: vWarn Mod
Post by: J. Williams on October 15, 2005, 10:20:19 AM
Vwarn does touch that file.

Try checking if another mod has touched that
Title: Re: vWarn Mod
Post by: edi67 on October 15, 2005, 07:43:22 PM
Quote from: scs on October 15, 2005, 10:20:19 AM
Vwarn does touch that file.

Try checking if another mod has touched that

i have this error only trying to install Vwarm mod...i think something wrong for me creating Table in DB, may be because i not have db_prefix ..or something else

look error:
QuoteFatal error: packageinstall(): Failed opening required '/home/forumzonenetru/www/Packages/temp/./vWarnDB.php' (include_path='.:/usr/local/lib/php') in /home/forumzonenetru/www/Sources/Packages.php on line 534


one strange thing that happen is that installing mod , create in my Ftp directory new fold Packages and Themes i dont know why this, i have all form installed inside directory www ( default by server) all mods installed correctly this not create and insert the files in new folder, may be the path of installation inside mod is wrogn please help me valodim
Title: Re: vWarn Mod
Post by: J. Williams on October 16, 2005, 07:00:13 AM
chmod permissions?
Title: Re: vWarn Mod
Post by: edi67 on October 17, 2005, 12:42:08 PM
Quote from: scs on October 16, 2005, 07:00:13 AM
chmod permissions?

all to 777 i have already 10 mods installed and without such permissions will not work
Title: Re: vWarn Mod
Post by: J. Williams on October 17, 2005, 02:38:41 PM
I bet mods are colliding
Title: Re: vWarn Mod
Post by: modtang on October 22, 2005, 06:43:24 PM
Does anyone have this working on 1.0.5? Any changes need to be made to get it working? Thanks.
Title: Re: vWarn Mod
Post by: J. Williams on October 23, 2005, 03:16:57 AM
This mod is only compatible in the 1.1 series
Title: Re: vWarn Mod
Post by: Nitro on October 25, 2005, 05:00:39 PM
while i had to install this MOD manually i get this error:

Fatal error: Call to undefined function: db_query() in /homepages/20/d107436098/htdocs/bb/bb/vWarnDB.php on line 3

i have added all that LONG code manually. i assume i had to run the vWarnDB.php, right? well, after i tried to run that file, it gave me the error above.

any ideas?
Title: Re: vWarn Mod
Post by: J. Williams on October 25, 2005, 05:19:37 PM
Any mods installed apart from this?
Title: Re: vWarn Mod
Post by: Moocat on October 29, 2005, 04:20:21 AM
hello, having some issues with this mod. in fact, alot of them. the biggest one is that it doesn't do what it's supposed to do. i re-downloaded the 1.08 version just today and its still not working.
i mute someone
and then set the muted member groups permissions to no posting new topics or replying, then log on that account, and i can post new topics and reply to currently existing ones. any fix for this?
Title: Re: vWarn Mod
Post by: mrandall131 on November 26, 2005, 10:51:28 PM
Just installed this on 1.1RC1 and I think this is generating an error.  Here is the error and line of code:

Quote from: Error
2: array_intersect(): Argument #2 is not an array
File: **********/forum/Sources/Profile.php
Line: 290

Quote from: Code, Line 290
      'warnings' => array_intersect(explode(',', $user_profile[$memID]['additionalGroups']), array_keys($warningGroups)),

Any ideas?  Still seems to work fine though. Wierd.
Title: Re: vWarn Mod
Post by: mrandall131 on November 27, 2005, 07:46:14 AM
Also got this error today. . . .

Quote from: error
2: array_keys(): The first argument should be an array
File: *********/forum/Sources/Profile.php
Line: 290
Title: Re: vWarn Mod
Post by: mrandall131 on November 28, 2005, 10:44:26 PM
One more thing.  I compared the profile.php from 1.1B3 installation I used to use to this one.  Seems like they are the same.
Title: Re: vWarn Mod
Post by: desistyle on November 29, 2005, 12:46:58 AM
the mod is working fine can someone tell me if i wanna just give one user a permission to just to warn other members how can i do that ?
Title: Re: vWarn Mod
Post by: mrandall131 on November 30, 2005, 11:55:02 AM
Solved!  For some reason, load.php wnot updated.  I just updated it manually and now . . . . no errors!
Title: Re: vWarn Mod
Post by: pcigre on January 05, 2006, 10:06:16 AM
Will this mod get 1.1RC2 compatibile version? As for now there isn't any working warrning mod :-(
Title: Re: vWarn Mod
Post by: J. Williams on January 05, 2006, 10:56:57 AM
Sorry valodim hasn't been active lately so someone will have to take over for him.
Title: Re: vWarn Mod
Post by: Gary on January 12, 2006, 06:59:42 AM
Any word with RC2?
Title: Re: vWarn Mod
Post by: mogadishu on April 14, 2006, 11:19:44 AM
Anny UPDATE To Work With: SMF 1.0.7  ?????
Title: Re: vWarn Mod
Post by: J. Williams on April 15, 2006, 04:21:23 AM
There is another mod for RC2 & No mod for smf 1.0.7
Title: Re: vWarn Mod
Post by: mogadishu on April 16, 2006, 04:52:10 PM
Quote from: J J Williams on April 15, 2006, 04:21:23 AM
There is another mod for RC2 & No mod for smf 1.0.7

And That Mod Will WORK ??
Title: Re: vWarn Mod
Post by: Vinspire^ on April 18, 2006, 07:29:27 AM
I got this error when i am trying to install this mod.

So, is it working on RC2 or not ?
Title: Re: vWarn Mod
Post by: J. Williams on April 18, 2006, 09:01:12 AM
I'd recommend someone take over the mod as the author has not done any updates recently.
Title: Re: vWarn Mod
Post by: Hwoarang on August 07, 2006, 09:01:02 PM
I have read through this thread, and still haven't found a soloutioun how to unwarn someone. Can this have anything to do with the fact that the warning/muted/moderated buttons dosen't show up? Do we need to fix them first?
Title: Re: vWarn Mod
Post by: J. Williams on August 08, 2006, 03:46:02 AM
The buttons may not show up on a custom (non-default) theme, so you need to upload them to their corresponding areas
Title: Re: vWarn Mod
Post by: Hwoarang on August 08, 2006, 11:23:38 AM
I figured as much, but will this just be a cosmetic change, or will it make me able to unwarn people?
Title: Re: vWarn Mod
Post by: ArkServer on August 09, 2006, 10:41:50 AM
Works here.. 1.1 rc2
http://atlantis.montecarlohosting.net/~arksvr/forum/index.php?topic=3253.0

I had this mod for ages
Title: Re: vWarn Mod
Post by: ArkServer on August 09, 2006, 12:18:39 PM
Hm, on second though.. i also have a questions: is it possible that a local moderator can only warn in the board he moderates and not outside his own board?
Title: Re: vWarn Mod
Post by: Valodim on August 25, 2006, 07:52:20 PM
hey guys :)

been away for a while, and it seems there's still interest in this mod? I'm going to update it in a short while, and see if I can get it to work with 1.0.7 and 1.1RC3. :)

arkserver:
I considered adding that, but after giving it some thought, that doesn't make much sense, since some warnings are not even related to one particular post but overall behaviour of a user, and a mod willing to abuse his power can just find a post by the victim in his own board.

do the expiration dates work for you? it doesn't work on my forum, but since I put together the mod after implementing it there that might just be me :P

and I'm definitely going to add a note on unwarning in the help topics. to unwarn, just set all warning levels to 0.0, can't be that hard :-\
Title: Re: vWarn Mod
Post by: fiver on September 01, 2006, 03:14:20 AM
Hi Valodim,

Your mod makes a lot of sense, especially being able to set many levels. Look forward to the version for 1.1rc3.

:)
Title: Re: vWarn Mod
Post by: Bigguy on September 01, 2006, 03:18:34 AM
I have this mod working on RC3. It entales changing the version # in the package-info.xml. this is a very useful mod and it'd be great when it does actually come out for RC3. Can't wait. :)
Title: Re: vWarn Mod
Post by: Valodim on September 06, 2006, 05:01:58 PM
There you go :)

I hope everything works all right. Didn't include RC2 compatibility, imo it's not worth the effort, sorry :P

also minor fixup: warning log entries are now greyed out when they aren't valid anymore (eg, the warning has been lifted), even if they havn't expired by date yet :)
Title: Re: vWarn Mod
Post by: Hwoarang on September 11, 2006, 11:49:18 AM
Quote from: Valodim on August 25, 2006, 07:52:20 PM
hey guys :)

been away for a while, and it seems there's still interest in this mod? I'm going to update it in a short while, and see if I can get it to work with 1.0.7 and 1.1RC3. :)

arkserver:
I considered adding that, but after giving it some thought, that doesn't make much sense, since some warnings are not even related to one particular post but overall behaviour of a user, and a mod willing to abuse his power can just find a post by the victim in his own board.

do the expiration dates work for you? it doesn't work on my forum, but since I put together the mod after implementing it there that might just be me :P

and I'm definitely going to add a note on unwarning in the help topics. to unwarn, just set all warning levels to 0.0, can't be that hard :-\

I did that and it didn't work for me, however i found a soloution to remove warnings. I just  went on the administration panel and clicked the options on the wanred group, I unchecked the "this is a warning group" box, and i was able to remove members from the group then, and then i just checked the box again to make it a warning group again, when i had removed the members that shouldn't be there.
Title: Re: vWarn Mod
Post by: skajeff on October 25, 2006, 05:49:19 PM
When I go to install the mod, everything test installs perfectly except load.php.

I am running 1.1RC3.

Any tips?

-- Jeff, VegasSka.com
Title: Re: vWarn Mod
Post by: ownagestudios on November 04, 2006, 11:13:02 AM
How would I get this to work on a custom theme?
Title: Re: vWarn Mod
Post by: Valodim on November 05, 2006, 06:38:32 PM
depends. does your custom theme have a custom profile.template.php?

Quote
When I go to install the mod, everything test installs perfectly except load.php.

possibly a conflict with other mods, not much I can do there, really :-\
Title: Re: vWarn Mod
Post by: fiver on November 26, 2006, 11:04:32 PM
Hi Valodim,

I warned a member and set expiry in 3 days. After the expiry, I had a look at this member's profile's permission and the Warned permission is still not lifted.

I'll try Hwoarang's suggestion for now. Hope you can fix this. Thanks for the great mod.

;D

Title: Re: vWarn Mod
Post by: eledagli on November 27, 2006, 09:59:49 AM
5236958*-8,
,8/+
,,,+,01_550255263
6355löä-
Title: Re: vWarn Mod
Post by: AmadeusHF on November 28, 2006, 02:54:11 AM
Hello,

First, I would like to thanks the author for this usefull mod. I installed it with minor changes (english => english-utf8 is mod file, for some changes) and it's ok on a RC3...but...

But the current archive on SMF server does not contains several templates. In fact, no templates are inside the zip file. Are this template just missing or can I get them from another mod ? There is no dependencies specified in the mod...:(

Can anyone provide me the file ?

Thx in advance. ;)
Title: Re: vWarn Mod
Post by: Valodim on November 28, 2006, 12:42:58 PM
there's only the warning dialogue and the warning log, both are placed in the profile.template.php :)

about the expiration, I have checked for mistakes on my part several times now, I still couldn't find anything :(


Quote from: eledagli on November 27, 2006, 09:59:49 AM
5236958*-8,
,8/+
,,,+,01_550255263
6355löä-

uh... whatever you say.
Title: Re: vWarn Mod
Post by: AmadeusHF on November 28, 2006, 01:17:57 PM
You got it ;)

I missed those changes. I just copy / past them to my current Theme and it works. Thx m8 ;)
Title: Re: vWarn Mod
Post by: Lamarck on January 12, 2007, 01:02:13 PM
Please,update It to work with SMF 1.1.1.

I tried to apply the mod manually,and when I try to run vWarnDB.php I get this error:

Fatal error: Call to undefined function db_query() in /home/vol3/byethost9.com/b9_222711/silvanost.net/htdocs/foro/vWarnDB.php on line 5

Any help?.I Really need this mod.
Title: Re: vWarn Mod
Post by: AmadeusHF on January 15, 2007, 02:54:33 AM
I've got it working well with SMF 1.1.1...I don't rememberI had to change anything to get it working.
Title: Re: vWarn Mod
Post by: Lamarck on January 15, 2007, 07:57:02 AM
Hi,now It works.I just had to make the SQL query in phpmyadmin.

However,mod would be even better if:

1-No one could warn administrators.If you give warn permissions to global mods,they can warn you too.I think this could be fixed.

2-Moderators should be able to warn only in their boards.

Can someone make it?
Title: Re: vWarn Mod
Post by: Valodim on January 15, 2007, 10:16:51 AM
Quote
2-Moderators should be able to warn only in their boards.

I thought about this, but dropped the idea. If a mod wants to abuse his power, he can find a post by that user in his forum and warn. If he doesn't, he simply won't warn in someone elses domain. Apart from that, this allows anyone to quickly mute obvious hit-and-run spammers, without any delay until the mod of a forum he posted in, or an admin come online.

Quote
1-No one could warn administrators.If you give warn permissions to global mods,they can warn you too.I think this could be fixed.

if that's something you have to worry about, you've got a strange bunch of people moderating your forum, seriously :P
Title: Re: vWarn Mod
Post by: Gary on January 15, 2007, 10:46:12 AM
Heh yeah. Really, if you're gonna warn an admin then you're just strange.

However, on my forum, one member warned himself.... :P

-AwwLilMaggie
Title: Re: vWarn Mod
Post by: Lamarck on January 15, 2007, 11:27:05 AM

Quote
if that's something you have to worry about, you've got a strange bunch of people moderating your forum, seriously :P

Well,I was thinking also in mods who warn global mods and stuff like that.Just for security reasons,I'm not such a bad admin :P

Also mute warn don't work with global admins and mods,or at least in my forum...

Anyway,vWarn is a really good mod,congratulations.Maybe It needs to be update to work with 1.1.1 (just because I can't install It with the automatic package installer,I installed It manually),and some new features in the future.

I strongly suggest to make a way to ban users that arrive to certain warn.I know this was suggested in this thread (and I saw your reply),but that would be a nice extra.

But as I said,It's really nice.Thank you very much.
Title: Re: vWarn Mod
Post by: okapi on February 13, 2007, 05:10:24 PM
Hello, i have a problem with the mod. When i warning a user, the warnings of others users disappear :S  
Title: Re: vWarn Mod
Post by: MOH: Rising Sun Master on February 13, 2007, 05:15:07 PM
How do I make this work with vB Green theme?
Title: Re: vWarn Mod
Post by: ilkayalp on February 20, 2007, 05:05:19 AM
How is install this Mod ?  
Title: Re: vWarn Mod
Post by: EvilGeneral on February 22, 2007, 07:45:30 PM
1.1.2 plz =D
Title: Re: vWarn Mod
Post by: Lamarck on February 23, 2007, 07:55:51 AM
Valodim,please update your mod :P
Title: Re: vWarn Mod
Post by: Valodim on February 28, 2007, 03:21:11 PM
working on it :)
Title: Re: vWarn Mod
Post by: Valodim on February 28, 2007, 03:33:15 PM
Quote from: okapi on February 13, 2007, 05:10:24 PM
Hello, i have a problem with the mod. When i warning a user, the warnings of others users disappear :S 

THANK YOU for this hint!! Man I was hunting ghosts in the timed unwarn-routine for ages, and overlooked a missing WHERE clause in the UPDATE query of the warn function! gawd dayum. Finally! Now that makes the mod actually work how it's supposed to! Great! :D

updated for 1.1.2, this will probably work for 1.1.1 and 1.0 final too, but I'm too lazy to test it :P
Title: Re: vWarn Mod
Post by: JohnnyMcKinney on February 28, 2007, 08:51:04 PM
Ok I have kind of a stupid question. How do we remove someone from the Warned list?
Title: Re: vWarn Mod
Post by: Valodim on March 01, 2007, 02:10:08 PM
it's mentioned in the "?" help popup of the warn menu: just set all warning times to zero.
Title: Re: vWarn Mod
Post by: JohnnyMcKinney on March 01, 2007, 02:50:12 PM
Ok cool. One more stupid question.... Can moderators raise warning levels? If not can you fix it so that they can?
Title: Re: vWarn Mod
Post by: Valodim on March 01, 2007, 03:42:35 PM
umm... set the permissions accordingly? this is smf, my friend :)
Title: Re: vWarn Mod
Post by: JohnnyMcKinney on March 01, 2007, 06:27:28 PM
A little more detailed? Where would I do this?
Title: Re: vWarn Mod
Post by: okapi on March 01, 2007, 09:45:00 PM
Quote from: Valodim on February 28, 2007, 03:33:15 PM
Quote from: okapi on February 13, 2007, 05:10:24 PM
Hello, i have a problem with the mod. When i warning a user, the warnings of others users disappear :S 

THANK YOU for this hint!! Man I was hunting ghosts in the timed unwarn-routine for ages, and overlooked a missing WHERE clause in the UPDATE query of the warn function! gawd dayum. Finally! Now that makes the mod actually work how it's supposed to! Great! :D

updated for 1.1.2, this will probably work for 1.1.1 and 1.0 final too, but I'm too lazy to test it :P

thx to you :)
Title: Re: vWarn Mod
Post by: Valodim on March 02, 2007, 09:44:16 AM
Quote from: JohnnyMcKinney on March 01, 2007, 06:27:28 PM
A little more detailed? Where would I do this?

in the "permissions" tab in the admin menu...
Title: Re: vWarn Mod
Post by: HecKel on March 04, 2007, 05:22:41 PM
Hi!

I didn't install this mod yet..., but I read on the mod page that this mod hasn't post moderation..., this mod still without this feature?

HecKel
Title: Re: vWarn Mod
Post by: JohnnyMcKinney on March 05, 2007, 05:40:26 PM
Hey Ive got users saying they can't post after being warned? I've even gave them permission and in the boards too. HELP?
Title: Re: vWarn Mod
Post by: tensop on March 05, 2007, 11:18:28 PM
Is there a central warn system with this where i can list all the people who currently have warns
Title: Re: vWarn Mod
Post by: Valodim on March 06, 2007, 03:23:39 PM
Quote from: tensop on March 05, 2007, 11:18:28 PM
Is there a central warn system with this where i can list all the people who currently have warns

you can click on the number (I think it's always zero, smf has some problems there) to get a listing in the membergroup admin dialogue, like any other group. this action:
http://domain.com/smf/index.php?action=membergroups;sa=members;group=GROUPID
replace GROUPID with the warning group id

Quote from: JohnnyMcKinney on March 05, 2007, 05:40:26 PM
Hey Ive got users saying they can't post after being warned? I've even gave them permission and in the boards too. HELP?

check the "Show Permissions" tab in the user profile. you sure they are not denied that permission from some membergroup? or maybe you checked the "board access" checkbox for the board in question in a warning group (keep in mind these have reverse effect, members in warning groups can NOT access all boards checked for that group no matter their other groups!)
Title: Re: vWarn Mod
Post by: JohnnyMcKinney on March 06, 2007, 06:14:12 PM
WTF? So in boards I need to give them access, but in permissions I do the oposite of what it says?
Title: Re: vWarn Mod
Post by: Valodim on March 07, 2007, 08:14:26 AM
those settings are the same, just on different interfaces.

warning groups do not grant access (why would they? a forum for warned people only?), they only deny. this way, it's possible to set up warning groups which exclude a user from a specific forum, for a specific time.

uncheck all access checkboxes for your warning groups to leave board access as it is.
Title: Re: vWarn Mod
Post by: tensop on March 07, 2007, 09:37:51 AM
I had that same problem, warned etc users couldnt see any boards, so under 'manage member groups' down in the warned/muted/moderated section i clicked 'modify', clicked 'show visible boards' and i UNTICKED everything there, that allowed them to see stuff.

Title: Re: vWarn Mod
Post by: tensop on March 07, 2007, 09:46:43 AM
I know you're pretty busy, but I may aswell chuck in some feature requests :)

Though the listing by membergroup works well, it would be good if there was a way to list it straight out from the admin panel, so any global mod could just click a button.

Secondly, would it be possible so that all Messages sent out come from 1 particular user eg "Moderator team" so as to avoid direct abuse from members of the forum

Third, and last - would it be possible so A message is left in the post for which they were warned

Thanks :)
Title: Re: vWarn Mod
Post by: Valodim on March 07, 2007, 10:17:35 AM
I will see what I can do. May take a few days...

Quote from: tensop on March 07, 2007, 09:37:51 AM
I had that same problem, warned etc users couldnt see any boards, so under 'manage member groups' down in the warned/muted/moderated section i clicked 'modify', clicked 'show visible boards' and i UNTICKED everything there, that allowed them to see stuff.

well it's in the readme. not my fault if people don't read that... made that part bold now to avoid further missunderstandings.
Title: Re: vWarn Mod
Post by: Orange789 on March 08, 2007, 06:17:13 AM
Not sure if this is the correct place to post this so will apologise if it is not

Would anybody be able to modify this slightly so that you can have a Post-Moderated board ?

Meaning all posts to a specific board MUST be approved first ? And ideally, a TRUSTED user feature for these boards where trusted users would not need approval.

I think this would be a valuable feature for a lot of people.
Title: Re: vWarn Mod
Post by: HecKel on March 08, 2007, 04:28:00 PM
Quote from: HecKel on March 04, 2007, 05:22:41 PM
Hi!

I didn't install this mod yet..., but I read on the mod page that this mod hasn't post moderation..., this mod still without this feature?

HecKel

bump

HecKel
Title: Re: vWarn Mod
Post by: Valodim on March 08, 2007, 04:43:51 PM
yes it is. otherwise, the readme would say so ;)
Title: Re: vWarn Mod
Post by: okapi on March 15, 2007, 05:46:29 PM
Another bug, when a alert ends, the denied permissions of a user group (mute can't reply for example) continues.
Title: Re: vWarn Mod
Post by: JohnnyMcKinney on March 16, 2007, 04:25:58 PM
Yea that happens to me also.
Title: Re: vWarn Mod
Post by: okapi on March 17, 2007, 06:31:37 AM
It is easy to solve, when a alert ends, the mod automatically need to put a 0 days alert to the user, but i do not know how to do :(
Title: Re: vWarn Mod
Post by: tensop on March 20, 2007, 08:43:38 AM
yeah, im having a problem where the users warn isnt actually expiring, sometimes they remain in the group, or their 'warned' message sticks etc
Title: Re: vWarn Mod
Post by: okapi on March 22, 2007, 11:02:36 AM
Valodim help :(
Title: Re: vWarn Mod
Post by: Valodim on March 22, 2007, 11:36:05 AM
geez :(

gonna take care of it. may take a while, though...
Title: Re: vWarn Mod
Post by: haschi on March 24, 2007, 08:54:10 PM
Hi!

I can't install the Mod.

No file is changed after installing mod. Test is successfull, but nothing happened.

SMF 1.1.2

Thanks!

Marco
Title: Re: vWarn Mod
Post by: Yellowrose on March 29, 2007, 12:00:27 PM
Valodim

I have installed this with SMF 1.1.2 and TP and some other mods as well and it works great with the exception of all forum members being able to see that a member has been warned.

Is there a way to edit the code so just forum staff (Admins/Moderators) are the ones to see the warnings that have been issued.

I have a game fansite with some young members and children can be cruel to one another and begin flamming one another because of a warning.

I know peer pressure works in some cases but we fear this may not be one of them. I have no problem editing the code so if you can tell me what to look for and where to edit and what to include in the edit I can edit the needed templates to achieve what I need for my sote.

I'm not a programer or would try this myself but have no problem using copy and paste to edit templates.

Thnaks in advance for any help you can offer.
Title: Re: vWarn Mod
Post by: BlackMagic48 on March 31, 2007, 01:29:18 PM
Quote
Fatal error: Cannot redeclare isnotminusone() (previously declared in /home/*****/domains/*****/public_html/forums/Sources/Load.php:874) in /home/*****/domains/*****/public_html/forums/Sources/Load.php on line 874

The above error message replaces all pages of my forum. I mean ALL pages. I see nothing but that error message.

Then after rectifying that (removing the duplicated function), I get the following error:

Quote
Fatal error: Cannot redeclare autowarn() (previously declared in /home/*****/domains/*****/public_html/forums/Sources/Security.php:203) in /home/*****/domains/*****/public_html/forums/Sources/Security.php on line 266

Again, after rectifying that, I got the following error every time I tried to view a thread:

Quote
Not unique table/alias: 'w'
File: /home/*****/domains/*****/public_html/forums/Sources/Load.php
Line: 932

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.2, while your database is at version 1.1.1. The above error might possibly go away if you execute the latest version of upgrade.php.

The odd thing being that I've had SMF 1.1.2 installed for a month or so now with no problems before installing your mod.

It's only after uninstalling this stupid excuse for a mod that my forum returned to some normality!
Title: Re: vWarn Mod
Post by: okapi on April 19, 2007, 12:11:27 PM
any news about the bug? :^(
Title: Re: vWarn Mod
Post by: preddy25 on April 30, 2007, 11:57:40 AM
any updates? i thought the after the warnings expired , the user would be move out of the group automatically...guess not , but is  a great mod in the first place!

thanks val! keep up the good work! ...just more work for my moderators now..ehhe
Title: Re: vWarn Mod
Post by: peta-sucks.com on May 03, 2007, 12:03:46 AM
I need suggestions on what permissions to give for each level of warning.
Title: Re: vWarn Mod
Post by: preddy25 on May 03, 2007, 06:38:54 AM
maybe u should try to read up whats the meaning of beta and while almost all peeps here tried it without problems , there is always a weird who would blame it on the mod rather this is lack of knowledge and caution..doh


Quote from: BlackMagic48 on March 31, 2007, 01:29:18 PM
Quote
Fatal error: Cannot redeclare isnotminusone() (previously declared in /home/*****/domains/*****/public_html/forums/Sources/Load.php:874) in /home/*****/domains/*****/public_html/forums/Sources/Load.php on line 874

The above error message replaces all pages of my forum. I mean ALL pages. I see nothing but that error message.

Then after rectifying that (removing the duplicated function), I get the following error:

Quote
Fatal error: Cannot redeclare autowarn() (previously declared in /home/*****/domains/*****/public_html/forums/Sources/Security.php:203) in /home/*****/domains/*****/public_html/forums/Sources/Security.php on line 266

Again, after rectifying that, I got the following error every time I tried to view a thread:

Quote
Not unique table/alias: 'w'
File: /home/*****/domains/*****/public_html/forums/Sources/Load.php
Line: 932

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.2, while your database is at version 1.1.1. The above error might possibly go away if you execute the latest version of upgrade.php.

The odd thing being that I've had SMF 1.1.2 installed for a month or so now with no problems before installing your mod.

It's only after uninstalling this stupid excuse for a mod that my forum returned to some normality!
Title: Re: vWarn Mod
Post by: HecKel on June 26, 2007, 08:48:11 PM
Hi!

How can I set to only moderators and admins can see who is warned?

I don't want that all users can see who is warned, only who is mutted and banned.

HecKel
Title: Re: vWarn Mod
Post by: askepott on July 02, 2007, 07:14:05 AM
^I want that too. is it possible ?
Title: Re: vWarn Mod
Post by: ~Unkn0wn~ on July 04, 2007, 11:16:26 AM
Works on latest version?
Title: Re: vWarn Mod
Post by: computel on July 11, 2007, 11:57:28 PM
can't get the banned warning of one of my members account how do I fix this. I tried everything the trigger will not change
Title: Re: vWarn Mod
Post by: Stargater59 on July 13, 2007, 01:17:48 PM
I have a problem.

When my forum was upgraded to 1.1.3 some of the uninstall links went away. Well when I enter the right URL to uninstall it (at least I think it's right) it says that there is no uninstaller.

So what do I do?
Title: Re: vWarn Mod
Post by: redone on July 13, 2007, 02:12:17 PM
Quote from: computel on July 11, 2007, 11:57:28 PM
can't get the banned warning of one of my members account how do I fix this. I tried everything the trigger will not change

If you are talking about "un-warning" a member then you just enter a zero for the days of the warning. This will remove the warning.

As for the last poster regarding uninstalling for 1.1.3. This mod was originally written for 1.1.2 and the installer as yet is not updated to install/uninstall for the current release of SMF.

You would have to update/change the packaged package-info.xml file to include 1.1.3 to install and uninstall.



Title: Re: vWarn Mod
Post by: Stargater59 on July 13, 2007, 03:10:58 PM
Well now I think I just made a stupid mistake. I didn't know how to change the file online to say 1.1.3 instead of 1.1.2, so I downloaded the mod, opened it up and then I changed the number. Well.. then I uploaded it, and installed it. And now I'm getting this

"Fatal error: Cannot redeclare isnotminusone() (previously declared in /home/uowm/public_html/forums/Sources/Load.php:1175) in /home/uowm/public_html/forums/Sources/Load.php on line 1182"

Now what do I do?
Title: Re: vWarn Mod
Post by: redone on July 13, 2007, 04:02:09 PM
For some reason it installs the same function twice. I have attached a copy of the Security.php with the additional function removed.

Try that.

Title: Re: vWarn Mod
Post by: Stargater59 on July 13, 2007, 05:44:07 PM
I'm still getting the error.

Edit:

Never mind, the problem has been fixed.

Well, the error has been taken away. But the uninstall link still isn't there.
Title: Re: vWarn Mod
Post by: redone on July 14, 2007, 09:21:49 AM
You would probably have to remove the mod manually for now until its updated.
Title: Re: vWarn Mod
Post by: Stargater59 on July 14, 2007, 11:16:23 AM
How do I do that? Even if I put the right URL in to uninstall it, it says there is no uninstaller.

Also profiles aren't working either.  And I think it's because of the mod. I don't think it's installed all the way. Does it add stuff to load.php? Because I uploaded a new load.php and that's what fixed everything else.
Title: Re: vWarn Mod
Post by: redone on July 14, 2007, 12:01:06 PM
To remove it manually you would just overwrite the files it changed with new ones.

And yes, it does make changes to Load.php.

Title: Re: vWarn Mod
Post by: Stargater59 on July 14, 2007, 02:43:02 PM
Yes, well as yo know form the other thread, I just reinstalled the forum. So everything is working properly again. Except for my missing mods. But thats ok.
Title: Re: vWarn Mod
Post by: redone on July 15, 2007, 08:49:34 AM
I am glad you got this resolved. If you need more help just let us know.
Title: Re: vWarn Mod
Post by: Gary on July 16, 2007, 02:53:43 PM
Or alternatively you can add

;version_emulate=1.1.2

to the end of the package managers URL.

-ALM
Title: Re: vWarn Mod
Post by: okapi on July 20, 2007, 06:13:43 PM
Quote from: okapi on March 15, 2007, 05:46:29 PM
Another bug, when a alert ends, the denied permissions of a user group (mute can't reply for example) continues.

...hello?
Title: Re: vWarn Mod
Post by: Martin-22 on August 18, 2007, 10:15:07 AM
Hi, could somebody update the mod to work with SMF 1.1.3 ? please..

After installing the SMF 1.1.3, it works, but except the properties  "muted", and "moderate". The user can still post anything, where could be the problem ?
Title: Re: vWarn Mod
Post by: Coldfx on August 18, 2007, 10:17:38 AM
Quote from: Martin-22 on August 18, 2007, 10:15:07 AM
Hi, could somebody update the mod to work with SMF 1.1.3 ? please..

After installing the SMF 1.1.3, it works, but except the properties  "muted", and "moderate". The user can still post anything, where could be the problem ?

Edit the "muted" membergroup permission so they cannot post.
Title: Re: vWarn Mod
Post by: Martin-22 on August 18, 2007, 01:40:36 PM
It's not function, i can't assign the user to this group
Quote from: Coldfx on August 18, 2007, 10:17:38 AM
Quote from: Martin-22 on August 18, 2007, 10:15:07 AM
Hi, could somebody update the mod to work with SMF 1.1.3 ? please..

After installing the SMF 1.1.3, it works, but except the properties  "muted", and "moderate". The user can still post anything, where could be the problem ?

Edit the "muted" membergroup permission so they cannot post.
Doesn't work it :(
Title: Re: vWarn Mod
Post by: askepott on September 06, 2007, 11:49:14 PM
is it possible to hide the warning level below the user post count? it'll be great if we can hide it.
Title: Re: vWarn Mod
Post by: askepott on September 07, 2007, 05:07:13 PM
not working with 1.1.3 :(
Title: Re: vWarn Mod
Post by: SONSiVRi on November 09, 2007, 12:03:30 AM
I installed on 1.1.4, "warning" works so far so good.
The problem is user count isnt showing on membergroup listing, I need to sleep before check 10 page of posts.
Title: Re: vWarn Mod
Post by: Yellowrose on November 13, 2007, 01:16:56 AM
I agree with askepott. I would like to see a function added to this mod that allows only admins and moderators to see the warn levels and hide them from users. Having them visable can be detrimental to some broads with younger users. I think if we all think back to when we were young we can remember how cruel kids can be to one another in this type of situation. They have enough to worry about in todays age and most that I have seen use the net to get away from the ridicule and harassment in real life but this mods can very well create it on the net as well.

Hiding the levels from members would help to solve the possability of this happening on boards with younger users.
Title: Re: vWarn Mod
Post by: SONSiVRi on November 26, 2007, 05:09:31 PM
Quote from: Yellowrose on November 13, 2007, 01:16:56 AM
I agree with askepott. I would like to see a function added to this mod that allows only admins and moderators to see the warn levels and hide them from users. Having them visable can be detrimental to some broads with younger users. I think if we all think back to when we were young we can remember how cruel kids can be to one another in this type of situation. They have enough to worry about in todays age and most that I have seen use the net to get away from the ridicule and harassment in real life but this mods can very well create it on the net as well.

Hiding the levels from members would help to solve the possability of this happening on boards with younger users.

In fact its easy to done I think.
I implemented permission control to another mod that checking user rights to showing some links.
I can prepare it for you but I have to resolve my problem first.
I cant un-warn (un-mute...) user, when I set them zero it seems ok but some random later its going back where it left to counting.
Title: Re: vWarn Mod
Post by: SONSiVRi on November 29, 2007, 03:17:50 AM
I found where the error happens. (error: forum keeps warning if you unwarn members before time is over)
Its for unwarn process isnt delete / disable previous warning entries Expires / Expired and first occurring of autoWarn() is keep warning people untill its expire itself.



edit:



I found the bug, wrong column name choosed to disable previous warnings when we adding new ones. Code disables administrator's (ID_MEMBER) warnings instead of user's (ID_WARNED) warnings.

$sourcedir/Profile.php should be corrected.

Find:
                  UPDATE {$db_prefix}log_warnings
                    SET valid = 0
                    WHERE ID_MEMBER = $memID", __FILE__, __LINE__);


Replace:
                  UPDATE {$db_prefix}log_warnings
                    SET valid = 0
                    WHERE ID_WARNED = $memID", __FILE__, __LINE__);



Btw I wonder why nodoby complained for this bug, except 2-3 guys.
Title: Re: vWarn Mod
Post by: SONSiVRi on November 29, 2007, 04:25:33 PM
Quote from: okapi on March 15, 2007, 05:46:29 PM
Another bug, when a alert ends, the denied permissions of a user group (mute can't reply for example) continues.
Quote from: JohnnyMcKinney on March 16, 2007, 04:25:58 PM
Yea that happens to me also.
Quote from: tensop on March 20, 2007, 08:43:38 AM
yeah, im having a problem where the users warn isnt actually expiring, sometimes they remain in the group, or their 'warned' message sticks etc
Quote from: preddy25 on April 30, 2007, 11:57:40 AM
any updates? i thought the after the warnings expired , the user would be move out of the group automatically...guess not , but is  a great mod in the first place!
thanks val! keep up the good work! ...just more work for my moderators now..ehhe

I cant believe only these guys told the problem they have.
I deep traced the code and I saw same "column name" problem in autoWarn section also.
And Valodim, I dunno how you say your code working perfectly, am I missing something?
I am not blaming who is published a mod but I am confused. You obviously coded wrong column name.

I am still working on the code, I hope I make it clean.
I will add permission control to it, only selected membergroups can see the warnings.



EDIT 1



Here are the modifications list to resolve this issue.

$sourcedir/Security.php
Search
SELECT ID_WARNING, ID_MEMBER, time, data

Replace
SELECT ID_WARNING, ID_WARNED, time, data

$sourcedir/Security.php
Search
$expiredmembers[$row['ID_MEMBER']] = array_keys($expired);

Replace
$expiredmembers[$row['ID_WARNED']] = array_keys($expired);


(If your "Manage Membergroups" background and table headers are not straight make this modification too)
$themedir/ManageMembergroups.template.php
Search
<tr class="catbg"><td colspan="4" style="padding: 4px;">', $txt['membergroups_warning'], '</td></tr>
<tr class="titlebg">
<td width="42%">', $txt['membergroups_name'], '</td>
<td width="12%" align="center">', $txt['membergroups_stars'], '</td>
<td width="10%" align="center">', $txt['membergroups_members_top'], '</td>
<td width="10%" align="center">', $txt[17], '</td>
</tr>';
foreach ($context['groups']['warning'] as $group) {
echo '
<tr>
<td class="windowbg2">', empty($group['color']) ? $group['name'] : '<span style="color: ' . $group['color'] . '">' . $group['name'] . '</span>', '</td>
<td class="windowbg2" align="left">', $group['stars'], '</td>
<td class="windowbg" align="center">', $group['can_search'] ? $group['link'] : $group['num_members'], '</td>
<td class="windowbg2" align="center"><a href="' . $scripturl . '?action=membergroups;sa=edit;group=' . $group['id'] . '">' . $txt['membergroups_modify'] . '</a></td>


Replace
<tr class="titlebg"><td colspan="4" style="padding: 4px;">', $txt['membergroups_warning'], '</td></tr>
<tr class="catbg3">
<td width="42%">', $txt['membergroups_name'], '</td>
<td width="12%" align="center">', $txt['membergroups_stars'], '</td>
<td width="22%" align="center">', $txt['membergroups_members_top'], '</td>
<td width="10%" align="center">', $txt[17], '</td>
</tr>';
foreach ($context['groups']['warning'] as $group) {
echo '
<tr>
<td class="windowbg">', $group['can_search'] ? $group['link'] : $group['num_members'], '</td>
<td class="windowbg2" align="left">', $group['stars'], '</td>
<td class="windowbg2" align="center">', empty($group['color']) ? $group['name'] : '<span style="color: ' . $group['color'] . '">' . $group['name'] . '</span>', '</td>
<td class="windowbg2" align="center"><a href="' . $scripturl . '?action=membergroups;sa=edit;group=' . $group['id'] . '">' . $txt['membergroups_modify'] . '</a></td>





EDIT 2



Sorry to say that but still problems exist.
I found another bug. If you have 2 or more active warned members, autoWarn doesnt unwarn them when time is over.
Because autoWarn collects the users those who will be deleted from warning groups (when warning time is over) and then execute the SQL command to delete user in that group.
The error on implode function, thats why users cannot be deleted from warning group.
Valodim its working on your side cause you only warning 1 person at a time.
No need to implode function to seperate usernames.

I am not PHP coder, maybe I am wrong on those error stuff ?


Search
WHERE ID_MEMBER IN (" . implode(array_keys($expiredmembers)) . ")", __FILE__, __LINE__);


Replace
WHERE ID_MEMBER IN (" . implode(',', array_keys($expiredmembers)) . ")", __FILE__, __LINE__);
Title: Re: vWarn Mod
Post by: JoshieDaMan on April 17, 2008, 02:50:03 AM
It'd be awesome to have for 1.1.4!
Title: Re: vWarn Mod
Post by: barrage time on July 12, 2008, 12:12:42 AM
Quote from: JoshieDaMan on April 17, 2008, 02:50:03 AM
It'd be awesome to have for 1.1.4!
I agree, can anyone update for me please?
PM me if you can, thank you.
Title: Re: vWarn Mod
Post by: SONSiVRi on July 17, 2008, 09:39:58 PM
I am running this mod on 1.1.5.
I dont know which sections I changed but first of all you need to edit "package-info.xml".
Change this <install for="1.1.2"> into this <install for="1.1.5">
Title: Re: vWarn Mod
Post by: SONSiVRi on October 11, 2008, 04:51:28 PM
I have found another bug.
If you have 2 warning group and you warned user by two of them (one is having different lasting days from other), it will still shows minimum lasting days having group even if its expired and the other one still active. Long story short: It doesnt check each warning group lasting days seperately and show which one's lasting day is minimum (even expired).

I solved this issue on my forum but it seems this mod siriously damaged and nobody using it. I assume no need to hard work and publish solution.
Title: Re: vWarn Mod
Post by: eigthy on January 26, 2010, 01:18:32 AM
someone adapted it to version smf 1.1.11?
Title: Re: vWarn Mod
Post by: xxxbbs site on January 26, 2010, 01:06:34 PM
Quote from: eigthy on January 26, 2010, 01:18:32 AM
someone adapted it to version smf 1.1.11?

Waiting...
Title: Re: vWarn Mod
Post by: Laza on December 04, 2010, 01:12:37 PM
Can you please update this mod for SMF 2.0 RC4  :)
Title: Re: vWarn Mod
Post by: Gary on December 04, 2010, 02:23:32 PM
There's no need. 2.0 has this feature by default.
Title: Re: vWarn Mod
Post by: Laza on December 04, 2010, 03:13:17 PM
Thank you for answer  ;)
Title: Re: vWarn Mod
Post by: JaGuR on February 07, 2016, 04:39:07 AM
I installed this on my 1.1.21 Forum, but muted users can still post, seems they are not being added to the muted member group, even though I have added time as muted.

Any idea's ?