Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
IP Bans for Moderators Controlled via Post in Moderator Forum Details »»
IP Bans for Moderators Controlled via Post in Moderator Forum
Version: 1.00, by LSboards LSboards is offline
Developer Last Online: May 2006 Show Printable Version Email this Page

Version: 3.5.2 Rating:
Released: 12-24-2005 Last Update: Never Installs: 17
Additional Files  
No support by the author.

I've been looking for a solution to allow moderators editing and updating IP bans and I had no luck. I decided to write my own little system that basically allows the moderators to edit one single post and list banned IP's right there.

On my system, the script will run in the crontab every 15 minutes and takes the post and converts it to the proper format for the vB settings table. Once the 'hack' is in place, do not use the AdminCP option for the IP Bans, only use the designated post.

This requires you to have a Moderator Forum with proper access permissions. In other words: A forum that only moderators can see and where only moderators can post. It also requires to have moderators that understand what IP addresses are, and how to use wildcards.

In the post, you are also allowed to enter comments starting with #. Coments can be in the beginning of a line (complete line ignored) or at the end of a line. Blank lines are ignored. I suggest to copy and paste the instructions from the AdminCP into the post, and put # in front of it. This will help your moderators to know what they are supposed to enter.

Example:

Code:
# IP Ban by John Doe, 2005-12-24
64.64.64.*
123.123.123.123 #IP Ban By Jason
100.100.100.100
100.100.100.101

100.100.100.102
100.100.100.103
etc...
Install:

1. Create a new thread/post with a title similar to "Moderator IP Ban".
2. Copy and paste your current IP Bans to that post.
3. Download ipban.php from here.
4. Edit '$ban_post_id = XXX' and set your own PostID (line 11).
5. Upload ipban.php to ./includes/cron/
6. AdminCP > Scheduled Tasks > Add New Scheduled Task
7. Enter a title ("IP Ban from Post XXX').
8. Leave all * but on the minutes select 0, 15, 30, 45
9. As fle name set './includes/cron/ipban.php'
10. Save

Although it runs in the crontab, this hack is very light. It only does one select from the database and one single update for one field.

Since I am completely new to vB coding I hope it's not too dirty for the community here. There are no security checks, but I have checked the AdminCP and it allows the admins to enter any kind of data as well.

Show Your Support

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

Comments
  #12  
Old 09-10-2006, 08:35 PM
Zelos's Avatar
Zelos Zelos is offline
 
Join Date: Jun 2006
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any chance of porting this to 3.6?
Reply With Quote
  #13  
Old 12-01-2006, 08:06 PM
dragonfly2006 dragonfly2006 is offline
 
Join Date: Nov 2006
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Trying to install now
Reply With Quote
  #14  
Old 12-10-2006, 02:51 PM
shunx91 shunx91 is offline
 
Join Date: Dec 2005
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

before I install this can someone confirm that it works on 3.6.x? Thanks
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:27 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.03777 seconds
  • Memory Usage 2,230KB
  • Queries Executed 18 (?)
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_code
  • (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
  • (1)pagenav_pagelink
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (4)postbit_onlinestatus
  • (4)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