![]() |
|
|
Mod Options |
banning options for smods Details »»
|
|||||||||
|
This modification is in the archives.
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
No members have liked this post.
|
|||||||||
| Comments |
|
#2
|
|||
|
|||
|
I suggest you withdraw this file, and remove your license number before uploading it again.
No members have liked this post.
|
|
#3
|
||||
|
||||
|
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.
No members have liked this post.
|
|
#4
|
|||
|
|||
|
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. No members have liked this post.
|
|
#5
|
|||
|
|||
|
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. No members have liked this post.
|
|
#6
|
|||
|
|||
|
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. No members have liked this post.
|
|
#7
|
||||
|
||||
|
Originally Posted by Carnage-
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 No members have liked this post.
|
|
#8
|
||||
|
||||
|
I install this hack today all work ok, very good job friend.
Thanks one more time No members have liked this post.
|
|
#9
|
||||||||||||
|
||||||||||||
|
If you want make a link in you mod control panel only need make this.
Open modcp/index.php Search:
Add:
Or create a new vbphrase and replace with this
Excuse my broken English No members have liked this post.
|
||||||||||||
|
#10
|
||||
|
||||
|
Originally Posted by dbembibre
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 No members have liked this post.
|
|
#11
|
||||||||||||||||||||||||
|
||||||||||||||||||||||||
|
Originally Posted by dbembibre
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:
^ that one will work fine if you add it under:
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.
__________________
www.giveupalready.com If you want/need to contact me, best thing is to pm me on that site, username Carnage. No members have liked this post.
|
||||||||||||||||||||||||
![]() |
«
Previous Mod
|
Next Mod
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| Mod Options | |
|
|
| New To Site? | Need Help? |
All times are GMT. The time now is 08:58.




