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 System, Automatic Ban, Make Posts Invisible, Edit Signature/ Avatar/ Picture Details »»
Warning System, Automatic Ban, Make Posts Invisible, Edit Signature/ Avatar/ Picture
Version: 1.00, by Erwin Erwin is offline
Developer Last Online: May 2013 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 01-04-2004 Last Update: Never Installs: 116
 
No support by the author.

Warning System, Automatic Ban, Make Posts Invisible, Edit Signature/ Avatar/ Picture - Version 1.1

Okay, this is my private forum's custom warning/ suspension/ banning system and postbit moderator system. This is a fairly involved hack, so it is crucial that you follow the instructions closely. It would benefit experienced hackers the most. The following instructions are for an unhacked board. If you have hacked your board, or use different moderator usergroups, just make the appropriate changes.


With this hack, your staff and you will be able to:

1) Add/ Substract/ Reset Warning Points for a Member from a Popup Window in Postbit.

2) When the Member has Warning Points that reach a set level (up to you), the Member will be Automatically Banned.

3) Easily View a Member's Warning Points in the Postbit.

4) Have the ability to easily Edit a Member's Avatar/ Profile Pic/ Sig/ Reputation comments from a Popup Window in Postbit.

5) Suspend temporarily or Ban permanently a Member from a Popup Window in Postbit.

6) Have 2 categories of Banned Members -

..... a) Normal Banned members where the posts all remain, and

..... b) Troll Banned members, where all the posts in this usergroup

.......... i) Automatically becomes Invisible from all other members! You no longer have to manually search and delete their posts. They virtually disappear from your forums when they get put in this usergroup. Also, Troll Banned members get

.......... ii) Fake 404 errors and can no longer access your site.



Please be aware that this hack is designed for my private forums. If you want additional features, or customization, you have permission to do this yourself. Please do not expect me to customize this hack for your site.

FWIW, I've had this system running for 2 years now (obviously with different code). Time for me to share...

The installation instructions are in the HTML file in the ZIP file below. The warn.php is also in the ZIP file.


Screenshots:

1. Options available with the dropdown menu for staff.

https://vborg.vbsupport.ru/attachmen...chmentid=15463


2. Popup window from postbit to warn members.

https://vborg.vbsupport.ru/attachmen...chmentid=15466


3. Popup window from postbit to suspend or ban members.

https://vborg.vbsupport.ru/attachmen...chmentid=15465


4. Popup window from postbit to edit signature.

https://vborg.vbsupport.ru/attachmen...chmentid=15468


5. Popup window from postbit to edit avatar.

https://vborg.vbsupport.ru/attachmen...chmentid=15469


NOTE: You can also edit profile pictures, reputation comments, etc. but I can't be bothered making screenshots of all the features.

Enjoy!

With Erwin's Permision I've made an HTL Version of this hack.

HTL version (thanks to Dan) here:

Attached FilesWarning_System_Automatic_Ban_Make_Posts_Invisible_ Edit_Signature_Avatar.htl

Normal version here:

Show Your Support

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

Comments
  #232  
Old 07-14-2004, 12:45 AM
SnowBot's Avatar
SnowBot SnowBot is offline
 
Join Date: Jul 2003
Location: Manchester UK
Posts: 631
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

aahh that sounds great. Any idea on time scale. I am only asking as i will ununistall this and install the new one when its out.
Reply With Quote
  #233  
Old 07-20-2004, 06:43 PM
HuangA's Avatar
HuangA HuangA is offline
 
Join Date: Jun 2004
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed this on a 3.0.3 installation; after following all the instructions etc, I was able to get the menu to appear; but when I click warn user, the new window comes out blank! Is this hack compatiable with 3.0.3? Did I do something wrong?

Ok, here's what I found out after some reading...

The code is looking for "warn" template, which I did not add because it was NOT included in the package. Can someone please kindly post the warn/warning template that we're suppose to add?
Reply With Quote
  #234  
Old 07-22-2004, 11:50 AM
Bro_Joey_Gowdy's Avatar
Bro_Joey_Gowdy Bro_Joey_Gowdy is offline
 
Join Date: May 2002
Location: Hickory Flat MS 38633
Posts: 364
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

clicks install
Reply With Quote
  #235  
Old 08-02-2004, 06:03 PM
johngdk
Guest
 
Posts: n/a
Default

I have had the excact samt problem. But was a little confused about the post from "Zero Tolerance". Here the hole edited code-section. I hope this can help others:


