Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

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
  #102  
Old 02-18-2004, 06:02 PM
mOdEtWo mOdEtWo is offline
 
Join Date: Dec 2003
Location: Norway
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zelda-King
That's because you've used the HTL. It automatically puts in that "START HACK/END HACK" lark and it's INSIDE the query. Remove those lines.
Uh huh.

Excactly where do I find these lines? I've got access to phpmyadmin, but I can't seem to find these lines. Any ideas? Never mind, found them in the php code, duh!

Oh, and isn't it pretty stupid that the htl adds such lines? I thought it was developed for making things easier, not the other way around.
Reply With Quote
  #103  
Old 02-18-2004, 09:10 PM
Zelda-King's Avatar
Zelda-King Zelda-King is offline
 
Join Date: Nov 2002
Location: London, England
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oops! I should have clarified about it being a PHP script matter. :/
Reply With Quote
  #104  
Old 02-19-2004, 01:38 AM
ImportPassion ImportPassion is offline
 
Join Date: Mar 2002
Location: Gilbert, AZ
Posts: 605
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just found that out the hard way too.
But if you want to keep the comments, just put a # in front of the line. THat is a MySQL comment
Reply With Quote
  #105  
Old 02-19-2004, 03:37 PM
ImportPassion ImportPassion is offline
 
Join Date: Mar 2002
Location: Gilbert, AZ
Posts: 605
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #106  
Old 02-19-2004, 03:41 PM
ImportPassion ImportPassion is offline
 
Join Date: Mar 2002
Location: Gilbert, AZ
Posts: 605
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

one more thing, for those of you that do not want it to say:
Current Warnings: ()

Run this SQL query. Make sure to change field60 to your warning points field

PHP Code:
UPDATE userfield
set field60 
'0'
where field60 '' 
Reply With Quote
  #107  
Old 02-24-2004, 10:03 AM
PET's Avatar
PET PET is offline
 
Join Date: Jan 2002
Location: Timisoara/Romania
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have 2 problems :

When i click WARN [username] ... the browser opens a new page (warn.php......) but i get a white page. And i have uploaded warn.php in my forum root.

And the seccond problem. When i click BAN A USER a new window appear. I only see :

Move User to Usergroup and here ONLY Normal Banned. How can i ban the member as a TROLL BANNED ?

thanx. I'm a bit in a hurry now so i cudn't read all the topics.
Reply With Quote
  #108  
Old 02-24-2004, 06:26 PM
PET's Avatar
PET PET is offline
 
Join Date: Jan 2002
Location: Timisoara/Romania
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The first problem was solved. I didn't add the new template, bechoze the HTL file didn't tell me do to that. However, the seccond is still a problem. How can i directly ban a user to be a TROLL BANNED ?
Reply With Quote
  #109  
Old 02-25-2004, 06:27 AM
Natch's Avatar
Natch Natch is offline
 
Join Date: Nov 2002
Location: Australia
Posts: 851
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

From another thread ...
Quote:
Originally Posted by Erwin
My Warning System hack released here uses a similar system, but it is based on a banned usergroup, so it can be time-based, and all posts automatically disappear.
Can you specify how to make the ban apply from a certain date onwards ? cos I have some users that used to be good, then were turned to the dark side ...

Any thoughts ?
Reply With Quote
  #110  
Old 02-28-2004, 07:37 AM
Osterling Osterling is offline
 
Join Date: Jan 2004
Posts: 381
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i guess first off is this hack rc4 compatible and second if it is..

http://www.exasko.info/forum_tester

try to click a forum to view.. did i mess up? *this forum is a tester so i don't screw up my main forum untill i know what i am doing*
Reply With Quote
  #111  
Old 02-28-2004, 10:48 AM
Osterling Osterling is offline
 
Join Date: Jan 2004
Posts: 381
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

going to reinstall.. so right now everythin workds
Reply With Quote
Reply

Thread Tools

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:15 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.04945 seconds
  • Memory Usage 2,321KB
  • 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
  • (4)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
  • (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
  • (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