![]() |
Quote:
Try replacing the part of the code which does the checking and shows the links, in the postbit template, with the code below: PHP Code:
|
Will this work?
PHP Code:
|
nvm got it ;) for anyone that would like only admins & supermods to be able to view the warn links, and it wont appear on admins posts, and moderators can only see links in their posts, then follow the instructions listed..
Go to templates> edit postbit & postbit_legacy Find: PHP Code:
Replace with: PHP Code:
|
sv1cec thanks a lot!
we will wait 4 you, man. And... good luck with your upgrade :) |
Quote:
Rgds |
Is there a way to make it where each mod can see a list of the warnings they have given out?
|
Quote:
PHP Code:
PHP Code:
|
When will v2 be out?
:cool: |
Quote:
All instructions are there, so that someone can make an install from scratch. It's just that this hack has evolved to something really big (19 new templates are required, plus several changes to existing templates) and I am trying to find a way to make the installation easier. I 'll try to immitate Zero Tolerance's installation method, but I am not good with XML and I do not want to release something like that, if I am not 100% sure it is OK. Tomorrow, I'll do some tests, for the automated installation. Rgds ------------ John |
i meant the next version of this warning hack
|
Quote:
I found this error, when use the new admin_warn.php Database error in vBulletin 3.0.3: Invalid SQL: select w.*,u.username as wusername,u.userid as wuserid,wt.*,wuser.username as warned_username_v,wuser.userid as warned_userid_v from warnings w left join user wuser on(wuser.userid=w.warned_user) left join user u on(u.userid=w.warned_by) left join warning_types wt on(wt.tid=w.warned_warning_id) ORDER BY w.warned_time DESC LIMIT 0, mysql error: You have an error in your SQL syntax near '' at line 5 mysql error number: 1064 Date: Saturday 13th of November 2004 05:47:18 PM Script: http://xxxxxxxx.xx/forums/admincp/ad...p?act=viewlogs Referer: http://xxx.xx/forums/admincp/index.php?do=nav Username: xxx IP Address: xxx.x.xx.xxx |
Quote:
Try using the admin_warn.php attached here. It works in my 3.03. Rgds |
Quote:
enclosed found attached my current use version, hope this can help!! thanks a lot. rgds, |
Quote:
Let me know if it works. The query is: PHP Code:
------------ John |
Quote:
still get same error. |
Quote:
Good luck. |
Quote:
Let me know. Rgds |
Quote:
What I am waiting for, before releasing the hack, is Zero Tolerance's permission. You see, a lot of this code comes from his original hack, and I do not want to use it in a new hack, without his permission. Rgds |
Quote:
|
Quote:
My Sun run out of disk space, so I need to do some maintenance before I can test the whole installation thing. If someone is willing to try it out, it will speed things up significantly. All you need is a clean 3.0x installation (without Zero Tolerance's things). I attach here the ... Features List, I think you will find it interesting: - post- and non-post-related warnings - hierarchical warning schema (mods can warn users, super mods can warn mods and users, admins can warn everyone, no same-level warnings) - hidden or real warners - customizable maximum warning points - customizable ban days - customizable ban user group and permanent ban user group - supports incremental banning periods - supports multiple warnings for the same post - warned members are notified either by Private Message or e-mail - maintains historical listings of issued warnings (even if deleted or expired) - customizable warning types - each warning type has predefined warning points associated with it - each warning type has predefined maturity period, after which it is automatically removed - reports for admin, and mods - cron job included to automatically remove matured warnings - uses vBulletin's cron job, to automatically unban banned users - all options are setable in your AdminCP - user warning points and number of bans viewable in your AdminCP user template. rgds -------------- John |
Quote:
I've waiting for your mod-hack long time. Really useful the modifications you made for the Zero Tolerance's idea. PM me the url for download it and i'll be in contact with you for bugs and feedback. |
Can someone install this for me please? Also, can this hack be part of mod's power as well so they can do the same?
If you can help me out, please email me at: Pandora@Sweet-November.Net Thanx in advance |
Nice hack, Thanks!
Installed with no problem mostly, had do it twice though, but it works fine. |
Ok. Got it installed.. found just a few of minor issues:
Found this issue when going to View Warning Logs when no warnings exist, I get the following: Could not find phrase 'no_warnings_found'. The above phrase is not defined in the install instructions. So I just added the Control Panel Stop phrase no_warnings_found with text "No warnings found." And this: Quote:
Quote:
Also, you may want to remind people to edit the warn_em and warn_pm templates to replace your domain (M1911.ORG) with theirs. ;) Found one more thing... For some reason, the active warning points are not being totaled correctly. Plz see the attached screenshot. |
Quote:
I also changed the warn_em and warn_pm templates to use $vboptions[bbtitle]. As for the totals of points, this is an issue. The thing is, when a member is below the banning limit (which let's assume is 10 points) and he has let's say 8, and he gets another warning for 5 points, his total doesn't become 13, it becomes 10. In other words, if the total points exceed the ban limit, then the points for that member get set to the ban limit (10). If you then unban the member and you remove some of his warnings, then his total gets decreased by the number of points that the warnings you removed had. So, let's assume that he gets down to 6, after you remove a couple of his warnings and unban him (please note that unbanning a member does not remove any points from his total, it just changes his ban status). Now if you add another warning worth 5 points, he is going to 11, gets banned and his total is again set to the maximum, which is 10. So, you cannot just add the points from the list of his warnings and expect to find his total mentioned at the end of the list. This was how this warning hack worked from the beginning, and I am not sure I know a better way to do it. Until I come up with something different, I guess this is an acceptable way to handle the issue. Rgds |
Quote:
|
Obviously, you have removed some of the warnings. This, depending on when they were removed, may have affected the total in some way. I'll check it out, and I'll also add the date the warning was removed in the file, so that we can have a better idea of what's going on. But I am pretty sure it doesn't screw up adding the points. It's when you remove them or when the banning limit is reached that things get funny.
Also, when you remove warnings, and the points go below zero, they are obviously reset to zero. And a couple of questions: - Suppose a member commits an offence and is issued a warning. Shall I add as an option, next time he is warned for the same offence to get a multiple of the warning type's points? First time 2, second time 4 points. - Second, if a member is already banned once, shall we multiply each warning he receives by a factor. So if someone is banned already once and he gets a warning worth 2 points, he doesn't get 2 but he gets 4, for example. Rgds |
Personally, I probably wouldn't use the multiplier function. Other users may want it, though... so if it was a setting that could be turned on and off, that would be nice. :)
I'll see if I can re-create the problem I'm having with the total warning points. I haven't been able to duplicate it so far. |
I really love this hack but there are a few things that would be really useful for me:
Warnings are only active for certain amount of time ( warning of 1 point given for advertising taken off after 8 weeks) Get what I mean ? |
Quote:
|
I dont have that option :S
|
Quote:
It's in the version I'm currently helping to test. Give us a chance to find any bugs that need to be taken care of. It looks pretty complete to me so I'm hoping that sv1cec will release it soon. |
Quote:
Would you people think that I should release the hack as it is, and then work on the upgrade script, or shall I withhold it until I have the script too? From the two testers and my testing, it looks as if the hack is OK, so I could release it later today. Please let me know. RGds -------- John |
Not as difficult as I expected. OK, I've added an upgrade script within the new hack's zip file. Anyone who is using Zero Tolerance's version 1.5 and cares to act as a tester for the upgrade?
What the upgrade script does, is to erase the old templates, create the new ones and add the new columns in the database tables. From then on, you have to follow the normal instructions. Download the file at: http://forum.m1911.org/temp/WarningSystem.zip Read the instructions and let me know if it works. It would be better if you do not do it on an active forum, if you have a test site, do it there. Let me know. Rgds ------------ John |
Quote:
All ok. All. I think you could release the script right now. And... upgrade script? No... just simply rollback (uninstall) the ZeroTolerance version. No more work for that, i think. |
Gentlemen,
I just want to let you know that my Advanced Warning System Hack has been released. You can find it at: https://vborg.vbsupport.ru/showthread.php?t=71992 It includes a rudimentary upgrade script as well, for those who are using Zero's v.1.5 hack. Rgds ----------- John |
Congradulations on an excellent add-on to an already great hack. This is something I was anticipating, but not so soon. Thank you for the early Christmas gift. ;)
|
Quote:
Please note here, that I've added a couple of new columns in the warnings table there, showing when a warning was removed and by whom. I thought an admin would like to know that. All new additions will be done in the other thread from now on. Rgds |
when i try to warn someone i get a blank page and when i try to look at mine or someone elses warnings how can i fix this?
|
Quote:
Thanks and rgds |
All times are GMT. The time now is 01:24 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:
|