Quote:
$getthreadids = $DB_site->query("
SELECT " . iif($sortfield == 'voteavg', $votequery) . " threadid, " . TABLE_PREFIX . "user.usergroupid AS usergroupid
FROM " . TABLE_PREFIX . "thread AS thread
$deljoin LEFT JOIN " . TABLE_PREFIX . "user ON " . TABLE_PREFIX . "user.userid = postuserid
WHERE forumid = $foruminfo[forumid]
AND sticky = 0
AND visible = 1
AND usergroupid<>24
$globalignore
$datecut
$limitothers
$delthreadlimit
ORDER BY sticky DESC, $sqlsortfield $sqlsortorder
LIMIT $limitlower, $perpage
");





Quote:
Originally Posted by Zero Tolerance
Someone else has had this error, and im getting it too

Code:
Database error in vBulletin 3.0.0 Release Candidate 4:

Invalid SQL:  
        SELECT  threadid, user.usergroupid AS usergroupid 
        FROM vb3_thread AS thread 
          LEFT JOIN vb3_user ON user.userid = postuserid 
        WHERE forumid = 5 
            AND sticky = 0 
            AND visible = 1 
            AND usergroupid&lt;&gt;17 
             
            AND thread.lastpost &gt;= 1075634033 
             
             
        ORDER BY sticky DESC, thread.lastpost DESC 
        LIMIT 0, 20 
    
mysql error: Unknown table 'user' in field list
Ive redone edits for all files, still didn't work, maybe if you could point out the exact edit that fixes this that might help, but i dont see any ive missed and ive gone through them all

Edit:

I fixed it, in the code i changed user. (2 times) to
PHP Code:
" . TABLE_PREFIX . "user
Seems those with a prefix may have trouble with this
Reply With Quote
  #236  
Old 08-02-2004, 06:34 PM
johngdk
Guest
 
Posts: n/a
Default

There are missing som "TABLE_PREFIX" lines ind the file warn.php

Here are my code-section (that works for me)

Code:
if ($action == "doadd") {
$DB_site->query("UPDATE " . TABLE_PREFIX . "userfield SET $warnfield=$warnfield+1 WHERE userid='$newuser'");
if ($warnings >= $warnpoints) {
$DB_site->query("UPDATE " . TABLE_PREFIX . "user SET usergroupid=$banusergroupid, usertitle='Banned' WHERE userid='$newuser'");

}
$error = "<b>Message:</b> You have warned this member!";
	$show['closewindow'] = true;
}
if ($action == "dominus") {
$DB_site->query("UPDATE " . TABLE_PREFIX . "userfield SET $warnfield=$warnfield-1 WHERE userid='$newuser'");
$error = "<b>Message:</b> You have warned this member!";
	$show['closewindow'] = true;

}
if ($action == "doreset") {
$DB_site->query("UPDATE " . TABLE_PREFIX . "userfield SET $warnfield=0 WHERE userid='$newuser'");
$error = "<b>Message:</b> You have warned this member!";
	$show['closewindow'] = true;
Reply With Quote
  #237  
Old 08-08-2004, 02:05 AM
ImportPassion ImportPassion is offline
 
Join Date: Mar 2002
Location: Gilbert, AZ
Posts: 605
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

for some reason I am getting a 500 error on this now. i think it was the 3.02 upgrade, but not sure when it happened
Reply With Quote
  #238  
Old 08-08-2004, 04:12 PM
Seekers Seekers is offline
 
Join Date: Aug 2004
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This was my first attempt at installing a hack and I apparantly blew it. When I click on a users name I only get the default option instead of the hack options to ban, warn, etc.

Anyone have any idea what I did wrong. I was very careful and deliberate as I went through the instructions but must have missed something.

Thanks,
Reply With Quote
  #239  
Old 08-20-2004, 01:02 PM
Dennis Olson Dennis Olson is offline
 
Join Date: Jul 2004
Location: Wisconsin
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Erwin...

1) Does this hack work for vB3.0.3?

2) Did you get your "proper warning" code added?

Thanks!
Reply With Quote
  #240  
Old 08-21-2004, 05:19 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dennis Olson
Erwin...

1) Does this hack work for vB3.0.3?

2) Did you get your "proper warning" code added?

Thanks!
It works for 3.0.3 - actually, I installed integrated my hack with the other warning hack, and added a whole bunch of stuff including PM user on thread delete/ closure/ move, email user on ban, a whole lot of stuff. This hack is actually redundant. I can't release my current system as I'm using code from the other warning hack.
Reply With Quote
  #241  
Old 08-21-2004, 02:17 PM
SnowBot's Avatar
SnowBot SnowBot is offline
 
Join Date: Jul 2003
Location: Manchester UK
Posts: 631
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Erwin
It works for 3.0.3 - actually, I installed integrated my hack with the other warning hack, and added a whole bunch of stuff including PM user on thread delete/ closure/ move, email user on ban, a whole lot of stuff. This hack is actually redundant. I can't release my current system as I'm using code from the other warning hack.
I know you can not release the whole hack as like you said you used some code from it, but anychance you may release add-ons for it So we have the best of both? I love this hack but i was hanging around for the updates.
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 08:27 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05556 seconds
  • Memory Usage 2,322KB
  • 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
  • (2)bbcode_code
  • (1)bbcode_php
  • (4)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
  • (1)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
  • (9)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