This mod could be improved<br />[]Astaran said:<br />This hack advances/replaces the normal ban masks. You can set different ban levels and edit existing bans. <br />[/]<br />1st of all you could use bitwise operators instead of adding 6 (!) rows in w3t_Banned table you would add only one.<br />With bitwise masks you also get free hands when one wants to add another ban mask: no database altering any more.<br /><br />On our forum we have a lot of PR's and spammers who sometimes get overwhelming with posting.<br /><br />Now, banning them from whole site would be excessive so why not ban them just from that one forum. This would be level before next level ban - in our case one day ban. It gives time to moderator of the forum to clean the mess they've made and no body gets really pissed-off: they coll down <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /><br /><br />Implementing per forum ban mask is beyond my php []http://pages.prodigy.net/rogerlori1/emoticons/bigblush.gif[/] and to be honest I don't have the money to pay attention: no time -> to much exams <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
Sure, most of the hacks could be improved. <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" /><br />Bitwise operators would be a good enhancement. Adding and editing new ban levels wasn't and issue while creating that hack. Doing so will require some work, but it's posssible. You only have to change the function that performs the ban check.<br /><br />Enhancing the hack to allow a per forum banning would require more modifications. You'll have to improve the permission system of threads to allows to exlude certain members. Currently, all scripts only check if the user is in a group that has enough rights to perform the action.
_________________________
Running a community? -> Keep informed and take it to the next level
[] Currently, all scripts only check if the user is in a group that has enough rights to perform the action. [/] <br />Shouldn't check_ban handle this []http://www.drogart.org/ubbthreads/images/graemlins/fragend013.gif[/]. <br /><br />I assume check_ban would take care of bitmask checking and w3t_users would get U_BannedFrom column. This would contain a comma separated list (string) with keywords (BO_keyword) of forums from which user is banned (e.g "ubb1,ubb2,ubb3").<br /><br />So when user clicks on a post on a forum he is banned from, he gets a nice invitation to go chill-out and watch the birds or smth <img src="http://www.ubbdev.com/forum/images/graemlins/cool.gif" alt="" />
Pasqualist
Member
Registered: 01/30/03
Posts: 285
Loc: Amsterdam, The Netherlands
[]Astaran said:<br />But this version should work with 6.4 with a few changes. [/]<br /><br />I would like to install this on my 6.4 board... but which changes should I make <img src="http://www.ubbdev.com/forum/images/graemlins/confused.gif" alt="" /><br /><br />Thank you for your help!<br /><br />Pasqual
[]Astaran said:<br />Enhancing the hack to allow a per forum banning would require more modifications. You'll have to improve the permission system of threads to allows to exlude certain members. Currently, all scripts only check if the user is in a group that has enough rights to perform the action. [/]<br /> YAB 0.9.0 was made in less than 4 hours with my poor knowledge of php, html and mysql []http://www.drogart.org/ubbthreads/images/graemlins/coffeedrinker.gif[/]
I'm still on 6.3.2 on my board, so I can't provide any instructions for 6.4.<br />But I'll start on migrating my hacks to 6.5 when the beta is released.
_________________________
Running a community? -> Keep informed and take it to the next level
[]PaNTerSan said:<br />YAB 0.9.0 was made in less than 4 hours with my poor knowledge of php, html and mysql []http://www.drogart.org/ubbthreads/images/graemlins/coffeedrinker.gif[/] [/]<br />Fine that you came up with a different and easier solution. <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
Haven't started to port it over yet, but I'll do it.<br />I think I'll integrate it into the new member management area instead of using a seperate gui.
_________________________
Running a community? -> Keep informed and take it to the next level
Pasqualist
Member
Registered: 01/30/03
Posts: 285
Loc: Amsterdam, The Netherlands
[]Astaran said:<br />Haven't started to port it over yet, but I'll do it.<br />I think I'll integrate it into the new member management area instead of using a seperate gui. [/]<br /><br />That's great to hear! <img src="http://www.ubbdev.com/forum/images/graemlins/laugh.gif" alt="" /><br /><br />Maybe you could also add the following ban:<br />I've banned several IP's, but somehow they are still able to login. They use the SEARCH feature and lot, and that's something I would also like to ban them from.
Pasqualist
Member
Registered: 01/30/03
Posts: 285
Loc: Amsterdam, The Netherlands
Haven't been on the forum for some time now and I would still love to have this mod in 6.5 <img src="http://www.ubbdev.com/forum/images/graemlins/laugh.gif" alt="" /><br /><br />Is there anyone who could 'upgrade' this mod to work in 6.5 ? <img src="http://www.ubbdev.com/forum/images/graemlins/thankyousign.gif" alt="" />