Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
banning options for smods Details »»
banning options for smods
Mod Version: 1.01, by Carnage (Coder) Carnage is offline
Developer Last Online: Apr 2013 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.0.3 Rating: (0 vote - 0 average) Installs: 5
Released: 24 Jan 2005 Last Update: 24 Jan 2005 Downloads: 9
Not Supported  

this has been requested, and i've throw something together by editing options.php and making a new file with it, it only allows access to the banning options. It will also give admins access to the banning options even if they don't have vboptions access permissions so this may be useful for meny people.

i'd recormend applying this hack: http://www.vbulletin.org/forum/showthread.php?t=64034 as well to prevent smods ip banning superadmins and other privilaged users.

to check if a user id an smod, i used the can_moderate function to check the permission 'issmod' as this dosn't exist as a permission it will only return true if the user is a smod or admin if you want to allow mods to ipban you can add this permission and give it to them.

Instalation, copy ipban.php to your modcp directory.

As this is a beta i've not yet added it to any menus within the mod or admin cp if you want to do this you'll have to do it yourself until i get arround to doing more work on this.

Totally re-written addressing first few posts... lesson learn: a 'quick solution' isn't the best solution....

As always backup database and forum files before installing.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 24 Jan 2005, 15:53
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
I suggest you withdraw this file, and remove your license number before uploading it again.
Reply With Quote
  #3  
Old 24 Jan 2005, 15:55
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Real name: Zachery Woods
I have removed the attachment as it looks like it is a significat chunk of vBulletins own code, not to mention it has the CVS info and your license number still in it.
Reply With Quote
  #4  
Old 24 Jan 2005, 16:10
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
A few more suggestions:
- remove the cvs entry in the top.
- the whole part in the top "if ($_REQUEST['do'] == 'options' && !empty($_REQUEST['varname']))"....etc.. is probably not needed in your script.
- I would change the 'canadminsettings' by a 'canadminusers'
- Sorry stopped reading, please cleanup your code and remove all things that are not needed. There are still update queries to 'styles' etc inside. What this got to do with an ip-ban?

Edit, didn't see Zachery's reply yet.
Reply With Quote
  #5  
Old 24 Jan 2005, 16:18
Carnage Carnage is offline
 
Join Date: Jan 2005
ach, i knew this looked too easy, as i said it was basically just cutting down options.php
__________________
www.giveupalready.com

If you want/need to contact me, best thing is to pm me on that site, username Carnage.
Reply With Quote
  #6  
Old 24 Jan 2005, 18:51
Carnage Carnage is offline
 
Join Date: Jan 2005
right, i've totally re-written it. far smaller without useless things in the code. Works perfectly for me after a few teathing troubles.
__________________
www.giveupalready.com

If you want/need to contact me, best thing is to pm me on that site, username Carnage.
Reply With Quote
  #7  
Old 25 Jan 2005, 10:34
Eagle Creek's Avatar
Eagle Creek Eagle Creek is offline
 
Join Date: Jan 2004
Originally Posted by Carnage-
right, i've totally re-written it. far smaller without useless things in the code. Works perfectly for me after a few teathing troubles.
Thanks!
__________________
http://www.nucia.nl/forum/
The best way to kill malware; is to kill it together.
I love vBulletin http://www.vbulletin.org/forum/images/newsm/bunny.gif
Reply With Quote
  #8  
Old 25 Jan 2005, 11:26
dbembibre's Avatar
dbembibre dbembibre is offline
 
Join Date: Oct 2004
Real name: Daniel
I install this hack today all work ok, very good job friend.

Thanks one more time
Reply With Quote
  #9  
Old 25 Jan 2005, 11:50
dbembibre's Avatar
dbembibre dbembibre is offline
 
Join Date: Oct 2004
Real name: Daniel
If you want make a link in you mod control panel only need make this.

Open modcp/index.php

Search:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Add:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Or create a new vbphrase and replace with this


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Excuse my broken English
Reply With Quote
  #10  
Old 25 Jan 2005, 14:52
Eagle Creek's Avatar
Eagle Creek Eagle Creek is offline
 
Join Date: Jan 2004
Originally Posted by dbembibre
Or create a new vbphrase and replace with this
How can you REPLACE a thing that's NEW and therefore has no text?
__________________
http://www.nucia.nl/forum/
The best way to kill malware; is to kill it together.
I love vBulletin http://www.vbulletin.org/forum/images/newsm/bunny.gif
Reply With Quote
  #11  
Old 25 Jan 2005, 15:18
Carnage Carnage is offline
 
Join Date: Jan 2005
Originally Posted by dbembibre
If you want make a link in you mod control panel only need make this.

Open modcp/index.php

Search:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Add:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Or create a new vbphrase and replace with this


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Excuse my broken English

basically, yes that will add a link, but access to this is controled by a none existant permission (so its not possible to give it to mods) thus only smods+ can have access. You have added it to the cp using the banusers permission which mods can have. dosn't matter too much since they will just get a permission error on the ipban page.

now to explain this a little better:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

^ that one will work fine if you add it under:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

however if you add a vb phrase 'banIP' you can add the line below INSTEAD of the first line to use the phrase instead, its all a matter of personal preferance.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
www.giveupalready.com

If you want/need to contact me, best thing is to pm me on that site, username Carnage.
Reply With Quote
  #12  
Old 12 Sep 2006, 19:29
Zelos's Avatar
Zelos Zelos is offline
 
Join Date: Jun 2006
Any chance this will be ported to 3.6? I could seriously use this!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 08:58.

Layout Options | Width: Wide Color: