Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Warning Hack V1.5 Details »»
Warning Hack V1.5
Version: 1.00, by Zero Tolerance Zero Tolerance is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 05-19-2004 Last Update: 07-12-2004 Installs: 161
 
No support by the author.

Version 1.5 Note: You must have v1 installed to upgrade, the upgrade process is small so there was no need to write out a fresh install.

It has come to my attention that a "decent" warning system isn't available here on vbulletin.org, which is quite a shame, and because forums like mine, and probably yours need a simple yet advanced warning system to keep things under wraps

Anyway, i thought i might aswell release what i made, prior to me getting off my ass... lol

Administration Features:
View Warning Logs
- Displays all warnings, warned user, warned by, link to the warned post, date, warning type, and the comment specified when the warning was given, and a remove warning link
(Remove will remove the log and also put the members warning level back down in accordance to how much it was increased by the selected warning removed)
Unban Banned Members
- A simple page that you should visit every few days, it will automatically ban any auto banned users by the warning system where there ban time has expired
Warning Options
- Here you can set the following:
-- Number of warn points before member is auto banned
-- Number of days a member is auto banned for
-- View Warnign Types
-- Add Warning Type
-- Add warning type has the following fields:
---- Name/Description/Warn Points Given

Forum Features:
Every post has "Warn [Name]" and "View [Names] Warnings"
These are only accessiable by a member group which is allowed to "moderate" (Moderating groups are auto detected)
Clicking the Warn link will bring you to a page where you view the user your warning, a link to review the warned post, members current warning level, and below the warning types, has a drop down menu to select the warning type, and a text field to put your comment for why this warning is been issued
Upon completing the warning form, the warned user will be Pm'ed from the person who warned them, with the comment put down and a link to the post

View Warnings link will display logs of only that specified user's warnings, the same features as the admin cp warning logs, only just for this user

Members can access only 1 page of the warning system, which is "View My Warnings", this link is added to the quick links drop down menu
Here they simple view there warnings, just like a moderator would, only without the remove warning link

V1.5 Features:
Protectable Usergroups:
No user's in these defined groups can be warned, or banned.
Root Admin Force Protection:
Userid 1 cannot be warned, canned be banned, this is not optional, this is forced for security.
New Unban Members Set Up:
Now displays all currently banned user's, what time they were banned, what time they are supposed to be unbanned. You may unban the user even if there time has not expired (You will be notificed if they have not served the time issued upon ban, but not stopped). Upon unbanning, you choose the members 'new' warning level and the user's usergroup to move them into
Set banned usergroup:
You can now easily choose from a drop down menu which usergroup user's are sent to if after been warned they are banned.

V1.5 Bug Fixes:
- User locations in 'Users online' shown as unknown if they are warning/viewing warnings (Priority: Medium)
- Unban members system renovated and now fully works (Priotity: Maximum)
- No mysql errors upon sending a pm if the PM table had been altered (Priotity: Maximum)
- New protectable usergroups to stop any group of your choice been banned (Priotity: Maximum)
- Last time visited didn't appear when error page occured (Priotity: Low)
- Un-used global in PM function (Priority: Low)

I hope you enjoy the system, my staff teamare very pleased with it and find it of great use, enjoy the hack

- Zero Tolerance

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #312  
Old 10-11-2004, 12:54 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RasMasta
Could you make it possible for the next release to add warning permissions by usergroup? That would help so only mods, supermods and admins could warn users.
This feature is already there, I think, in version 1.5, in the form of protected groups. Also, my hack takes this into consideration, as far as which members see the "Warn XYZ" link.

Rgds
Reply With Quote
  #313  
Old 10-11-2004, 04:41 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One feature I thought would be interesting, is the history of the warnings a user has received. As the hack was until now, a user might have received 100 warnings, which have matured, and were not displayed anywhere. I am sure the moderators would like to know the past history, so I did some changes to include the past history in the whole thing.

The records in the warnings table, are no longer deleted, when the maturity period expires or the mods/admins remove a warning, they are just marked as "Inactive". In that way when a mod/admin asks to see the warnings of a user, he sees not only the ones which are currently active, but also the ones which got matured (and thus removed automatically) or deleted. The inactive warnings are shown with lighter letters than the active ones, when one asks to see the warnings., so they are easily distinguished.

The new feature requires changes in Warn.php, in includes/cron/kill_warns.php and in some templates. It also requires that you add another field in your warnings table. This time, I provided accurate step-by-step instructions, in the attached text file, but remember that they are based on my files released in this post.

I've also included a screenshot of how the inactive warnings look like.

Guys, if some of you are using my modified hack, please post a note here, as I have no idea if you do like me adding features or you would prefer me to go do some other things.

Small update (Tuesday, October 12th): If you do the mods included in this post, to use the historical aspect of warnings, the included admin_warn.php is better, so you might want to use that as well.

Rgds
-------------
John
Reply With Quote
  #314  
Old 10-11-2004, 06:45 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you have done the mods suggested in https://vborg.vbsupport.ru/showpost....&postcount=303, you may change the template warn_addwarn, with this new one, it just improves on the functionality, opening all links in new browser windows.

This should be the contents of your warn_addwarn template:

