vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Warning Hack V1.5 (https://vborg.vbsupport.ru/showthread.php?t=65336)

sv1cec 10-20-2004 04:05 AM

Quote:

Originally Posted by sully02
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.

I think Sully02 had a great idea. I'll check your mods out, and I'll include the "Warner ID" as a setting in the AdminCP. Check back later today, if the twins allow me to work on it.

Rgds
------------
John

sv1cec 10-20-2004 06:37 AM

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

SnitchSeeker 10-20-2004 09:42 AM

Quote:

Originally Posted by sv1cec
I guess I could come up with something like that, if I get some time to work on it.

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

Yes, members forward those types of PM's to admins.

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.

SnitchSeeker 10-20-2004 09:46 AM

Quote:

Originally Posted by SnitchSeeker
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! :)

Isn't it supposed to send a PM?

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. :(

j_86 10-20-2004 01:55 PM

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?

sv1cec 10-20-2004 01:59 PM

Quote:

Originally Posted by JimpsEd
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?

Yes Sir, it is an administrator option. If you define something there, all PMs will be issued by that account, if not, every PM is send by each ... warner.

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

j_86 10-20-2004 02:10 PM

Quote:

Originally Posted by sv1cec
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

I think there are some missing phrases here?

SamirDarji 10-20-2004 04:42 PM

Quote:

Originally Posted by sv1cec
I hope you enjoy.

Rgds
-----------
John

With as many mods as you've made to this hack and the amount of contribution you've made, I say that you take all your modifications to this hack and release it as an add-on hack. There's so much!

sv1cec 10-20-2004 05:19 PM

Quote:

Originally Posted by JimpsEd
I think there are some missing phrases here?

Yeah, I knew I didn't wrote everything down! That's why I am not doing this for a living, you know. I am not good at recording things!!

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

sully02 10-20-2004 09:08 PM

Quote:

Originally Posted by sv1cec
Yeah, I knew I didn't wrote everything down! That's why I am not doing this for a living, you know. I am not good at recording things!!

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

Here is another option I am pondering...

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?


All times are GMT. The time now is 01:39 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01496 seconds
  • Memory Usage 1,755KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete