![]() |
After testing this extensively, I find the warn does not send a PM like it is supposed to. No error is given (that I know of).
Any idea why this isn't working? What should I check? Everything else (including automatic ban after x warns) works perfectly! :) |
Quote:
|
Quote:
PHP Code:
PHP Code:
HTML Code:
Dear $user[username], Rgds --------- John |
Quote:
$from=$bbuserinfo['userid']; You may change that to something like $from=1 which will make the PM look as if it came from the admin. I haven't tried it, but it should work. Rgds ---------- John |
Quote:
It shouldn't be too difficult, my only concern is if the warning types will be the same or not. If they are not, (if you cannot have them together with your normal, per-post warning types), then I do not see it possible, at least with my time restrictions. Also, being a new admin, how to you get to know that someone send a nusty PM? Do members forward that to you? Also, I need to think where that 'non-post-related' link will be, in other words, where will the "Warn XUZ" link will be, for this kind of warnings. Ideas? Rgds |
Quote:
It can be done, all you have to do is pass the right parameters to the form, but I do not have the time to do it. Sorry Remi. |
As someone suggested, a "Prune Old Warnings" functionality would be a nice addition. So I did it.
The file attached has step-by-step instructions, on how to do it. Basically, it asks you how many days warnings do you want to keep (the last 30 days for example), and then goes on and deletes all INACTIVE warnings, issued before the last 30 days. Please note that the function works with the version of my mods, which maintains all warnings as a historical file, making them inactive when they are removed or when they mature. I hope you enjoy. Rgds ------------ John |
Quote:
Quote:
I think I can do it if only someone can get me started on how to construct the link: /Warn.php?&do=WarnUser&id=$VARID&post=$VARPOST&warn ingid=$VARID Thanks |
Quote:
I'm thinking aloud here, but here is how I think this could be done, so at least the users don't know who warned them. * Send the PM from a static username. Either the admin or some "WarnBot" will suffice * Comment out/remove the portions of the row templates that display the moderator's username I will look into how to achieve this, and if successful will report the results if nobody beats me to it. |
OK, here is what I came up with. I have attached the file that has information on what to do to make the PM come from a static user and how to make the person issuing the warning disappear from "View my warnings"
This is my first real stab at modifying anything beyond what I've downloaded, so if I did something wrong, please let me know, as I wish to become more proficient in this area. |
Quote:
Rgds ------------ John |
As I said before, I liked the idea of a covered warner, so I did some changes in the database and the files/templates to make it a "consistent" feature of the hack. A text file is attached here, with the required modifications.
I hope you enjoy it. While doing this, I also discovered a strange behaviour, in the Warning Options section of AdminCP. So, I changed the code a bit to correct it. The changes you should do, are described in the second attached file. All those who have implemented my "Allow multiple warnings for the same post?" option and the "Send PM to the warned member?" option, should do these changes, or else these features will not function properly. Sorry for any inconvenience. Finally, since the Warning Options part of AdminCP is getting a bit large as it is (it shows both the warning options, the defined offenses and allows you to add a new offence), I decided to separate them a bit, in order to make things more manageable. A third file is attached, which explains how to separate the Warning Options from the Warning Types. I hope you enjoy. Rgds ----------- John |
Quote:
I don't mind if it uses the exact same warning types. Well, either way is fine really. The non-post-related warnings we use are "siggie violation" "avatar violation" or "PM spam" - so we can isolate these out of the other warning types if that is easier. As for where to place it, the logical places seem to me to be .. .. a) from the user profile (same concept aas the link called "user options" that takes you to the admin cp .. b) from the admin cp directly (either while editing a user or as a part of the warn system, like a new point called "warn a member" or something. .. c) from the drop-down when you click in a member's name from inside a thread (along with "view __'s profile, view __'s home page, send __ a private message" etc. .. d) as an option within the postbit mini-profile square thinigie that shows up beside (or above - depending on if you use legacy or not) each post. |
Quote:
Or is that just some add-on that I didn't use? (I only used the original files from post 1.) I would really like a PM sent from the "warner" (not anonyous). Can anybody help? It isn't happening now. :( |
Thanks again sv1 :)
Can the option to enable "anonymous" warnings, or changing the ID or the warner - be turned on/off in the admin panel so we dont get moderator abuse? |
Quote:
Keep in mind, that the admin and the other mods can always see who the real warner is. It's just the warned user who sees the dedicated account, and this is only shown in the PM he receives. Rgds |
Quote:
|
Quote:
|
Quote:
LoL, yes, the missing phrases are easy to assume, one is something along the lines "Old warnings, issued before the specified period, have been pruned" and should be named "warnings_pruned" and the other should be something like "Old Warnings were not pruned" and should be named "warnings_npruned", both in the Control Panel Stop Messages. Sorry about that. Rgds |
Quote:
Perhaps a "Statute of limitations" in regards to how long you have to warn a post. The reason I bring this up is because a moderator could be viewing a thread that has some replies from a few weeks ago, sees something he/she deems warn-worthy and issues a warning. The problem is, at the time, nobody found the post in question to be a problem. I think something that says "After a post has been up for x hours/days/whatever time increment, a warning cannot be issued for it" would be a superb addition. Anybody else agree? |
Quote:
|
But the only thing is, if a moderator can stumble on an old post like that and find that it breaks the rules, a user can do the same. It's like saying that after x days, the rules don't apply even if you broke them. My 2 cents.
|
Quote:
Also, this is an administrative issue, your moderators should have rules, by which they moderate. If you want them not to warn old posts, just tell them so. Sorry, this idea doesn't appeal to me. Rgds ----------- John |
Quote:
Rgds --------- John |
Quote:
I am working on this non-post-related warning thing (which is quite interesting) and there is an issue here. In the way I do it, there will be a link inside the user profile, which will allow you to warn him. However, since this is not related to the offensive item (PM or whatever), there is no way I can show the user, for which item he was warned. So the moderator who issues such a warning, should make sure that in the Comments field, enters the appropriate information, i.e. "Your PM send to user XYZ on October 25th 2004 was offensive". Also, I made the same mistake again, started doing changes without documenting them very well, so you may act as my guinea pig for this thing. Is that OK with you? The file changes are not too many, but I haven't documented all the template changes I did. Oh well, I'll see what's the best I can come up with. Rgds ----------- John |
Gentlemen,
Per your request, I am releasing the non-post related warnings feature of this hack. This will allow you to warn members, for offenses which are not related to a post, but to other things, like a PM or an improper Home Page etc. The file contains the instructions, with one catch. It asks you to replace the contents of two of your templates, while I could just ask you to replace a particular line. Sorry, but I haven't kept a copy of the original line, so instead of screwing you up with mistakes, I decided to give you the whole template. The option to allow non-post related warnings, is controlled from your AdminCP/Manage Warning Options. If you have problems with this mod, please let me know. Enjoy ------------- John |
Quote:
I'll install it later tonight and let you know how it works for me! Thanks so much for taking the time to do this!! :) |
Quote:
|
I installed this hack....great work.
Only found one issue. If a user is already in the userban table and they reach the ban level you get a mySQL error since the code tries to INSERT a userid that already is in the table. Also, is there a reason why the permanent ban usergroup can't be the same as the banned usergroup? I seem to remember reading that the banned usergroup is where the user returns to after being banned. I was going to try and fix the SQL error myself by putting a check before inserting the user into the table. But I am a noob at php so I bet someone else has a better solution. Edit: Here is my solution, haven't fully tested it yet. In Warn.php: Find: PHP Code:
PHP Code:
|
I had the same issue, but as you point out, I thought that a banned member is not likely to post new offenses, so it would be impossible to get new warnings for them. Still, from a good-coding point of view, you are right, it should be taken into consideration.
Your code should work fine, although there is no point in saving adminid twice, in the first part of the if statement, right? LoL rgds -------- John |
I was woundering if I could get some help with this hack.
The problem is I have four styles Purple is the defualt style And the other three are just different colors of the defualt. Well from looking at the postbit and postbit legacy templates they do not match the defualt template where the hack instructions says to modify. Could somebody help me on adding this hack to the other three styles? It works like a champ on the first style which is the defualt... I'm able to make the modification to the navbar in style two...and I'm able to modify the postbit and postbit legacy templates on style two...but when I click on the view users warning...I get a blank page. Thanks |
Quote:
I have no idea how the different styles work, but as far as I can tell, there is nothing that should prevent the hack from working with different styles. If you could upload here the postbit and postbit_legacy templates of your one of your other styles, I could have a look and see if we can do something, but as you understand, I have no way to test it. Rgds |
Okay...I was told that we are not using the postbit templates on the forum...only the posbit_legacy templates. I have been sucsessful in getting the thread to display the warning hack but again when I click on view users warnings I get a blank page. This is only in the last three styles...in the main style this hack works just fine.
I'm uploading the main postbit template and the main postbit_legacy template Also uploading postbit and postbit_legacy template of one of the other styles. The other two styles are all the same except for where they get there images from. I did notice in the warn.php file that there is alot of calls for fetch_template. I'm not a php programmer...but would I need to add/change anything in the warn.php file in order for it to call the correct style? I also uploaded a screen shot of the warning hack on the brown style...the brown style is the one I'm working with...If I click on the View BNN121's Warnings button. it takes me to a blank page. I hope this helps. |
Quote:
From what I understand about the styles-templates things, you shouldn't alter anything in your php files in order to call the template of the particular style. The style is just a variable the user selects and then all his "views" of vB are rendered using that style. I have to assume that the template names do not change, from one style to the other, or else nothing would work in vB. I would expect that in the last template, the links should be entered somewhere within the following code: HTML Code:
<td class="thead" style="font-weight:normal" align="$stylevar[right]"> I am sorry I can't be of more help. Rgds |
I have not added all the templates to all the styles yet. only two of them...the main defualt and the drown one.
ITs to bad the installer could not be moded to install the templtes to all styles with some sort of option in the installer...but doing it manully is a good learning expirence. I will wait an see if anybody else has any ideas on this...I have all templates installed in the defualt template as well as template two. As I said before. I was told that we only use the postbit_legacy template so there mite be some issues with this template and the original files that need moded...dont know for sure. I continue working on this...I could have very well missed something...all this code looks the same after awhile. I just wanted to ad this Warn.php?do=ViewWarnings&id=1 When I click on the view users warning button...I get the blank screen...but thats what I see in the url. |
Okay...I fianlly got all this style stuff figured out and sorted..I no have a working hack on all four styles...thanks for the direction...
Now...Seeing that this thread is four pages long...I got lost somewhere along the way.. I no I seen in one of the post in this thread that you can set this hack up to do the following 1) Allow all users to see this hack 2) Allow mods to view all users but only allow them to use this hack from within the forum they are modding. 3) Allow Supermods all access board wide 4) Only Admins can unban. Like I said I seen this in one of the post...but I cant find the specific one I need. Can somebody help me locate this mod or repost whats needed Thanks |
Quote:
Rgds |
LOL...not if you have it set to see 100 post per page...then its only four pages long.
Anyway...okay I'll do some reading...got to be in here somewhere. |
Quote:
|
Is there an uninstall script for the warning system to be totally removed? (If you don't run install_warn.php again to uninstall it - I have Warning v1.5)
There's nothing wrong with it, and it is a very good hack. All i'm doing is changing some stuff on the forums and I kinda want to remove it for now... |
All times are GMT. The time now is 03:10 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|