PHP Code:
<form action="Warn.php" method="post">
<
input type="hidden" name="do" value="DoWarnUser">
<
input type="hidden" name="id" value="{$_GET['id']}">
<
input type="hidden" name="post" value="{$_GET['post']}">
<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
<
tr>
    <
td class="tcat" colspan="2">Warning User $user[username]<div class="smallfont">All links belowwill open a new browser windowclose it to return here.</div></td>
</
tr>
<
tr>
    <
td class="alt1">User Info:</td>
    <
td class="alt1">
<
a href="member.php?u=$_GET[id]"  onclick="window.open('member.php?u=$_GET[id]}','','width=1000, height=500, resizable=yes, scrollbars=yes'); return false;" target="_blank">User Profile for $user[username] - User ID$_GET[id]</a><br />
<if 
condition="$user[warning_level]>0">
<
Font color="red">User Current Warning Level: {$user['warning_level']}</font><br />
<
a href="Warn.php?do=ViewWarnings&id=$user[userid]"  onclick="window.open('Warn.php?do=ViewWarnings&id=$user[userid]','','width=1000, height=500, resizable=yes, scrollbars=yes'); return false;" target="_blank">View Existing Warnings for $user[username]</a>
</if>
        </
td>
</
tr>
<
tr>
    <
td class="alt2">Warned Post:</td>
    <
td class="alt2">
<
a href="showthread.php?p=$_GET[post]onclick="window.open('showthread.php?p=$_GET[post]','','width=1000, height=500, resizable=yes, scrollbars=yes'); return false;" target="_blank">Review Warned PostPost ID$_GET[post]</a>

<if 
condition="$warning_multiwarns1<>''">
<
br><Font color="red">$warning_multiwarns1</font><br>
<
A HREF="Warn.php?do=ViewPostWarnings&post=$_GET[post]"  onclick="window.open('Warn.php?do=ViewPostWarnings&post=$_GET[post]','','width=1000, height=500, resizable=yes, scrollbars=yes'); return false;" target="_blank">$warning_multiwarns2</a></if></td>

</
tr>
<
tr>
    <
td class="alt1">Warning Selection:</td>
    <
td class="alt1"><select name="warningid" class="smallfont">
        <
optgroup label="Choose A Warning">
        
$warnopts
        
</optgroup>
    </
select></td>
</
tr>
<
tr>
    <
td class="alt2">
        
Moderator Comments:</td>
    <
td class="alt2"><input type="text" name="comment" size="50" class="bginput">
    </
td>
</
tr>
<
tr>
    <
td class="tfoot" align="center" colspan="2"><input type="submit" value=" Add Warning " class="bginput"></td>
</
tr>
</
table>
</
form>
<
br /> 
Rgds
----------
John
Reply With Quote
  #315  
Old 10-11-2004, 01:17 PM
SamirDarji SamirDarji is offline
 
Join Date: Apr 2004
Posts: 645
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sv1cec
...as I have no idea if you do like me adding features or you would prefer me to go do some other things.
I, for one, look at each of your mods with great anticipation. You've been able to take this hack to another level. Keep up the good work. I know that I'll be giving you a ton of feedback once I start really messing with this hack on my test server.
Reply With Quote
  #316  
Old 10-11-2004, 10:45 PM
Malice Malice is offline
 
Join Date: Apr 2002
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looking over this hack just a tad, does it have NEW database tables? Basically altering the database.
Reply With Quote
  #317  
Old 10-13-2004, 07:20 PM
xtreme-mobile xtreme-mobile is offline
 
Join Date: Jul 2004
Posts: 366
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does anyone know who i would go about getting the amount of warning points to go in the profile?

ive seen it on a forum so basically you dont have to click view warnings cos it shows amount of warning points in red bold text

any ideas?

dean
Reply With Quote
  #318  
Old 10-14-2004, 03:38 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by xtreme-mobile
does anyone know who i would go about getting the amount of warning points to go in the profile?

ive seen it on a forum so basically you dont have to click view warnings cos it shows amount of warning points in red bold text

any ideas?

dean
Dean,

You have to modify the memberinfo template to have the warning points shown in there. But you can also have it in each and every post of every member, by altering the postbit/postbit_legacy template.

Is that what you had in mind?

Rgds
-------------
John
Reply With Quote
  #319  
Old 10-14-2004, 04:02 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Malice
Looking over this hack just a tad, does it have NEW database tables? Basically altering the database.
The hack does use additional tables. Two of them if you follow my approach, three according to the original hack (if memory serves me right).

Rgds
-----------
John
Reply With Quote
  #320  
Old 10-14-2004, 04:33 AM
SamirDarji SamirDarji is offline
 
Join Date: Apr 2004
Posts: 645
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sv1cec
But you can also have it in each and every post of every member, by altering the postbit/postbit_legacy template.
That's awesome! That's exactly what I'm planning to do.
Reply With Quote
  #321  
Old 10-14-2004, 03:34 PM
xtreme-mobile xtreme-mobile is offline
 
Join Date: Jul 2004
Posts: 366
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeh thats it mate i just want it to show up under there post count etca evertime they post

do i just need to edit the postbit files in the template?

could you or anyone else post up the code etc to change or edit etc?

many thanks

Dean
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:10 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.06123 seconds
  • Memory Usage 2,351KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete