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
Very good valodim
I hope your mod does good but :(
Its sending bad arguements and is giving getting a bit annoying
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 :( )
autoWarningTime
Missing arguements line 2 + 3
This are in error log
fixed, read above. I forgot to add __FILE__, __LINE__ to one of the queries in the database script :)
Invalid argument supplied for foreach()
unserialize(): Argument is not a string
More errors
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 >_>
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
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*
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...
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
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?
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. >_>
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 :(
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) >_<
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
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...
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
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
Great job!!
Now...about post moderation? :P
Padfoot
Don't rush things!
Post moderation i think should be left alone,so theres no bugs.
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 ^_^
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
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 ;)
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.
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 ;)
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
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
LOL!! Now I understand what you had in mind and I think it works just fine! ;)
Oh dear another bug
When you remove the mod,it moves the warned etc to post-count based group
Will you fix it?(please)
you mean change the groups to normal groups?
yes,it changes them to post count groups on uninstall
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. :)
Ok is that query sql executable?
done ;)
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
mysql < 4.1 doesn't support collate statement, could you check if that's the cause?
I had to delete my forum due to a bug
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
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
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)
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.
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
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.
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. >_<
this mod is now SMF1.1RC1 compatible :D
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 ?
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
On the other warning mod,the button was phpbb style. And i'd ask someone from the graphics team about a button
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]
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?
Greate [Support Dude] MOD !
ThanX Alot ! 8)
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.
yeah I'll kick the collate statement (later this day :P)
can be implemented for users too and not only for membergroups ?
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?
#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?
Nope, now that I know that fact, I think it is fine.
I tried it out in the new smf & it made them into post groups again
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)
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?
Yep, I thought I was. I'll uninstall and grab this latest version later.
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
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...
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
Search the post for anwsers
i found the reason...my host is using SQL v 4.0.25-standard... :'(
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
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
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 :)
Looks good, thanks Valodim!
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.
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 :(
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 :)
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? ;)
I still can't unwarn
The unwarning seems to work in 1.1 RC1 for me.
Can you create more than 3 warning levels? coz I want to have 7 different levels. That do various things.
Go into membergroups in admin section & add them
One more question, is it compatable with SMF 1.1 RC 1?
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
I tried to unwarn myself but in summary,still warned :(
I can't fix what I can't see (-> reproduce on my pc), sorry. need more info :(
How exactly can i set this up to "pre moderate" warned users posts?
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 :(
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.phpQuoteLine 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?
Have you any other mods installed?
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
Vwarn does touch that file.
Try checking if another mod has touched that
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
chmod permissions?
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
I bet mods are colliding
Does anyone have this working on 1.0.5? Any changes need to be made to get it working? Thanks.
This mod is only compatible in the 1.1 series
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?
Any mods installed apart from this?
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?
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.
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
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.
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 ?
Solved! For some reason, load.php wnot updated. I just updated it manually and now . . . . no errors!
Will this mod get 1.1RC2 compatibile version? As for now there isn't any working warrning mod :-(
Sorry valodim hasn't been active lately so someone will have to take over for him.
Any word with RC2?
Anny UPDATE To Work With: SMF 1.0.7 ?????
There is another mod for RC2 & No mod for smf 1.0.7
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 ??
I got this error when i am trying to install this mod.
So, is it working on RC2 or not ?
I'd recommend someone take over the mod as the author has not done any updates recently.
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?
The buttons may not show up on a custom (non-default) theme, so you need to upload them to their corresponding areas
I figured as much, but will this just be a cosmetic change, or will it make me able to unwarn people?
Works here.. 1.1 rc2
http://atlantis.montecarlohosting.net/~arksvr/forum/index.php?topic=3253.0
I had this mod for ages
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?
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 :-\
Hi Valodim,
Your mod makes a lot of sense, especially being able to set many levels. Look forward to the version for 1.1rc3.
:)
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. :)
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 :)
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.
When I go to install the mod, everything test installs perfectly except load.php.
I am running 1.1RC3.
Any tips?
-- Jeff, VegasSka.com
How would I get this to work on a custom theme?
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 :-\
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
5236958*-8,
,8/+
,,,+,01_550255263
6355löä-
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. ;)
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.
You got it ;)
I missed those changes. I just copy / past them to my current Theme and it works. Thx m8 ;)
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.
I've got it working well with SMF 1.1.1...I don't rememberI had to change anything to get it working.
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?
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
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
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.
Hello, i have a problem with the mod. When i warning a user, the warnings of others users disappear :S
How do I make this work with vB Green theme?
How is install this Mod ?
1.1.2 plz =D
Valodim,please update your mod :P
working on it :)
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
Ok I have kind of a stupid question. How do we remove someone from the Warned list?
it's mentioned in the "?" help popup of the warn menu: just set all warning times to zero.
Ok cool. One more stupid question.... Can moderators raise warning levels? If not can you fix it so that they can?
umm... set the permissions accordingly? this is smf, my friend :)
A little more detailed? Where would I do this?
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 :)
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...
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
Hey Ive got users saying they can't post after being warned? I've even gave them permission and in the boards too. HELP?
Is there a central warn system with this where i can list all the people who currently have warns
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!)
WTF? So in boards I need to give them access, but in permissions I do the oposite of what it says?
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.
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.
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 :)
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.
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.
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
yes it is. otherwise, the readme would say so ;)
Another bug, when a alert ends, the denied permissions of a user group (mute can't reply for example) continues.
Yea that happens to me also.
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 :(
yeah, im having a problem where the users warn isnt actually expiring, sometimes they remain in the group, or their 'warned' message sticks etc
Valodim help :(
geez :(
gonna take care of it. may take a while, though...
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
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.
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!
any news about the bug? :^(
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 need suggestions on what permissions to give for each level of warning.
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!
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
^I want that too. is it possible ?
Works on latest version?
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
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?
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.
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?
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.
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.
You would probably have to remove the mod manually for now until its updated.
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.
To remove it manually you would just overwrite the files it changed with new ones.
And yes, it does make changes to Load.php.
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.
I am glad you got this resolved. If you need more help just let us know.
Or alternatively you can add
;version_emulate=1.1.2
to the end of the package managers URL.
-ALM
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?
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 ?
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.
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 :(
is it possible to hide the warning level below the user post count? it'll be great if we can hide it.
not working with 1.1.3 :(
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.
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.
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.
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.
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.phpSearch
SELECT ID_WARNING, ID_MEMBER, time, data
Replace
SELECT ID_WARNING, ID_WARNED, time, data
$sourcedir/Security.phpSearch
$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.phpSearch
<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__);
It'd be awesome to have for 1.1.4!
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.
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">
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.
someone adapted it to version smf 1.1.11?
Quote from: eigthy on January 26, 2010, 01:18:32 AM
someone adapted it to version smf 1.1.11?
Waiting...
Can you please update this mod for SMF 2.0 RC4 :)
There's no need. 2.0 has this feature by default.
Thank you for answer ;)
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 ?