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
  #112  
Old 02-28-2004, 05:49 PM
Sonic625 Sonic625 is offline
 
Join Date: Jun 2002
Location: D/FW Texas
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 7thgenCivic.Com
Ok, I added a "reason" and the "auto PM".
Now, that being said, I coded it for my own use, so I have hardcoded my id in there to send a PM to me when someone is warned and/or banned. It also sends it to the warned user of course.

In postbit and postbit_legacy find the line that resembles this
PHP Code:
<tr><td class="vbmenu_option"><span onClick="window.open('warn.php?$session[sessionurl]newuser=$post[userid]&username=$userinfo[username]&warnings=$post[field60]','warn','width=500,height=350')"><b>Warn $post[username] - Current Warnings: ($post[field60])</b></span></td></tr
right after
PHP Code:
$post[field60]  <--- yours will prolly be a different field number than mine 
add
PHP Code:
&amp;postid=$post[postid
replace your warn template with the contents of this warn.txt
Upload this new warn.php to the forums dir.

Please make sure you go through the files first and change field60 to your warning points field.

I will try to provide support, but no guarantees.

D
Just FYI with your warn.php only admins and Smods can warn members I replaced:
Code:
if (!($permissions['adminpermissions'] & CANCONTROLPANEL) AND (!can_moderate(0, 'canbanusers')))
with Erwin's
Code:
if ($bbuserinfo['userid'] == 0  OR $bbuserinfo['usergroupid'] == 2  OR $bbuserinfo['usergroupid'] == 1 OR $bbuserinfo['usergroupid'] == 3 OR $bbuserinfo['usergroupid'] == 4 OR $bbuserinfo['usergroupid'] == 8 OR $bbuserinfo['usergroupid'] == 17)
and they can now warn again.
Thanks,
S
Reply With Quote
  #113  
Old 02-29-2004, 03:09 PM
Osterling Osterling is offline
 
Join Date: Jan 2004
Posts: 381
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

alright...

hey guys.. i am new to asking for help like this, but a mod said i go.. so please don't be mean..

i want the hack.. Warning System, Automatic Ban, Make Posts Invisible, Edit Signature/ Avatar/ Picture ..now when installed it, it didn't work.. so i restore everything and tried again and still got errors..

i run with rc4.. and i would give you the files, you make the code additions then i will upload them throught FTP....

since i am 17 with a non-profit teen support site, i cannot offer money.. so please anyone who has some time and wants to help me out please..

reply here if you are intersested and then I PM you.. or you could just PM.. whatever floats your boat....

also i been getting spammed lately by kids who attack my memebers for being depressed and opening up.. and i am not talking on or two spammers.. i am talking 15 at a time... so this hack could give me a edge of these spamemrs...

please note: i posted this in the lounge but felt it might be better here.. sorry if this is against the rules.. i just really need help
Reply With Quote
  #114  
Old 03-01-2004, 07:35 PM
Holidazed's Avatar
Holidazed Holidazed is offline
 
Join Date: May 2002
Location: Van Nuys, CA
Posts: 713
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

7thgenCivic.Com, thanks for the update. It is nice feature to be able to add a reason for the warning and have it pm the user. However, I added this according to your instructions and it does not send a pm at all.

Erwin, setup to 7 points and then change to Usergroup 8 (the banned group). In testing, I gave an account 7 warnings and it never changed their usergroup to the "Banned" one. It simply left them where it was?

Ideas?

Overall, let me say that I am really looking forward to having this hack installed and working. It looks awesome and Erwin does some really great hacks.
Reply With Quote
  #115  
Old 03-01-2004, 10:04 PM
Osterling Osterling is offline
 
Join Date: Jan 2004
Posts: 381
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyone.. can some one pleeeeeeeeease help me
Reply With Quote
  #116  
Old 03-02-2004, 09:15 AM
Zero Tolerance's Avatar
Zero Tolerance Zero Tolerance is offline
 
Join Date: Feb 2004
Location: England
Posts: 813
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #117  
Old 03-02-2004, 02:23 PM
Holidazed's Avatar
Holidazed Holidazed is offline
 
Join Date: May 2002
Location: Van Nuys, CA
Posts: 713
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, disregard my previous message. It seems that when the instructions are followed properly, the hack will often work.

Awesome hack guys. Thanks
Reply With Quote
  #118  
Old 03-03-2004, 08:47 PM
Holidazed's Avatar
Holidazed Holidazed is offline
 
Join Date: May 2002
Location: Van Nuys, CA
Posts: 713
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I came across the need to publically display the current amount of warning points a user had on the postbit. This was in addition to what was displayed when you clicked on thier username.

I just modified the postbit or postbit_legacy template and searched for:

<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>

Then after that I added

<if condition="$post['field6']"><div class="smallfont">Current Warnings: $post[field6]</div></if>

How can I modify this statement to be if "field6" does NOT =0, then display the text??

Ideas?
Reply With Quote
  #119  
Old 03-05-2004, 06:51 AM
msimplay's Avatar
msimplay msimplay is offline
 
Join Date: Aug 2002
Location: UK
Posts: 1,059
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 7thgenCivic.Com
Ok, I added a "reason" and the "auto PM".
Now, that being said, I coded it for my own use, so I have hardcoded my id in there to send a PM to me when someone is warned and/or banned. It also sends it to the warned user of course.

In postbit and postbit_legacy find the line that resembles this
PHP Code:
<tr><td class="vbmenu_option"><span onClick="window.open('warn.php?$session[sessionurl]newuser=$post[userid]&username=$userinfo[username]&warnings=$post[field60]','warn','width=500,height=350')"><b>Warn $post[username] - Current Warnings: ($post[field60])</b></span></td></tr
right after
PHP Code:
$post[field60] <--- yours will prolly be a different field number than mine 
add
PHP Code:
&amp;postid=$post[postid
replace your warn template with the contents of this warn.txt
Upload this new warn.php to the forums dir.

Please make sure you go through the files first and change field60 to your warning points field.

I will try to provide support, but no guarantees.

D
just wondering if the warning id could be the person actually making the warning instead of one id
because then one admin would be thought of as the bad guy
i would say everyone that has the ability to warn should get the credit for it
Reply With Quote
  #120  
Old 03-06-2004, 03:09 PM
ron176 ron176 is offline
 
Join Date: May 2003
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Right I done this hack and it appears to work correctly for the most part. The only problem I am having is that the drop down menu options are only present in some forums and not in others. I am an admin and have the super mod option but it is not appearing in forums where I am assigned as mod and is appearing in forums that have other mods assigned to them.
Any ideas. I redone the hack and it is still happening and there are no other hacks installed.

Thanks

Edit: Never mind, It was working and I broke it and I was looking at a cached version of the menu. Works now.
Reply With Quote
  #121  
Old 03-06-2004, 04:04 PM
Osterling Osterling is offline
 
Join Date: Jan 2004
Posts: 381
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

has the PM notifciation of being warned been set up yet?
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 11:25 PM.


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.05050 seconds
  • Memory Usage 2,353KB
  • 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
  • (3)bbcode_code
  • (7)bbcode_php
  • (2)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