[ABD] Voteban Control Panel 0.1.0

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
afterlife_69
I've Been Banned!
Posts: 630
Joined: Tue Nov 30, 2004 10:35 am

[ABD] Voteban Control Panel 0.1.0

Post by afterlife_69 » Mon Jul 25, 2005 12:56 am

Download: http://www.gamerzvault.com/mods/voteban010.zip
Demo: http://www.wow-cards.com/sai/voteban.php

Code: Select all

##############################################################
## MOD Title: Voteban Control Panel
## MOD Author: Afterlife_69 < afterlife_69[at]hotmail[dot]com > (Dean Newman) http://www.gamerzvault.com
## MOD Description: This MOD will add a voteban control panel where moderators and administrators can vote & start votes to ban users from the forum.
## MOD Version: 0.1.0
## 
## Installation Level: Easy
## Installation Time: 2 minutes
## Files To Edit: 
## Included Files: voteban.php
##                 templates/subSilver/voteban_body.tpl
##                 templates/subSilver/voteban_add_body.tpl
## Generator: MOD Studio 3.0 Beta 2 [mod functions 0.4.1818.26949]
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the 
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code 
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered 
## in our MOD-Database, located at: http://www.phpbb.com/mods/ 
##############################################################
## Author Notes: This really came in handy at GamerzVault :D
##############################################################
## MOD History:
## 
##   2005-07-25 - Version 0.1.0
## 
## -	First Stable release.
## 
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
##############################################################

DKing
Registered User
Posts: 751
Joined: Sat Jul 03, 2004 8:38 pm

Post by DKing » Mon Jul 25, 2005 1:00 am

Sounds really cool! This will be helpful! :D

I like it because mods can request for someone to be banned even if they don't have the auth to ban the user themselves.
-DKing
Latest phpBB Version: 2.0.21
Search For a MOD: MOD Search

afterlife_69
I've Been Banned!
Posts: 630
Joined: Tue Nov 30, 2004 10:35 am

Post by afterlife_69 » Mon Jul 25, 2005 1:07 am

yep ^^ btw at the top of the file voteban.php is the config for how many votes until the user is banned.

Code: Select all

$required_votes_for_ban = '3';
changing the number will change the amount of votes required.

DKing
Registered User
Posts: 751
Joined: Sat Jul 03, 2004 8:38 pm

Post by DKing » Mon Jul 25, 2005 1:32 am

Cool! Can you add that into the ACP? That would be nice.
-DKing
Latest phpBB Version: 2.0.21
Search For a MOD: MOD Search

afterlife_69
I've Been Banned!
Posts: 630
Joined: Tue Nov 30, 2004 10:35 am

Post by afterlife_69 » Mon Jul 25, 2005 1:44 am

Next version will have the following admin config:
  • - Required Votes for Ban
    - Rank after ban
    - Enable/Disable MOD

dESiLVer
Registered User
Posts: 50
Joined: Wed May 04, 2005 9:26 pm
Location: Turkey
Contact:

Post by dESiLVer » Mon Jul 25, 2005 1:56 am

good idea :idea: all right extra as normal users ability like to vote, what is the way ?

DKing
Registered User
Posts: 751
Joined: Sat Jul 03, 2004 8:38 pm

Post by DKing » Mon Jul 25, 2005 1:56 am

The enable/disable MOD was something I was just about to ask for! 8O :P

Anyways... I can't wait for the 1.0 release! It looks like it will be good!

You are definately a good MOD author; you think up great ideas for MODs and are fast about making them. They should put you on the MOD team... :P
-DKing
Latest phpBB Version: 2.0.21
Search For a MOD: MOD Search

MaddoxX
Registered User
Posts: 450
Joined: Sat May 15, 2004 4:43 pm
Location: Russia

Post by MaddoxX » Mon Jul 25, 2005 2:02 am

maybe you can set warnings too? so each time when he gets voted he gets a warning (trough pm) :P and after 3 votes = ban or something
:D

DKing
Registered User
Posts: 751
Joined: Sat Jul 03, 2004 8:38 pm

Post by DKing » Mon Jul 25, 2005 2:06 am

At MaddoxX:
I don't see that as a needed feature. Because you don't always just vote when the user does something bad. If the user gets voted for a lot at once, then the user would get a ton of PMs saying that he was warned, but soon hew ould be banned and he wouldn't even be able to view those pms.
-DKing
Latest phpBB Version: 2.0.21
Search For a MOD: MOD Search

User avatar
jrolson
Registered User
Posts: 828
Joined: Wed Jan 05, 2005 1:53 am
Location: U.S.

Post by jrolson » Mon Jul 25, 2005 3:01 am

How do you make it so normal users can vote?

afterlife_69
I've Been Banned!
Posts: 630
Joined: Tue Nov 30, 2004 10:35 am

Post by afterlife_69 » Mon Jul 25, 2005 8:24 am

@jrolson
-- [DELETE] --

Code: Select all

if($userdata['user_level'] == USER)
{
	message_die(GENERAL_ERROR, 'Sorry but you are not authorised to view this module.');
}
from voteban.php
Last edited by afterlife_69 on Mon Jul 25, 2005 9:11 am, edited 1 time in total.

llj143
Registered User
Posts: 106
Joined: Fri May 06, 2005 11:23 am

Post by llj143 » Mon Jul 25, 2005 9:08 am

is there like a feature that you set a amount of votes? just like making a poll, ppl can give comments why this member should be or shouldnt be banned..

ex.

Do you want this member to be banned?

Yes:||||||||||| ( 9 votes )
No:|||||||| ( 4 votes )

if the Yes votes will reach to 10 the member will be banned
if the No votes will rech to 10 the member will stay put..

ofcrz no. of votes can be set via ACP :)
Last edited by llj143 on Mon Jul 25, 2005 9:15 am, edited 1 time in total.

afterlife_69
I've Been Banned!
Posts: 630
Joined: Tue Nov 30, 2004 10:35 am

Post by afterlife_69 » Mon Jul 25, 2005 9:13 am

i might do it in the next version, the thing is it would take ALOT more coding than there currently is.

afterlife_69
I've Been Banned!
Posts: 630
Joined: Tue Nov 30, 2004 10:35 am

Post by afterlife_69 » Mon Jul 25, 2005 9:15 am

but obviously because this is designed for moderators i kept it simple.

User avatar
bonelifer
Community Team Member
Community Team Member
Posts: 3476
Joined: Wed Oct 27, 2004 11:35 pm
Name: William
Contact:

Post by bonelifer » Thu Sep 01, 2005 11:02 pm

Anything new?
Knowledge Base | phpBB Board Rules | Search Customisation Database
Image
Please don't contact me via PM or email for phpBB support .

Locked

Return to “[2.0.x] MODs in Development”