![]() |
I've done like a little mod to this.
I didnt like the way it displayed the text on the forum, so i decided to place icons there instead. <a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'><img src="http://www.iconrate.net/community/images/warn/warn.gif" alt="Warn User"></a> · <a href='Warn.php?do=ViewWarnings&id=$post[userid]'><img src="http://www.iconrate.net/community/images/warn/warn.gif" alt="View Warnings For User"></a> <if condition="$show['postcount']">· #<a Thats the text i used i know its very basic its my first ever tweek of the code. Could anyone look through the code and then tide this up for me? Its a great mod by the way. |
Found a solution.
|
Well, it looks as if I have to apologize to SnowBot (and possibly others) who asked if there is a way to eliminate the "Warn XYZ" and "View XYZ'z Warnings" from the PMs and have them shown only in the posts. Today, I went through the whole thread, and indeed I found the post where it was mentioned that this happens, but I didn't manage to find the answer.
So, if you want to remove those links from the PMs, then in your postbit, or/and postbit_legacy templates, find the part which checks if it should show the links. It should look something like that: HTML Code:
<!-- checks for warning system --> HTML Code:
<!-- checks for warning system --> Your ideas are welcome. Rgds ------------- John |
I've installed Zero Tolerance's hack and it works as intended and will also be adding sv1cec expiration of warnings. I need help with a couple things to make it more effective for my board.
1) when members are unbanned they are sent to Coppa. How do I make it so it unbans them back to their original usergroup? 2) Can it be made to send the warning as both as PM and and Email? We don't give new users PM priveleges until they meet certain post count and length of membership criteria due to numerous incident of our PM system being used to spam. Thanks! |
For whatever reason some old warnings are not expiring even thought hey have maturity dates. Any idea what could be causing this? I have warnings from August that are still active even though they only have maturity times of 30.
|
Quote:
I'll have to check the e-mail thing, I've been thinking about it too. Rgds ------------ John |
Quote:
Field Type Null Key Default Extra wid int(15) PRI auto_increment warned_user int(15) 0 warned_by int(15) 0 warned_time int(15) 0 warned_reason text warned_post int(15) 0 warned_warning_id int(15) 0 warned_status char(1) YES warning_types Field Type Null Key Default Extra tid int(15) PRI auto_increment warn_name varchar(255) warn_points int(15) 0 warn_desc text warn_maturity int(5) 0 warn_permban char(3) warn_type char(3) YES Make sure that those old warnings, do have a maturity period entered in the warning_types table. And finally make sure you have the cron script I've uploaded. Rgds ----------- John |
Quote:
Check the attached file. Rgds ------------ John |
Thanks John!
|
Quote:
Rgds |
Quote:
PHP Code:
Quote:
Now all three of my other styles have this code in it...just like I qouted...but my first style is just like the instructions line of code. Is there any reason to have that period or dot or whatever it is in that line of code for the other three styles? In the original instructions of this hack it is said to find Quote:
|
Thanks for the warning system. :)
*Clicks install |
Database error in vBulletin 3.0.1:
Invalid SQL: update warning_options set banned_limit='14', points_before_banned='5', banned_usergroup_id='8', troll_usergroup_id='4', protected_usergroups='6|15', multiple_per_post='Yes', send_pm_warning='$pmoption' where oid='1' mysql error: Unknown column 'send_pm_warning' in 'field list' mysql error number: 1054 Script: /board/admincp/admin_warn.php Referer: /board/admincp/admin_warn.php?act=view This occured when I was in AdminCP attempting ot change the Allow multiple warnings for the same post? and Send PM to the warned member |
I think I found the problem...either this is not to be in the database or it is.
I your mymods.txt it makes no mention of the send_pm_warning but yet its being called in your admin_warn_php file If this needs to be added to the database table under warning options...what should the varibles be? |
Quote:
Quote:
10. Template warn_viewtype_row at the lower right hand side of this screen shot. how do I get ride of that? |
what about warning for non post related infractions.
Wow a lot of chat about this hack. I'm having a problem with people registering and sending spammy PM's. It would be nice if there was a way for users to click to report spam pm to some mod and it would go right to their profile with a warn this user right there . These spammers don't typically make posts so tying their warning to a post is not be very useful. |
OK, I just installed but there is no clue as to what warning type's (sic) are. Can you do a quick run though of different sample warning types that can possibly be used with this system and how they are configured. It's hard for a new user to create one when it's not explained. You might want to just pre-configure a basic setup so it works out of the box.
|
Quote:
Rgds |
Quote:
Rgds |
Quote:
Rgds |
Quote:
Let me know if this helps. Rgds |
Quote:
HTML Code:
<a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'>Warn $post[musername]</a> ? <a href='Warn.php?do=ViewWarnings&id=$post[userid]'>View $post[musername]'s Warnings</a> Rgds |
Quote:
I need to know how to modify the original author's hack to send the email warning. The only references I can find to PM there are in warn.php here: Code:
function SendPM($message,$title,$to,$from){ Code:
// Send PM!! =D |
Quote:
PHP Code:
PHP Code:
Good luck. |
Quote:
Quote:
|
Quote:
Rgds |
I have this hack installed modification by sv1cec. many thanks for all your worked.
One question:- in the admincp to view that "View Warning Logs", if I have over 2000 members are warned, will it wait for long time to load the whole page? possibly separate in difference pages, likes 1 page show 20 warns, then go click next page see others. Thanks in advance!!! rgds, |
What are the parameters for this in the database? That mod is not in your instructions. This is all I see in your instrcutions
PHP Code:
Quote:
|
Quote:
Sorry about any inconvenience. |
Quote:
Rgds |
Quote:
Awaiting for the good news. thanks again!!! rgds, |
Hi sv1;
In the nopostrelatedwarnings instructions, I cannot find PHP Code:
|
Quote:
Please keep in mind one thing I keep saying from the beginning. I maintain this hack, for my own usage, so some times, I do some changes which do not get to the public. Then, when someone else asks for some additional thing, the old part creeps up out of nowhere. In any case, here are the files that I use, they have all the options. You may try them. Sorry for any inconvenience. Rgds |
Quote:
Find: Code:
// Send PM!! =D Code:
$messageb=""; Y is the username for the account. You need to add the template warn_em I used the one provided by sv1cec in this post and edited it for my board https://vborg.vbsupport.ru/showpost....&postcount=408 Thanks again for all the help! |
All my old warning types are no longer visable with some changes? Without going to much trouble, is there any warning type DB update I missed that may cause this?
PS: Many more thanks sv1 |
Quote:
Or to be more precise, there might be something. The fact that I am using "active" and "inactive" warnings, in other words, I keep historical records. Check your warnings with the SQL above. If they are there, and they do not appear in the View Warnings, I'll explain what you have to do to see them again. Rgds |
They're still in the database.
But I notice you had a table warn_type in the warning_types table - which NULL = YES. I created this entry too - could this be related? |
No the warn_type, if set to Yes, means it is a post-related warning, if set to No, it is a non-post related one. If you upgraded to the latest version I posted, you have to go to the AdminCP and edit your warning types accordingly.
For the warnings not showing, the thing is, there is a column in the warnings table, called warned_status. If this is empty in your records, they may not show up in the View Warnings. You have to fill them in with the letter 'A'. In other words, run this query: update `warnings` set warned_status='A' Let me know if this works. |
Working great :)
Many thanks sv1! |
Quote:
|
All times are GMT. The time now is 04:42 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|